/* dataMonitorio clickable demo. Site look outside the frame (--dm-* tokens), Shopify Polaris look inside it. */
.dmd {
  --dmd-teal: var(--dm-teal, #0f6b63);
  --dmd-teal-dark: var(--dm-teal-dark, #0c4f49);
  --dmd-mint: var(--dm-mint, #5fd3c2);
  --dmd-mint-soft: var(--dm-mint-soft, #dff3ef);
  --dmd-mint-50: var(--dm-mint-50, #eef9f7);
  --dmd-paper: var(--dm-paper, #f4f8f7);
  --dmd-ink: var(--dm-ink, #10201e);
  --dmd-text-2: var(--dm-text-2, #43504e);
  --dmd-text-3: var(--dm-text-3, #5b6967);
  --dmd-border: var(--dm-border, #e2e8e7);
  --dmd-border-strong: var(--dm-border-strong, #cdd6d4);
  --dmd-sh-md: var(--dm-sh-md, 0 1px 3px rgba(16,32,30,.06), 0 6px 16px -2px rgba(16,32,30,.08));
  --dmd-sh-lg: var(--dm-sh-lg, 0 2px 6px rgba(16,32,30,.05), 0 24px 48px -12px rgba(16,32,30,.18));
  /* Polaris */
  --p-bg: #f1f1f1;
  --p-card: #fff;
  --p-text: #303030;
  --p-text-2: #616161;
  --p-border: #e3e3e3;
  --p-border-2: #ebebeb;
  --p-subtle: #f7f7f7;
  --p-green: #29845a;
  --p-amber: #e8a200;
  --p-red: #e51c00;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dmd-text-2);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  container-type: inline-size;
  width: 100%;
  position: relative;
  z-index: 1;
}
.dmd *, .dmd *::before, .dmd *::after { box-sizing: border-box; }
.dmd button { font: inherit; }
.dmd [hidden] { display: none !important; }

/* ---------- Page intro ---------- */
.dmd-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; padding: 0 16px; }
.dmd-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dmd-teal); background: var(--dmd-mint-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.dmd-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dmd-teal); }
.dmd-intro h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: var(--dmd-ink); margin: 0 0 16px; padding: 0; }
.dmd-intro p { font-size: 18px; line-height: 1.55; margin: 0; color: var(--dmd-text-2); padding: 0; }

/* ---------- Layout ---------- */
.dmd-stage { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.dmd-panel { position: sticky; top: 100px; display: grid; gap: 16px; }
@container (max-width: 980px) {
  .dmd-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dmd-panel { position: static; }
}

/* ---------- Step card ---------- */
.dmd-card { background: #fff; border: 1px solid var(--dmd-border); border-radius: 16px; padding: 24px; box-shadow: var(--dmd-sh-md); display: grid; gap: 14px; }
.dmd-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dmd-teal); }
.dmd-plan { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--dmd-paper); color: var(--dmd-text-3); border: 1px solid var(--dmd-border); white-space: nowrap; }
.dmd-plan[data-plan="growth"] { background: var(--dmd-mint-soft); color: var(--dmd-teal-dark); border-color: transparent; }
.dmd-plan[data-plan="pro"] { background: var(--dmd-teal); color: #fff; border-color: transparent; }
.dmd-title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--dmd-ink); margin: 0; padding: 0; }
.dmd-body { font-size: 15px; line-height: 1.55; margin: 0; padding: 0; color: var(--dmd-text-2); }
.dmd-hint { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dmd-text-3); }
.dmd-hint i { width: 10px; height: 10px; border-radius: 50%; background: var(--dmd-mint); box-shadow: 0 0 0 4px rgba(95,211,194,.3); flex: none; }
.dmd-bar { height: 6px; background: var(--dmd-border); border-radius: 999px; overflow: hidden; }
.dmd-bar span { display: block; height: 100%; background: var(--dmd-teal); border-radius: 999px; transition: width .35s ease; }
.dmd-chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.dmd-chapter { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--dmd-border); background: #fff; color: var(--dmd-text-3); cursor: pointer; }
.dmd-chapter:hover { border-color: var(--dmd-border-strong); color: var(--dmd-ink); }
.dmd-chapter[aria-current="true"] { background: var(--dmd-ink); color: #fff; border-color: var(--dmd-ink); }
.dmd-chapter[data-done="true"]:not([aria-current="true"]) { color: var(--dmd-teal); border-color: var(--dmd-teal-200, #b8e6de); }
.dmd-nav { display: flex; gap: 10px; }
.dmd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--dmd-border-strong); background: #fff; color: var(--dmd-ink); transition: background .15s, border-color .15s, transform .15s; }
.dmd-btn:hover { border-color: var(--dmd-ink); }
.dmd-btn:disabled { opacity: .45; cursor: default; border-color: var(--dmd-border); }
.dmd-btn--primary { background: var(--dmd-teal); border-color: var(--dmd-teal); color: #fff; flex: 1; }
.dmd-btn--primary:hover { background: var(--dmd-teal-dark); border-color: var(--dmd-teal-dark); color: #fff; }
.dmd-btn:focus-visible, .dmd-chapter:focus-visible { outline: 2px solid var(--dmd-teal); outline-offset: 2px; }
.dmd-end { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: var(--dmd-deep, #12302d); color: #fff; }
.dmd-end strong { font-size: 18px; color: #fff; }
.dmd-end p { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.dmd-end .dmd-btn--primary { background: var(--dmd-mint); border-color: var(--dmd-mint); color: var(--dmd-ink); }
.dmd-end .dmd-btn--primary:hover { background: #fff; border-color: #fff; color: var(--dmd-ink); }
.dmd-end-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dmd-end .dmd-btn { white-space: nowrap; }
.dmd-end .dmd-btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.dmd-end .dmd-btn--ghost:hover { border-color: #fff; }
.dmd-note { font-size: 12px; color: var(--dmd-text-3); margin: 0; text-align: center; }

/* ---------- Window frame ---------- */
.dmd-frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--dmd-border-strong); box-shadow: var(--dmd-sh-lg); }
.dmd-chrome { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f3f5f5; border-bottom: 1px solid var(--dmd-border); }
.dmd-dots { display: flex; gap: 6px; }
.dmd-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbda; }
.dmd-url { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 7px; background: #fff; border: 1px solid var(--dmd-border); font-size: 12px; color: var(--dmd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmd-url svg { flex: none; }
.dmd-screen { position: relative; height: 640px; overflow: hidden; background: var(--p-bg); }
.dmd-view { height: 100%; }
@container (max-width: 980px) { .dmd-screen { height: 600px; } }
@container (max-width: 520px) { .dmd-screen { height: 560px; } }

/* ---------- Shopify admin shell ---------- */
.s-admin { display: grid; grid-template-rows: 48px minmax(0, 1fr); height: 100%; font-size: 13px; line-height: 20px; color: var(--p-text); }
.s-top { display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #1a1a1a; color: #e3e3e3; }
.s-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: 14px; }
.s-logo b { width: 22px; height: 22px; border-radius: 6px; background: #95bf47; display: grid; place-items: center; color: #1a1a1a; font-size: 13px; }
.s-search { flex: 1; max-width: 480px; height: 32px; margin: 0 auto; border-radius: 9px; background: #303030; border: 1px solid #4a4a4a; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #b5b5b5; font-size: 13px; }
.s-store { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e3e3e3; white-space: nowrap; }
.s-store i { width: 26px; height: 26px; border-radius: 8px; background: #36fba1; color: #1a1a1a; font-style: normal; font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.s-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.s-side { background: #ebebeb; padding: 10px 8px; overflow: hidden; display: grid; align-content: start; gap: 1px; }
.s-nav { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 8px; font-weight: 550; color: #303030; white-space: nowrap; }
.s-nav svg { flex: none; color: #4a4a4a; }
.s-nav--on { background: #fafafa; font-weight: 650; }
.s-nav--sub { padding-left: 40px; font-weight: 500; color: #4a4a4a; height: 28px; }
.s-nav--sub.s-nav--on { color: #303030; font-weight: 650; background: #fafafa; }
.s-sep { height: 12px; }
.s-label { font-size: 12px; font-weight: 600; color: #616161; padding: 6px 10px 2px; }
.s-main { overflow: hidden; position: relative; min-width: 0; min-height: 0; }
.s-scroll { height: 100%; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: thin; }
.s-titlebar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; background: var(--p-bg); font-weight: 650; font-size: 14px; position: sticky; top: 0; z-index: 3; border-bottom: 1px solid transparent; }
.s-titlebar .s-appicon { width: 24px; height: 24px; border-radius: 6px; background: var(--dmd-teal); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.s-titlebar .s-more { margin-left: auto; color: var(--p-text-2); font-weight: 500; letter-spacing: 2px; }
.s-page { max-width: 1000px; margin: 0 auto; padding: 4px 24px 40px; display: grid; gap: 16px; }
.s-page--narrow { max-width: 860px; }
.s-h1 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 4px 0 0; color: #1a1a1a; padding: 0; }
.s-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.s-cardp { background: var(--p-card); border-radius: 12px; padding: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 1px 0 rgba(0,0,0,.05); display: grid; gap: 12px; min-width: 0; }
.s-h2 { font-size: 14px; line-height: 20px; font-weight: 650; color: #303030; margin: 0; padding: 0; }
.s-sub { color: var(--p-text-2); }
.s-strong { font-weight: 650; color: #303030; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.s-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-stack { display: grid; gap: 4px; min-width: 0; }
.s-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.s-link { color: #005bd3; font-weight: 500; }

.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #303030; background: #fff; border: 0; box-shadow: 0 0 0 1px #e3e3e3, 0 1px 0 #d4d4d4; white-space: nowrap; cursor: default; }
.s-btn--primary { color: #fff; background: linear-gradient(180deg, #4a4a4a, #303030); box-shadow: 0 0 0 1px #1a1a1a, inset 0 1px 0 rgba(255,255,255,.2); }
.s-btn--green { color: #fff; background: #29845a; box-shadow: none; }
.s-btn--blue { color: #fff; background: #1a73e8; box-shadow: none; border-radius: 4px; }
.s-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 550; background: #e3e3e3; color: #4a4a4a; white-space: nowrap; }
.s-badge--ok { background: #affebf; color: #014b40; }
.s-badge--warn { background: #ffd6a4; color: #5e4200; }
.s-badge--bad { background: #fed1d7; color: #8e0b21; }
.s-badge--info { background: #e0f0ff; color: #00527c; }

.s-field { display: grid; gap: 4px; }
.s-field label { font-weight: 550; color: #303030; }
.s-input { height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid #8a8a8a; background: #fdfdfd; color: #303030; font-size: 13px; overflow: hidden; white-space: nowrap; }
.s-input--empty { color: #8a8a8a; }
.s-input--filled { border-color: #8a8a8a; }
.s-input .s-caret { display: inline-block; width: 1px; height: 16px; background: #303030; margin-left: 1px; animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }
.s-help { color: var(--p-text-2); font-size: 12px; line-height: 16px; }
.s-select { justify-content: space-between; }
.s-select::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid #4a4a4a; border-bottom: 1.5px solid #4a4a4a; transform: rotate(45deg) translateY(-2px); }

.s-check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.s-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #8a8a8a; background: #fff; display: grid; place-items: center; margin-top: 1px; }
.s-box--on { background: #303030; border-color: #303030; }
.s-box--on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.s-switch { display: flex; align-items: center; gap: 10px; }
.s-toggle { width: 32px; height: 20px; border-radius: 999px; background: #c9c9c9; position: relative; flex: none; transition: background .2s; }
.s-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.s-toggle--on { background: #303030; }
.s-toggle--on::after { transform: translateX(12px); }

.s-banner { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: #eaf4ff; color: #303030; }
.s-banner--ok { background: #cdfee1; }
.s-banner--warn { background: #fff1e3; }
.s-banner--bad { background: #fee8eb; }
.s-banner .s-bi { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #005bd3; }
.s-banner--ok .s-bi { background: var(--p-green); }
.s-banner--warn .s-bi { background: var(--p-amber); }
.s-banner--bad .s-bi { background: var(--p-red); }

/* App screens (copied from the app's CSS modules) */
.a-progress { height: 6px; border-radius: 999px; background: #ebebeb; overflow: hidden; }
.a-progress span { display: block; height: 100%; background: var(--p-green); border-radius: 999px; transition: width .4s ease; }
.a-step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 12px; border-radius: 12px; }
.a-step--cur { background: var(--p-subtle); }
.a-marker { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; border: 1px solid #c9c9c9; color: #616161; }
.a-marker--cur { background: #303030; color: #fff; border-color: #303030; }
.a-marker--done { background: var(--p-green); color: #fff; border-color: var(--p-green); }
.a-stepbody { display: grid; gap: 8px; min-width: 0; }
.a-ok { display: flex; align-items: center; gap: 6px; color: #0c5132; font-weight: 550; }
.a-ok::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: var(--p-green); color: #fff; display: grid; place-items: center; font-size: 10px; }
.a-fold { border: 1px solid var(--p-border); border-radius: 10px; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; background: #fff; }
.a-fold::after { content: "+"; color: var(--p-text-2); }

.a-hero { display: grid; gap: 20px; padding: 28px; border-radius: 16px; border: 1px solid var(--p-border); background: radial-gradient(120% 140% at 0% 0%, #d6f5e3 0%, rgba(214,245,227,0) 55%), radial-gradient(120% 140% at 100% 100%, #e3ecff 0%, rgba(227,236,255,0) 55%), #fff; }
.a-heromain { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.a-check { width: 64px; height: 64px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 0 8px rgba(41,132,90,.15); color: #fff; font-size: 30px; font-weight: 700; display: grid; place-items: center; }
.a-herotitle { margin: 0; padding: 0; font-size: 26px; line-height: 32px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.01em; }
.a-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a-stat { display: grid; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid var(--p-border-2); }
.a-stat b { font-size: 24px; line-height: 30px; color: #1a1a1a; }
.a-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-group { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 12px; background: var(--p-subtle); }
.a-count { font-size: 12px; font-weight: 600; color: #0c5132; background: #d6f5e3; border-radius: 999px; padding: 0 8px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 18px; padding: 1px 7px; border: 1px solid var(--p-border); border-radius: 6px; background: #fff; }
.a-next { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-nextcard { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--p-border); }
.a-nextcard--feat { border: 2px solid #303030; padding: 15px; }
.a-rec { justify-self: start; font-size: 12px; font-weight: 600; color: #fff; background: #303030; border-radius: 999px; padding: 0 10px; }

.a-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.a-tile { padding: 12px 14px; border: 1px solid var(--p-border); border-radius: 10px; background: #fff; display: grid; gap: 8px; align-content: start; }
.a-tile--on { border-color: #303030; background: var(--p-subtle); }
.a-tile--locked { opacity: .55; }
.a-tilehead { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.a-stephead { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.a-stepnum { width: 28px; height: 28px; border-radius: 50%; background: #303030; color: #fff; font-weight: 650; display: grid; place-items: center; }
.a-summary { display: grid; border-top: 1px solid var(--p-border-2); }
.a-sumrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--p-border-2); }
.a-dotok, .a-dotwarn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--p-green); }
.a-dotwarn { background: var(--p-amber); }
.a-genrow { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.a-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-files { display: grid; gap: 8px; }
.a-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--p-border); background: #fff; }
.a-file i { width: 28px; height: 32px; border-radius: 4px; background: #eef2f1; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: var(--dmd-teal); }
.a-ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.a-statusrow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--p-border-2); }
.a-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--p-green); }
.a-dot--n { background: #c9c9c9; }
.a-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.a-kpi { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 10px; border-radius: 12px; background: var(--p-subtle); border: 1px solid var(--p-border-2); }
.a-kpi b { font-size: 24px; line-height: 30px; font-weight: 650; color: #303030; }
.a-track { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: 10px; background: var(--p-subtle); }
.a-cards { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }

.a-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.a-score--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.a-sc { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 12px; border: 1px solid var(--p-border-2); background: #fff; }
.a-sc b { font-size: 20px; line-height: 26px; font-weight: 700; color: #1a1a1a; }
.a-sc small { font-size: 12px; color: var(--p-text-2); line-height: 16px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.a-table th { text-align: left; font-weight: 600; color: var(--p-text-2); padding: 8px 8px; background: var(--p-subtle); border-bottom: 1px solid var(--p-border-2); white-space: nowrap; }
.a-table td { padding: 8px 8px; border-bottom: 1px solid var(--p-border-2); vertical-align: middle; }
.a-table tr.a-hl td { background: #fff8ee; }
.a-tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--p-border-2); }
.a-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.a-jstep { position: relative; padding: 12px; border-radius: 10px; background: var(--p-subtle); display: grid; gap: 2px; }
.a-jstep b { font-size: 18px; color: #1a1a1a; }
.a-bars { display: grid; gap: 4px; }
.a-barrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px 90px; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; }
.a-barrow--open { background: var(--p-subtle); }
.a-barname { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.a-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.a-trackbar { height: 10px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.a-trackbar span { display: block; height: 100%; border-radius: 999px; }
.a-tabs { display: inline-flex; padding: 2px; border-radius: 8px; background: #f1f1f1; gap: 2px; }
.a-tabs span { padding: 2px 10px; border-radius: 6px; font-weight: 550; color: var(--p-text-2); }
.a-tabs span.on { background: #fff; color: #303030; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.a-attr { display: grid; gap: 8px; }
.a-attrrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.a-attrrow > div { height: 18px; border-radius: 4px; display: flex; align-items: center; padding-left: 6px; font-size: 11px; font-weight: 600; color: #fff; }

/* ---------- Theme editor ---------- */
.t-shell { display: grid; grid-template-rows: 44px minmax(0, 1fr); height: 100%; font-size: 13px; color: var(--p-text); }
.t-top { display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--p-border); }
.t-top .s-btn--primary { margin-left: auto; }
.t-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.t-panel { background: #fff; border-right: 1px solid var(--p-border); padding: 14px; display: grid; align-content: start; gap: 12px; overflow: hidden; }
.t-embed { border: 1px solid var(--p-border); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.t-preview { padding: 18px; overflow: hidden; background: #f1f1f1; }
.t-store { background: #fff; border-radius: 8px; height: 100%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06); display: grid; grid-template-rows: auto auto 1fr; }
.t-storenav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #eee; font-weight: 700; letter-spacing: .04em; }
.t-storehero { margin: 16px 20px; height: 140px; border-radius: 8px; background: linear-gradient(135deg, #e9dfd1, #c9b79c); display: grid; place-items: center; color: #3d3020; font-size: 22px; font-weight: 700; }
.t-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 20px; }
.t-prod { display: grid; gap: 6px; font-size: 12px; }
.t-prod i { display: block; aspect-ratio: 1; border-radius: 6px; background: #efe9e1; }

/* ---------- Google Tag Manager ---------- */
.g-shell { display: grid; grid-template-rows: 56px 44px minmax(0, 1fr); height: 100%; font-family: Roboto, Inter, system-ui, sans-serif; font-size: 13px; color: #202124; background: #f8f9fa; }
.g-top { display: flex; align-items: center; gap: 14px; padding: 0 18px; background: #fff; border-bottom: 1px solid #dadce0; }
.g-logo { width: 26px; height: 26px; transform: rotate(45deg); border-radius: 5px; background: #4285f4; position: relative; flex: none; }
.g-logo::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.g-ws { display: grid; line-height: 16px; }
.g-ws small { color: #5f6368; font-size: 11px; }
.g-top .g-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.g-tabs { display: flex; align-items: end; gap: 22px; padding: 0 18px; background: #fff; border-bottom: 1px solid #dadce0; }
.g-tabs span { padding: 12px 2px; color: #5f6368; font-weight: 500; }
.g-tabs span.on { color: #1a73e8; border-bottom: 3px solid #1a73e8; padding-bottom: 9px; }
.g-main { padding: 20px; overflow: hidden; position: relative; }
.g-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); padding: 20px; display: grid; gap: 14px; max-width: 640px; }
.g-h { font-size: 18px; font-weight: 400; color: #202124; margin: 0; padding: 0; }
.g-lab { font-size: 12px; color: #5f6368; font-weight: 500; }
.g-radio { display: flex; align-items: center; gap: 10px; }
.g-radio i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #5f6368; flex: none; }
.g-radio i.on { border-color: #1a73e8; box-shadow: inset 0 0 0 3px #fff; background: #1a73e8; }
.g-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #dadce0; border-radius: 6px; }
.g-actions { display: flex; justify-content: flex-end; gap: 8px; }
.g-btn { height: 36px; padding: 0 18px; border-radius: 4px; display: inline-flex; align-items: center; font-weight: 500; color: #1a73e8; background: #fff; border: 1px solid #dadce0; }
.g-btn--primary { color: #fff; background: #1a73e8; border-color: #1a73e8; }
.g-list { display: grid; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.3); overflow: hidden; }
.g-li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f3f4; align-items: center; }
.g-li--head { color: #5f6368; font-weight: 500; font-size: 12px; background: #f8f9fa; }
.g-tag { display: flex; align-items: center; gap: 8px; }
.g-tag i { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.g-pill { display: inline-flex; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #e6f4ea; color: #137333; font-weight: 500; }
.g-preview { position: absolute; right: 18px; bottom: 18px; width: 300px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(60,64,67,.3); padding: 14px; display: grid; gap: 8px; }
.g-ev { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 4px; background: #f1f3f4; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.g-ev span:last-child { color: #137333; font-family: Roboto, sans-serif; }

/* ---------- Glow target, toast, transitions ---------- */
.dmd-target { position: relative; z-index: 2; cursor: pointer !important; outline: none; animation: dmd-pulse 1.6s ease-out infinite; border-radius: 9px; }
.dmd-target.s-input, .dmd-target.a-tile, .dmd-target.a-barrow, .dmd-target.s-switch { border-radius: 10px; }
.dmd-target:focus-visible { outline: 3px solid var(--dmd-teal); outline-offset: 3px; }
.dmd-target:hover { filter: brightness(1.04); }
@keyframes dmd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,107,99,.55), 0 0 0 0 rgba(95,211,194,.6); }
  70% { box-shadow: 0 0 0 10px rgba(15,107,99,0), 0 0 0 18px rgba(95,211,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,107,99,0), 0 0 0 0 rgba(95,211,194,0); }
}
.dmd-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); background: var(--dmd-ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: 0 6px 16px rgba(16,32,30,.25); animation: dmd-bob 1.6s ease-in-out infinite; font-family: Inter, system-ui, sans-serif; }
.dmd-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--dmd-ink); transform: translateX(-50%) rotate(45deg); }
.dmd-tip--below { transform: translate(-50%, 12px); }
.dmd-tip--below::after { bottom: auto; top: -5px; }
@keyframes dmd-bob { 50% { margin-top: -3px; } }
.dmd-toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 6; background: #1a1a1a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 550; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.dmd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.dmd-fade { animation: dmd-in .35s ease both; }
@keyframes dmd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dmd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .dmd-target { animation: none; box-shadow: 0 0 0 3px var(--dmd-mint), 0 0 0 6px rgba(15,107,99,.35); }
  .dmd-tip { animation: none; }
  .dmd-fade { animation: none; }
  .s-scroll { scroll-behavior: auto; }
}

/* ---------- Narrow screens ---------- */
@container (max-width: 860px) {
  .s-body, .t-body { grid-template-columns: minmax(0, 1fr); }
  .s-side, .t-panel-hide { display: none; }
  .s-search { display: none; }
  .s-store span { display: none; }
  .s-top { justify-content: space-between; }
}
@container (max-width: 720px) {
  .s-layout, .a-cards, .a-groups, .a-next, .a-stats, .a-grid2 { grid-template-columns: minmax(0, 1fr); }
  .a-heromain { grid-template-columns: 1fr; }
  .a-kpis, .a-score, .a-score--5, .a-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-page { padding: 4px 14px 32px; }
  .a-hero { padding: 20px; }
  .a-genrow { grid-template-columns: 1fr; }
  .t-body { grid-template-rows: auto minmax(0, 1fr); }
  .t-panel { border-right: 0; border-bottom: 1px solid var(--p-border); }
  .t-preview { display: none; }
  .g-li { grid-template-columns: minmax(0, 1fr) 90px; }
  .g-li > :nth-child(3) { display: none; }
  .g-preview { left: 14px; right: 14px; width: auto; }
  .a-barrow { grid-template-columns: 96px minmax(0, 1fr) 62px; }
  .a-barrow > :nth-child(4) { display: none; }
  .a-attrrow { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); }
}
@container (max-width: 520px) {
  .dmd-card { padding: 18px; }
  .dmd-title { font-size: 21px; }
  .dmd-chapters { display: none; }
  .dmd-intro p { font-size: 16px; }
  .s-titlebar { padding: 0 14px; }
}

/* ===== v1.1 additions ===== */
.dmd-who { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--dmd-mint-50); border: 1px solid var(--dmd-mint-soft); }
.dmd-who div { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.45; color: var(--dmd-text-2); }
.dmd-who b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dmd-teal); }

/* dropdown */
.s-select--open { border-color: #005bd3; box-shadow: 0 0 0 1px #005bd3; }
.s-menu { position: absolute; left: 0; right: 0; top: 56px; z-index: 4; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.16); padding: 6px; display: grid; gap: 1px; }
.s-menuitem { padding: 6px 10px; border-radius: 6px; color: #303030; cursor: default; }
.s-menuitem--on { background: #f1f1f1; font-weight: 600; }
.s-menuitem.dmd-target { background: #fff; }
.s-input--focus { border-color: #005bd3; box-shadow: 0 0 0 1px #005bd3; }

/* GTM setup */
.a-tile--flash { animation: a-flash 1.4s ease 2; }
@keyframes a-flash { 50% { box-shadow: 0 0 0 3px rgba(95,211,194,.6); } }
.dmd-stagger > * { animation: a-cardin .45s ease both; }
.dmd-stagger > *:nth-child(2) { animation-delay: .12s; }
.dmd-stagger > *:nth-child(3) { animation-delay: .24s; }
.dmd-stagger > *:nth-child(4) { animation-delay: .36s; }
@keyframes a-cardin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.a-stephead.dmd-target { padding: 6px; margin: -6px; border-radius: 12px; }
.a-foldopen { border: 1px solid var(--p-border); border-radius: 10px; padding: 0 14px 14px; animation: a-cardin .3s ease both; }
.a-foldhead { padding: 10px 0; font-weight: 600; display: flex; justify-content: space-between; }
.a-foldhead::after { content: "–"; color: var(--p-text-2); }

/* GTM */
.g-brand { font-size: 18px; color: #5f6368; white-space: nowrap; }
.g-id { font-size: 12px; color: #5f6368; background: #f1f3f4; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.g-wsch { font-size: 12px; color: #5f6368; white-space: nowrap; }
.g-main.s-scroll { overflow-y: auto; }
.g-admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.g-col { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.3); padding: 8px 0; align-self: start; }
.g-colhead { font-size: 12px; font-weight: 500; color: #5f6368; text-transform: uppercase; letter-spacing: .04em; padding: 8px 16px; }
.g-li2 { padding: 8px 16px; color: #1a73e8; }
.g-li2.dmd-target { border-radius: 4px; margin: 0 8px; padding: 8px; }
.g-sub { font-size: 12px; color: #5f6368; }
.g-link { color: #1a73e8; }
.g-json { width: 22px; height: 26px; border-radius: 3px; background: #e8f0fe; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: #1a73e8; flex: none; }
.g-select { border: 1px solid #dadce0; border-radius: 4px; padding: 8px 10px; max-width: 260px; margin-left: 28px; }
.g-indent { margin-left: 28px; display: grid; gap: 8px; }
.g-radio { align-items: flex-start; }
.g-radio i { margin-top: 1px; }
.g-radio.dmd-target { padding: 4px 6px; margin: -4px -6px; border-radius: 6px; }
.g-prev { display: grid; gap: 8px; padding: 12px; border: 1px solid #dadce0; border-radius: 6px; animation: a-cardin .3s ease both; }
.g-prevrow { display: grid; grid-template-columns: 70px 1fr 64px; gap: 10px; align-items: center; }
.g-bar { height: 8px; border-radius: 4px; background: #f1f3f4; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: #34a853; }
.g-btn--text { border-color: transparent; }
.g-btn--off { opacity: .45; }
.g-dialog { max-width: 600px; margin: 0 auto; }
.g-wsgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.g-leftnav { display: grid; align-content: start; gap: 2px; }
.g-leftnav span { padding: 8px 12px; border-radius: 0 16px 16px 0; color: #3c4043; }
.g-leftnav span.on { background: #e8f0fe; color: #1967d2; font-weight: 500; }
.g-shell--ta { grid-template-rows: 56px minmax(0, 1fr); }
.g-logo--ta { background: #34a853; }
.g-ta { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow-y: auto; }
.g-taev { background: #fff; border-right: 1px solid #dadce0; padding: 8px 0; }
.g-taitem { display: flex; gap: 10px; padding: 7px 16px; color: #3c4043; }
.g-taitem span { width: 18px; color: #5f6368; text-align: right; }
.g-taitem.on { background: #e8f0fe; color: #1967d2; font-weight: 500; }
.g-tamain { padding: 12px 20px 24px; }
.g-tamain .g-colhead { padding: 4px 0 10px; text-transform: none; font-size: 15px; color: #202124; letter-spacing: 0; }
.g-firedtag { display: flex; justify-content: space-between; padding: 9px 12px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(60,64,67,.25); margin-bottom: 6px; }
.g-firedtag span { color: #137333; font-size: 12px; }
.g-firedtag--no span { color: #5f6368; }
.g-pre { margin: 0; padding: 10px 12px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(60,64,67,.25); font: 11.5px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; color: #202124; }
.g-shell .s-field label { font-size: 12px; color: #5f6368; font-weight: 500; }
.g-shell .s-input { border-color: #dadce0; border-radius: 4px; }

/* email */
.m-shell { display: grid; grid-template-rows: 52px minmax(0, 1fr); height: 100%; background: #f6f8fc; font-size: 13px; color: #202124; }
.m-top { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.m-logo { width: 28px; height: 28px; border-radius: 8px; background: #0f6b63; color: #fff; display: grid; place-items: center; }
.m-search { flex: 1; max-width: 420px; height: 36px; border-radius: 18px; background: #e9eef6; display: flex; align-items: center; padding: 0 16px; color: #5f6368; }
.m-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; gap: 8px; padding: 0 8px 8px; }
.m-list { background: #fff; border-radius: 12px; overflow: hidden; }
.m-item { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid #f1f3f4; color: #5f6368; }
.m-item b { color: #202124; }
.m-item.on { background: #e8f0fe; }
.m-item.on span:last-child { color: #202124; font-weight: 600; }
.m-read { background: #fff; border-radius: 12px; padding: 16px 20px; overflow-y: auto; min-height: 0; }
.m-subject { font-size: 18px; margin-bottom: 12px; }
.m-from { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.m-av { width: 32px; height: 32px; border-radius: 50%; background: #0f6b63; color: #fff; display: grid; place-items: center; font-weight: 700; }
.m-mail { background: #f1f1f1; border-radius: 10px; padding: 16px; }
.m-card { background: #fff; border-radius: 12px; padding: 20px; display: grid; gap: 10px; justify-items: start; }
.m-card h4 { margin: 0; padding: 0; font-size: 17px; color: #303030; }
.m-store { margin: 0; padding: 0; color: #616161; font-size: 12.5px; }
.m-alert { border-radius: 10px; background: #fee9e8; padding: 12px 14px; display: grid; gap: 6px; }
.m-alert b:first-child { color: #8e1f0b; }
.m-alert p { margin: 0; padding: 0; color: #303030; line-height: 1.5; }
.m-foot { margin: 12px 0 0; padding: 0; color: #616161; font-size: 11.5px; }

/* reports */
.a-sc.dmd-target { cursor: pointer; }
.a-journey2 { display: grid; grid-template-columns: 1fr auto 1fr auto 1.6fr; gap: 10px; align-items: stretch; }
.a-stage { display: grid; gap: 4px; justify-items: center; align-content: center; text-align: center; padding: 14px; border-radius: 12px; background: var(--p-subtle); }
.a-stage b { font-size: 24px; line-height: 30px; color: #1a1a1a; }
.a-stage--list { justify-items: stretch; text-align: left; align-content: start; gap: 8px; }
.a-arrow { display: grid; place-items: center; color: #8a8a8a; font-size: 18px; }
.a-lost { font-size: 12px; font-weight: 600; color: #8e0b21; }
.a-prow { display: grid; gap: 4px; padding: 2px 4px; border-radius: 8px; }
.a-meter { height: 6px; border-radius: 999px; background: #ebebeb; overflow: hidden; }
.a-meter span { display: block; height: 100%; border-radius: 999px; }
.a-meter--ok { background: var(--p-green); }
.a-meter--warn { background: var(--p-amber); }
.a-meter--bad { background: var(--p-red); }
.a-attr2 { display: grid; }
.a-attrrow2 { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--p-border-2); }
.a-pair { display: grid; gap: 4px; }
.a-pbar { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.a-ptrack { height: 8px; border-radius: 999px; background: #f1f1f1; overflow: hidden; }
.a-ptrack i { display: block; height: 100%; border-radius: 999px; }
.a-attrrow2 .dmd-target { border-radius: 8px; display: inline-block; }
.a-funnel { display: grid; gap: 2px; }
.a-fstep { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.a-ftrack { height: 22px; border-radius: 6px; background: #f1f1f1; overflow: hidden; }
.a-ftrack i { display: block; height: 100%; background: linear-gradient(90deg, #0f6b63, #5fd3c2); border-radius: 6px; }
.a-drop { padding: 2px 0 2px 142px; font-size: 12px; color: #8e0b21; font-weight: 550; }
.a-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.a-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--p-border); background: #fff; font-weight: 550; }
.a-toggle i { width: 14px; height: 3px; border-radius: 2px; }
.a-ltvsvg { width: 100%; height: auto; display: block; }
.a-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.a-filters .dmd-target { border-radius: 8px; }

@container (max-width: 860px) {
  .m-body { grid-template-columns: minmax(0, 1fr); }
  .m-list { display: none; }
  .g-ta { grid-template-columns: minmax(0, 1fr); }
  .g-taev { display: none; }
  .g-wsgrid { grid-template-columns: minmax(0, 1fr); }
  .g-leftnav { display: none; }
  .g-id, .g-wsch { display: none; }
}
@container (max-width: 720px) {
  .g-admin { grid-template-columns: minmax(0, 1fr); }
  .a-journey2 { grid-template-columns: minmax(0, 1fr); }
  .a-arrow { transform: rotate(90deg); }
  .a-attrrow2 { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .a-fstep { grid-template-columns: 100px minmax(0, 1fr) 60px; }
  .a-drop { padding-left: 112px; }
  .g-brand { display: none; }
  .g-ws small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dmd-stagger > *, .a-foldopen, .g-prev, .a-tile--flash { animation: none; }
}

/* ===== v1.2 additions ===== */
.m-alert--ok { background: #e3f5e9; }
.m-alert--ok b:first-child { color: #0c5132; }
.a-attrrow2--hl { background: #f4f9ff; margin: 0 -8px; padding: 9px 8px; border-radius: 8px; }
.a-drop--hl { color: #8e0b21; font-weight: 700; background: #fff1e3; border-radius: 6px; display: inline-block; padding: 2px 8px; margin-left: 134px; }
.a-summaryov { position: absolute; inset: 0; z-index: 4; background: rgba(241,241,241,.82); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; animation: a-cardin .4s ease both; }
.a-sumcard { max-width: 560px; background: #fff; border-radius: 16px; padding: 24px 26px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 48px rgba(16,32,30,.2); display: grid; gap: 10px; }
.a-sumcard h3 { margin: 0; padding: 0; font-size: 19px; color: #1a1a1a; }
.a-sumcard ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #303030; font-size: 13.5px; line-height: 1.5; }
.a-sumtag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0f6b63; background: #dff3ef; border-radius: 999px; padding: 2px 10px; }
@container (max-width: 720px) { .a-drop--hl { margin-left: 104px; } .a-sumcard { padding: 18px; } .a-sumcard ol { font-size: 12.5px; } }

/* ===== v1.3: "Why this matters" card ===== */
.dmd-why { background: #fff; border: 2px solid var(--dmd-teal); border-radius: 16px; padding: 18px 20px; display: grid; gap: 14px; box-shadow: 0 8px 24px -8px rgba(15,107,99,.35); position: relative; }
.dmd-why::before { content: ""; position: absolute; left: 32px; top: -10px; width: 16px; height: 16px; background: #fff; border-left: 2px solid var(--dmd-teal); border-top: 2px solid var(--dmd-teal); transform: rotate(45deg); }
.dmd-why-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--dmd-mint-soft); }
.dmd-why-head strong { display: block; font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--dmd-ink); }
.dmd-why-head span:not(.dmd-why-bulb) { display: block; font-size: 12.5px; color: var(--dmd-text-3); margin-top: 2px; }
.dmd-why-bulb { width: 38px; height: 38px; border-radius: 50%; background: #fff4d6; color: #b07800; display: grid; place-items: center; flex: none; }
.dmd-why-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--dmd-mint-50); }
.dmd-why-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--dmd-teal); color: #fff; display: grid; place-items: center; }
.dmd-why-row b { display: block; font-size: 14px; font-weight: 700; color: var(--dmd-teal-dark); margin-bottom: 2px; }
.dmd-why-row p { margin: 0; padding: 0; font-size: 15px; line-height: 1.5; color: var(--dmd-ink); }
.dmd-why--new { animation: dmd-why-in .5s ease both; }
.dmd-why--new .dmd-why-bulb { animation: dmd-why-glow 1.4s ease 1; }
@keyframes dmd-why-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dmd-why-glow { 0% { box-shadow: 0 0 0 0 rgba(255,196,0,.6); } 100% { box-shadow: 0 0 0 14px rgba(255,196,0,0); } }
.dmd-panel { position: static; }
@container (max-width: 520px) { .dmd-why { padding: 16px; } .dmd-why-row p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .dmd-why--new, .dmd-why--new .dmd-why-bulb { animation: none; } }

/* ===== v1.4: "Why this matters" row above the demo ===== */
.dmd-stage { grid-template-areas: "panel frame"; }
.dmd-stage--why { grid-template-areas: "why why" "panel frame"; }
.dmd-panel { grid-area: panel; }
.dmd-frame { grid-area: frame; }
.dmd-why { grid-area: why; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 14px; padding: 16px 18px; }
.dmd-why::before { display: none; }
.dmd-why-head { padding: 0 14px 0 0; border-bottom: 0; border-right: 1px solid var(--dmd-mint-soft); }
.dmd-why-row { align-content: start; }
@container (max-width: 980px) {
  .dmd-stage, .dmd-stage--why { grid-template-columns: minmax(0, 1fr); }
  .dmd-stage { grid-template-areas: "panel" "frame"; }
  .dmd-stage--why { grid-template-areas: "panel" "why" "frame"; }
  .dmd-why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dmd-why-head { grid-column: 1 / -1; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--dmd-mint-soft); }
}
@container (max-width: 600px) {
  .dmd-why { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
}

/* ===== v1.5: app redesign (guided setup, one-click publish, Test page) and Shopify's late-2026 admin ===== */
.s-admin { grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: #0b0b0b; }
.s-admin .s-side { background: #0b0b0b; color: #e3e3e3; padding: 10px 8px; gap: 0; overflow: hidden; display: flex; flex-direction: column; }
.s-admin .s-logo { height: 28px; padding: 0 6px; }
.s-admin .s-logo b { width: 20px; height: 20px; font-size: 12px; }
.s-admin .s-search { flex: none; max-width: none; width: 100%; height: 26px; margin: 4px 0 8px; border-radius: 8px; background: #2a2a2a; border: 0; font-size: 12px; color: #9a9a9a; }
.s-admin .s-nav { height: 24px; padding: 0 8px; gap: 8px; font-size: 12.5px; font-weight: 500; color: #e3e3e3; border-radius: 7px; }
.s-admin .s-nav svg { color: #b5b5b5; }
.s-admin .s-nav--sub { padding-left: 28px; color: #c9c9c9; height: 23px; }
.s-admin .s-nav--on, .s-admin .s-nav--sub.s-nav--on { background: #303030; color: #fff; font-weight: 600; }
.s-admin .s-label { color: #9a9a9a; font-size: 11.5px; padding: 10px 8px 2px; }
.s-appmini { width: 15px; height: 15px; border-radius: 4px; background: #fff; color: #0f6b63; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex: none; }
.s-storebar { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; font-size: 12px; color: #e3e3e3; white-space: nowrap; overflow: hidden; }
.s-storebar i { width: 20px; height: 20px; border-radius: 6px; background: #e8458b; color: #fff; font-style: normal; font-weight: 700; font-size: 9px; display: grid; place-items: center; flex: none; }
.s-admin .s-main { background: #fff; border-radius: 10px; margin: 4px 4px 4px 0; }
.s-admin .s-titlebar { background: #fff; height: 40px; font-size: 13px; border-bottom: 1px solid #f1f1f1; }
.s-admin .s-titlebar .s-appicon { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.s-crumb { color: #b5b5b5; font-weight: 400; margin: 0 2px; }
.s-admin .s-page { padding: 14px 20px 40px; max-width: 900px; }
.s-admin .s-page--wide { max-width: none; }
.s-admin .s-cardp { box-shadow: none; border: 1px solid #e3e3e3; }
.s-badge--dark { background: #303030; color: #fff; }
.s-btn--plain { background: transparent; box-shadow: none; color: #303030; }
.s-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8a8a8a; background: #fff; flex: none; margin-top: 1px; display: grid; place-items: center; }
.s-radio--on { border: 5px solid #303030; }
.s-box--dis { opacity: .55; }

/* guided setup */
.a-setup { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 14px; align-items: start; }
.a-rail { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 12px; display: grid; gap: 6px; font-size: 12.5px; }
.a-rail .a-progress { height: 4px; background: #e3e3e3; }
.a-rail .a-progress span { background: #303030; }
.a-stage { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #616161; margin-top: 6px; }
.a-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.a-steps li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-weight: 550; color: #303030; }
.a-steps li.on { background: #f1f1f1; font-weight: 650; }
.a-steps small { margin-left: auto; font-size: 10.5px; color: #616161; font-weight: 500; }
.a-num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #c9c9c9; color: #616161; font-size: 11px; font-weight: 650; display: grid; place-items: center; flex: none; }
.a-num--now { background: #303030; border-color: #303030; color: #fff; }
.a-num--done { background: #cdfee1; border-color: #cdfee1; color: #0c5132; }
.a-railnote { font-size: 11.5px; line-height: 16px; margin-top: 4px; }
.a-stepcard { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.a-kicker { font-size: 12px; font-weight: 600; color: #616161; }
.a-title { margin: 0; padding: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.01em; }
.a-why { margin: 0; padding: 0; color: #4a4a4a; font-size: 13.5px; line-height: 1.5; max-width: 520px; }
.a-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #ebebeb; flex-wrap: wrap; }
.a-foot .s-sub b { color: #303030; font-weight: 600; }
.a-opts { display: grid; gap: 8px; }
.a-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; }
.a-opt--on { border: 1.5px solid #303030; padding: 9.5px 11.5px; }
.a-opt--dis { background: #f7f7f7; }
.a-opt--dis .s-strong { color: #8a8a8a; }
.a-opt.dmd-target { border-radius: 10px; }
.a-fold { border: 1px dashed #c9c9c9; }
.a-fold::after { content: "\25b8"; }
.a-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; }
.a-flowbox { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px; display: grid; gap: 2px; align-content: start; }
.a-arrow { display: grid; place-items: center; color: #8a8a8a; }
.a-ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.a-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.a-tasks > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.a-okline { color: #0c5132; font-weight: 550; display: flex; gap: 6px; align-items: center; }
.a-okline::before { content: "\2713"; width: 16px; height: 16px; border-radius: 50%; background: #29845a; color: #fff; display: grid; place-items: center; font-size: 10px; flex: none; }
.a-gbtn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 4px; border-radius: 4px; border: 1px solid #747775; background: #fff; font-family: Roboto, Inter, sans-serif; font-weight: 500; color: #1f1f1f; }
.a-g { width: 28px; height: 28px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; color: #4285f4; }
.a-build { border-radius: 12px; overflow: hidden; border: 1px solid #e3e3e3; margin-bottom: 14px; }
.a-buildhead { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #91d0ff; font-weight: 650; color: #1a1a1a; }
.a-buildhead .s-bi { width: 18px; height: 18px; border-radius: 50%; background: #003a5a; color: #fff; display: grid; place-items: center; font-size: 11px; }
.a-buildbody { padding: 10px 12px; display: grid; gap: 6px; }
.a-progress--blue span { background: #303030; }
.a-build--ok { border: 0; }
.a-chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid #e3e3e3; font-weight: 550; }
.a-chip2.on { border: 1.5px solid #303030; }
.a-wizard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.a-guide { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #f7f7f7; font-size: 12.5px; line-height: 18px; position: sticky; top: 52px; }
.a-ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.a-summary { border-top: 1px solid #ebebeb; }
.a-sumrow { grid-template-columns: 22px 1fr; }
.a-pub { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.a-pub li { display: flex; gap: 8px; align-items: center; color: #8a8a8a; }
.a-pub li span { width: 18px; height: 18px; display: grid; place-items: center; font-size: 12px; }
.a-pub li.done { color: #303030; }
.a-pub li.done span { color: #29845a; font-weight: 700; }
.a-pub li.now { color: #303030; font-weight: 650; }
.a-pub li.now span { border: 2px solid #c9c9c9; border-top-color: #303030; border-radius: 50%; width: 14px; height: 14px; margin: 2px; animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-substep { display: flex; gap: 10px; align-items: center; }
.a-genrow { grid-template-columns: auto 1fr; }
.a-ticks { display: grid; gap: 8px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 10px; }
.a-ticks.dmd-target { border-radius: 10px; }
.a-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 10px 0; }
.a-bigtick { width: 52px; height: 52px; border-radius: 50%; background: #29845a; color: #fff; font-size: 26px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(41,132,90,.15); }
.a-glances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; text-align: left; }
.a-glance { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px; display: grid; gap: 2px; }

/* Test page */
.a-checks { display: grid; gap: 4px; }
.a-ttable td, .a-ttable th { text-align: center; }
.a-ttable td:first-child, .a-ttable th:first-child { text-align: left; }
.a-okc { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #cdfee1; color: #0c5132; font-size: 11px; font-weight: 700; }
.a-wait { font-size: 13px; }
.a-dash { color: #8a8a8a; }
.a-passed { border-radius: 12px; overflow: hidden; border: 1px solid #e3e3e3; }
.a-passedhead { background: #0b7a52; color: #fff; padding: 9px 14px; font-weight: 650; }
.a-passedbody { padding: 12px 14px; display: grid; gap: 6px; }

/* Home, Tag setup, Analytics */
.a-dot--n { background: #c9c9c9; }
.a-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.a-foldopen { display: grid; gap: 10px; }
.a-foldhead::after { content: "\25be"; }
.s-banner .a-ol, .s-banner .a-fold { color: #303030; }
.s-banner .s-inline .s-btn { background: #fff; }
.a-journey2 { grid-template-columns: 1fr auto 1fr auto 1.6fr; }
.a-stage2 { display: grid; gap: 4px; justify-items: center; align-content: center; text-align: center; padding: 14px; border-radius: 12px; border: 1px solid #e3e3e3; }
.a-stage2 b { font-size: 24px; line-height: 30px; color: #1a1a1a; }
.a-stage2--list { justify-items: stretch; text-align: left; align-content: start; gap: 8px; }
.a-meter--ok { background: #0b7a52; }
.a-ftrack i { background: linear-gradient(90deg, #303030, #616161); }
.m-alert ol { margin: 0; padding-left: 18px; color: #303030; display: grid; gap: 3px; }

/* panel: path switch and end card */
.dmd-paths { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; background: var(--dmd-mint-50); border: 1px solid var(--dmd-mint-soft); font-size: 12px; font-weight: 600; color: var(--dmd-teal-dark); }
.dmd-paths > span { width: 100%; }
.dmd-paths button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--dmd-border-strong); background: #fff; color: var(--dmd-ink); font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.dmd-paths button i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--dmd-text-3); }
.dmd-paths button[aria-pressed="true"] { background: var(--dmd-teal); border-color: var(--dmd-teal); color: #fff; }
.dmd-paths button[aria-pressed="true"] i { color: rgba(255,255,255,.8); }
.dmd-paths button:focus-visible { outline: 2px solid var(--dmd-teal); outline-offset: 2px; }
.dmd-end .dmd-other { width: 100%; }

.a-rail .a-stage { display: flex; justify-content: space-between; padding: 0; background: none; border-radius: 0; text-align: left; align-content: normal; justify-items: normal; gap: 0; margin-top: 6px; }
.s-admin { grid-template-columns: 150px minmax(0, 1fr); }
.a-setup { grid-template-columns: 178px minmax(0, 1fr); gap: 12px; }
.a-flowbox { padding: 8px; font-size: 12px; line-height: 16px; }
.a-stepcard { padding: 16px; gap: 12px; }
.a-steps li, .a-tasks > li, .a-pub li { margin: 0; line-height: 18px; }
.a-steps li { padding: 3px 6px; }
.a-rail .a-steps small { display: none; }
.dmd .a-ol li, .dmd .a-ul li, .dmd .m-alert li { margin: 0; line-height: 18px; padding: 0; }
.dmd .a-table td:first-child { min-width: 128px; }
.a-foot--off .s-btn--primary:not(.dmd-target) { opacity: .45; }

@container (max-width: 1180px) {
  .a-wizard { grid-template-columns: minmax(0, 1fr); }
  .a-guide { position: static; }
}
@container (max-width: 860px) {
  .s-admin { grid-template-columns: minmax(0, 1fr); }
  .s-admin .s-main { margin: 0; border-radius: 0; }
}
@container (max-width: 720px) {
  .a-setup { grid-template-columns: minmax(0, 1fr); }
  .a-rail { display: none; }
  .a-grid2, .a-flow, .a-glances, .a-two { grid-template-columns: minmax(0, 1fr); }
  .a-arrow { transform: rotate(90deg); }
  .a-journey2 { grid-template-columns: minmax(0, 1fr); }
  .a-stepcard { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .a-pub li.now span { animation: none; } }

/* ===== v1.6: roomier layout. Tabs and path switch on top, one guide card, then the app frame at full width ===== */
.dmd-intro { margin-bottom: 28px; }
.dmd-stage.dmd-v16 { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 14px; max-width: 1240px; }
.dmd-v16 .dmd-frame, .dmd-v16 .dmd-why { grid-area: auto; }
.dmd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dmd-v16 .dmd-chapters { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--dmd-border); border-radius: 999px; }
.dmd-v16 .dmd-chapter { border: 0; background: transparent; padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.dmd-v16 .dmd-chapter[data-done="true"]:not([aria-current="true"]) { color: var(--dmd-teal); }
.dmd-v16 .dmd-paths { flex-wrap: nowrap; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--dmd-border); }
.dmd-v16 .dmd-paths > span { width: auto; padding: 0 6px 0 10px; color: var(--dmd-text-3); white-space: nowrap; }
.dmd-v16 .dmd-paths button { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; }
.dmd-v16 .dmd-paths button[aria-pressed="false"] { background: transparent; }

.dmd-guide { background: #fff; border: 1px solid var(--dmd-border); border-radius: 16px; box-shadow: var(--dmd-sh-md); overflow: hidden; }
.dmd-v16 .dmd-bar { height: 3px; border-radius: 0; }
.dmd-v16 .dmd-bar span { border-radius: 0; }
.dmd-guide-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 18px 22px 4px; }
.dmd-stage--why .dmd-guide-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.dmd-guide-text { display: grid; gap: 6px; align-content: start; }
.dmd-v16 .dmd-meta { justify-content: flex-start; gap: 10px; }
.dmd-v16 .dmd-title { font-size: 22px; }
.dmd-v16 .dmd-body { font-size: 15px; max-width: 640px; }
.dmd-side { display: grid; gap: 10px; align-content: start; }
.dmd-v16 .dmd-why { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--dmd-mint-50); box-shadow: none; align-content: start; align-items: start; }
.dmd-v16 .dmd-why::before { display: none; }
.dmd-why-label { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dmd-teal); }
.dmd-v16 .dmd-why-row { display: block; padding: 0; background: none; border-radius: 0; }
.dmd-v16 .dmd-why-row b { font-size: 12.5px; margin-bottom: 2px; }
.dmd-v16 .dmd-why-row p { font-size: 13.5px; line-height: 1.45; color: var(--dmd-text-2); }
.dmd-guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px 16px; }
.dmd-v16 .dmd-nav .dmd-btn { height: 40px; }
.dmd-v16 .dmd-btn--primary { flex: none; min-width: 120px; }
.dmd-v16 .dmd-end { padding: 16px; gap: 8px; }
.dmd-v16 .dmd-end-row { grid-template-columns: auto auto; justify-content: start; gap: 8px; }
.dmd-v16 .dmd-end .dmd-other, .dmd-v16 .dmd-end .dmd-restart { height: 36px; font-size: 13.5px; }
.dmd-v16 .dmd-screen { height: 660px; }

/* the app has room again */
.dmd-v16 .s-admin { grid-template-columns: 196px minmax(0, 1fr); }
.dmd-v16 .s-admin .s-page { padding: 18px 28px 48px; }
.dmd-v16 .a-setup { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.dmd-v16 .a-stepcard { padding: 20px; gap: 14px; }
.dmd-v16 .a-rail .a-steps small { display: inline; }
.dmd-v16 .a-flowbox { padding: 10px; font-size: 13px; line-height: 18px; }

@container (max-width: 1180px) {
  .dmd-v16 .s-admin { grid-template-columns: 172px minmax(0, 1fr); }
  .dmd-v16 .a-setup { grid-template-columns: 196px minmax(0, 1fr); }
}
@container (max-width: 980px) {
  .dmd-stage--why .dmd-guide-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dmd-v16 .dmd-screen { height: 600px; }
}
@container (max-width: 860px) {
  .dmd-v16 .s-admin { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 720px) {
  .dmd-v16 .a-setup { grid-template-columns: minmax(0, 1fr); }
  .dmd-top { flex-direction: column; align-items: stretch; }
  .dmd-v16 .dmd-chapters { flex-wrap: nowrap; overflow-x: auto; border-radius: 12px; scrollbar-width: none; }
  .dmd-v16 .dmd-paths { border-radius: 12px; }
  .dmd-v16 .dmd-paths button { flex: 1; }
  .dmd-v16 .dmd-paths > span { display: none; }
  .dmd-v16 .dmd-why { grid-template-columns: minmax(0, 1fr); }
  .dmd-hint { display: none; }
  .dmd-guide-body { padding: 14px 14px 2px; }
  .dmd-guide-foot { padding: 8px 14px 14px; justify-content: flex-end; }
  .dmd-v16 .dmd-title { font-size: 20px; }
  .dmd-v16 .dmd-screen { height: 560px; }
  .dmd-v16 .dmd-end-row { grid-template-columns: minmax(0, 1fr); }
}
.dmd-v16 .dmd-chapter[aria-current="true"] { background: var(--dmd-ink); color: #fff; }
.dmd-intro { margin-bottom: 22px; }
.dmd-intro .dmd-eyebrow { margin-bottom: 12px; }
.dmd-intro h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.dmd-intro p { font-size: 16px; }
.dmd-v16 .dmd-screen { height: clamp(480px, calc(100vh - 330px), 680px); }
@container (max-width: 720px) { .dmd-v16 .dmd-screen { height: 560px; } }
/* guide: text and buttons on the left, "Why this matters" on the right */
.dmd-guide { display: grid; grid-template-columns: minmax(0, 1fr); }
.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; }
.dmd-v16 .dmd-bar { grid-column: 1 / -1; }
.dmd-guide-body { display: contents; }
.dmd-guide-text { padding: 16px 0 0 22px; }
.dmd-side { grid-column: 2; grid-row: 2 / span 2; padding: 16px 22px 16px 0; }
.dmd-guide-foot { padding: 10px 0 14px 22px; }
.dmd-stage:not(.dmd-stage--why) .dmd-guide-foot, .dmd-stage:not(.dmd-stage--why) .dmd-guide-text { padding-right: 22px; }
.dmd-v16 .dmd-title { font-size: 20px; }
.dmd-v16 .dmd-body { font-size: 14.5px; }
.dmd-v16 .dmd-screen { height: clamp(460px, calc(100vh - 410px), 680px); }
.dmd-top, .dmd-v16 .dmd-chapters, .dmd-v16 .dmd-paths, .dmd-guide, .dmd-v16 .dmd-frame { min-width: 0; }
@container (max-width: 980px) {
  .dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1fr); }
  .dmd-side { grid-column: 1; grid-row: auto; padding: 12px 22px 0; }
  .dmd-guide-text, .dmd-guide-foot { padding-right: 22px; }
}
@container (max-width: 720px) {
  .dmd-guide-text { padding: 14px 14px 0; }
  .dmd-side { padding: 10px 14px 0; }
  .dmd-guide-foot { padding: 10px 14px 14px; }
  .dmd-v16 .dmd-screen { height: 560px; }
  .dmd-v16 .dmd-chapters, .dmd-v16 .dmd-paths { width: 100%; max-width: 100%; box-sizing: border-box; }
}
/* ===== v1.6.1: guide alignment, full-width tab bar, app drawn at real size and scaled ===== */
.dmd-side { grid-column: auto; grid-row: auto; padding: 0; }
.dmd-stage:not(.dmd-stage--why) .dmd-side { display: none; }
.dmd-stage--why .dmd-side { grid-column: 2; grid-row: 2 / span 2; padding: 16px 22px 16px 0; }
.dmd-guide-foot { flex-wrap: nowrap; }
.dmd-v16 .dmd-hint { flex: 1 1 auto; min-width: 0; }
.dmd-v16 .dmd-nav { flex: none; gap: 8px; }
.dmd-v16 .dmd-nav .dmd-btn { white-space: nowrap; height: 40px; padding: 0 18px; }
.dmd-v16 .dmd-top { flex-wrap: nowrap; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--dmd-border); border-radius: 12px; box-shadow: var(--dmd-sh-md); }
.dmd-v16 .dmd-chapters { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0; border: 0; border-radius: 0; background: none; gap: 4px; }
.dmd-v16 .dmd-chapters::-webkit-scrollbar { display: none; }
.dmd-v16 .dmd-chapter { flex: 1 0 auto; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dmd-v16 .dmd-chapter:hover { background: var(--dmd-paper); color: var(--dmd-ink); }
.dmd-v16 .dmd-chapter[aria-current="true"] { background: var(--dmd-teal); color: #fff; }
.dmd-v16 .dmd-paths { flex: none; padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--dmd-border); border-radius: 0; background: none; gap: 4px; }
.dmd-v16 .dmd-paths button { height: 38px; border-radius: 10px; padding: 0 12px; font-size: 13px; }
.dmd-v16 .dmd-paths button[aria-pressed="false"]:hover { background: var(--dmd-paper); }
.dmd-v16 .dmd-view { container-type: inline-size; transform-origin: 0 0; }
@container (max-width: 980px) {
  .dmd-stage--why .dmd-side { grid-column: 1; grid-row: auto; padding: 12px 22px 0; }
}
@container (max-width: 860px) {
  .dmd-v16 .dmd-top { flex-direction: column; align-items: stretch; }
  .dmd-v16 .dmd-paths { border-left: 0; border-top: 1px solid var(--dmd-border); padding: 5px 0 0; }
  .dmd-v16 .dmd-paths button { flex: 1; }
  .dmd-v16 .dmd-paths > span { display: none; }
}
@container (max-width: 720px) {
  .dmd-stage--why .dmd-side { padding: 10px 14px 0; }
  .dmd-v16 .dmd-chapter { flex: none; }
  .dmd-guide-foot { justify-content: flex-end; }
}
@container (max-width: 860px) {
  .dmd-v16 .s-admin .s-side { display: none; }
}
@container (max-width: 720px) {
  .dmd-v16 .s-admin .s-page { padding: 12px 12px 32px; }
  .dmd-v16 .a-stepcard { padding: 14px; }
}
/* ===== v1.7: chapter stepper with per-chapter progress, segmented path switch, compact guide with actions on the right ===== */
.dmd-stage.dmd-v17 .dmd-top { position: relative; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 6px 6px 9px; overflow: hidden; }
.dmd-stage.dmd-v17 .dmd-top .dmd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; background: var(--dmd-border); }
.dmd-stage.dmd-v17 .dmd-top .dmd-bar span { border-radius: 0; }
.dmd-stage.dmd-v17 .dmd-chapters { flex: 1 1 auto; gap: 2px; min-width: 0; }
.dmd-stage.dmd-v17 .dmd-chapter { position: relative; flex: 0 1 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dmd-text-3); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.dmd-stage.dmd-v17 .dmd-chapter:hover { background: var(--dmd-paper); color: var(--dmd-ink); }
.dmd-stage.dmd-v17 .dmd-chapter[aria-current="true"] { background: var(--dmd-mint-50); color: var(--dmd-ink); box-shadow: inset 0 0 0 1px var(--dmd-mint-soft); }
.dmd-stage.dmd-v17 .dmd-chapter[data-done="true"]:not([aria-current="true"]) { color: var(--dmd-teal-dark); }
.dmd-chn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11.5px; font-weight: 700; background: var(--dmd-paper); color: var(--dmd-text-3); border: 1px solid var(--dmd-border); }
.dmd-chapter[aria-current="true"] .dmd-chn { background: var(--dmd-teal); border-color: var(--dmd-teal); color: #fff; }
.dmd-chapter[data-done="true"]:not([aria-current="true"]) .dmd-chn { background: var(--dmd-mint-soft); border-color: var(--dmd-mint-soft); color: transparent; position: relative; }
.dmd-chapter[data-done="true"]:not([aria-current="true"]) .dmd-chn::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dmd-teal-dark); font-size: 12px; }
.dmd-chp { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--dmd-mint-soft); overflow: hidden; opacity: 0; }
.dmd-chp b { display: block; height: 100%; width: 0; background: var(--dmd-teal); transition: width .3s ease; }
.dmd-chapter[aria-current="true"] .dmd-chp { opacity: 1; }

.dmd-stage.dmd-v17 .dmd-paths { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 0; border: 0; background: none; }
.dmd-stage.dmd-v17 .dmd-paths > span { width: auto; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--dmd-text-3); white-space: nowrap; }
.dmd-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--dmd-paper); border: 1px solid var(--dmd-border); }
.dmd-stage.dmd-v17 .dmd-seg button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dmd-text-2); font-size: 13px; font-weight: 600; box-shadow: none; cursor: pointer; white-space: nowrap; }
.dmd-stage.dmd-v17 .dmd-seg button i { color: var(--dmd-text-3); }
.dmd-stage.dmd-v17 .dmd-seg button:hover { color: var(--dmd-ink); }
.dmd-stage.dmd-v17 .dmd-seg button[aria-pressed="true"] { background: #fff; color: var(--dmd-ink); box-shadow: 0 1px 2px rgba(16,32,30,.12), 0 0 0 1px var(--dmd-border); }
.dmd-stage.dmd-v17 .dmd-seg button[aria-pressed="true"] i { color: var(--dmd-teal); }

.dmd-stage.dmd-v17 .dmd-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text nav"; column-gap: 32px; row-gap: 14px; align-items: end; padding: 20px 22px; }
.dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; grid-template-areas: "text side nav"; }
.dmd-stage.dmd-v17 .dmd-guide-text { grid-area: text; align-self: start; display: grid; gap: 6px; padding: 0; }
.dmd-stage.dmd-v17 .dmd-side { grid-area: side; grid-column: auto; grid-row: auto; align-self: stretch; padding: 0; }
.dmd-stage.dmd-v17 .dmd-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dmd-overall { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--dmd-text-3); white-space: nowrap; }
.dmd-stage.dmd-v17 .dmd-title { font-size: 22px; line-height: 1.25; }
.dmd-stage.dmd-v17 .dmd-body { font-size: 15px; line-height: 1.55; max-width: 620px; }
.dmd-stage.dmd-v17 .dmd-hint { margin-top: 4px; font-size: 13px; }
.dmd-stage.dmd-v17 .dmd-nav { grid-area: nav; display: grid; grid-template-columns: auto auto; gap: 8px; justify-items: stretch; align-self: end; }
.dmd-stage.dmd-v17 .dmd-nav .dmd-btn { height: 44px; padding: 0 18px; white-space: nowrap; }
.dmd-stage.dmd-v17 .dmd-nav .dmd-next { min-width: 128px; }
.dmd-stage.dmd-v17 .dmd-back { border-color: var(--dmd-border); color: var(--dmd-text-2); }
.dmd-kbd { grid-column: 1 / -1; justify-self: end; font-size: 12px; color: var(--dmd-text-3); }
.dmd-kbd kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--dmd-border-strong); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 11px/16px Inter, system-ui, sans-serif; color: var(--dmd-ink); text-align: center; }
.dmd-next[hidden] ~ .dmd-kbd { display: none; }
.dmd-stage.dmd-v17 .dmd-why { height: 100%; box-sizing: border-box; }

@container (max-width: 1100px) {
  .dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text nav" "side side"; }
  .dmd-stage.dmd-v17 .dmd-why { height: auto; }
}
@container (max-width: 860px) {
  .dmd-stage.dmd-v17 .dmd-top { flex-direction: column; align-items: stretch; gap: 6px; }
  .dmd-stage.dmd-v17 .dmd-chapters { overflow-x: auto; }
  .dmd-stage.dmd-v17 .dmd-paths { margin-left: 0; padding: 6px 4px 0; border-top: 1px solid var(--dmd-border); }
  .dmd-stage.dmd-v17 .dmd-paths > span { display: inline; }
  .dmd-seg { flex: 1; }
  .dmd-stage.dmd-v17 .dmd-seg button { flex: 1; }
}
@container (max-width: 720px) {
  .dmd-stage.dmd-v17 .dmd-chapters { justify-content: space-between; overflow: visible; }
  .dmd-stage.dmd-v17 .dmd-chapter { flex: none; padding: 0 8px; gap: 6px; }
  .dmd-stage.dmd-v17 .dmd-chapter:not([aria-current="true"]) .dmd-chl { display: none; }
  .dmd-stage.dmd-v17 .dmd-chp { left: 8px; right: 8px; }
  .dmd-stage.dmd-v17 .dmd-paths > span { display: none; }
  .dmd-stage.dmd-v17 .dmd-seg button i { display: none; }
  .dmd-stage.dmd-v17 .dmd-guide, .dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "side" "nav"; padding: 16px; }
  .dmd-stage.dmd-v17 .dmd-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .dmd-kbd, .dmd-stage.dmd-v17 .dmd-hint { display: none; }
  .dmd-overall { display: none; }
  .dmd-stage.dmd-v17 .dmd-title { font-size: 20px; }
  .dmd-stage.dmd-v17 .dmd-body { font-size: 14.5px; }
}
.dmd-stage.dmd-v17 .dmd-overall { margin-left: 0; }
.dmd-stage.dmd-v17 .dmd-overall::before { content: "·"; margin-right: 10px; color: var(--dmd-border-strong); }
.dmd-stage.dmd-v17 .dmd-chapter[aria-current="true"] { background: var(--dmd-mint-soft); box-shadow: inset 0 0 0 1px var(--dmd-teal-200, #b8e6de); }
.dmd-stage.dmd-v17 .dmd-chapter[aria-current="true"] .dmd-chp { background: rgba(255,255,255,.7); }
/* ===== v1.7.1: guide card as text (+ why) on top, one footer row with the tip on the left and the buttons on the right ===== */
.dmd-stage.dmd-v17 .dmd-top .dmd-bar { display: none; }
.dmd-stage.dmd-v17 .dmd-top { padding: 6px; }
.dmd-stage.dmd-v17 .dmd-guide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "foot"; column-gap: 32px; row-gap: 16px; align-items: start; padding: 20px 22px 16px; }
.dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "text side" "foot foot"; }
.dmd-stage.dmd-v17 .dmd-why { height: auto; }
.dmd-foot { grid-area: foot; display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--dmd-border); }
.dmd-stage.dmd-v17 .dmd-hint { margin: 0; flex: 1 1 auto; min-width: 0; }
.dmd-stage.dmd-v17 .dmd-nav { grid-area: auto; display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.dmd-stage.dmd-v17 .dmd-kbd { grid-column: auto; justify-self: auto; margin-right: 6px; white-space: nowrap; }
.dmd-nav:has(.dmd-next[hidden]) .dmd-kbd { display: none; }
.dmd-stage.dmd-v17 .dmd-nav .dmd-btn { height: 42px; }
@container (max-width: 1100px) {
  .dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "text side" "foot foot"; }
}
@container (max-width: 860px) {
  .dmd-stage.dmd-v17 .dmd-guide, .dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "side" "foot"; }
}
@container (max-width: 720px) {
  .dmd-stage.dmd-v17 .dmd-guide, .dmd-stage.dmd-v17.dmd-stage--why .dmd-guide { padding: 16px; row-gap: 12px; }
  .dmd-foot { padding-top: 12px; }
  .dmd-stage.dmd-v17 .dmd-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); width: 100%; margin-left: 0; }
}
/* hint bubble: placed by script above, beside or below its target */
.dmd-stage.dmd-v17 .dmd-tip, .dmd-stage.dmd-v17 .dmd-tip--below { transform: none; }
.dmd-stage.dmd-v17 .dmd-tip--above::after { left: var(--ax, 50%); top: auto; bottom: -5px; transform: translateX(-50%) rotate(45deg); }
.dmd-stage.dmd-v17 .dmd-tip--below::after { left: var(--ax, 50%); top: -5px; bottom: auto; transform: translateX(-50%) rotate(45deg); }
.dmd-stage.dmd-v17 .dmd-tip--right::after { left: -5px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
.dmd-stage.dmd-v17 .dmd-tip--left::after { left: auto; right: -5px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
.dmd-stage.dmd-v17 .dmd-tip--inside::after { display: none; }
/* steady guide height, so the app frame can be sized once to fit the window */
.dmd-stage.dmd-v17 .dmd-guide { min-height: 200px; box-sizing: border-box; align-content: space-between; }
@container (max-width: 720px) { .dmd-stage.dmd-v17 .dmd-guide { min-height: 0; } }

/* ===== v1.8: spotlight on the chart or scorecard a step explains, "How to read it" + Pro note in the guide ===== */
.dmd-focus { position: relative; z-index: 2; border-radius: 12px; background-color: #fff; box-shadow: 0 0 0 3px var(--dmd-mint, #5fd3c2), 0 0 0 9999px rgba(16, 32, 30, .42) !important; transition: box-shadow .3s ease; }
.dmd-spot .s-titlebar { z-index: 4; }
.dmd-spot .dmd-focus .dmd-target { z-index: 3; }
.dmd-pro { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dmd-mint-soft); font-size: 13px; color: var(--dmd-ink); }
.dmd-pro[hidden] { display: none !important; }
.dmd-pro-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--dmd-teal); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.dmd-pro-link { margin-left: auto; font-weight: 700; color: var(--dmd-teal); text-decoration: none; white-space: nowrap; }
.dmd-pro-link:hover { text-decoration: underline; color: var(--dmd-teal-dark); }
@media (prefers-reduced-motion: reduce) { .dmd-focus { transition: none; } }
