/* SEO Consultant Tools · report UI. Light is the default; .otsct--dark flips every token. */

.otsct {
	--sct-accent: #1a66c2;
	--acc: var(--sct-accent);
	--acc-text: var(--sct-accent);
	--acc-tint: color-mix(in srgb, var(--sct-accent) 11%, transparent);
	--acc-soft: color-mix(in srgb, var(--sct-accent) 40%, #ffffff);
	--bg: #f5f8fc;
	--panel: #ffffff;
	--panel2: #f3f7fc;
	--inset: #f9fbfe;
	--track: #eef2f7;
	--line: #e3eaf2;
	--line2: #d3e0ee;
	--ink: #0b2545;
	--ink2: #33475b;
	--muted: #5d6b79;
	--pass: #146c43;  --pass-bg: #e6f6ee; --pass-dot: #21a366;
	--warn: #8a5300;  --warn-bg: #fff4e0; --warn-dot: #e89a00;
	--fix: #b3261e;   --fix-bg: #fdecea;  --fix-dot: #d93025;
	--h1: var(--sct-accent); --h2: #13804a; --h3: #c2570c; --h4: #6a4bc4; --bad: #c5221f; --tag-ink: #ffffff;
	--tab-bg: #ffffff; --tab-fg: #0b2545; --tab-bd: #dfe8f2; --tab-sh: 0 1px 2px rgba(11, 37, 69, .05);
	--tab-on-bg: #0b2545; --tab-on-fg: #ffffff; --tab-on-bd: #0b2545; --tab-on-sh: 0 14px 30px rgba(11, 37, 69, .26);
	--ring-bg: #0b2545; --ring-bd: transparent; --ring-track: rgba(255, 255, 255, .12); --ring-stroke: #4fb3ff;
	--shadow: 0 24px 48px rgba(11, 37, 69, .06);
	--card-sh: 0 1px 2px rgba(11, 37, 69, .04);
	--g-site: #202124; --g-url: #4d5156; --g-title: #1a0dab; --g-desc: #4d5156; --g-bg: transparent;
	--ogph: #0b2545;
	--c1: #0b2545; --c2: var(--sct-accent); --c3: #13804a; --c4: #c2570c; --c5: #0a7bb8; --c6: #6a4bc4;
	--cloud-bg: #f9fbfe;
	--glow: none;

	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	border-radius: 24px;
	padding: clamp(18px, 3vw, 36px);
	box-sizing: border-box;
	line-height: 1.45;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	max-width: 1240px;
}
.otsct--dark {
	--acc-text: color-mix(in srgb, var(--sct-accent) 50%, #ffffff);
	--acc-tint: color-mix(in srgb, var(--sct-accent) 20%, transparent);
	--acc-soft: color-mix(in srgb, var(--sct-accent) 55%, #ffffff);
	--bg: #0a0e17;
	--panel: #10151f;
	--panel2: #161d2a;
	--inset: #0d121b;
	--track: #1a2130;
	--line: #222b3a;
	--line2: #2a3446;
	--ink: #edf2fa;
	--ink2: #c3ccda;
	--muted: #8d9ab0;
	--pass: #4fd69c;  --pass-bg: rgba(79, 214, 156, .14); --pass-dot: #4fd69c;
	--warn: #f2b65a;  --warn-bg: rgba(242, 182, 90, .14); --warn-dot: #f2b65a;
	--fix: #ff7b86;   --fix-bg: rgba(255, 123, 134, .14); --fix-dot: #ff7b86;
	--h1: var(--acc-soft); --h2: #4fd69c; --h3: #ff9a5c; --h4: #b4a5ff; --bad: #ff7b86; --tag-ink: #0a0e17;
	--tab-bg: #10151f; --tab-fg: #c3ccda; --tab-bd: #222b3a; --tab-sh: inset 0 1px 0 rgba(255, 255, 255, .03);
	--tab-on-bg: color-mix(in srgb, var(--sct-accent) 22%, #10151f); --tab-on-fg: #ffffff; --tab-on-bd: var(--acc-soft);
	--tab-on-sh: 0 0 0 1px color-mix(in srgb, var(--sct-accent) 45%, transparent), 0 16px 36px color-mix(in srgb, var(--sct-accent) 30%, transparent);
	--ring-bg: #0d1424; --ring-bd: #222b3a; --ring-track: rgba(255, 255, 255, .07); --ring-stroke: var(--acc-soft);
	--shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 80px rgba(0, 0, 0, .4);
	--card-sh: inset 0 1px 0 rgba(255, 255, 255, .03);
	--g-site: #dadce0; --g-url: #bdc1c6; --g-title: #8ab4f8; --g-desc: #bdc1c6; --g-bg: #202124;
	--ogph: #172341;
	--c1: #edf2fa; --c2: var(--acc-soft); --c3: #4fd69c; --c4: #ff9a5c; --c5: #9d8cff; --c6: #f2b65a;
	--cloud-bg: #0d121b;
	--glow: 0 0 12px color-mix(in srgb, var(--sct-accent) 60%, transparent);
	background-color: #0a0e17;
	background-image: radial-gradient(1100px 520px at 50% -8%, color-mix(in srgb, var(--sct-accent) 16%, transparent), transparent 70%), radial-gradient(700px 400px at 100% 30%, rgba(157, 140, 255, .07), transparent 70%);
}

.otsct *, .otsct *::before, .otsct *::after { box-sizing: border-box; }
.otsct .sct-btn, .otsct .sct-tab, .otsct .sct-card, .otsct .sct-fix, .otsct .sct-pill {
	font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; margin: 0;
	cursor: pointer; -webkit-appearance: none; appearance: none; line-height: 1.3; text-decoration: none;
}
.otsct .sct-btn:focus-visible, .otsct .sct-tab:focus-visible, .otsct .sct-card:focus-visible, .otsct .sct-fix:focus-visible, .otsct .sct-pill:focus-visible, .otsct .sct-input:focus-visible {
	outline: 3px solid var(--acc-soft); outline-offset: 2px;
}
.otsct h1, .otsct h2, .otsct h3, .otsct p { margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: normal; color: inherit; font-family: inherit; }
.otsct .sct-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.otsct .sct-label { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--acc-text); text-transform: uppercase; }
.otsct .sct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- animation ---------- */
@keyframes sct-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sct-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sct-ring { from { stroke-dashoffset: 490; } }
@keyframes sct-dash { to { stroke-dashoffset: -20; } }
@keyframes sct-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--sct-accent) 18%, transparent); } }
@keyframes sct-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes sct-sweep { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes sct-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes sct-spin { to { transform: rotate(360deg); } }
.otsct .a-up { animation: sct-up .5s ease both; animation-delay: var(--d, 0s); }
.otsct .a-pop { animation: sct-pop .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: var(--d, 0s); }
.otsct .a-grow { transform-origin: left; animation: sct-grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
	.otsct *, .otsct *::before, .otsct *::after { animation: none !important; transition: none !important; }
}

/* ---------- header and form ---------- */
.otsct .sct-wrap { display: flex; flex-direction: column; gap: 22px; }
.otsct .sct-head { display: flex; flex-direction: column; gap: 16px; }
.otsct .sct-head-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.otsct .sct-head-text { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.otsct .sct-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.otsct .sct-sub { font-size: 16px; color: var(--muted); }
.otsct .sct-badge { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); border: 1px dashed var(--line2); border-radius: 999px; padding: 6px 12px; }
.otsct .sct-form { display: flex; flex-wrap: wrap; gap: 10px; }
.otsct .sct-field { flex: 1 1 420px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 0 16px; min-height: 58px; box-shadow: var(--card-sh); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.otsct .sct-field:focus-within { border-color: var(--acc-soft); box-shadow: 0 0 0 4px var(--acc-tint); }
.otsct .sct-field svg { flex: 0 0 auto; color: var(--pass-dot); }
.otsct .sct-input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; font: 500 16px/1.4 Inter, system-ui, sans-serif; color: var(--ink); padding: 14px 0 !important; margin: 0; height: auto; }
.otsct .sct-input::placeholder { color: var(--muted); opacity: .8; }
.otsct .sct-btn--go { min-height: 58px; padding: 0 28px; background: var(--acc); color: #ffffff; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px color-mix(in srgb, var(--sct-accent) 35%, transparent); transition: transform .15s, filter .15s; }
.otsct .sct-btn--go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.otsct .sct-btn--go[disabled] { opacity: .7; cursor: progress; transform: none; }
.otsct .sct-spin { width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: sct-spin .8s linear infinite; }

.otsct .sct-progress { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.otsct .sct-bar { height: 6px; background: var(--acc-tint); border-radius: 6px; overflow: hidden; position: relative; }
.otsct .sct-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--acc); border-radius: 6px; box-shadow: var(--glow); }
.otsct .sct-bar.is-loading i { animation: sct-indet 1.2s ease-in-out infinite; }
.otsct .sct-bar.is-done i { width: 100%; transform-origin: left; animation: sct-grow .6s ease both; }
.otsct .sct-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.otsct .sct-step { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink2); background: var(--panel2); border-radius: 999px; padding: 6px 13px 6px 7px; }
.otsct .sct-step .sct-dot-wait { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: sct-spin .9s linear infinite; }
.otsct .sct-meta { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- tabs ---------- */
.otsct .sct-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.otsct .sct-tab { flex: 1 1 160px; min-height: 80px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--tab-bd); background: var(--tab-bg); color: var(--tab-fg); box-shadow: var(--tab-sh); text-align: left; transition: background .25s, color .25s, box-shadow .25s, border-color .25s, transform .15s; }
.otsct .sct-tab:hover { transform: translateY(-1px); }
.otsct .sct-tab[aria-selected="true"] { background: var(--tab-on-bg); color: var(--tab-on-fg); border-color: var(--tab-on-bd); box-shadow: var(--tab-on-sh); }
.otsct .sct-tab-name { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; }
.otsct .sct-tab-sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; opacity: .82; }
.otsct .sct-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.otsct .sct-dot--pass { background: var(--pass-dot); }
.otsct .sct-dot--warn { background: var(--warn-dot); border-radius: 2px; }
.otsct .sct-dot--fix { background: var(--fix-dot); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; }
.otsct .sct-dot--info { background: var(--acc-soft); }

/* ---------- main panel ---------- */
.otsct .sct-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--shadow); min-height: 200px; }
.otsct .sct-sec { display: flex; flex-direction: column; gap: 22px; }
.otsct .sct-row { display: flex; flex-wrap: wrap; gap: 26px; }
.otsct .sct-col-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.otsct .sct-col-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.otsct .sct-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.otsct .sct-h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.otsct .sct-lede { font-size: 15px; color: var(--muted); margin-top: 6px; }
.otsct .sct-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.otsct .sct-box--tint { background: var(--acc-tint); border-color: transparent; }
.otsct .sct-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; display: inline-block; }
.otsct .sct-chip--pass { background: var(--pass-bg); color: var(--pass); }
.otsct .sct-chip--warn { background: var(--warn-bg); color: var(--warn); }
.otsct .sct-chip--fix { background: var(--fix-bg); color: var(--fix); }
.otsct .sct-chip--info { background: var(--acc-tint); color: var(--acc-text); }
.otsct .sct-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--track); font-size: 13.5px; }
.otsct .sct-kv:last-child { border-bottom: 0; }
.otsct .sct-kv span:first-child { color: var(--muted); }
.otsct .sct-kv span:last-child { color: var(--ink); text-align: right; word-break: break-word; }

/* ---------- overview ---------- */
.otsct .sct-ring-card { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--ring-bg); border: 1px solid var(--ring-bd); color: #ffffff; border-radius: 18px; padding: 28px 24px; }
.otsct .sct-ring-card .sct-label { color: #9cc8ff; }
.otsct .sct-ring { position: relative; width: 180px; height: 180px; }
.otsct .sct-ring svg { transform: rotate(-90deg); display: block; }
.otsct .sct-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.otsct .sct-ring-num b { font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.otsct .sct-ring-num span { font-size: 13px; color: #c9d6e6; }
.otsct .sct-legend { display: flex; gap: 16px; font-size: 13.5px; font-weight: 500; }
.otsct .sct-legend span { display: flex; align-items: center; gap: 6px; }
.otsct .sct-ring-note { font-size: 14px; line-height: 1.5; color: #c9d6e6; text-align: center; }
.otsct .sct-cards { flex: 999 1 480px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.otsct .sct-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 9px; color: var(--ink); text-align: left; box-shadow: var(--card-sh); transition: transform .15s, border-color .2s; }
.otsct .sct-card:hover { transform: translateY(-2px); border-color: var(--acc-soft); }
.otsct .sct-card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.otsct .sct-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--acc-tint); color: var(--acc-text); display: grid; place-items: center; }
.otsct .sct-card-name { font-size: 14px; font-weight: 500; color: var(--muted); }
.otsct .sct-card-metric { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.otsct .sct-card-note { font-size: 13.5px; color: var(--ink2); line-height: 1.4; }
.otsct .sct-card-go { font-size: 13px; font-weight: 700; color: var(--acc-text); }
.otsct .sct-fixes { display: flex; flex-direction: column; gap: 10px; }
.otsct .sct-fix { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--inset); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 58px; color: var(--ink); width: 100%; transition: border-color .2s; }
.otsct .sct-fix:hover { border-color: var(--acc-soft); }
.otsct .sct-fix-sev { min-width: 48px; text-align: center; border-radius: 8px; }
.otsct .sct-fix-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.otsct .sct-fix-text small { font-size: 13px; font-weight: 400; color: var(--muted); }
.otsct .sct-fix-where { font-size: 13px; color: var(--muted); white-space: nowrap; }
.otsct .sct-allgood { display: flex; align-items: center; gap: 12px; background: var(--pass-bg); color: var(--pass); border-radius: 14px; padding: 16px; font-weight: 600; }

/* ---------- redirects ---------- */
.otsct .sct-hop { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; }
.otsct .sct-hop--final { background: color-mix(in srgb, var(--pass-dot) 7%, var(--panel)); border-color: color-mix(in srgb, var(--pass-dot) 45%, transparent); }
.otsct .sct-hop--err { background: var(--fix-bg); border-color: transparent; }
.otsct .sct-hop-n { flex: 0 0 40px; height: 40px; border-radius: 50%; color: #ffffff; font-weight: 800; font-size: 16px; display: grid; place-items: center; background: var(--warn-dot); }
.otsct--dark .sct-hop-n { color: #0a0e17; }
.otsct .sct-hop--final .sct-hop-n { background: var(--pass-dot); }
.otsct .sct-hop--err .sct-hop-n { background: var(--fix-dot); }
.otsct .sct-hop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.otsct .sct-hop-url { font-size: 13.5px; color: var(--ink); word-break: break-all; }
.otsct .sct-hop-note { font-size: 13px; color: var(--muted); }
.otsct .sct-code { font-size: 17px; font-weight: 700; border-radius: 8px; padding: 6px 11px; }
.otsct .sct-link { display: flex; align-items: center; gap: 14px; padding-left: 18px; height: 48px; }
.otsct .sct-link line { stroke: var(--warn-dot); animation: sct-dash .7s linear infinite; }
.otsct .sct-link span { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 4px 9px; }
.otsct .sct-wf { display: flex; flex-direction: column; gap: 6px; }
.otsct .sct-wf-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); gap: 10px; }
.otsct .sct-wf-track { height: 14px; background: var(--panel2); border-radius: 7px; position: relative; }
.otsct .sct-wf-track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; }
.otsct .sct-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- x-ray ---------- */
.otsct .sct-legend-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.otsct .sct-tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 700; color: var(--tag-ink); border-radius: 5px; padding: 2px 7px; line-height: 1.5; display: inline-block; }
.otsct .sct-tag--h1 { background: var(--h1); } .otsct .sct-tag--h2 { background: var(--h2); } .otsct .sct-tag--h3 { background: var(--h3); }
.otsct .sct-tag--h4, .otsct .sct-tag--h5, .otsct .sct-tag--h6 { background: var(--h4); } .otsct .sct-tag--bad { background: var(--bad); } .otsct .sct-tag--ok { background: var(--h2); }
.otsct .sct-browser { border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 40px rgba(11, 37, 69, .09); }
.otsct--dark .sct-browser { box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.otsct .sct-chrome { height: 40px; background: var(--panel2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.otsct .sct-chrome b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.otsct .sct-chrome span { margin-left: 10px; flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.otsct .sct-page { position: relative; padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 18px; max-height: 720px; overflow: auto; }
.otsct .sct-sweep { position: absolute; left: 0; right: 0; height: 2px; background: var(--acc-soft); box-shadow: 0 0 20px 5px color-mix(in srgb, var(--sct-accent) 30%, transparent); animation: sct-sweep 3.4s ease-in-out infinite; pointer-events: none; z-index: 2; }
.otsct .sct-xh { position: relative; border: 2px solid var(--h4); border-radius: 8px; padding: 14px 12px 10px; font-weight: 700; color: var(--ink); animation: sct-pulse 2.6s ease-in-out infinite; animation-delay: var(--p, 0s); }
.otsct .sct-xh .sct-tag { position: absolute; top: -11px; left: 10px; }
.otsct .sct-xh--h1 { border-color: var(--h1); font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; padding-top: 16px; }
.otsct .sct-xh--h2 { border-color: var(--h2); font-size: 18px; }
.otsct .sct-xh--h3 { border-color: var(--h3); font-size: 15.5px; margin-left: 18px; }
.otsct .sct-xh--h4, .otsct .sct-xh--h5, .otsct .sct-xh--h6 { font-size: 14px; margin-left: 36px; }
.otsct .sct-xp { display: flex; flex-direction: column; gap: 8px; }
.otsct .sct-xp span { height: 9px; border-radius: 5px; background: var(--track); display: block; }
.otsct .sct-xp em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.otsct .sct-ximg { position: relative; height: 96px; max-width: 360px; background: var(--panel2); border: 2px dashed var(--line2); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; gap: 10px; color: var(--muted); font-size: 12.5px; }
.otsct .sct-ximg .sct-tag { position: absolute; top: -11px; left: 10px; }
.otsct .sct-ximg--bad { border-color: var(--bad); }
.otsct .sct-ximg--ok { border-style: solid; border-color: color-mix(in srgb, var(--h2) 55%, transparent); }
.otsct .sct-ximg em { font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.otsct .sct-more { font-size: 13px; color: var(--muted); text-align: center; padding-top: 4px; }
.otsct .sct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.otsct .sct-stat { border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.otsct .sct-stat b { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.otsct .sct-stat span { font-size: 12.5px; color: var(--ink2); }
.otsct .sct-outline { display: flex; flex-direction: column; gap: 7px; max-height: 340px; overflow: auto; }
.otsct .sct-oi { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.otsct .sct-oi .sct-tag { flex: 0 0 auto; font-size: 10.5px; padding: 1px 6px; margin-top: 1px; }
.otsct .sct-serp { background: var(--g-bg); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; font-family: Arial, sans-serif; }
.otsct--dark .sct-serp { padding: 14px; }
.otsct .sct-serp-site { display: flex; align-items: center; gap: 8px; }
.otsct .sct-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.otsct .sct-fav img { width: 16px; height: 16px; }
.otsct .sct-serp-name { font-size: 14px; color: var(--g-site); display: block; }
.otsct .sct-serp-url { font-size: 12px; color: var(--g-url); display: block; overflow-wrap: anywhere; }
.otsct .sct-serp-title { font-size: 20px; color: var(--g-title); line-height: 1.3; margin-top: 4px; }
.otsct .sct-serp-desc { font-size: 14px; color: var(--g-desc); line-height: 1.55; }
.otsct .sct-meter { display: flex; flex-direction: column; gap: 5px; }
.otsct .sct-meter-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); gap: 8px; }
.otsct .sct-meter-track { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.otsct .sct-meter-track i { display: block; height: 100%; border-radius: 4px; }

/* ---------- social ---------- */
.otsct .sct-pvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.otsct .sct-pv { display: flex; flex-direction: column; gap: 9px; }
.otsct .sct-pv-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.otsct .sct-plat { width: 24px; height: 24px; border-radius: 6px; color: #ffffff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; font-family: Arial, sans-serif; }
.otsct .sct-pv-card { border: 1px solid var(--pv-bd, #dde3ea); border-radius: var(--pv-r, 8px); overflow: hidden; background: var(--pv-bg, #ffffff); box-shadow: 0 10px 24px rgba(11, 37, 69, .07); font-family: Arial, Helvetica, sans-serif; }
.otsct--dark .sct-pv-card { box-shadow: 0 16px 30px rgba(0, 0, 0, .3); }
.otsct .sct-pv-img { aspect-ratio: 1.91 / 1; background: var(--ogph); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.otsct .sct-pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.otsct .sct-pv-img .sct-ph { color: rgba(255, 255, 255, .75); font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .1em; text-align: center; padding: 10px; }
.otsct .sct-pv-size { position: absolute; top: 10px; left: 10px; background: #ffc13b; color: #3d2600; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.otsct .sct-pv-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; background: var(--pv-meta, transparent); }
.otsct .sct-pv-dom { font-size: 11.5px; color: var(--pv-mute, #606770); letter-spacing: .02em; }
.otsct .sct-pv-title { font-size: 15px; font-weight: 700; color: var(--pv-ink, #050505); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.otsct .sct-pv-desc { font-size: 13px; color: var(--pv-mute, #606770); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.otsct .sct-pv--fb { --pv-meta: #f0f2f5; }
.otsct .sct-pv--slack .sct-pv-card { border: 0; border-left: 4px solid #dddddd; border-radius: 0 6px 6px 0; box-shadow: none; padding-left: 12px; background: transparent; }
.otsct .sct-pv--slack .sct-pv-meta { order: -1; padding: 0 0 8px; }
.otsct .sct-pv--slack .sct-pv-img { border-radius: 8px; max-width: 360px; }
.otsct .sct-pv--slack .sct-pv-title { color: #1264a3; }
.otsct .sct-pv--x .sct-pv-card { --pv-r: 16px; }
.otsct .sct-pv--x .sct-pv-meta { padding: 8px 12px 10px; }
.otsct--dark .sct-pv-card { --pv-bd: #2a3446; --pv-bg: #1b1f23; --pv-ink: #e4e6eb; --pv-mute: #b0b3b8; }
.otsct--dark .sct-pv--fb { --pv-meta: #242526; }
.otsct--dark .sct-pv--x .sct-pv-card { --pv-bg: #000000; --pv-bd: #2f3336; }
.otsct--dark .sct-pv--slack .sct-pv-card { border-left-color: #3a3d42; }
.otsct--dark .sct-pv--slack .sct-pv-title { color: #1d9bd1; }
.otsct--dark .sct-plat { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.otsct .sct-plats { display: flex; flex-direction: column; gap: 10px; }
.otsct .sct-plat-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.otsct .sct-plat-row b { flex: 1; font-weight: 600; color: var(--ink); }
.otsct .sct-plat-row small { font-size: 12.5px; color: var(--muted); }
.otsct .sct-tagrow { display: flex; flex-direction: column; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--track); }
.otsct .sct-tagrow:last-child { border-bottom: 0; }
.otsct .sct-tagrow-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.otsct .sct-tagrow code { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; color: var(--ink); background: none; padding: 0; }
.otsct .sct-tagrow span { font-size: 13px; color: var(--muted); word-break: break-word; }

/* ---------- keywords ---------- */
.otsct .sct-kstats { display: flex; flex-wrap: wrap; gap: 8px; }
.otsct .sct-kstat { background: var(--panel2); border-radius: 12px; padding: 8px 14px; display: flex; flex-direction: column; }
.otsct .sct-kstat b { font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.otsct .sct-kstat span { font-size: 12px; color: var(--muted); }
.otsct .sct-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--panel2); border-radius: 14px; padding: 5px; align-self: flex-start; }
.otsct .sct-pill { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 700; transition: background .2s, color .2s; }
.otsct .sct-pill[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 37, 69, .12); }
.otsct--dark .sct-pill[aria-pressed="true"] { background: var(--acc-soft); color: #0a0e17; box-shadow: 0 6px 18px color-mix(in srgb, var(--sct-accent) 35%, transparent); }
.otsct .sct-bars { display: flex; flex-direction: column; gap: 12px; }
.otsct .sct-kbar { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 104px; align-items: center; gap: 14px; }
.otsct .sct-kbar-t { font-size: 15px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otsct .sct-kbar-track { height: 24px; background: var(--panel2); border-radius: 7px; overflow: hidden; }
.otsct .sct-kbar-track i { display: block; height: 100%; border-radius: 7px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.otsct .sct-kbar-v { font-size: 13px; color: var(--ink2); text-align: right; }
.otsct .sct-kbar-v b { color: var(--ink); }
.otsct .sct-place { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 32px); gap: 4px; align-items: center; }
.otsct .sct-place--head { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.otsct .sct-place--head span:first-child { text-align: left; }
.otsct .sct-place--row { padding: 8px 0; border-top: 1px solid var(--track); }
.otsct .sct-place--row > span:first-child { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow-wrap: break-word; word-break: normal; hyphens: auto; padding-right: 4px; }
.otsct .sct-place--row > span { display: grid; place-items: center; }
.otsct .sct-note { font-size: 13.5px; line-height: 1.5; color: var(--ink2); background: var(--acc-tint); border-radius: 12px; padding: 12px 14px; }
.otsct .sct-empty { font-size: 14px; color: var(--muted); padding: 10px 0; }

/* ---------- cloud ---------- */
.otsct .sct-cloud { background: var(--cloud-bg); border: 1px solid var(--line); border-radius: 18px; min-height: 380px; padding: 40px 28px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; gap: 4px 18px; }
.otsct .sct-cloud span { display: inline-block; line-height: 1.05; letter-spacing: -.015em; cursor: default; transition: transform .2s; }
.otsct .sct-cloud span:hover { transform: scale(1.08); }
.otsct .sct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.otsct .sct-btn--ghost { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.otsct .sct-btn--ghost:hover { border-color: var(--acc-soft); }
.otsct .sct-btn--solid { min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--acc); color: #ffffff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }


/* ---------- segmented controls ---------- */
.otsct .sct-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--panel2); border-radius: 12px; padding: 4px; }
.otsct .sct-seg .sct-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.otsct .sct-seg .sct-btn.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 37, 69, .12); }
.otsct--dark .sct-seg .sct-btn.is-on { background: var(--acc-soft); color: #0a0e17; }
.otsct .sct-btn--sm { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
.otsct .sct-btn--ghost.is-on { border-color: var(--acc-soft); color: var(--acc-text); background: var(--acc-tint); }
.otsct .sct-spin--dark { border-color: var(--line2); border-top-color: var(--acc); display: inline-block; flex: none; }
.otsct .sct-spin--lg { width: 30px; height: 30px; border-width: 3px; }

/* ---------- live x-ray ---------- */
.otsct .sct-xr { display: flex; flex-direction: column; gap: 12px; }
.otsct .sct-xr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.otsct .sct-xr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.otsct .sct-xr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 9px 0 5px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; }
.otsct .sct-xr-chip b { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px; border-radius: 6px; font: 800 12px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--k); background: var(--c); }
.otsct .sct-xr-chip i { font-style: normal; color: var(--muted); }
.otsct .sct-xr-chip:not(.is-on) { border-style: dashed; opacity: .55; }
.otsct .sct-xr-chip:not(.is-on) b { background: var(--line2); color: var(--panel); }
.otsct .sct-xr-chip:disabled { opacity: .3; cursor: default; }
.otsct .sct-xr-full { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; }
.otsct .sct-xr-full:hover { border-color: var(--acc-soft); }
.otsct .sct-xr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink2); }
.otsct .sct-xr-sum > i { font-style: normal; color: var(--line2); }
.otsct .sct-xr-sum b { color: var(--ink); }
.otsct .sct-xr-sum b.is-bad { color: var(--fix); }
.otsct .sct-xr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.otsct .sct-xr-view { position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2); min-height: 440px; box-shadow: 0 18px 40px rgba(11, 37, 69, .1); }
.otsct--dark .sct-xr-view { box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.otsct .sct-xr-view.is-m { background: #0b2545; }
.otsct .sct-xr-scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #ffffff; }
.otsct .sct-xr-view.is-m .sct-xr-scale { box-shadow: 0 0 0 10px #16365c; }
.otsct .sct-xr-scale iframe { display: block; border: 0; margin: 0; background: #ffffff; }
.otsct .sct-xr-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.otsct .sct-xr-load b { font-size: 16px; color: var(--ink); }
.otsct .sct-xr-load small { font-size: 13.5px; color: var(--muted); max-width: 420px; }
.otsct .sct-xr-load.is-err b { color: var(--fix); }
.otsct .sct-xr-list { list-style: none; display: grid; gap: 2px; max-height: 620px; overflow-y: auto; margin: 0; padding: 0 2px 0 0; }
.otsct .sct-xr-list li { margin: 0; padding: 0; }
.otsct .sct-xr-list li::marker { content: none; }
.otsct .sct-xr-list .sct-btn { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px 6px calc(8px + var(--lvl) * 12px); border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13.5px; text-align: left; }
.otsct .sct-xr-list .sct-btn:hover { background: var(--panel2); }
.otsct .sct-xr-list .sct-btn:disabled { cursor: default; }
.otsct .sct-xr-tag { flex: none; min-width: 30px; padding: 3px 0; border-radius: 5px; text-align: center; font: 800 11px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--k); background: var(--c); }
.otsct .sct-xr-t { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.otsct .sct-xr-list li.is-hid .sct-xr-tag { background: transparent; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.otsct .sct-xr-list li.is-hid .sct-xr-t { color: var(--muted); }
.otsct .sct-xr-list li.is-off { opacity: .4; }
.otsct .sct-xr-list .sct-chip { font-size: 10.5px; padding: 2px 7px; flex: none; }
.otsct .sct-xr.is-full { position: fixed; inset: 12px; z-index: 100000; margin: 0; padding: 16px; background: var(--panel); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(11, 37, 69, .45); }
.otsct .sct-xr.is-full .sct-xr-grid { flex: 1; min-height: 0; }
.otsct .sct-xr.is-full .sct-xr-list { max-height: calc(100vh - 170px); }
.otsct .sct-xr.is-full > .sct-hop-note { display: none; }
@media (max-width: 900px) {
	.otsct .sct-xr-grid { grid-template-columns: 1fr; }
	.otsct .sct-xr-list { max-height: 340px; }
	.otsct .sct-xr-full { margin-left: 0; }
}

/* ---------- spiral word cloud ---------- */
.otsct .sct-cloud-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.otsct .sct-cloudbox { position: relative; border-radius: 16px; background: radial-gradient(ellipse at 50% 45%, rgba(42, 160, 239, .07), transparent 65%), linear-gradient(180deg, var(--inset), var(--panel)); border: 1px solid var(--line2); min-height: 300px; overflow: hidden; padding: 8px; }
.otsct--dark .sct-cloudbox { background: radial-gradient(ellipse at 50% 45%, rgba(42, 160, 239, .16), transparent 65%), #0b1220; }
.otsct .sct-cloud-svg { width: 100%; height: auto; display: block; margin: 0 auto; }
.otsct .sct-wg { cursor: default; transition: opacity .2s; }
.otsct .sct-w { transform-box: fill-box; transform-origin: center; animation: sct-wpop .6s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 16ms); transition: filter .2s; }
.otsct .sct-cloud-svg:has(.sct-wg:hover) .sct-wg:not(:hover) { opacity: .25; }
.otsct .sct-wg:hover .sct-w { filter: drop-shadow(0 2px 6px rgba(11, 37, 69, .25)); }
@keyframes sct-wpop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }

/* ---------- empty state, CTA, errors ---------- */
.otsct .sct-intro { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.otsct .sct-intro-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.otsct .sct-intro-card b { font-size: 16px; color: var(--ink); }
.otsct .sct-intro-card span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.otsct .sct-error { display: flex; gap: 14px; align-items: flex-start; background: var(--fix-bg); color: var(--fix); border-radius: 16px; padding: 18px; font-size: 15px; font-weight: 500; }
.otsct .sct-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; background: var(--ring-bg); border: 1px solid var(--ring-bd); color: #ffffff; border-radius: 20px; padding: 22px 26px; }
.otsct .sct-cta-text { display: flex; flex-direction: column; gap: 4px; max-width: 680px; }
.otsct .sct-cta-text b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.otsct .sct-cta-text span { font-size: 14.5px; color: #c9d6e6; }
.otsct .sct-cta .sct-btn--solid { background: #ffffff; color: #0b2545; }
.otsct--dark .sct-cta .sct-btn--solid { background: var(--acc); color: #ffffff; }
.otsct .sct-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.otsct .sct-foot a { color: var(--muted); }

/* Break out of narrow theme content columns. */
.otsct.otsct--wide { width: min(1240px, calc(100vw - 32px)) !important; max-width: none !important; left: 50%; transform: translateX(-50%); }

/* ---------- admin ---------- */
.otsct-admin-wrap { margin-top: 18px; }
.otsct-admin-wrap .otsct { max-width: none; }
.otsct-admin-tip { margin-top: 14px; color: #50575e; }

@media (max-width: 640px) {
	.otsct .sct-kbar { grid-template-columns: minmax(0, 1fr) 86px; }
	.otsct .sct-kbar-track { grid-column: 1 / -1; grid-row: 2; }
	.otsct .sct-tab { flex-basis: calc(50% - 5px); min-height: 70px; }
	.otsct .sct-fix-where { display: none; }
	.otsct .sct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
