/* URLMode UI — clean, fast, trustworthy. Brand green #00bf63 (from the logo) on ink navy. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/Inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/Inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/PlusJakartaSans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f8fb; --bg-2: #eef2f6; --surface: #ffffff; --surface-2: #f3f6f9;
  --line: #e3e8ef; --line-2: #cfd7e2; --text: #0b1220; --muted: #4e5a6e; --faint: #626e83;
  --brand: #00bf63; --brand-600: #00a656; --brand-ink: #00804a; --brand-soft: #e6f9ef; --brand-ring: rgba(0, 191, 99, .22); --on-brand: #04170d;
  --ink: #0b1220; --accent: #2f6bff;
  --pass: #0f9d58; --warn: #c27a00; --fail: #d93838; --info: #2f6bff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -8px rgba(16, 24, 40, .1);
  --shadow-lg: 0 24px 60px -20px rgba(11, 18, 32, .25);
  --radius: 16px; --radius-sm: 10px;
  --head: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0f1a; --bg-2: #0d1422; --surface: #111a2b; --surface-2: #162236;
  --line: #1f2c42; --line-2: #2b3b56; --text: #e8edf5; --muted: #a8b3c5; --faint: #8794aa;
  --brand: #19d27a; --brand-600: #12bd6c; --brand-ink: #3ee495; --brand-soft: rgba(25, 210, 122, .1); --brand-ring: rgba(25, 210, 122, .25); --on-brand: #03140b;
  --accent: #6d9bff; --pass: #34d399; --warn: #fbbf24; --fail: #f87171; --info: #6d9bff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-ring); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
.ic.xs { width: 13px; height: 13px; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.section { padding-top: 64px; padding-bottom: 64px; }

/* type */
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.display { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.display.sm { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 44rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .76rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 12px; }
.mark { color: var(--brand-ink); }
.link, .link-gold { color: var(--brand-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover, .link-gold:hover { text-decoration: underline; text-underline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font-weight: 650; font-size: .97rem; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-gold { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -6px rgba(0, 191, 99, .55); }
.btn-primary:hover, .btn-gold:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
[data-theme="dark"] .btn-dark { background: #e8edf5; color: #0b1220; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 7px 13px; font-size: .86rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--brand-ink); border-color: var(--brand); }

/* tiles */
.tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; color: var(--brand-ink); background: var(--brand-soft); }
.tile .ic { width: 22px; height: 22px; }
.tile.lg { width: 58px; height: 58px; border-radius: 16px; }
.tile.lg .ic { width: 28px; height: 28px; }
.tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.tile.sm .ic { width: 18px; height: 18px; }
.tile.xs { width: 28px; height: 28px; border-radius: 8px; }
.tile.xs .ic { width: 15px; height: 15px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-link { background: none; border: 0; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: .15s; }
.nav-link:hover, .nav-link.active, .nav-drop.open .nav-link { color: var(--text); background: var(--surface-2); }
.nav-drop { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -14px; width: min(700px, 92vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-drop.open .mega, .nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item strong { display: block; font-size: .93rem; }
.mega-item small { color: var(--muted); font-size: .8rem; line-height: 1.45; display: block; }
.mega-all { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--brand-ink); font-weight: 650; font-size: .9rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--faint); cursor: pointer; min-width: 190px; transition: .15s; }
.search-btn:hover { border-color: var(--line-2); color: var(--muted); }
.search-btn span { flex: 1; text-align: left; font-size: .9rem; }
kbd { font: 600 .7rem var(--sans); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--faint); background: var(--surface); }
.menu-btn { display: none; }
.mobile-menu { position: fixed; top: 68px; left: 0; right: 0; z-index: 39; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 550; }
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .ic { color: var(--brand-ink); }
.mobile-menu .mm-cta { display: flex; gap: 8px; padding: 10px 4px 0; }
.mobile-menu .mm-cta .btn { flex: 1; color: inherit; }
.mobile-menu .mm-cta .btn-primary { color: var(--on-brand); }

/* hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 12% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), radial-gradient(600px 320px at 95% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .display { max-width: 17ch; }
.hero .lead { margin: 18px auto 0; text-align: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.badge-pill b { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 2px 9px; font-size: .74rem; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { color: var(--brand-ink); width: 18px; height: 18px; }

/* shortener widget */
.shortener { width: 100%; max-width: 760px; margin: 32px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; text-align: left; }
.sh-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin-bottom: 10px; }
.sh-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 11px; border: 0; background: none; font-weight: 650; color: var(--muted); cursor: pointer; transition: .15s; }
.sh-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.sh-tab[aria-selected="true"] .ic { color: var(--brand-ink); }
.sh-form { display: flex; gap: 8px; padding: 4px; }
.sh-input { flex: 1; min-width: 0; position: relative; }
.sh-input .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.shortener .sh-input input { width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 16px 0 44px; font-size: 1.03rem; outline: none; transition: .15s; }
.shortener .sh-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.sh-form .btn { height: 56px; padding: 0 26px; border-radius: 14px; font-size: 1.02rem; }
.sh-extra { display: flex; gap: 8px; padding: 4px; flex-wrap: wrap; align-items: center; }
.sh-extra > input { flex: 1 1 180px; height: 44px; }
.sh-extra label.color { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); padding: 0 6px; }
.sh-extra input[type=color] { width: 38px; height: 38px; padding: 2px; border-radius: 9px; }
.sh-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px 6px; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.sh-meta .quota { display: inline-flex; align-items: center; gap: 8px; }
.sh-meta .quota b { color: var(--text); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.dots i.used { background: var(--line-2); }
.sh-result { margin: 6px 4px 4px; padding: 16px; border-radius: 16px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; animation: rise .3s ease; }
.sh-result.with-qr { grid-template-columns: auto 1fr; }
.sh-short { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-short a { font: 750 1.3rem var(--head); color: var(--brand-ink); word-break: break-all; }
.sh-long { color: var(--muted); font-size: .86rem; word-break: break-all; margin-top: 4px; }
.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sh-qr canvas { width: 150px; height: 150px; border-radius: 12px; background: #fff; display: block; box-shadow: var(--shadow-sm); }
.sh-msg { margin: 6px 4px 4px; }
.sh-limit { margin: 6px 4px 4px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
[data-theme="dark"] .sh-limit { background: #1b2a44; }
.sh-limit p { margin: 0; color: #d9e1ee; max-width: 440px; font-size: .95rem; }
.sh-limit strong { color: #fff; display: block; font-family: var(--head); font-size: 1.1rem; margin-bottom: 2px; }
.sh-limit .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-limit .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* sections */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 42rem; }
.grid { display: grid; gap: 14px; }
.tools-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.posts-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.card, .tool-card, .feature-card, .post-card, .side-card, .tool-card-form, .result-section, .admin-card, .answer-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tool-card-body strong { font-size: .97rem; font-weight: 650; line-height: 1.35; }
.tool-card-body small { color: var(--muted); font-size: .85rem; line-height: 1.5; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card-go { color: var(--faint); transition: .15s; margin-top: 2px; }
.tool-card:hover .tool-card-go { color: var(--brand-ink); transform: translateX(2px); }
.badge { position: absolute; top: -8px; right: 12px; font: 700 .64rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.feature-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.feature-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card strong { font: 700 1.06rem var(--head); margin-top: 8px; }
.feature-card small { color: var(--muted); flex: 1; line-height: 1.55; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 550; cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.cat-block { margin-bottom: 44px; }
.cat-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat-title h3 { margin: 0; font-size: 1.35rem; }
.cat-title .count { font-size: .78rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; }
.cat-title .link { margin-left: auto; font-size: .9rem; }
.empty-filter { text-align: center; color: var(--muted); padding: 30px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step-card { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); counter-increment: st; }
.step-card::before { content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 800 .95rem var(--head); margin-bottom: 12px; }
.step-card h3 { margin-bottom: 6px; }
.step-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-grid h3 { margin: 14px 0 6px; }
.why-grid p { color: var(--muted); margin: 0; font-size: .93rem; }
.cta { background: var(--ink); color: #fff; border-radius: 24px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 191, 99, .45), transparent 70%); z-index: -1; }
[data-theme="dark"] .cta { background: #13213a; }
.cta h2 { margin: 0 0 6px; color: #fff; }
.cta p { margin: 0; color: #c7d1e0; max-width: 34rem; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* tool page */
.tool-hero { padding: 32px 0 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: .85rem; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs span { color: var(--muted); }
.tool-title { display: flex; gap: 18px; align-items: flex-start; }
.tool-title h1 { margin: 0 0 6px; font-size: clamp(1.75rem, 3.6vw, 2.45rem); }
.tool-title .lead { font-size: 1.04rem; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 22px; padding-bottom: 64px; align-items: start; }
.tool-card-form { padding: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 10px; }
.counter { font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--fail); }
input[type=text], input[type=url], input[type=number], input[type=search], input[type=password], input[type=email], select, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; font-size: .98rem; }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23536074' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
input[type=color] { width: 100%; height: 46px; padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-weight: 500 !important; justify-content: flex-start !important; }
.check input { position: absolute; opacity: 0; }
.check-box { width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: .15s; flex: none; }
.check input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check-box::after { content: ""; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .check-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.form-actions.center { justify-content: center; }
.hint { color: var(--faint); font-size: .86rem; margin: 14px 0 0; display: flex; align-items: center; gap: 6px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4, 23, 13, .25); border-top-color: var(--on-brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.answer-box { margin-top: 20px; padding: 20px 22px 20px 24px; border-left: 4px solid var(--brand); }
.answer-box h2 { font-size: 1.12rem; margin: 0 0 6px; }
.answer-box p { margin: 0; color: var(--text); }

/* results */
.result { margin-top: 20px; display: grid; gap: 16px; animation: rise .35s ease; }
.result-section { padding: 20px; overflow: hidden; }
.result-section > h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result-tools { display: flex; gap: 6px; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--sans); letter-spacing: 0; text-transform: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: .15s; }
.mini-btn:hover { color: var(--brand-ink); border-color: var(--brand); }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.kv th { color: var(--muted); font-weight: 500; width: 34%; padding-right: 16px; }
.kv td { word-break: break-word; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.data th { text-align: left; font: 650 .74rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface-2); }
.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); word-break: break-word; vertical-align: middle; }
.data tr:hover td { background: var(--surface-2); }
.data img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.data a { color: var(--brand-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 0; }
.pill.pass { color: var(--pass); background: color-mix(in srgb, var(--pass) 12%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.fail { color: var(--fail); background: color-mix(in srgb, var(--fail) 12%, transparent); }
.pill.info { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
pre.code { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font: .86rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; }
.text-block { white-space: pre-wrap; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .87rem; cursor: pointer; transition: .15s; }
.tag:hover { border-color: var(--brand); color: var(--brand-ink); }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.images figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; }
.images img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-2); }
.images.single { grid-template-columns: minmax(0, 520px); }
.images figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: .83rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.stat span { display: block; font: 600 .74rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.stat strong { display: block; font: 750 1.55rem var(--head); line-height: 1.25; margin-top: 4px; word-break: break-word; font-variant-numeric: tabular-nums; }
.score { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring { --p: 0; --c: var(--brand); width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring b { font: 800 2.6rem var(--head); line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { display: block; text-align: center; color: var(--faint); font-size: .75rem; }
.score-big { font: 800 clamp(1.8rem, 5vw, 2.6rem) var(--head); line-height: 1.15; word-break: break-all; }
.gold-text { color: var(--brand-ink); }
.score h4 { margin: 0 0 4px; font-size: 1.45rem; }
.score p { margin: 0; color: var(--muted); }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.gauge { display: grid; justify-items: center; gap: 10px; }
.gauge .ring { width: 104px; height: 104px; }
.gauge .ring b { font-size: 2rem; }
.gauge.pass .ring b { color: var(--pass); } .gauge.warn .ring b { color: var(--warn); } .gauge.fail .ring b { color: var(--fail); }
.gauge > span { font: 650 .95rem var(--head); }
.gauge-legend { text-align: center; margin: 14px 0 0; }
.metrics-wrap.has-shot { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: start; }
.stat.metric { border-left: 4px solid var(--line); }
.stat.metric.pass { border-left-color: var(--pass); } .stat.metric.pass strong { color: var(--pass); }
.stat.metric.warn { border-left-color: var(--warn); } .stat.metric.warn strong { color: var(--warn); }
.stat.metric.fail { border-left-color: var(--fail); } .stat.metric.fail strong { color: var(--fail); }
.final-shot { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.filmstrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.filmstrip figure { margin: 0; flex: 0 0 auto; text-align: center; }
.filmstrip img { display: block; height: 150px; width: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }
.filmstrip figcaption { font-size: .78rem; color: var(--faint); margin-top: 4px; font-variant-numeric: tabular-nums; }
.checks { display: grid; }
.check-row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: 1px; }
.check-row .dot.pass { background: color-mix(in srgb, var(--pass) 15%, transparent); color: var(--pass); }
.check-row .dot.warn { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.check-row .dot.fail { background: color-mix(in srgb, var(--fail) 15%, transparent); color: var(--fail); }
.check-row .dot.info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.check-row strong { display: block; font-size: .94rem; }
.check-row small { color: var(--muted); word-break: break-word; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid; font-size: .93rem; }
.alert .ic { margin-top: 2px; }
.alert span { color: var(--text); }
.alert-info { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 7%, var(--surface)); }
.alert-success { color: var(--pass); border-color: color-mix(in srgb, var(--pass) 30%, transparent); background: color-mix(in srgb, var(--pass) 7%, var(--surface)); }
.alert-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); margin-bottom: 16px; }
.alert-error { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 30%, transparent); background: color-mix(in srgb, var(--fail) 7%, var(--surface)); }
.serp { padding: 18px 20px; border-radius: var(--radius-sm); background: #fff; color: #202124; font-family: Arial, sans-serif; border: 1px solid var(--line); }
.serp .s-site { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.serp .s-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; color: #5f6368; flex: none; }
.serp .s-url { color: #4d5156; font-size: 12px; word-break: break-all; }
.serp .s-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin: 6px 0 3px; display: block; word-break: break-word; }
.serp .s-desc { color: #4d5156; font-size: 14px; line-height: 1.58; }
.diff { white-space: pre-wrap; word-break: break-word; line-height: 1.8; font-size: .95rem; }
.diff ins { background: color-mix(in srgb, var(--pass) 20%, transparent); text-decoration: none; border-radius: 4px; padding: 1px 2px; }
.diff del { background: color-mix(in srgb, var(--fail) 20%, transparent); border-radius: 4px; padding: 1px 2px; }
.preview-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: block; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-box img, .qr-box canvas { max-width: 100%; border-radius: 12px; background: #fff; padding: 10px; }
.card-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 520px; background: var(--surface-2); }
.card-preview .cp-img { aspect-ratio: 1.91 / 1; background: var(--bg-2) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.card-preview .cp-body { padding: 12px 14px; }
.card-preview .cp-body small { color: var(--faint); text-transform: uppercase; font-size: .72rem; }
.card-preview .cp-body strong { display: block; margin: 2px 0; }
.card-preview .cp-body p { margin: 0; color: var(--muted); font-size: .88rem; }

/* sidebar */
.tool-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.side-card { padding: 20px; }
.side-card h2 { font-size: 1.05rem; margin-bottom: 10px; }
.side-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 10px; font-size: .9rem; transition: background .15s; }
.side-list a:hover { background: var(--surface-2); color: var(--brand-ink); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.side-cta { background: var(--ink); color: #fff; border: 0; }
[data-theme="dark"] .side-cta { background: #13213a; }
.side-cta h2 { color: #fff; }
.side-cta p { color: #c7d1e0; font-size: .9rem; margin: 0 0 14px; }
.side-cta .btn { width: 100%; }

/* prose */
.prose { color: var(--muted); font-size: 1.01rem; }
.prose > :first-child { margin-top: 0; }
.tool-content { margin-top: 34px; }
.prose h2 { color: var(--text); font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { color: var(--text); font-size: 1.14rem; margin-top: 1.5em; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font: .86rem/1.6 var(--mono); color: var(--text); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.prose blockquote { margin: 1.5em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); margin: 0; }
.steps li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 650; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* blog */
.post-card { overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.post-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card img, .post-ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); color: var(--brand-ink); }
.post-ph .ic { width: 40px; height: 40px; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.post-body time, .post-head time { color: var(--brand-ink); font-size: .8rem; font-weight: 650; }
.post-body strong { font: 750 1.2rem/1.3 var(--head); }
.post-body small { color: var(--muted); }
.post-head { margin-bottom: 26px; }
.post-hero { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.empty-state { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state.big { padding: 100px 20px; }
.empty-state .lead { text-align: center; margin: 0 auto; }
.other-cats { margin-top: 48px; }

/* auth + account */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 1.75rem; margin: 0; }
.auth-card .sub { margin: -6px 0 4px; color: var(--muted); }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; color: var(--muted); font-size: .93rem; }
.perks { display: grid; gap: 8px; margin: 2px 0 4px; padding: 0; list-style: none; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); }
.perks .ic { color: var(--brand-ink); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acct-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.acct-head h1 { margin: 0; font-size: 2rem; }
.acct-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 12px; }
.acct-bar form { display: flex; gap: 8px; }
.acct-bar input[type=search] { width: 240px; padding: 9px 12px; }
.links-list { display: grid; gap: 10px; }
.link-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; }
.link-row .lr-main { min-width: 0; }
.link-row .lr-short { font: 700 1.02rem var(--head); color: var(--brand-ink); word-break: break-all; }
.link-row .lr-long { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-row .lr-title { font-weight: 650; font-size: .93rem; }
.link-row .lr-clicks { text-align: right; font: 750 1.2rem var(--head); }
.link-row .lr-clicks small { display: block; font: 500 .74rem var(--sans); color: var(--faint); }
.link-row .lr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-row form { display: inline; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.chart-col i { display: block; width: 100%; min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--brand); }
.chart-col small { font-size: .62rem; color: var(--faint); white-space: nowrap; height: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-modal { position: fixed; inset: 0; z-index: 85; background: rgba(5, 10, 20, .55); display: grid; place-items: center; padding: 16px; }
.qr-modal .card { padding: 24px; max-width: 360px; width: 100%; text-align: center; display: grid; gap: 12px; justify-items: center; }
.qr-modal canvas { width: 240px; height: 240px; border-radius: 12px; background: #fff; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

.ad-slot { margin: 22px auto; text-align: center; overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-bottom: 38px; }
.footer-brand p { color: var(--muted); margin: 14px 0; max-width: 300px; font-size: .93rem; }
.footer-brand .brand-logo { height: 46px; }
.site-footer h3 { font: 700 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer li a { color: var(--muted); font-size: .9rem; }
.site-footer li a:hover { color: var(--brand-ink); }
.site-footer .more { color: var(--brand-ink); font-weight: 600; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: var(--brand-ink); border-color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; flex-wrap: wrap; }

/* palette */
.palette { position: fixed; inset: 0; z-index: 80; background: rgba(5, 10, 20, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette-box { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .18s ease; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input .ic { color: var(--brand-ink); }
.palette-input input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font-size: 1.05rem; padding: 4px 0; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow-y: auto; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.palette-list a.sel, .palette-list a:hover { background: var(--surface-2); }
.palette-list li > a > div { min-width: 0; }
.palette-list strong { display: block; font-size: .94rem; }
.palette-list small { color: var(--muted); font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list .pc { margin-left: auto; font-size: .72rem; color: var(--brand-ink); white-space: nowrap; font-weight: 600; }
.palette-list .none { padding: 24px; text-align: center; color: var(--muted); }

/* cookie + toast */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.cookie p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.cookie a { color: var(--brand-ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); transition: .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 8px; }
.admin-brand .brand-logo { height: 38px; }
.admin-brand small { font: 700 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); padding-left: 3px; }
.admin-nav nav { display: grid; gap: 2px; }
.admin-nav nav a, .admin-nav-foot a, .admin-nav-foot button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .91rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.admin-nav nav a:hover, .admin-nav-foot a:hover, .admin-nav-foot button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.admin-nav-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-main { padding: 32px clamp(16px, 4vw, 44px) 60px; max-width: 1180px; width: 100%; }
.admin-card.pad { padding: 22px; }
.admin-card h2 { font-size: 1.2rem; }
.admin-form { display: grid; gap: 16px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
textarea.mono { font-family: var(--mono); font-size: .85rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; padding: 32px; display: grid; gap: 16px; }
.login-logo { margin: 0 0 4px; }
.login-logo .brand-logo { height: 52px; }

/* responsive */
@media (max-width: 1080px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-side { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .search-btn span, .search-btn kbd, .header-actions .hide-sm { display: none; }
  .search-btn { min-width: 0; width: 40px; padding: 0; justify-content: center; background: var(--surface); }
  .menu-btn { display: inline-grid; }
  .steps-row { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; }
  .admin-nav nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .admin-cols, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .hero { padding: 40px 0 36px; }
  .brand-logo { height: 36px; }
  .shortener { border-radius: 18px; padding: 8px; }
  .sh-form { flex-direction: column; }
  .sh-form .btn { width: 100%; height: 52px; }
  .shortener .sh-input input { height: 52px; }
  .sh-result, .sh-result.with-qr { grid-template-columns: 1fr; justify-items: start; }
  .fields { grid-template-columns: 1fr; }
  .tool-card-form { padding: 18px; }
  .tool-title { flex-direction: column; gap: 12px; }
  .tool-side { grid-template-columns: 1fr; }
  .result-section { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 28px 22px; }
  .cat-title .link { display: none; }
  .form-actions .btn { flex: 1; }
  .ring { width: 116px; height: 116px; }
  .ring b { font-size: 2.1rem; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge .ring { width: 92px; height: 92px; }
  .gauge .ring b { font-size: 1.75rem; }
  .metrics-wrap.has-shot { grid-template-columns: 1fr; }
  .final-shot { max-width: 220px; justify-self: center; }
  .filmstrip img { height: 120px; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .link-row .lr-icon { display: none; }
  .link-row .lr-actions { grid-column: 1 / -1; }
  .acct-bar input[type=search] { width: 100%; }
  .auth-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* v2.1 shortener options, QR designer, modal */
.sh-type select { height: 56px; border-radius: 14px; border: 1.5px solid var(--line-2); min-width: 170px; font-weight: 600; }
.sh-static { padding: 4px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-grid textarea { grid-column: 1 / -1; min-height: 64px; }
.sh-grid .check { padding: 0 6px; }
.sh-more { margin: 6px 4px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sh-more > summary { cursor: pointer; padding: 11px 14px; font-weight: 650; font-size: .92rem; display: flex; align-items: center; gap: 8px; list-style: none; color: var(--muted); }
.sh-more > summary::-webkit-details-marker { display: none; }
.sh-more > summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--brand-ink); }
.sh-more[open] > summary::after { content: "–"; }
.sh-more[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.sh-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 14px; }
.sh-opts .field label { font-size: .8rem; }
.sh-opts input, .sh-opts select { padding: 9px 11px; font-size: .92rem; }
.sh-opts input[type=color] { height: 40px; }
.sh-opts input[type=file] { padding: 7px; font-size: .82rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.prefix-input span { padding: 9px 4px 9px 10px; color: var(--faint); font-size: .9rem; background: var(--surface-2); white-space: nowrap; }
.prefix-input input { border: 0 !important; border-radius: 0; box-shadow: none !important; min-width: 0; }
.sh-qrdesign { display: grid; grid-template-columns: 1fr 200px; border-top: 1px solid var(--line); }
.sh-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; border-left: 1px solid var(--line); }
.sh-preview canvas { width: 160px; height: auto; border-radius: 10px; box-shadow: var(--shadow-sm); }
.sh-preview small { color: var(--faint); font-size: .75rem; }
.sh-qr canvas { width: 150px; height: auto; }
.sh-body { min-width: 0; }
.mini-select { padding: 6px 30px 6px 10px !important; font-size: .84rem !important; width: auto !important; border-radius: 10px !important; }
.qr-modal .card { position: relative; max-width: 440px; padding: 28px; display: grid; gap: 12px; justify-items: center; text-align: center; animation: rise .2s ease; }
.qr-modal .card h2 { font-size: 1.35rem; margin: 4px 0 0; }
.qr-modal .card p { margin: 0; color: var(--muted); }
.qr-modal .card .perks { text-align: left; justify-self: stretch; }
.qr-modal .card .btn-lg { width: 100%; }
.qr-modal canvas { width: 260px; height: auto; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.lr-badges { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 640px) {
  .sh-type select { height: 48px; width: 100%; }
  .sh-grid { grid-template-columns: 1fr; }
  .sh-qrdesign { grid-template-columns: 1fr; }
  .sh-preview { border-left: 0; border-top: 1px solid var(--line); }
}

/* blog */
.post-hero-wrap { padding: 34px 0 10px; }
.post-title { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.03em; margin: 0 0 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .author { font-weight: 650; color: var(--text); }
.post-meta .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: inline-grid; place-items: center; }
.post-cover { max-width: 1000px; margin: 22px auto 0; }
.post-cover img { width: 100%; height: auto; border-radius: 20px; display: block; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.post-cover figcaption { font-size: .8rem; color: var(--faint); text-align: right; margin-top: 8px; }
.post-cover figcaption a { color: var(--muted); text-decoration: underline; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding-top: 30px; padding-bottom: 40px; align-items: start; max-width: 1140px; }
.post-body-content { font-size: 1.06rem; line-height: 1.75; }
.post-body-content > p:first-of-type { font-size: 1.12rem; color: var(--text); }
.video-embed { margin: 1.8em 0; }
.yt-lite { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000 center / cover no-repeat; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; }
.yt-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .45)); }
.yt-play { width: 76px; height: 54px; border-radius: 16px; background: #f00; color: #fff; display: grid; place-items: center; z-index: 1; transition: transform .15s; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.yt-play .ic { width: 28px; height: 28px; fill: #fff; stroke: #fff; }
.yt-lite:hover .yt-play { transform: scale(1.08); }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }
.video-embed figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.video-embed figcaption a { color: var(--brand-ink); }
.post-cta h2 { font-size: 1.4rem; }
.post-featured { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; transition: .15s; }
.post-featured:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.post-featured img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; display: block; }
.post-featured .post-body { padding: 30px; justify-content: center; gap: 10px; }
.post-featured .post-body strong { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.post-card img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
.toc ol li { margin: .2em 0; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .post-featured { grid-template-columns: 1fr; } }
.sh-form:has([data-url-input][hidden]) .sh-type { flex: 1; }
.sh-form:has([data-url-input][hidden]) .sh-type select { width: 100%; }
.prose .cta h2 { color: #fff; margin-top: 0; }
.prose .cta p { color: #c7d1e0; }
.prose .cta a.btn { text-decoration: none; color: var(--on-brand); }

/* ---------- Website Speed Test ---------- */
.st-app { padding-top: 18px; }
.st-form, .st-progress, .st-results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.st-form { padding: 22px; }
.st-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.st-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.st-input > .ic { color: var(--faint); flex: none; }
.st-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 4px; font: 500 1.05rem var(--sans); color: var(--text); box-shadow: none; }
.st-input .btn { flex: none; }
.st-note { margin: 12px 2px 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.st-progress { margin-top: 18px; padding: 22px; }
.st-prog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.st-prog-head > div { display: flex; align-items: center; gap: 10px; }
.st-prog-head .spinner { border-color: var(--brand-ring); border-top-color: var(--brand); }
.st-stage { font: 700 1.05rem var(--head); }
.st-time { font: 600 .9rem var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.st-target { margin: 6px 0 16px 28px; color: var(--muted); font-size: .88rem; word-break: break-all; }
.st-bars { display: grid; gap: 12px; }
.st-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; align-items: center; gap: 12px; font-size: .9rem; }
.st-bar > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st-bar > b { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-track { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.st-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-600), var(--brand)); background-size: 200% 100%; animation: st-flow 1.4s linear infinite; transition: width .25s ease-out; }
.st-bar.ok .st-track i { animation: none; }
.st-bar.ok > b { color: var(--pass); }
.st-bar.err .st-track i { background: var(--fail); animation: none; }
.st-bar.err > b { color: var(--fail); }
@keyframes st-flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
.st-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--faint); }
.st-steps li { display: flex; align-items: center; gap: 10px; }
.st-steps li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); box-sizing: border-box; }
.st-steps li.active { color: var(--text); font-weight: 600; }
.st-steps li.active::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.st-steps li.done { color: var(--muted); }
.st-steps li.done::before { border: 0; background: var(--pass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.st-error { margin-top: 18px; }
.st-results { margin-top: 18px; overflow: hidden; }
.st-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.st-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.st-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 9px; background: transparent; font: 650 .95rem var(--head); color: var(--muted); cursor: pointer; }
.st-tabs button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-panel { padding: 8px 0 0; }
.st-wait { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 16px; color: var(--muted); }
.st-wait .spinner { border-color: var(--brand-ring); border-top-color: var(--brand); }
.st-h { font: 750 1.2rem var(--head); margin: 0; }
.st-panel > .st-h { padding: 22px 24px 0; }
.st-field { padding: 18px 24px 22px; border-bottom: 1px solid var(--line); }
.st-field-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-seg button { padding: 7px 14px; border: 0; background: var(--surface); font: 600 .85rem var(--sans); color: var(--muted); cursor: pointer; }
.st-seg button[aria-selected=true] { background: var(--brand-soft); color: var(--brand-ink); }
.st-scope { font-size: .85rem; color: var(--faint); }
.st-assess { margin: 0 0 14px; font-size: 1rem; }
.st-assess.pass strong { color: var(--pass); } .st-assess.fail strong { color: var(--fail); }
.st-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.st-fm { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.st-fm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .85rem; color: var(--muted); }
.st-fm-head em { font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); margin-left: 4px; }
.st-fm-head strong { font: 750 1.35rem var(--head); color: var(--text); }
.st-fm.pass strong { color: var(--pass); } .st-fm.warn strong { color: var(--warn); } .st-fm.fail strong { color: var(--fail); }
.st-dist { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; background: var(--line); }
.st-dist .g { background: #0cce6b; } .st-dist .o { background: #ffa400; } .st-dist .r { background: #ff4e42; }
.st-fm small { font-size: .74rem; color: var(--faint); }
.st-fnote, .st-nodata { margin: 12px 0 0; font-size: .82rem; color: var(--faint); }
.st-nodata { font-size: .92rem; color: var(--muted); margin: 0; }
/* Lighthouse report inside our page */
.st-panel .lh-vars { --report-font-family: var(--sans); --report-font-family-monospace: var(--mono); --report-background-color: var(--surface); --report-content-max-width: 100%; }
.st-panel .lh-root { font-size: 14px; }
.st-panel .lh-container { margin: 0; }
.st-panel .lh-root table { margin: 0; }
.st-panel .lh-root summary { list-style: none; }
@media (max-width: 720px) {
  .st-form, .st-progress { padding: 16px; }
  .st-input { flex-wrap: wrap; padding: 6px; }
  .st-input > .ic { display: none; }
  .st-input input { flex-basis: 100%; padding: 10px 8px; }
  .st-input .btn { width: 100%; justify-content: center; }
  .st-bar { grid-template-columns: 80px minmax(0, 1fr) 48px; gap: 8px; }
  .st-target { margin-left: 0; }
  .st-bar-top { padding: 10px; }
  .st-tabs { width: 100%; }
  .st-tabs button { flex: 1; justify-content: center; }
  .st-field { padding: 16px; }
  .st-panel > .st-h { padding: 18px 16px 0; }
}
