/* =========================================================================
   Sitemap Checker — own blue/green/purple/orange/teal palette, independent
   of the site's teal/amber theme, scoped under .sitemap-page.
   ========================================================================= */

.sitemap-page{
  --sm-blue:#1768ff;
  --sm-blue-dark:#0f54dc;
  --sm-blue-soft:#eef5ff;
  --sm-green:#10b65c;
  --sm-green-soft:#eafaf1;
  --sm-purple:#8b5cf6;
  --sm-purple-soft:#f3ecff;
  --sm-orange:#ff8a1f;
  --sm-orange-soft:#fff4e8;
  --sm-red:#ef4444;
  --sm-red-soft:#fff0f0;
  --sm-red-line:#ffd5d5;
  --sm-red-ink:#b42318;
  --sm-teal:#14b8a6;
  --sm-teal-soft:#ebfffb;
  --sm-text:#0f172a;
  --sm-muted:#667085;

  /* Surfaces, ink and lines as tokens rather than literals - this is what
     makes the dark block below a dozen lines instead of a second stylesheet.
     Light values are exactly the hexes they replaced, so light is unchanged. */
  --sm-surface:#ffffff;      /* cards, panels, inputs */
  --sm-surface-2:#fbfcff;    /* soft panels, tinted rows */
  --sm-surface-3:#f6f8fb;    /* chips, meta pills */
  --sm-track:#eef1f6;        /* bar and ring tracks */
  --sm-track-2:#e7ebf2;      /* the striped half of the coverage bar */
  --sm-track-blue:#e7eef9;   /* scan progress rail */

  --sm-ink:#101828;          /* strongest text */
  --sm-ink-2:#344054;
  --sm-ink-3:#475467;
  --sm-ink-4:#667085;
  --sm-ink-5:#8a94a6;        /* faintest text, neutral bar fills */

  --sm-line:#e5eaf2;
  --sm-line-2:#eef1f5;
  --sm-line-blue:#cfe0ff;    /* blue-tinted borders on info surfaces */
  --sm-info-soft:#f4f8ff;    /* notes, hints, inline code */
  --sm-info-ink:#315b96;

  --sm-shadow:0 10px 35px rgba(15,23,42,.07);
  --sm-radius:18px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--sm-text);
  max-width:none;width:min(calc(100% - 36px),1280px);margin:14px auto 32px;padding:0;
  border-radius:26px;border:1px solid var(--sm-line);
  background:
    radial-gradient(circle at 5% 5%, rgba(23,104,255,.06), transparent 22%),
    radial-gradient(circle at 95% 12%, rgba(139,92,246,.07), transparent 20%),
    linear-gradient(180deg,var(--sm-surface) 0%, var(--sm-surface-2) 100%);
  box-shadow:0 8px 30px rgba(15,23,42,.06);
  position:relative;overflow:hidden;
}
.sitemap-page *{box-sizing:border-box}

/* ---------- dark theme ----------
   The site flips html[data-theme="dark"]; because every surface, ink and line
   above goes through a token, dark is mostly a matter of restating them. What
   follows the token block are the handful of places that cannot be a token:
   gradients, the mockup chrome, and colours baked into multi-stop backgrounds. */
html[data-theme="dark"] .sitemap-page{
  --sm-blue:#5b9bff;
  --sm-blue-dark:#8ab6ff;
  --sm-blue-soft:#152744;
  --sm-green:#3ecf82;
  --sm-green-soft:#0f2a1d;
  --sm-purple:#a78bfa;
  --sm-purple-soft:#231b3d;
  --sm-orange:#ffa74d;
  --sm-orange-soft:#2c1f0f;
  --sm-red:#f87171;
  --sm-red-soft:#2c1618;
  --sm-red-line:#5a2a2a;
  --sm-red-ink:#ffb4ad;
  --sm-teal:#2dd4bf;
  --sm-teal-soft:#0e2a28;
  --sm-text:#f1efeb;
  --sm-muted:#a9aeb8;

  --sm-surface:#16181d;
  --sm-surface-2:#1b1e24;
  --sm-surface-3:#22252c;
  --sm-track:#272b33;
  --sm-track-2:#2e323b;
  --sm-track-blue:#1d2735;

  --sm-ink:#f1efeb;
  --sm-ink-2:#dfe3ea;
  --sm-ink-3:#c2c8d2;
  --sm-ink-4:#a9aeb8;
  --sm-ink-5:#868d99;

  --sm-line:#2a2e36;
  --sm-line-2:#23262d;
  --sm-line-blue:#2c3d5c;
  --sm-info-soft:#151e2c;
  --sm-info-ink:#9dbcf0;

  --sm-shadow:0 10px 35px rgba(0,0,0,.45);
  background:
    radial-gradient(circle at 5% 5%, rgba(91,155,255,.10), transparent 22%),
    radial-gradient(circle at 95% 12%, rgba(167,139,250,.10), transparent 20%),
    linear-gradient(180deg,#131519 0%, #16181d 100%);
  box-shadow:0 8px 30px rgba(0,0,0,.35);
}

/* The overview band: its washes are painted over white in light, so both the
   base gradient and the corner bloom need restating rather than re-tokenising. */
html[data-theme="dark"] .sm-overview-band{
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(91,155,255,.14), transparent 46%) padding-box,
    radial-gradient(110% 140% at 100% 0%, rgba(167,139,250,.16), transparent 44%) padding-box,
    radial-gradient(90% 130% at 92% 115%, rgba(45,212,191,.14), transparent 46%) padding-box,
    linear-gradient(180deg,#1a1d23 0%, #16181d 100%) padding-box,
    linear-gradient(125deg, var(--sm-blue) 0%, var(--sm-purple) 52%, var(--sm-teal) 100%) border-box;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}
html[data-theme="dark"] .sm-overview-band:before{
  background:radial-gradient(circle, rgba(255,255,255,.07), transparent 68%);
}
html[data-theme="dark"] .sm-band-title{
  background:linear-gradient(100deg,#9dc0ff 0%, #b9a6ff 55%, #7fe4d5 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
html[data-theme="dark"] .sm-band-panel{background:linear-gradient(180deg,#1c1f26 0%,#191c22 100%)}

/* Browser mockup chrome and the toast are the two places with their own
   baked-in light surfaces. */
html[data-theme="dark"] .sm-browser{box-shadow:0 22px 50px rgba(0,0,0,.5)}
html[data-theme="dark"] .sm-browser-top{background:#1b1e24}
html[data-theme="dark"] .sm-toast{background:#2b3039;border:1px solid var(--sm-line)}

/* Gradient fills that name their own stops. */
html[data-theme="dark"] .sm-band-kicker,
html[data-theme="dark"] .sitemap-page .sm-band-btn{
  background:linear-gradient(135deg,#2f6fd8,#7c53e0);box-shadow:0 6px 16px rgba(0,0,0,.4);
}
html[data-theme="dark"] .sm-hero-visual .sm-float-circle{background:#1f232b;border-color:var(--sm-line)}

/* Inputs keep the browser's own dark form colours out of the way. */
html[data-theme="dark"] .sitemap-page{color-scheme:dark}

/* font-family, not the `font` shorthand: the shorthand also reset size and
   weight, and because it outranks a bare class it was silently overriding the
   size every .sm-btn / .sm-chip / .sm-*-btn rule declares for itself. */
.sitemap-page button,.sitemap-page input{font-family:inherit;color:inherit}
.sitemap-page a{color:inherit;text-decoration:none}
/* A class that sets display (grid/flex) outranks the UA's [hidden] rule, so
   panels toggled with .hidden in JS need this to actually stay hidden. */
.sitemap-page [hidden]{display:none !important}

.sm-body{padding:22px;position:relative}

/* ---------- scan progress ---------- */
.sm-scan-progress{position:absolute;left:0;right:0;top:0;height:4px;background:var(--sm-track-blue);z-index:5;display:none;border-radius:26px 26px 0 0;overflow:hidden}
.sm-scan-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--sm-blue),var(--sm-purple));transition:width .18s}
.sm-scan-message{
  display:none;margin:0 0 18px;padding:13px 16px;border-radius:13px;border:1px solid var(--sm-line-blue);background:var(--sm-info-soft);
  color:var(--sm-info-ink);font-size:13px;font-weight:600;
}

/* ---------- hero ---------- */
.sm-hero{display:grid;gap:20px;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);align-items:center;margin-bottom:18px}
.sm-eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  color:var(--sm-blue);background:var(--sm-blue-soft);border:1px solid var(--sm-line-blue);font-size:12.5px;font-weight:800;margin-bottom:12px
}
.sm-hero h1{margin:0;font-size:38px;line-height:1.06;letter-spacing:-1.3px}
.sm-hero h1 span{color:var(--sm-blue)}
.sm-hero p{color:var(--sm-ink-3);font-size:14.5px;line-height:1.65;max-width:640px;margin:13px 0 18px}
.sm-search-row{display:flex;gap:10px;max-width:820px;flex-wrap:wrap}
.sm-url-wrap{
  flex:1;min-width:220px;display:flex;align-items:center;gap:9px;background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:13px;
  padding:0 13px;box-shadow:0 8px 20px rgba(15,23,42,.05)
}
.sm-url-wrap:focus-within{border-color:var(--sm-blue);box-shadow:0 0 0 4px rgba(23,104,255,.1)}
.sm-url-wrap input{width:100%;border:0;outline:none;padding:13px 0;background:transparent;color:var(--sm-ink);font-size:13.5px}
/* One action button now, so the input takes the space the second one used. */
.sm-search-row .sm-url-wrap{flex:1 1 520px}
.sm-search-hint{margin:9px 0 0;font-size:11.5px;color:var(--sm-ink-4);line-height:1.6;max-width:760px}
.sm-search-hint code{background:var(--sm-info-soft);border-radius:5px;padding:1px 5px;font-size:11px;color:var(--sm-info-ink)}
.sm-discovery-note{
  margin:8px 0 0;padding:8px 11px;border-radius:9px;border:1px solid var(--sm-line-blue);background:var(--sm-info-soft);
  color:var(--sm-info-ink);font-size:11.5px;font-weight:600;max-width:760px;line-height:1.55;
}
.sm-discovery-note a{color:var(--sm-blue);text-decoration:underline;word-break:break-all}
.sm-btn.is-small{padding:7px 12px;font-size:11.5px;border-radius:9px;box-shadow:none}
.sm-btn{
  border:1px solid var(--sm-line);background:var(--sm-surface);color:var(--sm-ink-2);border-radius:12px;padding:12px 17px;font-weight:800;font-size:13px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;cursor:pointer;
  box-shadow:0 5px 14px rgba(15,23,42,.04);
}
.sm-btn.is-primary{background:var(--sm-blue);border-color:var(--sm-blue);color:#fff}
.sm-btn.is-primary:hover{background:var(--sm-blue-dark)}
.sm-btn.is-secondary{border-color:var(--sm-line-blue);color:var(--sm-ink-2)}
.sm-btn.is-plain{background:transparent;box-shadow:none}
.sm-btn:disabled{opacity:.55;cursor:not-allowed}
.sm-trust-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sm-trust{
  display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--sm-surface);border:1px solid var(--sm-line);
  color:var(--sm-ink-3);font-size:11.5px;
}

/* ---------- hero visual / browser mock ---------- */
.sm-hero-visual{position:relative;min-height:300px;padding:8px}
.sm-float-circle{
  position:absolute;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--sm-surface);border:1px solid var(--sm-line);
  box-shadow:0 12px 25px rgba(15,23,42,.08);font-size:20px;z-index:1;
}
.sm-float-circle.fc1{left:6px;top:56px;color:var(--sm-blue)}
.sm-float-circle.fc2{right:2px;top:16px;color:var(--sm-orange)}
.sm-float-circle.fc3{right:-4px;bottom:46px;color:var(--sm-purple)}
.sm-float-circle.fc4{left:56px;bottom:6px;color:var(--sm-teal)}
.sm-browser{
  position:relative;background:var(--sm-surface);border:1px solid var(--sm-line-blue);border-radius:18px;overflow:hidden;
  box-shadow:0 22px 50px rgba(30,64,175,.13);z-index:2;
}
.sm-browser-top{height:42px;border-bottom:1px solid var(--sm-line);display:flex;align-items:center;gap:8px;padding:0 14px;background:var(--sm-surface-2)}
.sm-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.sm-dot.is-red{background:#ff5f57}.sm-dot.is-yellow{background:#febc2e}.sm-dot.is-green{background:#28c840}
.sm-browser-address{
  margin-left:8px;flex:1;background:var(--sm-surface-3);border-radius:8px;padding:6px 10px;font-size:11px;color:var(--sm-ink-4);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* The structure card that used to sit here moved to the Sitemap Overview
   band, where the file names have room to be read. */
.sm-browser-body{display:block;min-height:250px}
.sm-report-left{padding:15px}
.sm-report-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sm-report-tags{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}
.sm-report-tag{
  display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;
  background:var(--sm-blue-soft);border:1px solid var(--sm-line-blue);color:var(--sm-info-ink);font-size:10px;font-weight:800;white-space:nowrap;
}
.sm-report-tag.is-bad{background:var(--sm-red-soft);border-color:var(--sm-red-line);color:var(--sm-red-ink)}
.sm-report-title{font-weight:800;font-size:13px;margin-bottom:3px}
.sm-report-domain{font-size:17px;font-weight:850;margin-bottom:6px;word-break:break-all}
.sm-report-sub{font-size:10.5px;color:var(--sm-ink-4);margin-bottom:13px}
/* Ring, verdict, then the four sub-scores - the breakdown behind the one big
   number, which is also what stops the card ending in dead space. */
.sm-report-head{display:flex;align-items:center;gap:15px;margin:13px 0;flex-wrap:wrap}
.sm-report-head-text{flex:0 0 auto}
.sm-report-subscores{flex:1 1 200px;min-width:180px;display:grid;gap:6px}
.sm-subscore{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:baseline}
.sm-subscore span{font-size:10px;color:var(--sm-ink-4);font-weight:700}
.sm-subscore b{font-size:11px;color:var(--sm-text);font-weight:800}
.sm-subscore-bar{grid-column:1 / -1;height:5px;border-radius:999px;background:var(--sm-track);overflow:hidden}
.sm-subscore-bar i{display:block;height:100%;border-radius:999px}
.sm-report-ring{
  width:76px;height:76px;border-radius:50%;display:grid;place-items:center;position:relative;flex:none;
  background:conic-gradient(var(--sm-green) calc(var(--score)*1%), var(--sm-track) 0);
}
.sm-report-ring:after{content:"";position:absolute;inset:7px;background:var(--sm-surface);border-radius:50%}
.sm-report-ring strong{position:relative;z-index:1;font-size:19px}
.sm-muted-label{font-size:11.5px;color:var(--sm-ink-4)}
.sm-report-verdict{font-size:14px;font-weight:800;margin-top:3px}
.sm-report-health{font-size:11.5px;color:var(--sm-green);font-weight:800;margin-top:4px}
.sm-report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:10px}
.sm-mini-box{border:1px solid var(--sm-line);border-radius:11px;padding:9px;background:var(--sm-surface)}
.sm-mini-box span{display:block;font-size:9.5px;color:var(--sm-ink-4)}
.sm-mini-box strong{display:block;font-size:15px;margin-top:4px;word-break:break-word}
.sm-health-line{margin-top:8px;border-top:1px solid var(--sm-line);padding-top:9px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10.5px;color:var(--sm-ink-4)}
.sm-health-line strong{color:var(--sm-text);font-size:11.5px}
.sm-health-line > div{flex:1 1 auto;min-width:74px}


/* ---------- summary grid ---------- */
.sm-summary-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:14px}
.sm-card{background:var(--sm-surface);border:1px solid var(--sm-line);border-radius:var(--sm-radius);box-shadow:var(--sm-shadow)}
.sm-summary-card{padding:15px;min-height:108px;display:flex;align-items:flex-start;gap:12px}
.sm-summary-icon{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;font-size:18px;
  background:var(--sm-blue-soft);color:var(--sm-blue);
}
.sm-summary-icon.is-green{background:var(--sm-green-soft);color:var(--sm-green)}
.sm-summary-icon.is-orange{background:var(--sm-orange-soft);color:var(--sm-orange)}
.sm-summary-icon.is-purple{background:var(--sm-purple-soft);color:var(--sm-purple)}
.sm-summary-icon.is-teal{background:var(--sm-teal-soft);color:var(--sm-teal)}
.sm-summary-card h3{margin:0 0 4px;font-size:11.5px;color:var(--sm-ink-3)}
.sm-summary-card strong{display:block;font-size:16.5px;letter-spacing:-.2px;word-break:break-word}
.sm-summary-card small{display:block;color:var(--sm-ink-4);margin-top:4px;font-size:10.5px}

/* ---------- content grid ---------- */
/* ---------- sitemap overview ---------- */
/* Light like the rest of the page, but not plain: a real gradient border, three
   soft colour washes behind the content and a gradient title. The earlier dark
   slab read as bolted on from another site; this keeps the colour without
   fighting the white cards below it. */
.sm-overview-band{
  position:relative;overflow:hidden;border-radius:var(--sm-radius);padding:18px 20px 19px;margin-bottom:14px;
  border:1.5px solid transparent;color:var(--sm-text);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(23,104,255,.10), transparent 46%) padding-box,
    radial-gradient(110% 140% at 100% 0%, rgba(139,92,246,.13), transparent 44%) padding-box,
    radial-gradient(90% 130% at 92% 115%, rgba(20,184,166,.13), transparent 46%) padding-box,
    linear-gradient(180deg,var(--sm-surface) 0%, var(--sm-surface-2) 100%) padding-box,
    linear-gradient(125deg, var(--sm-blue) 0%, var(--sm-purple) 52%, var(--sm-teal) 100%) border-box;
  box-shadow:0 14px 34px rgba(23,104,255,.12);
}
/* A soft highlight in the corner, so the gradient reads as light rather than
   as a flat tint. */
.sm-overview-band:before{
  content:"";position:absolute;right:-60px;top:-90px;width:280px;height:280px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle, rgba(255,255,255,.85), transparent 68%);
}
.sm-overview-band > *{position:relative}

.sm-band-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.sm-band-kicker{
  display:inline-block;font-size:9.5px;font-weight:900;letter-spacing:.16em;color:#fff;
  background:linear-gradient(120deg,var(--sm-blue),var(--sm-purple));
  border-radius:999px;padding:5px 11px;margin-bottom:9px;
  box-shadow:0 4px 12px rgba(23,104,255,.28);
}
.sm-overview-band h2{margin:0;font-size:20px;letter-spacing:-.5px;display:flex;align-items:center;gap:9px}
.sm-band-emoji{flex:none}
.sm-band-title{color:#173a80}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .sm-band-title{
    background:linear-gradient(100deg,#12306e 0%, #1c4fbd 42%, #7c3aed 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
}
.sm-overview-band p{margin:8px 0 0;font-size:12.5px;color:var(--sm-ink-3);line-height:1.55;max-width:660px}
.sitemap-page .sm-band-btn{
  border:0;border-radius:10px;padding:9px 15px;font-size:11.5px;font-weight:800;cursor:pointer;white-space:nowrap;
  color:#fff;background:linear-gradient(135deg,var(--sm-blue),#7c3aed);
  box-shadow:0 6px 16px rgba(23,104,255,.28);transition:transform .16s,box-shadow .16s,filter .16s;
}
.sitemap-page .sm-band-btn:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(23,104,255,.34);filter:brightness(1.06)}

.sm-band-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:14px;align-items:start}

/* --- the structure tree --- */
/* A plain indented tree: name, then what happened to it. No pills, no boxes -
   the indentation and the connector lines are the whole point. */
.sm-band-panel{
  border:1px solid var(--sm-line);border-radius:14px;padding:12px 14px 11px;
  background:linear-gradient(180deg,var(--sm-surface) 0%,var(--sm-surface-2) 100%);
  box-shadow:0 4px 14px rgba(15,23,42,.05);
}
.sm-band-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.sm-band-panel-head h3{margin:0;font-size:12.5px;font-weight:900;color:var(--sm-text)}
.sm-band-panel-head span{font-size:10.5px;font-weight:700;color:var(--sm-muted)}
.sm-band-legend{margin:10px 0 0 !important;font-size:10px;color:var(--sm-ink-5) !important}

.sm-band-panel .sm-tree-panel{background:transparent;border:0;padding:0;min-height:0;max-height:250px;overflow:auto}
.sm-tree-node{display:grid;gap:1px;font-size:12px}
.sm-tree-node .sm-level{
  margin:1px 0 0 9px;padding-left:14px;border-left:1px solid var(--sm-line);display:grid;gap:1px;
}

.sitemap-page .sm-tree-row{
  position:relative;display:flex;align-items:baseline;gap:8px;padding:5px 7px;border-radius:7px;
  color:var(--sm-text);text-decoration:none;transition:background .14s;
}
.sm-tree-node .sm-level .sm-tree-row:before{
  content:"";position:absolute;left:-14px;top:12px;width:10px;height:1px;background:var(--sm-line);
}
.sitemap-page .sm-tree-row:hover{background:var(--sm-blue-soft)}
.sitemap-page .sm-tree-row:hover .sm-tree-name{color:var(--sm-blue);text-decoration:underline}
.sm-tree-row:focus-visible{outline:2px solid var(--sm-blue);outline-offset:1px}
.sm-tree-row.is-root{font-weight:800}
.sm-tree-icon{font-size:11px;line-height:1;flex:none}
.sm-tree-name{font-size:11.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sm-tree-meta{margin-left:auto;font-size:10.5px;color:var(--sm-muted);font-weight:600;white-space:nowrap;flex:none}
.sm-tree-row.is-failed .sm-tree-name{color:var(--sm-red)}
.sm-tree-row.is-failed .sm-tree-meta{color:var(--sm-red);max-width:220px;overflow:hidden;text-overflow:ellipsis}

/* --- the side column --- */
.sm-band-side{display:grid;gap:10px}
.sm-band-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}
/* Each stat carries its own hue so the block has colour of its own rather than
   four identical grey boxes. */
.sm-band-stat{
  position:relative;overflow:hidden;border-radius:12px;padding:10px 12px;display:grid;gap:2px;
  border:1px solid var(--sm-line);
  background:var(--sm-surface);
}
@supports (color:color-mix(in srgb, red 10%, white)){
  .sm-band-stat{
    border-color:color-mix(in srgb, var(--tone,var(--sm-ink-5)) 26%, var(--sm-line));
    background:linear-gradient(160deg, color-mix(in srgb, var(--tone,var(--sm-ink-5)) 11%, var(--sm-surface)) 0%, var(--sm-surface) 78%);
  }
}
.sm-band-stat:after{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--tone,var(--sm-line));opacity:.85}
.sm-band-stat span{font-size:9.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--sm-ink-5)}
.sm-band-stat strong{font-size:19px;font-weight:900;letter-spacing:-.4px;color:var(--tone,var(--sm-text))}
.sm-band-stat.is-blue{--tone:var(--sm-blue)}
.sm-band-stat.is-purple{--tone:var(--sm-purple)}
.sm-band-stat.is-teal{--tone:var(--sm-teal)}
.sm-band-stat.is-bad{--tone:var(--sm-red)}
.sm-band-stat.is-idle{--tone:var(--sm-ink-5)}
.sm-band-side .sm-badges{display:flex;flex-wrap:wrap;gap:7px}
.sm-band-side .sm-badge{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  border:1px solid var(--sm-line);background:linear-gradient(180deg,var(--sm-surface),var(--sm-surface-2));color:var(--sm-ink-3);
  font-size:10.5px;font-weight:700;box-shadow:0 2px 6px rgba(15,23,42,.04);
}

.sm-content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.sm-section-card{padding:16px;min-height:250px}
.sm-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.sm-card-head h2{margin:0;font-size:14.5px;display:flex;align-items:center;gap:8px}
.sm-card-note{font-size:10.5px;color:var(--sm-ink-5);font-weight:600;text-align:right}
.sm-subtle-btn{border:0;background:transparent;color:var(--sm-blue);font-size:11px;font-weight:800;padding:0;cursor:pointer}

.sm-score-circles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}
.sm-score-item{text-align:center}
.sm-circle{
  width:70px;height:70px;border-radius:50%;margin:0 auto 8px;display:grid;place-items:center;position:relative;
  background:conic-gradient(var(--sm-green) calc(var(--score)*1%), var(--sm-track) 0);
}
.sm-circle.is-blue{background:conic-gradient(var(--sm-blue) calc(var(--score)*1%), var(--sm-track) 0)}
.sm-circle.is-orange{background:conic-gradient(var(--sm-orange) calc(var(--score)*1%), var(--sm-track) 0)}
.sm-circle.is-purple{background:conic-gradient(var(--sm-purple) calc(var(--score)*1%), var(--sm-track) 0)}
.sm-circle:after{content:"";position:absolute;inset:6px;background:var(--sm-surface);border-radius:50%}
.sm-circle strong{position:relative;z-index:1;font-size:18px}
.sm-score-item span{display:block;font-size:10.5px;color:var(--sm-ink-3)}
.sm-score-item small{display:block;margin-top:4px;color:var(--sm-green);font-weight:800;font-size:10.5px}
.sm-score-item small.is-blue{color:var(--sm-blue)}
.sm-score-item small.is-orange{color:var(--sm-orange)}
.sm-score-item small.is-purple{color:var(--sm-purple)}

.sm-list{display:grid;gap:9px}
.sm-metric-row{display:grid;grid-template-columns:1fr 60px 74px;gap:9px;align-items:center;font-size:11.5px;color:var(--sm-ink-3)}
.sm-bar{height:7px;background:var(--sm-line-2);border-radius:999px;overflow:hidden}
.sm-bar span{display:block;height:100%;border-radius:inherit;transition:width .3s}

.sm-detail-list{display:grid;gap:9px}
.sm-detail-row{
  display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1fr) 44px;gap:8px;
  padding-bottom:8px;border-bottom:1px solid var(--sm-line-2);align-items:start;font-size:11.5px;
}
.sm-detail-row:last-child{border-bottom:0}
.sm-detail-row .sm-label{color:var(--sm-ink-3)}
.sm-detail-row .sm-value{color:var(--sm-ink-2)}
.sm-detail-row [data-detail-lastmod-dot],
.sm-detail-row [data-detail-priority-dot],
.sm-detail-row [data-detail-changefreq-dot],
.sm-detail-row [data-detail-robots-dot],
.sm-detail-row [data-detail-xml-dot],
.sm-detail-row [data-detail-utf8-dot],
.sm-detail-row [data-detail-https-dot],
.sm-detail-row [data-detail-duplicates-dot]{font-weight:900}
.sm-dot-ok{color:var(--sm-green)}
.sm-dot-warn{color:var(--sm-orange)}
.sm-dot-bad{color:var(--sm-red)}

/* ---------- bottom grid ---------- */
.sm-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sm-urls-card{grid-column:1 / -1}
/* ---------- coverage bar ---------- */
/* A donut only ever showed the sampled slice, which made a 20-of-4,000 check
   look like a complete picture. The bar's full width is every URL in the
   sitemap, so unchecked ground stays visibly empty as it fills in. */
.sm-coverage{margin-bottom:13px}
.sm-coverage-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.sm-coverage-headline strong{font-size:24px;font-weight:900;color:var(--sm-ink);line-height:1;letter-spacing:-.5px}
.sm-coverage-headline span{display:block;margin-top:4px;font-size:11px;color:var(--sm-muted);font-weight:600}
.sm-coverage-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sm-coverage-status{font-size:11px;font-weight:700;color:var(--sm-blue);display:inline-flex;align-items:center;gap:6px}
.sm-coverage-status:before{
  content:"";width:9px;height:9px;border-radius:50%;border:2px solid var(--sm-blue);border-top-color:transparent;
  animation:sm-spin .7s linear infinite;
}
@keyframes sm-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.sm-coverage-status:before{animation:none}}

.sm-coverage-bar{
  height:26px;border-radius:9px;background:repeating-linear-gradient(135deg,var(--sm-track) 0 7px,var(--sm-track-2) 7px 14px);
  border:1px solid var(--sm-line);overflow:hidden;display:flex;
}
.sm-coverage-fill{display:flex;height:100%;transition:width .35s ease}
.sm-coverage-seg{height:100%;min-width:2px;transition:width .35s ease}
.sm-coverage-legend{display:flex;flex-wrap:wrap;gap:6px 9px;margin-top:9px}
.sm-legend-item{
  display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;
  background:var(--sm-surface-3);border:1px solid var(--sm-line);font-size:10.5px;color:var(--sm-ink-3);font-weight:600;
}
.sm-legend-item b{color:var(--sm-ink);font-weight:800}
.sm-legend-dot{width:9px;height:9px;border-radius:50%;flex:none}

table{border-collapse:collapse;width:100%}
.sm-table-wrap{overflow:auto;border:1px solid var(--sm-line);border-radius:12px}
.sitemap-page th,.sitemap-page td{padding:10px 10px;text-align:left;border-bottom:1px solid var(--sm-line);font-size:11.5px;white-space:nowrap}
.sitemap-page th{background:var(--sm-surface-2);color:var(--sm-ink-2)}
.sitemap-page td{color:var(--sm-ink-3)}
.sitemap-page tr:last-child td{border-bottom:0}
.sm-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:800}
.sm-status-pill.is-good{background:var(--sm-green-soft);color:var(--sm-green)}
.sm-status-pill.is-warn{background:var(--sm-orange-soft);color:var(--sm-orange)}
.sm-status-pill.is-bad{background:var(--sm-red-soft);color:var(--sm-red)}
/* "Not checked" — deliberately grey rather than green. Only a sample of URLs
   is probed, and colouring the rest as healthy would be a lie. */
.sm-status-pill.is-idle{background:var(--sm-line-2);color:var(--sm-ink-5)}

/* ---------- full URL list ---------- */
/* Replaces the old five-column sample table. The address gets its own line so
   a long URL stays readable, and everything the sitemap declared about it sits
   underneath as labelled chips. */
.sm-urls-card .sm-card-head{gap:10px}
.sm-urls-card .sm-card-note{margin-right:auto;text-align:left}

/* The filter and sort controls are obvious by placement to a sighted user but
   need a real label for a screen reader, so the label text is visually hidden
   rather than omitted. */
.sm-urls-card .sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.sm-url-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:11px}
.sm-url-search{flex:1 1 190px;min-width:0}
.sm-url-search input{
  width:100%;padding:7px 11px;border:1px solid var(--sm-line);border-radius:9px;
  font-size:11.5px;color:var(--sm-ink);background:var(--sm-surface);
}
.sm-url-search input:focus{outline:none;border-color:var(--sm-blue);box-shadow:0 0 0 3px rgba(36,89,215,.12)}

.sm-url-chips{display:flex;gap:5px;flex-wrap:wrap}
.sm-chip{
  padding:6px 10px;border:1px solid var(--sm-line);border-radius:999px;background:var(--sm-surface);
  font-size:10.5px;font-weight:700;color:var(--sm-ink-4);cursor:pointer;transition:.15s;
}
.sm-chip:hover{border-color:var(--sm-blue);color:var(--sm-blue)}
.sm-chip.is-active{background:var(--sm-blue);border-color:var(--sm-blue);color:#fff}

.sm-url-sort select,.sm-url-type select{
  padding:7px 9px;border:1px solid var(--sm-line);border-radius:9px;
  font-size:11px;color:var(--sm-ink-3);background:var(--sm-surface);cursor:pointer;
}
.sm-url-type select{font-weight:700;color:var(--sm-blue);border-color:var(--sm-line-blue);background:var(--sm-blue-soft)}

/* Capped height with its own scroller: the card must not grow to 2,000 rows
   and push every other card off the page. */
.sm-url-list{
  display:grid;gap:1px;background:var(--sm-line);
  border:1px solid var(--sm-line);border-radius:11px;overflow:hidden auto;
  max-height:min(620px,68vh);
}
.sm-url-list > .sm-empty-note{background:var(--sm-surface);padding:14px}

.sm-url-item{background:var(--sm-surface);padding:10px 12px}
.sm-url-item:hover{background:var(--sm-surface-2)}

.sm-url-line{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.sm-url-link{
  font-size:12px;color:var(--sm-ink);font-weight:600;text-decoration:none;
  word-break:break-all;line-height:1.45;min-width:0;
}
.sm-url-link:hover{color:var(--sm-blue);text-decoration:underline}
.sm-url-line .sm-status-pill{flex:0 0 auto}

.sm-url-meta{display:flex;flex-wrap:wrap;gap:5px 7px;margin-top:7px}
.sm-url-meta-item{
  display:inline-flex;align-items:baseline;gap:5px;padding:3px 7px;border-radius:6px;
  background:var(--sm-surface-3);font-size:10.5px;color:var(--sm-ink-3);
}
.sm-url-meta-item b{font-weight:800;color:var(--sm-ink-5);font-size:9.5px;text-transform:uppercase;letter-spacing:.04em}
.sm-url-meta-item i{font-style:normal;color:var(--sm-ink-5)}

.sm-url-flag{
  display:inline-flex;align-items:center;padding:3px 7px;border-radius:6px;
  font-size:10px;font-weight:800;
}
.sm-url-flag.is-warn{background:var(--sm-orange-soft);color:var(--sm-orange)}
.sm-url-flag.is-bad{background:var(--sm-red-soft);color:var(--sm-red)}

.sm-url-foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:9px;font-size:10.5px;color:var(--sm-ink-5);font-weight:600;
}

@media(max-width:640px){
  .sm-url-line{flex-direction:column;gap:6px}
  .sm-url-list{max-height:none}
}

.sm-recommend-list{display:grid;gap:9px}
.sm-recommend{display:flex;gap:9px;align-items:flex-start;padding:9px 10px;border-radius:11px;font-size:11.5px;border:1px solid var(--sm-line);background:var(--sm-surface-2);color:var(--sm-ink-3)}
.sm-recommend.is-blue{background:var(--sm-info-soft)}
.sm-recommend.is-green{background:var(--sm-green-soft)}
.sm-recommend.is-orange{background:var(--sm-orange-soft)}
.sm-recommend.is-red{background:var(--sm-red-soft)}
.sm-performance-list{display:grid;gap:10px;font-size:11.5px;color:var(--sm-ink-3)}
.sm-performance-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--sm-line-2)}
.sm-performance-item:last-child{border-bottom:0}

.sm-empty-note{color:var(--sm-ink-5);font-size:11.5px}

/* "+73 more" was a dead label; it is a real control now. */
.sitemap-page .sm-more-link{
  justify-self:start;border:1px dashed var(--sm-line);background:var(--sm-surface);border-radius:999px;
  padding:5px 11px;font-size:10.5px;font-weight:800;color:var(--sm-blue);cursor:pointer;transition:.15s;
}
.sitemap-page .sm-more-link:hover{background:var(--sm-blue-soft);border-style:solid;border-color:var(--sm-blue)}
.sitemap-page .sm-more-link:focus-visible{outline:2px solid var(--sm-blue);outline-offset:2px}

/* ---------- URL breakdown ---------- */
.sm-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.sm-insight-wide{grid-column:1 / -1}
.sm-tiles-hint{margin:0 0 10px;font-size:11px;color:var(--sm-muted);font-weight:600}
.sm-status-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px}

/* Every tile is a button into the URL list, so it gets real affordances:
   a tone bar for its status, a share meter, hover lift and a selected ring. */
.sitemap-page .sm-status-tile{
  position:relative;overflow:hidden;text-align:left;font:inherit;cursor:pointer;
  border:1px solid var(--sm-line);border-radius:14px;padding:12px 13px 11px;background:var(--sm-surface);
  display:grid;gap:3px;transition:transform .16s,box-shadow .16s,border-color .16s;
  --tone:var(--sm-ink-5);--tone-soft:var(--sm-surface-3);
}
.sm-status-tile:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tone)}
.sm-status-tile:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.10);border-color:var(--tone)}
.sm-status-tile:focus-visible{outline:2px solid var(--tone);outline-offset:2px}
.sm-status-tile-top{display:flex;align-items:center;gap:7px}
.sm-status-tile-icon{
  width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-size:12px;
  background:var(--tone-soft);border:1px solid var(--tone);flex:none;
}
.sm-status-tile strong{font-size:23px;font-weight:900;letter-spacing:-.6px;color:var(--tone);line-height:1.05}
.sm-status-tile > span:not(.sm-status-tile-icon){font-size:11.5px;font-weight:800;color:var(--sm-ink-2)}
.sm-status-tile small{font-size:10px;color:var(--sm-ink-5);font-weight:600}
.sm-status-tile .sm-tile-meter{height:4px;border-radius:999px;background:var(--sm-track);overflow:hidden;margin-top:6px}
.sm-status-tile .sm-tile-meter i{display:block;height:100%;border-radius:999px;background:var(--tone)}
.sm-status-tile.is-zero{opacity:.6}
.sm-status-tile:disabled{cursor:default}
.sm-status-tile:disabled:hover{transform:none;box-shadow:none;border-color:var(--sm-line)}
.sm-status-tile.is-selected{border-color:var(--tone);background:var(--tone-soft);box-shadow:0 0 0 3px rgba(23,104,255,.16)}
@supports (color:color-mix(in srgb, red 10%, white)){
  .sm-status-tile.is-selected{box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 22%, transparent)}
}

.sm-status-tile.is-good{--tone:var(--sm-green);--tone-soft:var(--sm-green-soft)}
.sm-status-tile.is-warn{--tone:var(--sm-orange);--tone-soft:var(--sm-orange-soft)}
.sm-status-tile.is-bad{--tone:var(--sm-red);--tone-soft:var(--sm-red-soft)}
.sm-status-tile.is-info{--tone:var(--sm-blue);--tone-soft:var(--sm-blue-soft)}
.sm-status-tile.is-purple{--tone:var(--sm-purple);--tone-soft:var(--sm-purple-soft)}
.sm-status-tile.is-idle{--tone:var(--sm-ink-5);--tone-soft:var(--sm-surface-3)}

.sm-insight-list{display:grid;gap:9px}
.sm-insight-row{display:grid;grid-template-columns:1fr auto;gap:4px 10px;font-size:11.5px;color:var(--sm-ink-3)}
.sm-insight-row span{font-weight:600;word-break:break-all}
.sm-insight-row strong{font-weight:800;color:var(--sm-ink);font-size:11.5px}
.sm-insight-row .sm-bar{grid-column:1 / -1}
/* A type row is a filter, so it looks like one. */
.sm-insight-row.is-clickable{cursor:pointer;padding:4px 6px;margin:-4px -6px;border-radius:8px;transition:background .14s}
.sm-insight-row.is-clickable:hover{background:var(--sm-blue-soft)}
.sm-insight-row.is-clickable:hover span{color:var(--sm-blue)}
.sm-insight-list .sm-bar{height:6px;border-radius:999px;background:var(--sm-track);overflow:hidden}
.sm-insight-list .sm-bar span{display:block;height:100%;border-radius:999px;background:var(--sm-blue)}

/* ---------- footer ---------- */
.sm-footer-actions{margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sm-privacy{margin-left:auto;color:var(--sm-ink-4);font-size:10.5px;max-width:640px}

.sm-toast{
  position:fixed;right:22px;bottom:22px;background:var(--sm-ink);color:#fff;border-radius:12px;padding:12px 16px;
  opacity:0;transform:translateY(10px);transition:.24s;pointer-events:none;z-index:999;font-size:13px;
  box-shadow:var(--sm-shadow);max-width:320px;
}
.sm-toast.is-show{opacity:1;transform:translateY(0)}

/* ---------- responsive ---------- */
@media(max-width:1180px){
  .sm-summary-grid{grid-template-columns:repeat(3,1fr)}
  .sm-content-grid{grid-template-columns:repeat(2,1fr)}
  .sm-band-body{grid-template-columns:1fr}
  .sm-bottom-grid{grid-template-columns:1fr 1fr}
  .sm-insights{grid-template-columns:1fr 1fr}
}
@media(max-width:1000px){
  .sm-hero{grid-template-columns:1fr}
}
@media(max-width:720px){
  .sm-body{padding:16px}
  .sm-hero h1{font-size:30px}
  .sm-search-row{flex-direction:column}
  .sm-summary-grid,.sm-content-grid,.sm-bottom-grid,.sm-insights{grid-template-columns:1fr}
  .sm-band-body{grid-template-columns:1fr}
  .sm-overview-band{padding:14px}
  .sm-score-circles{grid-template-columns:1fr 1fr}
  .sm-privacy{margin-left:0;width:100%}
  .sm-browser-body{grid-template-columns:1fr}
  .sm-report-metrics{grid-template-columns:1fr 1fr}
  .sm-coverage-top{align-items:flex-start}
}
