/* rebrandTool — design system (vanilla CSS, RTL-ready via logical properties) */

:root {
  --brand: #5b4bdb;
  --brand-600: #4b3cc4;
  --brand-50: #f1efff;
  --accent: #ff6b4a;
  --ok: #0f9d6b;
  --warn: #c98200;
  --bad: #d93a3a;
  --info: #2f6fde;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f2f2f8;
  --border: #e3e3ee;
  --text: #17172b;
  --muted: #61617a;
  --shadow: 0 1px 2px rgba(20, 20, 50, .06), 0 8px 24px rgba(20, 20, 50, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 248px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8b7dff;
    --brand-600: #a397ff;
    --brand-50: #24204a;
    --bg: #0f0f1a;
    --surface: #171726;
    --surface-2: #1f1f32;
    --border: #2c2c44;
    --text: #ececf6;
    --muted: #a0a0bd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand: #8b7dff;
  --brand-600: #a397ff;
  --brand-50: #24204a;
  --bg: #0f0f1a;
  --surface: #171726;
  --surface-2: #1f1f32;
  --border: #2c2c44;
  --text: #ececf6;
  --muted: #a0a0bd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

[lang="ur"] { --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", system-ui, sans-serif; }
[lang="ar"] { --font: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
[lang="hi"] { --font: "Noto Sans Devanagari", system-ui, sans-serif; }
[lang="bn"] { --font: "Noto Sans Bengali", system-ui, sans-serif; }
[lang="ur"] body { line-height: 2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg, canvas { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
bdi { unicode-bidi: isolate; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* layout */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-block-start: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-block-end: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.nav a { color: var(--muted); padding: .45rem .7rem; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { margin-inline-start: auto; display: flex; gap: .5rem; align-items: center; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; background: var(--surface); padding: .75rem 16px; border-block-end: 1px solid var(--border); margin: 0; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions .hide-sm { display: none; }
}

/* language switcher */
.lang { position: relative; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .35rem; display: none; grid-template-columns: repeat(2, minmax(140px, 1fr)); max-height: 70vh; overflow: auto; z-index: 60; }
.lang.open .lang-menu { display: grid; }
.lang-menu a { padding: .4rem .6rem; border-radius: 7px; color: var(--text); font-size: .92rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--brand-50); text-decoration: none; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 10px; padding: .62rem 1rem; font: inherit; font-weight: 600; cursor: pointer; background: var(--surface-2); color: var(--text); transition: transform .06s ease, background .15s ease, box-shadow .15s; line-height: 1.2; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--border); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-danger { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn-sm { padding: .38rem .65rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.35rem; font-size: 1.02rem; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

label { font-weight: 600; font-size: .88rem; display: block; margin-block-end: .3rem; }
.field { margin-block-end: .9rem; }
.hint { color: var(--muted); font-size: .8rem; margin-block-start: .25rem; }
.error-text { color: var(--bad); font-size: .82rem; margin-block-start: .25rem; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[type=color] { width: 44px; height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface); }
.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.input-group { display: flex; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input-group input, .input-group select { border: 0; box-shadow: none !important; border-radius: 0; }
.input-group .addon { display: grid; place-items: center; padding-inline: .75rem; background: var(--surface-2); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-group .btn { border-radius: 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); min-width: 0; }
.card h3 { display: flex; align-items: center; gap: .5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-end: .75rem; }
.card-head h3 { margin: 0; }
.card.flat { box-shadow: none; }
.kpi { display: flex; flex-direction: column; gap: .2rem; }
.kpi .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .label { color: var(--muted); font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.badge.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.pill-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.notice { border-radius: 12px; padding: .8rem 1rem; background: var(--brand-50); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .85rem; text-align: start; border-block-end: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-block-end: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-50) 45%, transparent); }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* tabs */
.tabs { display: flex; gap: .25rem; border-block-end: 1px solid var(--border); margin-block-end: 1rem; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); padding: .6rem .85rem; border-block-end: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-block-end-color: var(--brand); }

/* hero & marketing */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) 2.5rem; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero p.lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 720px; margin-inline: auto; }
.shortener { max-width: 820px; margin: 1.75rem auto 0; padding: .55rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shortener form { display: flex; gap: .5rem; }
.shortener input { border: 0; font-size: 1.05rem; padding: .85rem 1rem; }
.shortener input:focus { box-shadow: none; }
@media (max-width: 620px) { .shortener form { flex-direction: column; } }
.result-card { margin: 1rem auto 0; max-width: 820px; text-align: start; }
.short-url { font-size: 1.15rem; font-weight: 700; word-break: break-all; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.feature { display: flex; flex-direction: column; gap: .45rem; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.25rem; }
.feature.exclusive { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.exclusive-tag { color: var(--accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pricing-card { display: flex; flex-direction: column; gap: .75rem; }
.pricing-card.featured { border: 2px solid var(--brand); }
.price { font-size: 2.4rem; font-weight: 800; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-inline-end: .5rem; }
.check-list li.no::before { content: "–"; color: var(--muted); }

.site-footer { border-block-start: 1px solid var(--border); padding-block: 2.5rem; margin-block-start: 3rem; color: var(--muted); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid a { color: var(--muted); display: block; padding-block: .2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ads */
.ad-slot { margin: 1.25rem auto; text-align: center; min-height: 100px; max-width: 970px; border-radius: 12px; position: relative; contain: layout; }
.ad-slot[data-placement="sidebar"] { min-height: 250px; margin: 1rem 0 0; }
.ad-slot[data-placement="mobile_sticky"] { position: fixed; inset-inline: 0; bottom: 0; margin: 0; min-height: 60px; max-width: none; z-index: 50; background: var(--surface); border-block-start: 1px solid var(--border); border-radius: 0; padding-block: 4px; }
@media (min-width: 761px) { .ad-slot[data-placement="mobile_sticky"] { display: none; } }
.ad-label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: .2rem; }
.ad-house { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: var(--surface); min-height: 90px; }
.ad-close { position: absolute; inset-inline-end: 6px; top: 2px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.adblock-prompt { position: fixed; inset-inline: 16px; bottom: 16px; max-width: 520px; margin-inline: auto; z-index: 70; }

/* app shell */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-inline-end: 1px solid var(--border); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; }
.sidebar .logo { padding: .25rem .5rem 1rem; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .9rem .6rem .3rem; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .93rem; }
.side-link:hover { background: var(--surface-2); text-decoration: none; }
.side-link[aria-current="page"] { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.side-link .ico { width: 20px; text-align: center; opacity: .85; }
.side-link .pin { margin-inline-start: auto; font-size: .7rem; color: var(--accent); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; min-height: 60px; }
.content { padding: 1.25rem; width: 100%; max-width: 1320px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: 1.25rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.quick-pins { display: flex; gap: .35rem; flex-wrap: wrap; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .62rem; display: grid; place-items: center; padding-inline: 3px; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 80; transform: translateX(-105%); transition: transform .2s; }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  .sidebar.open { transform: none !important; box-shadow: var(--shadow); }
}
@media (min-width: 961px) { .only-mobile { display: none !important; } }

/* generative UI widgets */
.widget-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; grid-auto-flow: dense; }
.widget { grid-column: span 1; }
.widget[data-span="2"] { grid-column: span 2; }
@media (max-width: 1100px) { .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .widget-grid { grid-template-columns: 1fr; } .widget[data-span="2"] { grid-column: span 1; } }
.widget .why { font-size: .7rem; color: var(--muted); }
.widget[draggable="true"] { cursor: grab; }
.widget.dragging { opacity: .5; }

/* link list */
.link-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .9rem 1rem; border-block-end: 1px solid var(--border); align-items: center; }
.link-item:last-child { border-block-end: 0; }
.link-item .slug { font-weight: 700; color: var(--text); word-break: break-all; }
.link-item .dest { color: var(--muted); font-size: .85rem; }
.link-item .meta { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.link-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .link-item { grid-template-columns: 1fr; } .link-actions { justify-content: flex-start; } }

/* modal & drawer */
dialog { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); width: min(640px, 100% - 24px); max-height: 92vh; }
dialog::backdrop { background: rgba(10, 10, 25, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; border-block-end: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.15rem; overflow-y: auto; max-height: calc(92vh - 130px); }
.modal-foot { padding: .9rem 1.15rem; border-block-start: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .5rem; }
details.advanced summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-block: .5rem; }

/* toast */
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; display: flex; flex-direction: column; gap: .5rem; z-index: 100; max-width: min(380px, 100% - 36px); }
.toast { background: var(--text); color: var(--bg); padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; animation: rise .2s ease; }
.toast.error { background: var(--bad); color: #fff; }
.toast.success { background: var(--ok); color: #fff; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* charts */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 10px; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: .75rem; padding: .3rem .5rem; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .1s; }
.bars { display: grid; gap: .45rem; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.bar-track { background: var(--surface-2); border-radius: 99px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 99px; }
.heatmap { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: .6rem; color: var(--muted); }
.heatmap div.cell { aspect-ratio: 1; border-radius: 3px; background: var(--brand); }
.score-ring { --v: 0; --c: var(--ok); width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-2) 0); position: relative; flex: none; }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-size: 1.7rem; font-weight: 800; }
.score-ring small { position: relative; display: block; font-size: .7rem; color: var(--muted); text-align: center; margin-block-start: -6px; }

/* social preview mocks */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sp { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); font-size: .85rem; }
.sp .sp-img { aspect-ratio: 1.91; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
.sp .sp-body { padding: .6rem .75rem; }
.sp .sp-domain { text-transform: uppercase; font-size: .7rem; color: var(--muted); }
.sp .sp-title { font-weight: 700; margin-block: .15rem; }
.sp .sp-desc { color: var(--muted); font-size: .8rem; }
.sp-label { font-size: .75rem; font-weight: 700; color: var(--muted); margin-block-end: .35rem; }
.sp.whatsapp { display: grid; grid-template-columns: 90px 1fr; background: #e7fbe0; color: #111; }
.sp.whatsapp .sp-img { aspect-ratio: 1; }
.sp.slack { border-inline-start: 4px solid #d0d0d8; border-radius: 4px; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-block-end: 1px dashed var(--border); }
.check-row:last-child { border-block-end: 0; }
.check-row .st { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.st.pass { background: var(--ok); } .st.warn { background: var(--warn); } .st.fail { background: var(--bad); }

/* graph */
.graph-wrap { position: relative; height: min(70vh, 620px); border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--surface), var(--surface-2)); border: 1px solid var(--border); }
.graph-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.graph-legend { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; font-size: .75rem; display: grid; gap: .2rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: .35rem; vertical-align: middle; }
.graph-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: .35rem .55rem; border-radius: 8px; font-size: .75rem; opacity: 0; transform: translate(12px, 12px); }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* auth */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 2rem 16px; }
.auth-card { width: min(440px, 100%); }
.profession-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.profession-grid label { border: 1px solid var(--border); border-radius: 10px; padding: .6rem; display: flex; gap: .45rem; align-items: center; font-weight: 500; cursor: pointer; margin: 0; }
.profession-grid input:checked + span { color: var(--brand); font-weight: 700; }

/* misc */
.code-block { background: #10101c; color: #e6e6f0; border-radius: 12px; padding: 1rem; overflow-x: auto; font-family: var(--mono); font-size: .82rem; direction: ltr; text-align: left; }
.kbd { font-family: var(--mono); font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); border-block-end-width: 2px; border-radius: 6px; padding: .05rem .35rem; }
.qr-box { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; border: 1px solid var(--border); }
.qr-box svg { width: 220px; height: 220px; display: block; }
.suggestion { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.suggestion .score { font-weight: 800; color: var(--brand); min-width: 2.5em; text-align: center; }
.finding { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; padding: .75rem 0; border-block-end: 1px solid var(--border); }
.finding:last-child { border-block-end: 0; }
.dir-preview { border: 1px dashed var(--border); border-radius: 10px; padding: .75rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.status-dot.ok { background: var(--ok); } .status-dot.warning { background: var(--warn); } .status-dot.down, .status-dot.dead { background: var(--bad); }
.upgrade-cta { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--accent) 70%, var(--brand))); color: #fff; border-radius: var(--radius); padding: 1rem; }
.upgrade-cta a { color: #fff; font-weight: 700; }
.lazy-section { content-visibility: auto; contain-intrinsic-size: 1px 600px; }
