/* toolbase.uz — dizayn tizimi
   Iliq krem fon, qora matn, yumshoq yashil brend, kategoriya ranglari.
   Mobil birinchi. Framework yo'q. */

/* font-display: optional — preload qilingan 400 va 800 dan boshqa og'irliklar kechiksa, shu sahifada tizim shrifti qoladi: sahifa sakramaydi (CLS). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.da03732a27e1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.0a6ff1a7c1e4.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-cyrillic-400-normal.74a70a8b71d0.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: optional; src: url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: optional; src: url("../fonts/inter-cyrillic-500-normal.0f5211cce140.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: optional; src: url("../fonts/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: optional; src: url("../fonts/inter-cyrillic-600-normal.40727edfba55.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: optional; src: url("../fonts/inter-latin-700-normal.8ca0a5155296.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: optional; src: url("../fonts/inter-cyrillic-700-normal.fc4bfa8e4204.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: optional; src: url("../fonts/plus-jakarta-sans-latin-600-normal.79e62f3332cd.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: optional; src: url("../fonts/plus-jakarta-sans-latin-700-normal.5b629bd8abb4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.408ecc6630e8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F; }

/* Shrift yuklanguncha tizim shrifti xuddi shu o'lchamda chiziladi — sahifa "sakramaydi" (CLS). Qiymatlar fontTools bilan hisoblangan. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 106.49%; ascent-override: 90.97%; descent-override: 22.65%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback R"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 106.22%; ascent-override: 91.2%; descent-override: 22.71%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta Fallback"; font-weight: 600 800; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 100.11%; ascent-override: 103.69%; descent-override: 22.18%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta Fallback R"; font-weight: 600 800; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 106.58%; ascent-override: 97.39%; descent-override: 20.83%; line-gap-override: 0%; }

:root {
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --surface-2: #F4F3EF;
  --ink: #16181D;
  --ink-2: #464B55;
  --muted: #666B76;
  --line: #E7E5DF;
  --line-2: #D9D6CE;
  --brand: #3F6B47;
  --brand-600: #335A3A;
  --brand-soft: #E8F0E9;
  --danger: #C2410C;
  --danger-soft: #FFF1EA;
  --ok: #2F7D4A;

  --c-text: #4F46E5;   --c-text-bg: #EEF0FF;
  --c-pdf: #DC2626;    --c-pdf-bg: #FDEEEE;
  --c-image: #9333EA;  --c-image-bg: #F5EDFE;
  --c-amber: #9A5A08;  --c-amber-bg: #FDF4E3;
  --c-code: #0E8A8A;   --c-code-bg: #E5F5F4;
  --c-file: #2F7D4A;   --c-file-bg: #E9F4EC;
  --c-violet: #7C3AED; --c-violet-bg: #F3EEFF;
  --c-number: #D9622B; --c-number-bg: #FDEFE7;

  --font: "Inter", "Inter Fallback", "Inter Fallback R", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-head: "Jakarta", "Jakarta Fallback", "Jakarta Fallback R", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 4px 16px rgba(22, 24, 29, .05);
  --shadow-lg: 0 2px 4px rgba(22, 24, 29, .04), 0 12px 32px rgba(22, 24, 29, .08);
  --wrap: 1160px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.ribbon { background: var(--ink); color: #EDEDEA; font-size: 13.5px; text-align: center; padding: 8px var(--gutter); }
.ribbon a { color: #fff; font-weight: 600; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 249, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 19px/1 var(--font-head); letter-spacing: -.03em; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.logo b { color: var(--brand); font-weight: 800; margin-left: -9px; }
.nav { display: none; gap: 4px; margin-left: 24px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: var(--surface-2); border-radius: 9px; padding: 3px; min-width: 0; }
.lang a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hdr__global { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hdr__global:hover { color: var(--brand); border-color: var(--brand); }
.burger { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 9px; display: grid; place-items: center; }
.burger:hover { background: var(--surface-2); }
.mnav { display: none; border-top: 1px solid var(--line); padding: 12px var(--gutter) 18px; background: var(--bg);
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.mnav.is-open { display: block; }
.mnav nav a { display: block; padding: 13px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav__acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.mnav__user { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mnav__user b { font-size: 15px; }
.mnav__login { margin: 4px 0 10px; }
.mnav__foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
.mnav__foot form { align-self: flex-end; }
.mnav__languages { width: min(100%, 360px); min-width: 0; }
.mnav__label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.lang--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.lang--wide a { min-width: 0; min-height: 44px; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 14px; }
.mnav__global { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 44px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.mnav__global span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mnav__global:hover { border-color: var(--brand); color: var(--brand); }
.lang a:focus-visible, .hdr__global:focus-visible, .mnav__global:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Mobil: til, balans va kirish — faqat hamburger ichida; header'da logo + menyu tugmasi */
@media (max-width: 1199px) { .hdr-desk { display: none !important; } }
@media (min-width: 1200px) { .nav { display: flex; } .burger, .mnav, .mnav.is-open { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2D34; }
.btn--tg { background: #1A7DB0; color: #fff; }
.btn--tg:hover { background: #166A96; color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: 28px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6.4vw, 54px); font-weight: 800; letter-spacing: -.035em; max-width: 780px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__sub { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 18.5px); max-width: 620px; margin: 16px auto 0; }
.search { position: relative; max-width: 560px; margin: 28px auto 0; }
.search input { width: 100%; height: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 60px 0 50px; font-size: 16px; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search__ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (hover: none) { .search kbd { display: none; } }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; background: var(--surface-2); }
.meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { color: var(--brand); }

/* ---------- Pills ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter); margin: 0 calc(var(--gutter) * -1); }
.pills::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .pills { justify-content: center; flex-wrap: wrap; } }
.pill { flex: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.pill:hover { border-color: var(--ink-2); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Tool grid ---------- */
.section { padding: 28px 0; }
.section__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__hd h2 { font-size: 22px; }
.section__hd a { font-size: 14.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.card__tag--paid { background: var(--c-amber-bg); color: var(--c-amber); }
.ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; stroke-width: 1.9; }
.ico--lg { width: 60px; height: 60px; border-radius: 16px; }
.ico--lg svg { width: 30px; height: 30px; }
.ico--text { color: var(--c-text); background: var(--c-text-bg); }
.ico--pdf { color: var(--c-pdf); background: var(--c-pdf-bg); }
.ico--image { color: var(--c-image); background: var(--c-image-bg); }
.ico--amber { color: var(--c-amber); background: var(--c-amber-bg); }
.ico--code { color: var(--c-code); background: var(--c-code-bg); }
.ico--file { color: var(--c-file); background: var(--c-file-bg); }
.ico--violet { color: var(--c-violet); background: var(--c-violet-bg); }
.ico--number { color: var(--c-number); background: var(--c-number-bg); }
[hidden] { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Trust / dark band ---------- */
.band { background: var(--ink); color: #EDEDEA; border-radius: 22px; padding: 32px 24px; margin: 24px 0; display: grid; gap: 22px; }
@media (min-width: 640px) and (max-width: 879px) {
  .band { grid-template-columns: repeat(2, 1fr); padding: 32px 28px; }
  .band > div:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 880px) { .band { grid-template-columns: repeat(3, 1fr); padding: 40px; } }
.band h3 { color: #fff; font-size: 17px; margin: 12px 0 6px; }
.band p { color: #B5B8BE; font-size: 14.5px; }
.band svg { color: #9BC6A2; }

/* ---------- Tool page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.thead { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0 20px; }
.thead h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
.thead__lead { color: var(--ink-2); margin-top: 8px; max-width: 720px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 4px 11px; }
.badge svg { width: 14px; height: 14px; color: var(--brand); }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; }
@media (min-width: 720px) { .workspace { padding: 24px; } }
.tcontent { display: grid; gap: 32px; padding: 40px 0 24px; }
@media (min-width: 980px) { .tcontent { grid-template-columns: minmax(0, 1fr) 300px; } }
.prose { max-width: 740px; }
.prose h2 { letter-spacing: -.01em; font-size: 24px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose blockquote, .prose .tip-box { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.prose pre {
  max-width: 100%;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
  line-height: 1.65;
}
.prose pre code { padding: 0; background: transparent; border-radius: 0; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 !important; color: var(--ink) !important; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 14px/28px var(--font-head); text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }
.aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .aside { position: sticky; top: 84px; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.box h3 { font-size: 15px; margin-bottom: 10px; }
.mini { display: flex; align-items: center; gap: 11px; padding: 8px 0; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.mini .ico { width: 34px; height: 34px; border-radius: 9px; }
.mini .ico svg { width: 18px; height: 18px; }
.mini:hover { color: var(--brand); }
.help { background: var(--brand-soft); border-color: transparent; }
.help p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- Ads ---------- */
.ad { margin: 24px 0; min-height: 120px; text-align: center; }
.ad__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
/* Yandex bloki: joy oldindan ajratiladi — reklama yuklanganda sahifa sakramaydi (CLS) */
.ad--ya { min-height: 0; }
@media (max-width: 879px) {
  .ad--tool-top { display: none; }
}
.ad--ya .ad__box { min-height: 250px; }
@media (min-width: 880px) { .ad--ya .ad__box { min-height: 250px; } }
/* ---------- Blog ---------- */
/* File results: the download action has its own card, separated from advertising. */
.download-result { padding-top: 40px; padding-bottom: 56px; }
.download-countdown { margin: 12px 0; padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 14px; }
.tool-result-open #pageBottomAd { display: none; }
.download-result { padding-bottom: max(160px, 25vh); }
.tool-result-open .ftr { display: none; }
.tool-result-open .download-result { min-height: calc(100dvh - 64px); padding-top: 20px; padding-bottom: 130px; justify-content: center; }
.tool-result-open .download-result__card { padding: 22px; }
.tool-result-open .download-result__check { width: 40px; height: 40px; margin-bottom: 10px; font-size: 24px; }
.tool-result-open .download-result__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.download-result__card { max-width: 680px; margin: 0 auto; padding: 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.download-result__check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; background: var(--brand-soft); color: var(--brand); border-radius: 50%; font-size: 30px; }
.download-result h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.download-result__name { font-weight: 600; overflow-wrap: anywhere; }
.download-result__meta { color: var(--muted); margin-top: 8px; }
.download-result__save { min-height: 52px; margin-top: 24px; min-width: 230px; font-size: 17px; }
.download-result__status { margin: 14px 0; color: var(--ink-2); font-size: 14px; }
.download-ad { width: 100%; max-width: 970px; margin: 0 auto 24px; text-align: center; order: -1; }
.download-result { display: flex; flex-direction: column; }
.download-ad--right { display: none; }
.download-result__card { width: 100%; }
.download-ad__box { width: 100%; height: 90px; }
@media (min-width: 1200px) {
  .download-result { display: grid; max-width: 1440px; grid-template-columns: 300px minmax(0, 680px) 300px; gap: 28px; align-items: start; }
  .download-result__card { grid-column: 2; grid-row: 1; }
  .download-ad { margin: 0; }
  .download-ad--left { grid-column: 1; grid-row: 1; }
  .download-ad--right { display: block; grid-column: 3; grid-row: 1; }
  .download-ad__box { height: 250px; }
  .tool-result-open .download-result { align-content: center; }
}
@media (max-width: 599px) {
  .download-result { padding-top: 20px; padding-bottom: 32px; }
  .download-result__card { padding: 24px 16px; }
  .download-result__save { width: 100%; min-width: 0; }
  .download-ad { margin-bottom: 24px; }
  .download-ad__box { height: 100px; }
  .tool-result-open .download-result__card { padding: 16px; }
  .tool-result-open .download-result h2 { font-size: 24px; margin-bottom: 8px; }
  .tool-result-open .download-result__save { margin-top: 14px; }
  .tool-result-open .download-ad { margin-bottom: 16px; }
}

.page-hd { padding: 36px 0 12px; }
.page-hd h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
.page-hd p { color: var(--ink-2); margin-top: 10px; max-width: 640px; }
.post { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.post:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post__cat { font-size: 12.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.post h3 { font-size: 18px; margin: 8px 0; line-height: 1.3; overflow-wrap: break-word; }
.post p { color: var(--muted); font-size: 14.5px; flex: 1; overflow-wrap: break-word; }
.post__meta { color: var(--muted); font-size: 13px; margin-top: 14px; }
.post__cover {display:block;aspect-ratio:16/9;margin:-20px -20px 16px;overflow:hidden;border-radius:var(--radius) var(--radius) 0 0;background:var(--surface-2);}
.post__cover img {display:block;width:100%;height:100%;object-fit:cover;}
.post--illustrated {overflow:hidden;}
.article { max-width: 740px; margin: 0 auto; padding: 8px 0 40px; }
.article__hd { padding: 20px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article__hd h1 { font-size: clamp(28px, 5.2vw, 42px); font-weight: 800; margin: 10px 0 12px; }
.article__cover { margin: 18px 0 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow); }
.article__cover-img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.article .prose { font-size: 17px; line-height: 1.75; }
.cta { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 28px 0; text-decoration: none; }
.cta strong { display: block; color: var(--ink); font-size: 16px; }
.cta__sub { display: block; color: var(--brand); font-size: 14px; font-weight: 500; }
.cta:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pager { display: flex; justify-content: center; gap: 8px; padding: 28px 0; }

/* ---------- Footer ---------- */
.ftr { margin-top: 56px; border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14.5px; color: var(--ink-2); }
.ftr__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .ftr__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.ftr__about { grid-column: 1 / -1; }
@media (min-width: 880px) { .ftr__about { grid-column: auto; } }
.ftr__about p { margin-top: 12px; max-width: 320px; color: var(--muted); }
.ftr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-family: var(--font); font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* =========================================================
   Tool UI kit (tb.js bilan ishlaydi)
   ========================================================= */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 220px; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }
.drop__title { font: 700 18px var(--font-head); }
.drop__hint { color: var(--muted); font-size: 14px; }
.drop--sm { min-height: 110px; flex-direction: row; gap: 14px; }
.flist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.fitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fitem[draggable="true"] { cursor: grab; }
.fitem.is-drag { opacity: .4; }
.fitem.is-target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fitem__thumb { flex: none; width: 44px; height: 56px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--c-pdf); }
.fitem__thumb img, .fitem__thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.fitem__body { min-width: 0; flex: 1; }
.fitem__name { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem__meta { display: block; color: var(--muted); font-size: 13px; }
.fitem__meta.is-err { color: var(--danger); }
.fitem__act { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bar__grow { flex: 1; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 15.5px; }
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); border-radius: 11px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.progress { margin-top: 16px; }
.progress__track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .2s; }
.progress__lbl { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.alert--err { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--surface-2); color: var(--ink-2); }
.result { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--brand-soft); }
.result__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.result__txt { flex: 1; min-width: 180px; }
.result__txt strong { display: block; }
.result__txt span { color: var(--ink-2); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 11px; font-size: 14.5px; font-weight: 500; z-index: 90; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.split { display: grid; gap: 16px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font: 800 22px var(--font-head); }
.stat span { font-size: 13px; color: var(--muted); }
.preview { display: grid; place-items: center; background: repeating-conic-gradient(#F1F0EC 0 25%, #fff 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 240px; }
.preview img, .preview canvas { max-height: 420px; width: auto; border-radius: 6px; }
.range { width: 100%; accent-color: var(--brand); }

/* =========================================================
   Rasmiy hujjatlar (hujjat.js, obyektivka.js)
   ========================================================= */
.hj-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.hj-top .field { flex: 1; min-width: 220px; }
.hj-template-info { margin:0 0 18px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.hj-template-info > summary { min-height:44px; padding:10px 0; cursor:pointer; font-weight:600; }
.hj-template-info p { margin:8px 0; }
.hj-template-info ul { margin:8px 0; padding-left:20px; }
.hj-template-info li a { display:inline-block; padding:8px 0; }
.hj { display: grid; gap: 20px; }
.hj > *, .hj__view { min-width:0; }
.hj-completion { font-size:14px; color:var(--muted); margin:12px 0; }
#hjWarn a { display:inline-block; min-height:44px; padding:10px 0; }
.hj input, .hj textarea { font-size:16px; }
.hj-paper:focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
@media(max-width:559px) { .hj-foot { flex-wrap:wrap; } .hj-shapka--right { width:72%; margin-left:28%; } }
@media (min-width: 980px) { .hj { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } .hj__view { position: sticky; top: 84px; } }
.hj-group { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.hj-group legend { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-head); margin-bottom: 10px; padding: 0; }
.hj-group legend span { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.hj-req { color: var(--danger); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px var(--danger-soft) !important; }
.hj-paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 34px 30px 38px 42px; font: 13.5px/1.55 "Times New Roman", Times, serif; color: #111; min-height: 420px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .hj-paper { padding: 48px 44px 52px 64px; font-size: 14.5px; } }
.hj-paper p { margin: 0 0 4px; }
.hj-shapka--right { width: 56%; margin-left: 44%; text-align: right; margin-bottom: 18px; }
.hj-shapka--left { margin-bottom: 18px; }
.hj-title { text-align: center; font-weight: bold; margin: 16px 0 !important; letter-spacing: .02em; }
.hj-body p { text-align: justify; }
.hj-body--narr p { text-indent: 2em; }
.hj-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.hj-blank { color: #B3B0A6; }
.hj-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hj-actions .btn--primary { flex: 1 1 100%; }
@media (min-width: 560px) { .hj-actions .btn--primary { flex: 0 0 auto; } }
.hj-note { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.hj-mobile-jump { display: flex; }
@media (min-width: 980px) { .hj-mobile-jump { display: none; } }
.sample { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 18px; }
.sample__ico { width: 44px; height: 52px; border-radius: 6px; background: #2B579A; color: #fff; display: grid; place-items: center; font: 700 12px var(--font); flex: none; }
.sample__txt { flex: 1; min-width: 0; }
.sample__txt strong { display: block; }
.sample__txt span { color: var(--muted); font-size: 14px; }
.sample-variants { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sample-variants h3 { margin: 0 0 4px; font-size: 17px; }
.sample-variants > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sample-variants__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.sample-variants__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sample-variants__item > span { display: flex; gap: 6px; }
.sample-variants__item a { display: inline-flex; min-width: 44px; min-height: 40px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.sample-variants__item a:hover { border-color: var(--brand); color: var(--brand); }

/* obyektivka.js eski sinflari — yangi uslubda */
.ob .form-group { margin-bottom: 20px; display: grid; gap: 12px; }
.ob .fg-title { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-head); }
.ob .fg-title::before { content: attr(data-n); width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.ob .fld-row { display: grid; gap: 6px; }
.ob .fld-label { font-weight: 600; font-size: 14px; }
.ob .req { color: var(--danger); font-style: normal; }
.ob .fld { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 15px; }
.ob .fld:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ob .foto-upload { display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 14px; }
.ob .foto-upload svg { width: 36px; height: 36px; }
.ob .foto-upload img { width: 72px; height: 96px; object-fit: cover; border-radius: 4px; }
.ob .foto-upload:hover { border-color: var(--brand); }
.ob .foto-clear { border: 0; background: none; color: var(--danger); font-size: 13.5px; text-align: left; padding: 0; }
.ob .dyn-head { display: none; }
.ob .dyn-row { display: grid; gap: 6px; grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); position: relative; }
@media (min-width: 560px) { .ob .dyn-row:not(.qar-row) { grid-template-columns: 150px 1fr 34px; align-items: center; padding: 0; border: 0; background: none; } }
.ob .qar-row { padding-right: 44px; }
.ob .dyn-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
@media (min-width: 560px) { .ob .dyn-row:not(.qar-row) .dyn-del { position: static; } }
.ob .dyn-del:hover { background: var(--danger-soft); color: var(--danger); }
.ob .dyn-add { justify-self: start; border: 1px dashed var(--line-2); background: var(--surface); border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--brand); }
.ob #workList, .ob #qarList { display: grid; gap: 8px; }
.ob .hj-paper { font-size: 12.5px; }
.ob .pv-title { text-align: center; font-weight: bold; margin-bottom: 10px; }
.ob .pv-name-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-direction: row-reverse; }
.ob .pv-name { flex: 1; text-align: center; font-weight: bold; font-size: 1.1em; }
.ob .pv-foto { width: 72px; height: 96px; border: 1px solid #999; display: grid; place-items: center; text-align: center; font-size: 11px; color: #999; flex: none; overflow: hidden; }
.ob .pv-foto img { width: 100%; height: 100%; object-fit: cover; }
.ob .pv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.ob .pv-full { margin-bottom: 6px; }
.ob .pv-sec { text-align: center; font-weight: bold; margin: 14px 0 8px; }
.ob .pv-work, .ob .pv-qar { width: 100%; border-collapse: collapse; font-size: .92em; }
.ob .pv-qar td, .ob .pv-qar th { border: 1px solid #333; padding: 3px 5px; vertical-align: top; }
.ob .pv-work td { padding: 2px 6px 2px 0; vertical-align: top; }
.ob .pv-work td:first-child { white-space: nowrap; width: 1%; }
.ob .pv-work-line { display: grid; grid-template-columns: minmax(90px, 25%) 1fr; gap: 10px; margin: 0 0 5px; }
.ob .pv-intro { margin: 0 0 5px; }
.ob .pv-note { margin: 10px 0; }
.ob .pv-page + .pv-page { margin-top: 28px; padding-top: 24px; border-top: 1px dashed #c8c8c8; }
.ob .ob-sample-note { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.ob .pv-phones { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92em; table-layout: fixed; }
.ob .pv-phones td { width: 33.333%; border: 1px solid #333; padding: 4px 6px; text-align: center; overflow-wrap: anywhere; }
.ob .ob-form-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--danger); border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 14px; }
.hj-date { margin-top: 10px !important; }

/* ---------- PDF sahifalar to'ri ---------- */
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-top: 16px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard__img { aspect-ratio: 1 / 1.3; display: grid; place-items: center; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.pcard__img canvas { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.pcard__ph { width: 60%; height: 70%; background: #fff; border-radius: 3px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; min-height: 30px; }
.pcard__n { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pcard.is-off { opacity: .45; border-color: var(--danger); }
.pcard.is-off .pcard__img::after { content: ""; position: absolute; inset: 8px 8px 44px; background: linear-gradient(45deg, transparent 48%, var(--danger) 48%, var(--danger) 52%, transparent 52%), linear-gradient(-45deg, transparent 48%, var(--danger) 48%, var(--danger) 52%, transparent 52%); border-radius: 6px; }
.pcard.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pcard__badge { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 2px 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .input { width: auto; flex: 1; min-width: 160px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 14.5px; }
.check > span { font-weight: 400; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.pw { position: relative; }
.pw .input { padding-right: 44px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.pcard[data-rot="90"] canvas { transform: rotate(90deg) scale(.76); }
.pcard[data-rot="180"] canvas { transform: rotate(180deg); }
.pcard[data-rot="270"] canvas { transform: rotate(270deg) scale(.76); }

/* ---------- PDF muharrir ---------- */
.ed-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; position: sticky; top: 64px; z-index: 5; background: var(--surface); padding: 8px 0; }
.ed-bar .seg button span { display: none; }
@media (min-width: 640px) { .ed-bar .seg button span { display: inline; } }
.ed-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.ed-opt input[type=color] { width: 36px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: #fff; }
.ed-stage { background: var(--surface-2); border-radius: 14px; padding: 12px; overflow: auto; display: grid; place-items: center; }
.ed-page { position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; touch-action: none; }
.ed-page canvas { display: block; }
.ed-page svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-page[data-tool="text"] svg { cursor: text; }
.ed-page[data-tool="white"] svg, .ed-page[data-tool="rect"] svg, .ed-page[data-tool="draw"] svg, .ed-page[data-tool="image"] svg { cursor: crosshair; }
.ed-page svg .obj { cursor: move; }
.ed-page svg .is-sel { outline: 2px dashed var(--brand); outline-offset: 2px; }
.ed-input { position: absolute; border: 1px dashed var(--brand); background: rgba(255,255,255,.9); padding: 0 2px; font-family: Roboto, Arial, sans-serif; line-height: 1.2; min-width: 60px; outline: none; }

/* ---------- Word -> PDF ko'rinishi ---------- */
.w2p-preview { margin-top: 16px; background: var(--surface-2); border-radius: 14px; padding: 12px; overflow: auto; max-height: 75vh; }
.w2p-preview .docx-wrapper { background: transparent !important; padding: 0 !important; }
.w2p-preview .docx-wrapper > section.docx { box-shadow: 0 2px 10px rgba(0,0,0,.12); margin: 0 auto 14px !important; }

/* ---------- Rasm qirqish ---------- */
.crop-stage { margin-top: 14px; background: repeating-conic-gradient(#EFEDE8 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-radius: 14px; padding: 12px; display: grid; place-items: center; user-select: none; }
.crop-wrap { position: relative; touch-action: none; line-height: 0; }
.crop-wrap canvas { display: block; max-width: 100%; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(10,12,16,.55); outline: 1px solid rgba(0,0,0,.4); cursor: move; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.crop-wrap { clip-path: inset(-12px); }
.crop-box i { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 50%; }
.crop-box i[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; } .crop-box i[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-box i[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; } .crop-box i[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-box i[data-h="n"] { left: calc(50% - 8px); top: -9px; cursor: ns-resize; } .crop-box i[data-h="s"] { left: calc(50% - 8px); bottom: -9px; cursor: ns-resize; }
.crop-box i[data-h="w"] { top: calc(50% - 8px); left: -9px; cursor: ew-resize; } .crop-box i[data-h="e"] { top: calc(50% - 8px); right: -9px; cursor: ew-resize; }
.fields--sm { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }

/* ---------- Imlo tekshiruvi ---------- */
.imlo { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .imlo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.imlo-doc { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 120px; font-size: 16px; }
.imlo-doc mark { background: transparent; color: inherit; border-bottom: 2px solid; cursor: pointer; padding: 0 1px; border-radius: 2px; }
.imlo-doc mark:hover, .imlo-doc mark.is-act { background: var(--surface-2); }
.m-spell { border-color: #DC2626 !important; } .m-apos { border-color: #D97706 !important; }
.m-mixed { border-color: #9333EA !important; } .m-repeat, .m-punct, .m-space, .m-cap { border-color: #2563EB !important; }
.m-grammar { border-color: #0F766E !important; }
.imlo-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.imlo-item { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; background: var(--surface); font-size: 14.5px; }
.imlo-item b { font-weight: 700; }
.imlo-item p { color: var(--muted); font-size: 13.5px; margin: 2px 0 8px; }
.imlo-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.imlo-sugs button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: 14px; }
.imlo-sugs button:hover { border-color: var(--brand); color: var(--brand); }
.imlo-sugs .ign { color: var(--muted); font-weight: 500; }
.imlo-pop { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; max-width: 300px; }
.imlo-ok { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; }

/* ---------- Son -> so'z ---------- */
.nw { display: grid; gap: 10px; margin-top: 16px; }
.nw-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.nw-lbl { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.nw-txt { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Parol ---------- */
.pw-out { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); }
.pw-out output { flex: 1; min-width: 0; font: 600 clamp(17px, 3.4vw, 24px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; letter-spacing: .02em; }
.pw-meter { height: 6px; background: var(--surface-2); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------- O'lchov konvertori ---------- */
.uc { display: grid; gap: 10px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 640px) { .uc { grid-template-columns: 1fr auto 1fr; } }
.uc .field { gap: 8px; }
.uc-all { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.uc-all button { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }
.uc-all button:hover { border-color: var(--brand); }
.uc-all b { display: block; font-size: 16px; }

/* ---------- Rang konvertori ---------- */
.cc { display: grid; gap: 16px; }
@media (min-width: 820px) { .cc { grid-template-columns: 280px 1fr; } }
.cc-swatch { position: relative; border-radius: 16px; min-height: 180px; display: grid; align-items: end; padding: 14px; border: 1px solid var(--line); overflow: hidden; }
.cc-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cc-swatch span { font: 700 18px var(--font-head); pointer-events: none; }
.cc .nw-row { grid-template-columns: 1fr auto; }
.cc .nw-row .input { min-height: 38px; font-size: 15px; }
.cc-shades { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.cc-shades button { height: 44px; border: 0; border-radius: 8px; font-size: 10px; font-family: ui-monospace, monospace; }
@media (max-width: 560px) { .cc-shades { grid-template-columns: repeat(6, 1fr); } }
.cc-contrast { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.cc-contrast div { border-radius: 12px; padding: 14px; font-weight: 600; }
.cc-contrast small { display: block; font-weight: 500; opacity: .85; margin-top: 4px; }

/* ---------- Vaqt zonalari ---------- */
.tz-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 16px; }
.tz-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.tz-card.is-fav { border-color: var(--brand); background: var(--brand-soft); }
.tz-card .tz-time { font: 800 26px/1.1 var(--font-head); letter-spacing: -.02em; }
.tz-card .tz-city { font-weight: 600; }
.tz-card .tz-meta { color: var(--muted); font-size: 13px; }
.tz-card .tz-star { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 18px; color: var(--line-2); }
.tz-card.is-fav .tz-star { color: var(--brand); }
.tz-night .tz-time { color: var(--ink-2); }

/* ---------- Akkaunt ---------- */
.acc { padding-top: 28px; }
.msgs { display: grid; gap: 8px; max-width: 720px; margin: 0 auto 16px; }
.alert--ok { background: var(--brand-soft); color: var(--brand-600); }
.auth { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth--wide { max-width: 640px; }
.auth h1 { font-size: 26px; font-weight: 800; margin: 6px 0 6px; }
.auth__sub { color: var(--ink-2); margin-bottom: 18px; }
.auth form { display: grid; gap: 14px; }
.auth__or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin: 16px 0; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__links { text-align: center; margin-top: 16px; font-size: 14.5px; }
.auth__links a, .auth a:not(.btn) { color: var(--brand); }
.field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 15.5px; }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--danger) !important; }
.field-err { color: var(--danger); font-size: 13.5px; }
.contact-form { display: grid; gap: 16px; max-width: 620px; margin: 24px 0; }
.contact-form .btn { justify-self: start; }
.acc-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.acc-hd h1 { font-size: 28px; font-weight: 800; }
.acc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.acc-bal b { display: block; font: 800 34px/1.1 var(--font-head); margin: 4px 0 14px; }
.acc-bal small { font-size: 16px; color: var(--muted); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag--approved, .tag--done, .tag--paid { background: var(--brand-soft); color: var(--brand-600); }
.tag--pending, .tag--new, .tag--priced, .tag--working { background: var(--c-amber-bg); color: var(--c-amber); }
.tag--rejected, .tag--cancelled { background: var(--danger-soft); color: var(--danger); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.pos { color: var(--ok); font-weight: 600; } .neg { color: var(--danger); font-weight: 600; }
.paycard { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); margin-bottom: 18px; }
.paycard__num { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paycard__num b { font-size: 22px; letter-spacing: .06em; }
.ostep { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12.5px; text-align: center; }
.ostep li { padding-top: 10px; border-top: 4px solid var(--line); color: var(--muted); }
.ostep li.is-done { border-color: var(--brand); color: var(--ink); }
.ostep li.is-cur { border-color: var(--c-amber); color: var(--ink); font-weight: 700; }
.userchip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.userchip b { color: var(--brand); }
.userbox { display: inline-flex; align-items: center; gap: 6px; }
.userchip__plus { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; line-height: 1; }
.useracc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: inherit; }
.useracc:hover, .userchip:hover { filter: brightness(.97); }
.ai-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-left { display: flex; flex-direction: column; gap: 14px; } .ai-left .btn { align-self: flex-start; min-width: 180px; }
.tg-badge { width: 64px; height: 64px; border-radius: 50%; background: #2AABEE; color: #fff; display: inline-grid; place-items: center; margin-bottom: 14px; }
/* Server toollari */
.cv-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; align-items: center; }
.cv-opts .label { font-weight: 600; font-size: 14px; width: 100%; }
.cv-opts label.chk { display: inline-flex; gap: 7px; align-items: center; font-size: 14.5px; cursor: pointer; }
.cv-opts input { accent-color: var(--brand); width: 17px; height: 17px; }
.cv-privacy { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.cv-privacy svg { flex: none; color: var(--brand); }

/* Rezyume (CV) */
.rz-accents { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rz-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.rz-dot.is-on { box-shadow: 0 0 0 2px var(--ink); }
.rz-paper { font: 12.5px/1.5 Arial, Helvetica, sans-serif; padding: 32px 30px; }
.rz-paper .rz-head { display: flex; gap: 16px; align-items: flex-start; border-bottom: 2px solid var(--rz); padding-bottom: 12px; margin-bottom: 12px; }
.rz-paper .rz-head img { width: 84px; height: 112px; object-fit: cover; border-radius: 4px; flex: none; }
.rz-paper .rz-name { font-size: 22px; font-weight: 700; color: var(--rz); line-height: 1.2; margin: 0 0 2px; }
.rz-paper .rz-pos { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.rz-paper .rz-contacts { color: #444; font-size: 11.5px; }
.rz-paper h3 { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--rz); border-bottom: 1px solid #ccc; padding-bottom: 3px; margin: 14px 0 6px; }
.rz-paper .rz-item { margin-bottom: 8px; }
.rz-paper .rz-item b { display: inline; }
.rz-paper .rz-period { float: right; color: #555; font-size: 11.5px; }
.rz-paper .rz-sub { color: #555; font-style: italic; }
.rz-paper .rz-desc { white-space: pre-line; margin-top: 2px; }
.rz-list { display: grid; gap: 10px; }
.rz-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; position: relative; }
.rz-row .icon-btn { position: absolute; top: 6px; right: 6px; }
.rz-photo { display: flex; align-items: center; gap: 12px; }
.rz-photo img { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }

/* Pro sahifasi */
.pro-hero { text-align: center; padding: 36px 0 8px; }
.pro-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 8px; }
.pro-hero .hero__sub { max-width: 640px; margin: 0 auto; }
.pro-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.pro-plans { display: grid; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 820px) { .pro-plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.plan--hot { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.plan__badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h2 { font-size: 18px; margin: 0; }
.plan__price b { font-size: 34px; font-family: var(--font-head); }
.plan__price span { color: var(--muted); }
.plan__save { color: var(--brand); }
.plan__agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }
.plan__agree input { margin-top: 2px; accent-color: var(--brand); }
.plan__bal { margin: 0; }
.pro-cmp td:nth-child(2), .pro-cmp td:nth-child(3), .pro-cmp th:nth-child(2), .pro-cmp th:nth-child(3) { text-align: center; min-width: 120px; }
.pro-cmp td:nth-child(3) { background: var(--brand-soft); }
.userchip .pro-dot { color: #B45309; margin-right: 4px; }

/* Kabinet */
.dash-top { display: grid; gap: 14px; }
@media (min-width: 860px) { .dash-top { grid-template-columns: repeat(3, 1fr); } }
.dash-card { display: flex; flex-direction: column; gap: 6px; }
.dash-lbl { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-num { font: 800 32px/1.1 var(--font-head); }
.dash-num small { font-size: 15px; font-weight: 600; color: var(--muted); }
.dash-act { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.dash-card--pro { background: linear-gradient(135deg, #FFFBEB, var(--surface)); border-color: #FDE68A; }
.dash-card--upsell { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.dash-perks { margin: 4px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 2px; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.dash-quick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dash-quick .mini { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.dash-cols { display: grid; gap: 0 28px; }
@media (min-width: 900px) { .dash-cols { grid-template-columns: 1fr 1fr; } }
.acc-hd h1 .pro-badge { vertical-align: middle; margin-left: 6px; }
.badge--pro { background: #FEF3C7; color: #92400E; font-weight: 700; }

/* Pro: tool sahifasidagi bepul/Pro jadvali va limit oynasi */
.prostrip { margin: 16px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.prostrip__t { border-collapse: collapse; font-size: 14px; flex: 1 1 320px; }
.prostrip__t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; text-align: left; padding: 0 10px 6px 0; }
.prostrip__t td { padding: 5px 10px 5px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.prostrip__t td:first-child { color: var(--ink); }
.prostrip__t th:nth-child(3), .prostrip__t td:nth-child(3) { color: #92400E; }
.prostrip__cta { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.prostrip--on { border-color: #FCD34D; background: #FFFBEB; }
.prowall { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(22, 24, 29, .45); padding: 16px; }
.prowall__box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 420px; width: 100%; padding: 22px; }
.prowall__box h3 { margin: 0 0 8px; font-size: 18px; }
.prowall__box p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.prowall__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pro-tools .pro-grp td { background: var(--surface-2) !important; text-align: left !important; font-weight: 700; padding-top: 10px; }
.pro-tools .pro-grp a { color: var(--ink); }
.pro-tools td:first-child { padding-left: 18px; }
.pro-tools .pro-grp td:first-child { padding-left: 12px; }
.cmp-mobile-label, .pro-tools-mobile { display: none; }
@media (max-width: 719px) {
  /* One feature per card: the two plan values stay directly under their label. */
  .pro-cmp:not(.pro-tools) { overflow: visible; border: 0; background: transparent; }
  .pro-cmp:not(.pro-tools) table, .pro-cmp:not(.pro-tools) tbody { display: block; width: 100%; }
  .pro-cmp:not(.pro-tools) thead { display: none; }
  .pro-cmp:not(.pro-tools) tbody { display: grid; gap: 8px; }
  .pro-cmp:not(.pro-tools) tr, .prostrip__t tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .pro-cmp:not(.pro-tools) td, .prostrip__t td {
    display: block;
    min-width: 0 !important;
    padding: 8px 10px;
    border: 0;
    text-align: left !important;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pro-cmp:not(.pro-tools) td:first-child, .prostrip__t td:first-child {
    grid-column: 1 / -1;
    padding: 9px 10px 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .pro-cmp:not(.pro-tools) td:nth-child(3), .prostrip__t td:nth-child(3) { background: var(--brand-soft); }
  .cmp-mobile-label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .025em;
  }
  .prostrip { display: block; padding: 12px; }
  .prostrip__t { display: block; width: 100%; }
  .prostrip__t thead { display: none; }
  .prostrip__t tbody { display: grid; gap: 7px; }
  .prostrip__cta { margin-top: 12px; }
  .prostrip__cta .btn { min-height: 38px; }
  .pro-tools { display: none; }
  .pro-tools-mobile { display: grid; gap: 8px; }
  .pro-tool-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
  .pro-tool-item summary { padding: 12px 14px; font-weight: 700; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
  .pro-tool-item summary::marker { color: var(--brand); }
  .pro-tool-item[open] summary { border-bottom: 1px solid var(--line); }
  .pro-tool-item__body { display: grid; gap: 8px; padding: 10px; }
  .pro-tool-limit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .pro-tool-limit__name { grid-column: 1 / -1; padding: 8px 10px 6px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
  .pro-tool-limit > div { padding: 8px 10px; min-width: 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
  .pro-tool-limit > div:nth-child(3) { background: var(--brand-soft); }
  .pro-tool-item__link { justify-self: start; padding: 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
}

/* Hujjat uchun rasm (foto-3x4) */
.fx-opts { display: grid; gap: 4px; margin-top: 14px; }
.fx-opts .seg { flex-wrap: wrap; }
.fx-edit { display: grid; grid-template-columns: minmax(0, auto) minmax(220px, 300px); gap: 24px; margin-top: 16px; align-items: start; justify-content: start; }
.fx-stage canvas { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow); cursor: grab; touch-action: none; background: repeating-conic-gradient(#F1F0EC 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.fx-stage canvas:active { cursor: grabbing; }
.fx-stage p { max-width: 380px; margin-top: 8px; }
.fx-side { display: grid; gap: 12px; }
.fx-side input[type=range] { width: 100%; }
.fx-dl { display: grid; gap: 8px; margin-top: 4px; }
@media (max-width: 720px) { .fx-edit { grid-template-columns: 1fr; } .fx-stage canvas { width: 100%; max-width: 360px; } }

/* Valyuta kursi */
.vk-conv { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) auto minmax(0, 2fr); gap: 12px; align-items: end; }
.vk-amt { font-size: 18px; font-weight: 600; }
.vk-swap { margin-bottom: 6px; }
.vk-out { font: 600 26px/1.3 var(--font-head); margin: 16px 0 6px; overflow-wrap: anywhere; }
.vk-out span { color: var(--muted); font-weight: 500; font-size: 18px; }
.vk-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin: 26px 0 10px; }
.vk-h { font-size: 20px; margin: 0; }
.vk-date { width: auto; display: inline-block; padding: 6px 10px; }
.vk-tbl td:nth-child(2), .vk-tbl td:nth-child(3), .vk-tbl th:nth-child(2), .vk-tbl th:nth-child(3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vk-up { color: var(--ok); } .vk-down { color: var(--danger); }
@media (max-width: 640px) { .vk-conv { grid-template-columns: 1fr; } .vk-swap { justify-self: center; margin: 0; transform: rotate(90deg); } .vk-out { font-size: 22px; } }

/* Kalkulyatorlar */
.calc-big { font-size: 18px; font-weight: 600; }
.calc-res { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.calc-res:empty { display: none; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.calc-row:first-child { border-top: 0; }
.calc-row b { font-variant-numeric: tabular-nums; text-align: right; }
.calc-sub { color: var(--muted); font-size: 13.5px; padding-left: 32px; }
.calc-main { background: var(--brand-soft); font-size: 18px; }
.calc-main b { font-size: 20px; color: var(--brand-600); }
.calc-sep { border-top: 6px solid var(--surface-2); }
/* IELTS kalkulyatori */
.ie .seg { margin-bottom: 14px; }
@media (max-width: 420px) { .ie .seg button { padding: 8px 11px; } }
.fields--ie { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.kr-tbl { max-height: 420px; overflow: auto; margin-top: 12px; }
.kr-tbl td, .kr-tbl th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-tbl td:first-child, .kr-tbl th:first-child { text-align: left; }

/* ---------- Imlo lug'ati ---------- */
.lg-hd { padding: 22px 0 10px; }
.lg-hd h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.lg-hd p { color: var(--ink-2); margin-top: 8px; }
.lg-hd--big { text-align: center; padding: 34px 0 18px; }
.lg-hd--big .lg-search { margin-left: auto; margin-right: auto; }
.lg-search { position: relative; display: flex; gap: 8px; max-width: 620px; margin-top: 16px; }
.lg-search input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; font-size: 16px; }
.lg-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lg-search .btn { height: 50px; }
.lg-ac { position: absolute; z-index: 20; left: 0; right: 0; top: 56px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); text-align: left; }
.lg-ac a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lg-ac a:hover { background: var(--surface-2); }
.lg-ac span { color: var(--muted); }
.lg-grid { display: grid; gap: 28px; padding: 18px 0 32px; }
@media (min-width: 960px) { .lg-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.lg-answer { display: grid; gap: 10px; margin-bottom: 18px; }
.lg-ok, .lg-bad { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.lg-ok { border-color: #BFD8C2; background: var(--brand-soft); }
.lg-ok--cyr { background: var(--surface); border-color: var(--line); }
.lg-bad { background: var(--danger-soft); border-color: #F3C9B5; }
.lg-lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-width: 150px; }
.lg-word { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; letter-spacing: -.01em; flex: 1; overflow-wrap: anywhere; }
@media (max-width: 600px) { .lg-lbl { flex-basis: 100%; min-width: 0; } .lg-ok, .lg-bad { padding: 12px 14px; gap: 6px 12px; } }
.lg-wrongs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 20px; font-weight: 600; color: var(--danger); }
.lg-note { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); margin: 0 0 14px; }
.lg-note--bad { background: var(--danger-soft); }
.lg-note--warn { background: var(--c-amber-bg); }
.lg-syll { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.lg-rules-grid { display: grid; gap: 12px; margin: 14px 0 20px; }
.lg-rule-card { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.lg-rule-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.lg-rule-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.lg-ex { padding-left: 20px; }
.lg-ex li { margin: 12px 0; line-height: 1.6; }
.lg-ex mark { background: var(--brand-soft); color: inherit; padding: 0 3px; border-radius: 4px; font-weight: 600; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-chips a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 14.5px; }
.lg-chips a:hover { border-color: var(--brand); color: var(--brand); }
.lg-chips--big a { font-size: 17px; font-weight: 600; }
.lg-chips small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.lg-abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.lg-abc a { min-width: 38px; text-align: center; padding: 7px 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.lg-abc a[aria-current], .lg-abc a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lg-list { list-style: none; padding: 0; margin: 6px 0; columns: 2 170px; column-gap: 24px; }
.lg-list li { break-inside: avoid; padding: 4px 0; }
.lg-list a { text-decoration: none; color: var(--ink); }
.lg-list a:hover { color: var(--brand); text-decoration: underline; }
.lg-near { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.lg-near a { color: var(--ink-2); }
.lg-near b { color: var(--brand); }
.lg-src { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.lg-pack-nav { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.lg-pack-nav [aria-current] { color:var(--brand); font-weight:700; }
.lg-pack-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.lg-pack-card { min-width:0; padding:20px; }
.lg-pack-card h2 { font-size:23px; margin:0 0 12px; }
.lg-pack-card p,.lg-pack-card dd { overflow-wrap:anywhere; }
.lg-writing-pairs { display:grid; grid-template-columns:minmax(88px,auto) minmax(0,1fr); gap:8px 14px; padding:14px 0; }
.lg-writing-pairs dt { color:var(--muted); font-size:14px; }
.lg-writing-pairs dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.lg-pack-example { border-top:1px solid var(--line); padding-top:12px; }
@media(max-width:620px) { .lg-pack-grid { grid-template-columns:minmax(0,1fr); } .lg-pack-card { padding:16px; } }
.lg-sec { padding: 14px 0; }
.lg-sec h2 { font-size: 21px; margin-bottom: 10px; }
.lg-res { margin: 8px 0 12px; }
.lg-res h2 { font-size: 19px; margin-bottom: 10px; }
.aside .lg-abc a { min-width: 34px; padding: 5px 7px; font-size: 14px; }
.imlo-dict { font-size: 13px; align-self: center; margin-left: auto; }
.ai-imlo { margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid #D9D2F5; background: linear-gradient(180deg, #F7F5FF, var(--surface)); }
.ai-imlo__hd { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.ai-imlo__hd h3 { font-size: 17px; margin-bottom: 4px; }
.ai-imlo__hd > div { flex: 1 1 320px; }
.ai-imlo .alert { margin-top: 12px; }
.ai-doc { margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; line-height: 1.75; font-size: 16px; }
.ai-ch { font: inherit; border: 0; padding: 0 2px; margin: 0; border-radius: 4px; background: #EEE9FF; cursor: pointer; color: inherit; }
.ai-ch del { color: var(--danger); text-decoration: line-through; margin-right: 2px; }
.ai-ch ins { color: #15803D; text-decoration: none; font-weight: 600; }
.ai-ch.is-off { background: var(--surface-2); }
.ai-ch.is-off del { text-decoration: none; color: inherit; }
.ai-ch.is-off ins { display: none; }
.stt-opts { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; margin-top: 14px; }
.stt-opts .fitem__meta { margin: 0 0 6px; }
.stt-out { margin-top: 16px; }
.stt-text { min-height: 220px; font-size: 16px; line-height: 1.65; margin: 10px 0 6px; }
.stt-tg { margin-top: 14px; }
.aka { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.aka span { font-weight: 600; }
.cyr-block { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.cyr-block h2 { font-size: 19px !important; }

/* Oldin / keyin taqqoslash (rasm tiniqlashtirish) */
.cmp { margin-top: 16px; }
.cmp__box { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface-2); line-height: 0; user-select: none; }
.cmp__box img { width: 100%; height: auto; display: block; }
.cmp__before { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #fff; box-shadow: 1px 0 6px rgba(0,0,0,.35); }
.cmp__before img { height: auto; max-width: none; }
.cmp__tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1.6; }
.cmp__tag--l { left: 10px; } .cmp__tag--r { right: 10px; }
.cmp input[type=range] { width: 100%; margin-top: 10px; }

/* Kunlik limit hisoblagichi (server vositalari) */
.usage { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.usage__txt { flex: 0 1 auto; }
.usage__hint { opacity: .8; }
.usage__bar { flex: 1 1 80px; max-width: 220px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.usage__bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s; }
.usage.is-low .usage__bar i { background: var(--c-amber); }
.usage.is-low .usage__txt { color: var(--c-amber); }
/* Vosita vaqtincha o'chirilgan */
.tool-off { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--surface-2); }
.tool-off__ico { flex: 0 0 auto; color: var(--c-amber); }
.tool-off p { margin: 6px 0 0; }
.tool-off__alt { font-size: 14px; }
.card__tag--off { background: var(--c-amber-bg); color: var(--c-amber); }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { filter: brightness(.93); }
@media (max-width: 879px) { html.menu-open { overflow: hidden; } }
/* Mobil: tool sarlavhasi ixcham — vosita birinchi ekranda ko'rinsin */
@media (max-width: 559px) {
  .thead { gap: 12px; padding: 10px 0 14px; }
  .thead .ico--lg { display: none; }
  .thead__lead { font-size: 15px; line-height: 1.5; margin-top: 6px; }
  .badges { gap: 6px; margin-top: 10px; }
  .badge { font-size: 12px; padding: 3px 9px; }
  .crumbs { font-size: 13px; }
  .workspace { padding: 14px; border-radius: 16px; }
  .drop { padding: 22px 16px; min-height: 160px; }
  .drop__ico { width: 44px; height: 44px; }
}
.ftr__social { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }

/* PDF raqam / suv belgisi */
.pn-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 14px; align-items: start; }
.pn-prev { position: sticky; top: 84px; }
.pn-page { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); min-height: 300px; display: grid; place-items: center; }
.pn-page canvas { width: 100%; height: auto; display: block; }
.pn-page .pcard__ph { width: 100%; aspect-ratio: 1 / 1.414; display: block; }
.pn-badge { position: absolute; color: #333; font-weight: 600; background: rgba(255,255,255,.6); padding: 1px 4px; border-radius: 3px; pointer-events: none; }
.wm-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-35deg); font-weight: 800; white-space: nowrap; pointer-events: none; letter-spacing: .04em; }
.wm-text.wm-tile { top: 50%; }
.pn-opts { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; }
@media (max-width: 620px) { .pn-wrap { grid-template-columns: 1fr; } .pn-prev { position: static; max-width: 240px; margin: 0 auto; } }

/* PDF sahifalarni tartiblash */
.pcard--drag { cursor: grab; }
.pcard--drag:active { cursor: grabbing; }
.pcard.is-drag { opacity: .4; }
.pcard.is-target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pcard__acts { display: flex; gap: 2px; }
.pcard__acts .icon-btn { width: 26px; height: 26px; font-size: 15px; }
.icon-btn--x:hover { color: var(--danger); }

/* Tool catalog: readable cards and independent favorite controls. */
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ico .tool-logo, .tool-cta-card__icon .tool-logo { width:100%; height:100%; object-fit:contain; display:block; border-radius:inherit; }
.ico.ico--editorial { background:transparent; padding:0; }
.tool-card { min-width: 0; min-height: 174px; padding: 24px; flex-wrap: wrap; gap: 14px; }
.tool-card .ico { width: 46px; height: 46px; flex-shrink: 0; }
.tool-card__body { flex-basis: 100%; min-width: 0; }
.tool-card h3 { font-size: 18px; line-height: 1.4; }
.tool-card p { font-size: 14px; -webkit-line-clamp: 3; }
.tool-card__link { text-decoration: none; color: inherit; }
.tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-card:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.favorite-toggle { position: absolute; right: 16px; top: 16px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 26px; cursor: pointer; }
.favorite-toggle[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); border-color: var(--brand); }
/* A compact visible star keeps the existing, larger touch target. */
body:not(.is-pro) .tool-card .favorite-toggle { display:grid; place-items:center; padding:0; border:0; background:transparent; font-size:18px; line-height:1; }
body:not(.is-pro) .tool-card .favorite-toggle::before { content:""; position:absolute; top:50%; left:50%; width:28px; height:28px; box-sizing:border-box; transform:translate(-50%,-50%); border:1px solid var(--line); border-radius:8px; background:var(--surface); z-index:-1; pointer-events:none; }
body:not(.is-pro) .tool-card .favorite-toggle[aria-pressed="true"]::before { background:var(--brand-soft); border-color:var(--brand); }
@media(max-width:879px) { body:not(.is-pro) .catalog-grid .tool-card .favorite-toggle { top:0; right:0; } }
.tool-card .card__tag { position: static; align-self: center; margin-right: 44px; max-width: calc(100% - 112px); font-size: 10px; }
.catalog-hint { color: var(--muted); font-size: 14px; margin: 16px 0 26px; text-align: center; }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; gap: 12px; } .tool-card { min-height: 150px; padding: 20px; } }

/* A scrolled sticky header must not push its expanded menu out of view. */
.mnav__heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
@media (max-width:1199px) {
  html.menu-open { overflow:hidden; }
  html.menu-open .hdr { position:fixed; inset:0; height:100vh; height:100dvh; z-index:10000; background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; display:flex; flex-direction:column; }
  html.menu-open .hdr__in { flex:0 0 64px; width:100%; }
  html.menu-open .mnav { flex:1; min-height:0; max-height:none; overflow-y:auto; padding-bottom:max(24px, env(safe-area-inset-bottom)); }
}

/* Compact mobile catalog with readable text and reachable controls. */
.catalog-status { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; color:var(--muted); font-size:14px; border-bottom:1px solid var(--line); }
.catalog-reset { min-height:44px; padding:8px 12px; border:0; border-radius:10px; background:var(--brand-soft); color:var(--brand); font:inherit; font-weight:600; cursor:pointer; }
[data-section-block] { scroll-margin-top:80px; }

.order-help { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--brand-soft); }
.order-help p { margin:8px 0 16px; color:var(--ink-2); line-height:1.6; overflow-wrap:anywhere; }
.order-brief { margin:0 0 16px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2, #f7f8f6); font-size:14px; }
.order-brief strong { display:block; margin-bottom:4px; }
.order-brief p { margin:0; color:var(--ink-2); line-height:1.5; }
.auth--wide { min-width:0; }
.auth--wide h1 { overflow-wrap:anywhere; }
.meta-row .meta-row__short, .badge__short { display: none; }

@media (max-width: 560px) {
  .hero { padding-top: 24px; padding-bottom: 20px; text-align: left; }
  .hero h1 { font-size: 30px; line-height: 1.2; }
  .hero__sub { font-size: 15px; margin-top: 12px; }
  .hero .search { margin-top: 20px; }
  .hero .meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px 12px;
    width: 100%;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.4;
  }
  .hero .meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .hero .meta-row > span + span { padding-left: 8px; border-left: 1px solid var(--line-2); }
  .hero .meta-row svg { width: 13px; height: 13px; flex: none; }
  .meta-row__full, .badge__full { display: none !important; }
  .meta-row__short, .badge__short { display: inline !important; }

  /* Mobile pills: wrap neatly without horizontal scroll trapping */
  .pills {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    padding: 6px 0;
    margin: 0;
  }
  .pill {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
  }

  .catalog-hint { text-align: left; font-size: 12px; margin: 12px 0; }
  [data-section-block] { padding: 20px 0 8px; }
  [data-section-block] .section__hd { margin-bottom: 12px; }
  [data-section-block] h2 { font-size: 20px; }

  .tool-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 8px 12px;
    min-height: 0;
    padding: 14px;
    align-items: start;
  }
  .tool-card .ico {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .tool-card__body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .tool-card h3 { font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
  .tool-card p { font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; }
  .tool-card .card__tag {
    grid-column: 2;
    grid-row: 2;
    margin: 4px 0 0;
    max-width: 100%;
    justify-self: start;
    font-size: 9.5px;
  }
  .tool-card .favorite-toggle {
    grid-column: 3;
    grid-row: 1;
    position: static;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }
  .tool-card:hover { transform: none; }

  .order-help { padding: 16px; }
  .order-help .btn { width: 100%; white-space: normal; text-align: center; }
  .auth--wide input[type="file"] { max-width: 100%; }

  .thead { min-width: 0; }
  .thead > div { min-width: 0; width: 100%; }
  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 6px;
    margin-top: 8px;
    overflow-x: visible;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .badge svg { width: 12px; height: 12px; flex: none; }

  /* Shared tool controls: concise actions and no button-driven horizontal overflow. */
  .workspace { padding: 12px; }
  .workspace .drop { min-height: 136px; padding: 18px 12px; gap: 7px; }
  .workspace .drop__ico { width: 40px; height: 40px; border-radius: 12px; }
  .workspace .drop__title { font-size: 16px; }
  .workspace .drop__hint { font-size: 12.5px; }
  .workspace .seg { max-width: 100%; gap: 2px; padding: 3px; }
  .workspace .seg button { min-height: 40px; padding: 7px 10px; font-size: 13px; line-height: 1.2; }
  .workspace .bar { gap: 8px; }
  .workspace .bar > .bar__grow:not(:empty) { flex-basis: 100%; min-width: 0; }
  .workspace .bar > .btn { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 7px 10px; font-size: 14px; line-height: 1.25; text-align: center; white-space: normal; }
  .workspace .fitem > .btn { min-height: 40px; padding: 7px 10px; font-size: 13px; }
  .workspace .seg--direction { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 0; min-width: 0; }
  .workspace .seg--direction button { min-width: 0; padding: 6px 3px; font-size: 11.5px; overflow-wrap: anywhere; }
  .workspace .seg--direction + .bar__grow { display: none; }
  .workspace #btnSwap { flex: 0 0 42px; padding: 0; }
  .workspace #qrCreate .seg[role="tablist"] { display: flex; width: 100%; }
  .workspace #qrCreate .seg[role="tablist"] button { flex: 1 1 29%; }
}

/* Booklet maker: concise controls, legible sheet order on narrow screens. */
.booklet { display: grid; gap: 24px; min-width: 0; }
.booklet h2 { font-size: 19px; line-height: 1.25; margin: 0 0 12px; }
.booklet__intro { color: var(--ink-2); margin: 0; line-height: 1.55; }
.booklet__guide { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); line-height: 1.5; }
.booklet__guide strong { display: block; margin-bottom: 6px; color: var(--ink); }
.booklet__guide p { margin: 0; color: var(--ink-2); }
.booklet__guide ol { margin: 8px 0 10px; padding-left: 22px; }
.booklet__guide li + li { margin-top: 7px; }
.booklet__guide--steps { margin-top: 14px; }
.booklet__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booklet__fields .field { min-width: 0; }
.booklet__fields small, .booklet__note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.booklet__plan, .booklet__upload { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.booklet__summary { font-weight: 700; color: var(--brand-600); margin: 0 0 12px; }
.booklet__tablewrap { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.booklet__table { border-collapse: collapse; width: 100%; min-width: 450px; font-variant-numeric: tabular-nums; }
.booklet__table th, .booklet__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.booklet__table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 12.5px; z-index: 1; }
.booklet__table tbody tr:last-child > * { border-bottom: 0; }
.booklet__table tbody tr:nth-child(even) { background: var(--surface-2); }
.booklet__table tbody th { font-weight: 700; }
.booklet__table .booklet__group th { background: var(--brand-soft); color: var(--brand-600); font-size: 13px; position: sticky; left: 0; }
.booklet__quality { margin: 0 0 12px; line-height: 1.5; }
.booklet__calibration { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.booklet__calibration small { flex: 1 1 280px; color: var(--ink-2); line-height: 1.5; }
.booklet__partDownload { margin-top: 14px; }
.booklet__partDownload label { display: block; margin-bottom: 7px; font-weight: 650; }
.booklet__partDownload .select { flex: 1 1 220px; min-width: 0; }
.booklet__preview { border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; margin-top: 14px; background: var(--surface-2); }
.booklet__previewNav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.booklet__previewNav strong { text-align: center; font-size: 13px; }
.booklet__preview canvas { display: block; width: 100%; max-width: 860px; height: auto; margin: auto; background: white; border: 1px solid var(--line); }
.booklet__note { margin: 12px 0 0; }
.booklet__upload .drop { margin-top: 10px; }
.booklet__upload .bar__grow { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.booklet__upload .bar > .btn { min-height: 42px; }
@media (max-width: 640px) {
  .booklet { gap: 18px; }
  .booklet__fields { grid-template-columns: 1fr; gap: 12px; }
  .booklet h2 { font-size: 17px; }
  .booklet__table { min-width: 360px; font-size: 12.5px; }
  .booklet__table th, .booklet__table td { padding: 8px 7px; }
  .booklet__previewNav { justify-content: center; }
  .booklet__previewNav strong { flex: 1 1 100%; order: -1; }
}
@media (min-width: 820px) {
  #qrRead .split { grid-template-columns: 1fr; }
  #qrRead.has-preview .split { grid-template-columns: 1fr 1fr; }
}

/* Long guidance tables must scroll inside the article, not widen the page. */
.tcontent { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.prose { min-width: 0; }
.prose table { max-width: 100%; }
@media (min-width: 980px) { .tcontent { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 560px) {
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid > * { min-width: 0; overflow-wrap: anywhere; }
  .workspace .ed-opt--limit { display: grid; width: 100%; min-width: 0; }
  .workspace .ed-opt--limit .select { width: 100% !important; min-width: 0; max-width: 100%; }
  .cc-shades button { min-width: 0; padding: 0 2px; font-size: 9px; overflow: hidden; }
}

/* ---------- Next-Step Workflows (toolbase.pro) ---------- */
.next-steps {
  margin: 32px 0 24px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.next-steps__hd {
  margin-bottom: 20px;
}
.next-steps__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.next-steps__hd h2 {
  font-size: clamp(20px, 3.2vw, 24px);
  font-weight: 800;
  margin: 0 0 6px;
}
.next-steps__hd p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.next-steps__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .next-steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.next-steps__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.next-steps__card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.next-steps__card .ico {
  margin-bottom: 12px;
}
.next-steps__body {
  flex: 1;
}
.next-steps__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.next-steps__card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.next-steps__card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.next-steps__arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 16px;
  color: var(--muted);
  transition: transform .15s, color .15s;
}
.next-steps__card:hover .next-steps__arrow {
  color: var(--brand);
  transform: translateX(3px);
}
@media (max-width: 560px) {
  .next-steps {
    padding: 20px 16px;
    margin: 24px 0 16px;
  }
  .next-steps__hd h2 { font-size: 18px; }
  .next-steps__hd p { font-size: 13px; }
  .next-steps__card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 14px;
    align-items: center;
  }
  .next-steps__card .ico {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
  }
  .next-steps__arrow {
    position: static;
  }
}




/* ==========================================================================
   toolbase.pro — Compact Dark Navigation & Icon-Led Catalog
   Exclusively applied when body.is-pro is present (Zero impact on toolbase.uz)
   ========================================================================== */

/* Page Background & Base */
body.is-pro {
  background-color: #f8fafc;
  color: #0f172a;
}
body.is-pro:lang(ru) {
  --font-head: "Inter", "Inter Fallback", "Inter Fallback R", "Segoe UI", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Compact Dark Header & Mega-Menu
   -------------------------------------------------------------------------- */
body.is-pro .pro-hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.is-pro .pro-hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: relative;
}

/* Logo */
body.is-pro .pro-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

body.is-pro .pro-logo__mark {
  background: #22c55e;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.is-pro .pro-logo__domain {
  color: #4ade80;
  font-weight: 700;
}

/* Main Desktop Navigation */
body.is-pro .pro-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

@media (max-width: 1023px) {
  body.is-pro .pro-nav {
    display: none;
  }
}

body.is-pro .pro-nav__item {
  position: relative;
}

body.is-pro .pro-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

body.is-pro .pro-nav__btn:hover,
body.is-pro .pro-nav__btn:focus-visible {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

body.is-pro .pro-nav__btn[aria-expanded="true"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 #22c55e;
}

body.is-pro .pro-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

body.is-pro .pro-nav__btn[aria-expanded="true"] .pro-chevron {
  transform: rotate(180deg);
  color: #22c55e;
}

body.is-pro .pro-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

body.is-pro .pro-nav__link:hover,
body.is-pro .pro-nav__link:focus-visible {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

body.is-pro .pro-nav__link.is-active,
body.is-pro .pro-nav__link[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

/* Mega-Menu Panel */
body.is-pro .pro-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1001;
  min-width: 540px;
  max-width: 720px;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 16px;
  animation: proMenuFadeIn 0.16s ease-out;
}

@keyframes proMenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.is-pro .pro-panel {
    animation: none;
  }
}

body.is-pro .pro-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.is-pro .pro-panel__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}

body.is-pro .pro-panel__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

body.is-pro .pro-panel__count {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

body.is-pro .pro-panel__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.is-pro .pro-panel__col-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

body.is-pro .pro-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.is-pro .pro-panel__list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

body.is-pro .pro-panel__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

body.is-pro .pro-panel__link:hover,
body.is-pro .pro-panel__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  body.is-pro .pro-panel__link:hover,
  body.is-pro .pro-panel__link:focus-visible {
    transform: none;
  }
}

body.is-pro .pro-panel__ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.is-pro .pro-panel__ico svg {
  width: 18px;
  height: 18px;
}

body.is-pro .pro-panel__ico img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

body.is-pro .pro-panel__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.is-pro .pro-panel__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  transition: color 0.15s ease;
}

body.is-pro .pro-panel__link:hover .pro-panel__name {
  color: #4ade80;
}

body.is-pro .pro-panel__desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.is-pro .pro-panel__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #1e293b;
}

body.is-pro .pro-panel__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4ade80;
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}

body.is-pro .pro-panel__all:hover {
  gap: 8px;
  color: #86efac;
}

/* Header Right End */
body.is-pro .pro-hdr__end {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.is-pro .pro-lang {
  position: relative;
}
body.is-pro .pro-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
body.is-pro .pro-lang__btn:hover,
body.is-pro .pro-lang__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
body.is-pro .pro-lang__globe {
  color: #1fbe72;
}
body.is-pro .pro-lang__cur {
  letter-spacing: 0.5px;
}
body.is-pro .pro-lang__btn .pro-chevron {
  transition: transform 0.18s ease;
}
body.is-pro .pro-lang__btn[aria-expanded="true"] .pro-chevron {
  transform: rotate(180deg);
}
body.is-pro .pro-lang__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: proMenuPop 0.15s ease;
}
@keyframes proMenuPop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
body.is-pro .pro-lang__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.is-pro .pro-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.12s ease;
}
body.is-pro .pro-lang__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
body.is-pro .pro-lang__item.is-active {
  background: rgba(31, 190, 114, 0.15);
  color: #34d399;
}
body.is-pro .pro-lang__code {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
body.is-pro .pro-lang__item.is-active .pro-lang__code {
  background: #1fbe72;
  color: #0f172a;
}
body.is-pro .pro-lang__label {
  flex: 1;
}
body.is-pro .pro-lang__check {
  margin-left: auto;
  color: #34d399;
}

/* Mobile Drawer Language Grid */
body.is-pro .pro-mnav__lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
body.is-pro .pro-mnav__lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}
body.is-pro .pro-mnav__lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
body.is-pro .pro-mnav__lang-btn.is-active {
  background: rgba(31, 190, 114, 0.15);
  border-color: #1fbe72;
  color: #34d399;
}
body.is-pro .pro-mnav__lang-code {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
}
body.is-pro .pro-mnav__lang-btn.is-active .pro-mnav__lang-code {
  background: #1fbe72;
  color: #0f172a;
}

/* Mobile Hamburger */
body.is-pro .pro-burger {
  display: none;
}

@media (max-width: 1023px) {
  body.is-pro .pro-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }
}

/* Mobile Drawer (pro-mnav) */
body.is-pro .pro-mnav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0f172a;
  color: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.is-pro .pro-mnav[hidden] {
  display: none;
}

body.is-pro .pro-mnav__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #1e293b;
  min-height: 58px;
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 2;
}

body.is-pro .pro-mnav__close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.is-pro .pro-mnav__body {
  padding: 16px 18px 36px;
}

body.is-pro .pro-mnav__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 16px 0 8px;
}

body.is-pro .pro-acc {
  border-bottom: 1px solid #1e293b;
}

body.is-pro .pro-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  background: transparent;
  border: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

body.is-pro .pro-acc__title {
  flex: 1;
}

body.is-pro .pro-acc__count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 8px;
}

body.is-pro .pro-acc__btn[aria-expanded="true"] .pro-chevron {
  transform: rotate(180deg);
  color: #22c55e;
}

body.is-pro .pro-acc__panel {
  padding: 4px 0 14px;
}

body.is-pro .pro-acc__panel[hidden] {
  display: none;
}

body.is-pro .pro-acc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.is-pro .pro-acc__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 48px;
}

body.is-pro .pro-acc__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.is-pro .pro-acc__ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.is-pro .pro-acc__ico svg {
  width: 18px;
  height: 18px;
}

body.is-pro .pro-acc__ico img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

body.is-pro .pro-acc__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.is-pro .pro-acc__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
}

body.is-pro .pro-acc__desc {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-pro .pro-acc__foot {
  padding-top: 8px;
  padding-left: 8px;
}

body.is-pro .pro-acc__all {
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  text-decoration: none;
}

body.is-pro .pro-mnav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.is-pro .pro-mnav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
}

body.is-pro .pro-mnav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

body.is-pro .pro-mnav__foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

body.is-pro .pro-mnav__foot a {
  color: #94a3b8;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Compact Hero & Subnav Chips
   -------------------------------------------------------------------------- */
body.is-pro .pro-hero {
  padding: 24px 0 16px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

body.is-pro .pro-hero__title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

body.is-pro .pro-hero__title em {
  font-style: normal;
  color: #15803d;
}

body.is-pro .pro-hero__sub {
  font-size: 15px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 auto 16px;
  max-width: 600px;
}

body.is-pro .pro-search {
  margin: 0 auto 14px !important;
  max-width: 580px !important;
}

body.is-pro .pro-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  overflow: visible;
}

body.is-pro .pro-pills .pill {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.is-pro .pro-pills .pill:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.is-pro .pro-pills .pill[aria-pressed="true"],
body.is-pro .pro-pills .pill.is-active {
  color: #ffffff;
  background: #0f172a;
  border-color: #0f172a;
}

/* --------------------------------------------------------------------------
   Section Headers (Centered, Clean 123apps / PDF.io Style)
   -------------------------------------------------------------------------- */
body.is-pro .pro-section-hd {
  margin: 42px 0 22px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

body.is-pro .pro-section-hd__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

body.is-pro .pro-section-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.2;
}

body.is-pro .pro-section-badge--pdf { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
body.is-pro .pro-section-badge--image { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
body.is-pro .pro-section-badge--text { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
body.is-pro .pro-section-badge--utils { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
body.is-pro .pro-section-badge--career { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

body.is-pro .pro-section-count {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

body.is-pro .pro-section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

body.is-pro .pro-section-sub {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}

body.is-pro .section {
  margin-bottom: 44px;
}

/* --------------------------------------------------------------------------
   Refreshed Tool Cards: Centered, 5-Column Grid, Crisp Vector Icons
   -------------------------------------------------------------------------- */
body.is-pro .catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1200px) {
  body.is-pro .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 920px) {
  body.is-pro .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  body.is-pro .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 600px) {
  body.is-pro .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

body.is-pro .tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 172px;
  padding: 24px 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  min-width: 0;
}

body.is-pro .tool-card[hidden],
body.is-pro .card[hidden],
[hidden] {
  display: none !important;
}

body.is-pro .tool-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  body.is-pro .tool-card {
    transform: none !important;
    transition: none !important;
  }
}

/* Modern High-Contrast Vector Pro Icons */
body.is-pro .tool-card .ico--pro-vector {
  width: 58px;
  height: 58px;
  background: transparent !important;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
}

body.is-pro .tool-card .ico--pro-vector img {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.is-pro .tool-card:hover .ico--pro-vector {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.16));
}

body.is-pro .tool-card:hover .ico--pro-vector img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  body.is-pro .tool-card:hover .ico--pro-vector,
  body.is-pro .tool-card:hover .ico--pro-vector img {
    transform: none !important;
  }
}

/* Body & Typography */
body.is-pro .tool-card__body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

body.is-pro .tool-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-align: center;
  width: 100%;
}

body.is-pro .tool-card p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

body.is-pro .tool-card__link {
  text-decoration: none;
  color: inherit;
}

body.is-pro .tool-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

body.is-pro .tool-card:focus-within {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Favorite Toggle */
body.is-pro .favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.18s ease;
}

body.is-pro .tool-card:hover .favorite-toggle {
  opacity: 0.85;
}

body.is-pro .favorite-toggle:hover,
body.is-pro .favorite-toggle[aria-pressed="true"] {
  opacity: 1 !important;
  color: #eab308;
  background: #fefce8;
  border-color: #fef08a;
}

body.is-pro .favorite-toggle:hover {
  background: #f1f5f9;
  color: #eab308;
}

body.is-pro .favorite-toggle[aria-pressed="true"] {
  color: #eab308;
  background: #fefce8;
  border-color: #fef08a;
}

/* Card Tag (Pro / New / Off) */
body.is-pro .tool-card .card__tag {
  position: absolute;
  top: 14px;
  right: 50px;
  z-index: 2;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Vibrant, Distinct Color Palettes per Tool
   -------------------------------------------------------------------------- */
/* PDF Tools */
body.is-pro .tool-card--pdf-merge .ico { background: #ffe4e6; color: #e11d48; }
body.is-pro .tool-card--pdf-merge:hover { border-color: #fca5a5; }

body.is-pro .tool-card--pdf-split .ico { background: #ede9fe; color: #7c3aed; }
body.is-pro .tool-card--pdf-split:hover { border-color: #c4b5fd; }

body.is-pro .tool-card--pdf-compress .ico { background: #dcfce7; color: #16a34a; }
body.is-pro .tool-card--pdf-compress:hover { border-color: #86efac; }

body.is-pro .tool-card--pdf-protect .ico { background: #fef3c7; color: #d97706; }
body.is-pro .tool-card--pdf-protect:hover { border-color: #fcd34d; }

body.is-pro .tool-card--pdf-to-word .ico { background: #dbeafe; color: #2563eb; }
body.is-pro .tool-card--pdf-to-word:hover { border-color: #93c5fd; }

body.is-pro .tool-card--word-to-pdf .ico { background: #e0f2fe; color: #0284c7; }
body.is-pro .tool-card--word-to-pdf:hover { border-color: #7dd3fc; }

body.is-pro .tool-card--pdf-to-jpg .ico { background: #fce7f3; color: #db2777; }
body.is-pro .tool-card--pdf-to-jpg:hover { border-color: #f9a8d4; }

body.is-pro .tool-card--jpg-to-pdf .ico { background: #ffedd5; color: #ea580c; }
body.is-pro .tool-card--jpg-to-pdf:hover { border-color: #fed7aa; }

/* Image Tools */
body.is-pro .tool-card--bg-remove .ico { background: #e0e7ff; color: #4f46e5; }
body.is-pro .tool-card--bg-remove:hover { border-color: #a5b4fc; }

body.is-pro .tool-card--image-compress .ico { background: #ccfbf1; color: #0d9488; }
body.is-pro .tool-card--image-compress:hover { border-color: #5eead4; }

body.is-pro .tool-card--image-converter .ico { background: #cffafe; color: #0891b2; }
body.is-pro .tool-card--image-converter:hover { border-color: #67e8f9; }

body.is-pro .tool-card--image-resize .ico { background: #e0f2fe; color: #0369a1; }
body.is-pro .tool-card--image-resize:hover { border-color: #7dd3fc; }

/* Text & Content Tools */
body.is-pro .tool-card--word-counter .ico { background: #e0e7ff; color: #4338ca; }
body.is-pro .tool-card--word-counter:hover { border-color: #a5b4fc; }

body.is-pro .tool-card--case-converter .ico { background: #ede9fe; color: #6d28d9; }
body.is-pro .tool-card--case-converter:hover { border-color: #c4b5fd; }

body.is-pro .tool-card--lotin-krill .ico { background: #ecfeff; color: #0e7490; }
body.is-pro .tool-card--lotin-krill:hover { border-color: #67e8f9; }

/* Developer & Security Utilities */
body.is-pro .tool-card--json-formatter .ico { background: #dcfce7; color: #15803d; }
body.is-pro .tool-card--json-formatter:hover { border-color: #86efac; }

body.is-pro .tool-card--password-generator .ico { background: #ffedd5; color: #c2410c; }
body.is-pro .tool-card--password-generator:hover { border-color: #fed7aa; }

body.is-pro .tool-card--qr-generator .ico { background: #f3e8ff; color: #7e22ce; }
body.is-pro .tool-card--qr-generator:hover { border-color: #d8b4fe; }

/* Career & Resume Tools */
body.is-pro .tool-card--cover-letter .ico { background: #dbeafe; color: #1d4ed8; }
body.is-pro .tool-card--cover-letter:hover { border-color: #93c5fd; }

body.is-pro .tool-card--rezyume .ico { background: #fee2e2; color: #b91c1c; }
body.is-pro .tool-card--rezyume:hover { border-color: #fca5a5; }

/* Fallbacks for other tool types */
body.is-pro .ico--pdf { background: #fee2e2; color: #dc2626; }
body.is-pro .ico--image { background: #ede9fe; color: #7c3aed; }
body.is-pro .ico--text { background: #dbeafe; color: #2563eb; }
body.is-pro .ico--code { background: #ccfbf1; color: #0d9488; }
body.is-pro .ico--file { background: #dcfce7; color: #16a34a; }
body.is-pro .ico--amber { background: #fef3c7; color: #d97706; }
body.is-pro .ico--violet { background: #f3e8ff; color: #9333ea; }
body.is-pro .ico--number { background: #ffedd5; color: #ea580c; }

/* --------------------------------------------------------------------------
   Mobile Adaptations (< 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  body.is-pro .pro-hero {
    padding: 16px 0 10px;
  }
  body.is-pro .pro-hero__title {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
  body.is-pro .pro-hero__sub {
    font-size: 13px;
    margin-bottom: 12px;
  }
  body.is-pro .pro-pills {
    gap: 6px;
    margin-bottom: 14px;
  }
  body.is-pro .pro-pills .pill {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 12.5px;
  }

  /* Catalog grid & single-column horizontal tool cards */
  body.is-pro .catalog-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  body.is-pro .tool-card {
    min-height: 0;
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    text-align: left;
    border-radius: 12px;
  }
  body.is-pro .tool-card:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  }
  body.is-pro .tool-card:active {
    background: #f8fafc;
    border-color: #cbd5e1;
  }
  body.is-pro .tool-card .ico,
  body.is-pro .tool-card .ico--pro-anim,
  body.is-pro .tool-card .ico--pro-vector {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    flex-shrink: 0 !important;
  }
  body.is-pro .tool-card .ico--pro-anim img,
  body.is-pro .tool-card .ico--pro-vector img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }
  body.is-pro .tool-card .ico svg {
    width: 20px !important;
    height: 20px !important;
  }
  body.is-pro .tool-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    padding-right: 34px !important;
  }
  body.is-pro .tool-card h3 {
    font-size: 15px !important;
    line-height: 1.32 !important;
    margin: 0 0 3px !important;
    text-align: left !important;
    width: 100%;
  }
  body.is-pro .tool-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    width: 100%;
    -webkit-line-clamp: 2 !important;
  }
  body.is-pro .favorite-toggle {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    opacity: 0.65 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }
  body.is-pro .favorite-toggle.is-active {
    opacity: 1 !important;
    color: #f59e0b !important;
  }
  body.is-pro .tool-card .card__tag {
    top: 8px !important;
    right: 44px !important;
  }

  /* Tool detail header */
  body.is-pro .thead--pro {
    padding: 12px 0 10px;
    gap: 12px;
  }
  body.is-pro .thead--pro .thead__title-row {
    gap: 10px;
  }
  body.is-pro .thead--pro .ico--pro-tool,
  body.is-pro .thead--pro .ico--pro-tool img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  body.is-pro .thead--pro h1 {
    font-size: 20px;
    line-height: 1.25;
  }
  body.is-pro .thead--pro .thead__lead {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Workspace & interactive tool controls */
  body.is-pro .workspace {
    padding: 14px 12px;
    border-radius: 14px;
  }
  body.is-pro .workspace .drop,
  body.is-pro .drop {
    min-height: 120px;
    padding: 16px 10px;
    gap: 6px;
    border-radius: 12px;
  }
  body.is-pro .workspace .drop__title {
    font-size: 14px;
    padding: 9px 18px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }
  body.is-pro .workspace .drop__hint {
    font-size: 12px;
    text-align: center;
  }
  body.is-pro .workspace .fields {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
  }
  body.is-pro .workspace .split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.is-pro .workspace .seg {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
    padding: 3px;
  }
  body.is-pro .workspace .seg button {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1.25;
    text-align: center;
  }
  body.is-pro .workspace .bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
  }
  body.is-pro .workspace .bar > .bar__grow:not(:empty) {
    flex-basis: 100%;
    min-width: 0;
    font-size: 12.5px;
  }
  body.is-pro .workspace .bar > .btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13.5px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.is-pro .workspace .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  body.is-pro .workspace .toolbar .btn {
    flex: 1 1 auto;
    min-height: 42px;
  }
  body.is-pro .hj-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  body.is-pro .hj-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
    font-size: 13px;
  }
  body.is-pro .hj-actions .btn--primary {
    flex: 1 1 100%;
  }
}


/* --------------------------------------------------------------------------

   Tool Detail & Guide Page Refinements

   -------------------------------------------------------------------------- */

body.is-pro .crumbs {

  margin: 14px 0 12px;

  font-size: 13px;

  color: #64748b;

}



body.is-pro .crumbs a {

  color: #64748b;

  text-decoration: none;

}



body.is-pro .crumbs a:hover {

  color: #0f172a;

}



body.is-pro .thead--pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 14px;
}

body.is-pro .thead--pro .thead__meta {
  flex: 1;
  min-width: 0;
}

body.is-pro .thead--pro .thead__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

body.is-pro .thead--pro .ico--pro-tool {
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.08));
}

body.is-pro .thead--pro .ico--pro-tool img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

body.is-pro .thead--pro h1 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  body.is-pro .thead--pro h1 {
    white-space: nowrap;
  }
}

body.is-pro .thead--pro .thead__lead {
  font-size: 14px;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.45;
  max-width: 780px;
}

body.is-pro .pro-unified-grid {
  margin-top: 20px;
  margin-bottom: 56px;
}

/* Tool Stage on Pro: Full-width matching container and lower blocks */
body.is-pro .tool-workspace-stage {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
}

body.is-pro .workspace {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
  padding: 24px 28px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  body.is-pro .workspace {
    padding: 16px 14px;
    border-radius: 14px;
  }
}

body.is-pro .workspace .drop,
body.is-pro .drop {
  min-height: 150px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: #fbfcfe;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

body.is-pro .workspace .drop:hover,
body.is-pro .workspace .drop.is-over {
  border-color: #7c3aed;
  background: #fdf4ff;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.12);
}

body.is-pro .workspace .drop__ico {
  display: none;
}

body.is-pro .workspace .drop__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #7c3aed;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.32);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  pointer-events: none;
}

body.is-pro .workspace .drop:hover .drop__title {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.42);
}

body.is-pro .workspace .drop__hint {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

body.is-pro .workspace .drop--sm {
  min-height: 100px;
  padding: 14px;
}

body.is-pro .workspace .drop--sm .drop__title {
  font-size: 14px;
  padding: 9px 22px;
}

/* Ensure all input, textarea, and interactive components inside workspace span full width */
body.is-pro .workspace .field,
body.is-pro .workspace .textarea,
body.is-pro .workspace textarea,
body.is-pro .workspace .convert,
body.is-pro .workspace .fitem,
body.is-pro .workspace .toolbar,
body.is-pro .workspace .bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.is-pro .workspace .convert {
  display: block;
}

/* --------------------------------------------------------------------------
   Elevated Lower Content (Guide, Steps, FAQ, Sidebar) on Pro
   -------------------------------------------------------------------------- */
body.is-pro .tcontent {
  display: grid;
  gap: 32px;
  padding: 32px 0 24px;
}

@media (min-width: 980px) {
  body.is-pro .tcontent {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

body.is-pro .prose {
  max-width: 760px;
}

body.is-pro .prose h2 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

body.is-pro .prose h2:first-child {
  margin-top: 0;
}

body.is-pro .prose h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 22px 0 8px;
}

body.is-pro .prose p,
body.is-pro .prose li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 12px;
}

body.is-pro .prose a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.is-pro .prose a:hover {
  color: #6d28d9;
}

body.is-pro .steps {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

body.is-pro .steps li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #334155 !important;
  font-size: 14px;
  line-height: 1.55;
}

body.is-pro .steps li::before {
  content: counter(s);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font: 700 13px/26px var(--font-head);
  text-align: center;
}

body.is-pro .faq {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

body.is-pro .faq details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.is-pro .faq details[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

body.is-pro .faq summary {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  padding: 13px 26px 13px 0;
}

body.is-pro .faq details p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  padding: 0 0 14px;
  margin: 0;
}

body.is-pro .aside .box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

body.is-pro .aside .box h3 {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

body.is-pro .aside .mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}

body.is-pro .aside .mini:last-child {
  border-bottom: none;
}

body.is-pro .aside .mini:hover {
  color: #7c3aed;
}



body.is-pro .article {

  max-width: 780px;

  margin: 0 auto;

}



body.is-pro .article h1 {

  font-size: 32px;

  line-height: 1.25;

  margin-bottom: 12px;

}



body.is-pro .article-body {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

/* --------------------------------------------------------------------------
   toolbase.pro - Editorial Hub, Featured Hero, TOC, Takeaways & Tool CTA Cards
   -------------------------------------------------------------------------- */

/* Smooth Anchor Scroll & Heading Clearance */
html {
  scroll-behavior: smooth;
}
body.is-pro .article .prose h2[id] {
  scroll-margin-top: 84px;
}

/* Category Filter Pill Count */
body.is-pro .pill__count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  line-height: 1.35;
  vertical-align: middle;
}
body.is-pro .pill[aria-pressed="true"] .pill__count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Featured Hero Article Banner */
body.is-pro .featured-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 34px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.is-pro .featured-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}
@media (min-width: 820px) {
  body.is-pro .featured-hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    padding: 28px;
    align-items: center;
  }
}
body.is-pro .featured-hero__media {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}
body.is-pro .featured-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
body.is-pro .featured-hero:hover .featured-hero__img {
  transform: scale(1.02);
}
body.is-pro .featured-hero__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
body.is-pro .featured-hero__content {
  display: flex;
  flex-direction: column;
}
body.is-pro .featured-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}
body.is-pro .featured-hero__cat {
  font-weight: 800;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11.5px;
}
body.is-pro .meta-dot {
  color: #94a3b8;
}
body.is-pro .featured-hero__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #0f172a;
}
body.is-pro .featured-hero__title a {
  color: inherit;
  text-decoration: none;
}
body.is-pro .featured-hero__title a:hover {
  color: #4f46e5;
}
body.is-pro .featured-hero__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
}
body.is-pro .featured-hero__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* E-E-A-T Editorial Byline */
.article__byline,
.article__author-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted, #64748b);
  margin: 12px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.article__byline strong {
  color: var(--ink, #0f172a);
}
.article__byline .meta-dot {
  color: var(--line-2, #cbd5e1);
  user-select: none;
}
.trust-badge,
.article .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand, #059669);
  font-weight: 600;
  font-size: 12.5px;
}
.trust-badge svg,
.article .trust-badge svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0;
}

/* Key Takeaways (Executive Summary Box) */
.article-takeaways {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-left: 3px solid var(--brand, #2563eb);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0 28px;
}
.article-takeaways__hd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink, #1e293b);
  margin-bottom: 10px;
}
.article-takeaways__hd svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--brand, #2563eb);
  flex-shrink: 0;
}
.article-takeaways__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-takeaways__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2, #334155);
}
.article-takeaways__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--brand, #2563eb);
  font-weight: 700;
  font-size: 15px;
}

/* Table of Contents (Clean Minimalist Box) */
.article-toc {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0 30px;
}
.article-toc__hd {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #f1f5f9);
}
.article-toc__list {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-toc__list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #64748b);
}
.article-toc__list a {
  color: var(--ink, #1e293b);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.article-toc__list a:hover {
  color: var(--brand, #2563eb);
  text-decoration: underline;
}

/* Tool Callout (High-Utility, Clean Block) */
.tool-cta-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tool-cta-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}
.tool-cta-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft, #f1f5f9);
  color: var(--brand, #2563eb);
  border: 1px solid var(--line, #e2e8f0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-cta-card__icon svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block !important;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.tool-cta-card__icon img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: block !important;
  object-fit: contain;
}

body.is-pro .tool-cta-card__icon {
  background: transparent;
  border: 0;
}
body.is-pro .tool-cta-card__icon img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
}
.tool-cta-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tool-cta-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}
.tool-cta-card__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #64748b);
  margin: 0;
}
.tool-cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--brand, #0f172a);
  color: #ffffff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.tool-cta-card__btn:hover {
  background: var(--brand-600, #335A3A);
  color: #ffffff !important;
  opacity: 0.95;
}
.tool-cta-card__btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}
.tool-cta-card--bottom {
  margin-top: 36px;
}

/* Toolbase Pro Specific Overrides */
body.is-pro .article-takeaways {
  background: #f8fafc;
  border-left-color: #2563eb;
}
body.is-pro .article-takeaways__hd svg,
body.is-pro .article-takeaways__list li::before {
  color: #2563eb;
}
body.is-pro .tool-cta-card {
  background: #f8fafc;
}
body.is-pro .tool-cta-card__btn {
  background: #0f172a;
}
body.is-pro .tool-cta-card__btn:hover {
  background: #334155;
}

@media (max-width: 620px) {
  .article-takeaways, .article-toc {
    padding: 14px 16px;
  }
  .tool-cta-card {
    align-items: stretch;
    padding: 14px 16px;
  }
  .tool-cta-card__left {
    min-width: 0;
  }
  .tool-cta-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Collapsible TOC, Editorial Figures & Callouts on toolbase.uz */
.article .prose h2[id] {
  scroll-margin-top: 84px;
}
.article-toc__details {
  margin: 0;
}
.article-toc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink, #16181D);
  cursor: pointer;
  user-select: none;
}
.article-toc__summary::-webkit-details-marker {
  display: none;
}
.article-toc__chevron {
  flex-shrink: 0;
  color: var(--muted, #666B76);
  transition: transform 0.2s ease;
}
.article-toc__details[open] .article-toc__chevron {
  transform: rotate(180deg);
}
.article-toc__details[open] .article-toc__summary {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #E7E5DF);
}

.prose .article-figure {
  margin: 22px 0 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #E7E5DF);
  background: var(--surface, #FFFFFF);
  box-shadow: var(--shadow);
}
.prose .article-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.prose .article-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted, #666B76);
  background: var(--surface-2, #F4F3EF);
  border-top: 1px solid var(--line, #E7E5DF);
}

.prose .article-callout {
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line, #E7E5DF);
  border-left: 4px solid var(--brand, #3F6B47);
  background: var(--brand-soft, #E8F0E9);
  color: var(--ink, #16181D);
  font-size: 15.5px;
  line-height: 1.6;
}
.prose .article-callout strong {
  color: var(--ink, #16181D);
}
.prose .article-callout--warn {
  border-left-color: var(--c-amber, #9A5A08);
  background: var(--c-amber-bg, #FDF4E3);
}
.prose .article-callout--danger {
  border-left-color: var(--danger, #C2410C);
  background: var(--danger-soft, #FFF1EA);
}


/* Worked document samples, table captions & mobile table/image legibility */
.prose .worked-example {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line, #E7E5DF);
  border-top: 3px solid var(--brand, #3F6B47);
  background: var(--surface, #FFFFFF);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.prose .worked-example hr {
  border: 0;
  border-top: 1px dashed var(--line-2, #D5D2C9);
  margin: 16px 0;
}
.prose table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink, #16181D);
  padding: 0 0 8px;
}
.prose .check-list {
  padding-left: 20px;
}
.prose .check-list li {
  margin: 8px 0;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .prose .worked-example {
    padding: 14px 14px;
    font-size: 14.5px;
    line-height: 1.6;
  }
  .prose table {
    font-size: 13.5px;
    line-height: 1.45;
    -webkit-overflow-scrolling: touch;
  }
  .prose th, .prose td {
    padding: 7px 9px;
    min-width: 96px;
    overflow-wrap: break-word;
    vertical-align: top;
  }
  .prose .article-figure figcaption {
    padding: 8px 11px;
    font-size: 12.5px;
  }
}
