/* ==========================================================================
   Tool Kit — shared styles for the free tool pages (loaded on those pages
   only; every rule scoped to .tk-* classes). Built on the theme's tokens.
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */
.tk-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(28px, 4vw, 48px); }
.tk-hero__glow { position: absolute; width: 60vmax; height: 60vmax; inset-inline-end: -26vmax; top: -32vmax; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); opacity: 0.6; }
.tk-hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.tk-hero__top .eyebrow { margin: 0; }
.tk-hero__title { font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: var(--lh-head); max-width: 20ch; margin: 0; }
.tk-hero__lead { max-width: 64ch; margin: 22px 0 0; font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.2rem); color: var(--text-2); }
.tk-lang { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8rem; font-family: var(--font-body); }
.tk-lang span { color: var(--muted); }
.tk-lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: 999px; color: var(--text-2); letter-spacing: 0.06em; }
.tk-lang a:hover { color: var(--text); }
.tk-lang a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.tk-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.tk-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-1); font-size: 0.86rem; color: var(--text-2); }
.tk-badges .icon { color: var(--accent); flex: none; }

/* Layout ------------------------------------------------------------------- */
.tk-app-wrap { padding-bottom: clamp(24px, 4vw, 48px); }
.tk-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1024px) {
	.tk-app--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
	.tk-app--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; }
	.tk-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
}
.tk-card { min-width: 0; border-radius: var(--radius-xl); padding: clamp(20px, 2.6vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.tk-card[hidden] { display: none; }
.tk-card__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
.tk-card__title--sm { font-size: 1.05rem; color: var(--text-2); font-weight: 600; }
.tk-card__dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tk-grid2, .tk-grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .tk-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tk-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Fields ------------------------------------------------------------------- */
.tk-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.tk-fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tk-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; font-size: 0.9rem; color: var(--text-2); }
.tk-opt { font-size: 0.74rem; color: var(--muted); }
.tk-input, .tk-select, .tk-textarea { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(0, 0, 0, 0.28); color: var(--text); font: 500 1rem/1.3 var(--font-body); transition: border-color var(--dur-micro, .2s), background-color var(--dur-micro, .2s); }
.tk-textarea { min-height: 140px; padding: 12px 14px; line-height: 1.7; resize: vertical; font-family: var(--font-text); }
.tk-input::placeholder, .tk-textarea::placeholder { color: var(--muted); opacity: 0.75; }
.tk-input:hover, .tk-select:hover, .tk-textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.tk-input:focus, .tk-select:focus, .tk-textarea:focus { outline: none; border-color: var(--accent); background: rgba(0, 0, 0, 0.38); }
.tk-input[aria-invalid="true"] { border-color: #e06c5a; }
.tk-input[inputmode="decimal"], .tk-input[inputmode="numeric"], .tk-input[type="url"], .tk-input[dir="ltr"] { text-align: left; font-variant-numeric: tabular-nums; }
.tk-select { appearance: none; padding-inline-end: 36px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .tk-select { background-position: 15px 50%, 20px 50%; }
.tk-select option { background: #151515; color: var(--text); }
.tk-input[type="date"], .tk-input[type="month"], .tk-input[type="color"] { color-scheme: dark; }
.tk-group { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(0, 0, 0, 0.28); transition: border-color var(--dur-micro, .2s); }
.tk-group:focus-within { border-color: var(--accent); }
.tk-group .tk-input { border: 0; background: transparent; min-height: 48px; }
.tk-addon { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font: 600 0.85rem/1 var(--font-body); border-inline-start: 1px solid var(--line); white-space: nowrap; }
.tk-help { margin: 0; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }
.tk-error { margin: 0; font-size: 0.84rem; line-height: 1.6; color: #ef8a78; }
.tk-error:empty, .tk-status:empty, .tk-note:empty { display: none; }
.tk-status { margin: 0; font-size: 0.85rem; color: #6fd3a2; }
.tk-check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.tk-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tk-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Segmented radio group ---------------------------------------------------- */
.tk-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(0, 0, 0, 0.25); }
.tk-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tk-seg label { display: grid; place-items: center; min-height: 42px; padding: 4px 8px; border-radius: calc(var(--radius) - 4px); color: var(--text-2); font-size: 0.86rem; text-align: center; line-height: 1.3; cursor: pointer; transition: background-color var(--dur-micro, .2s), color var(--dur-micro, .2s); }
.tk-seg label:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tk-seg input:checked + label { background: var(--accent); color: #fff; font-weight: 600; }
.tk-seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Results ------------------------------------------------------------------ */
.tk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-stat { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, 0.22); }
.tk-stat__label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.tk-stat__value { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--font-body); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.tk-stat__sub { font-size: 0.76rem; color: var(--text-2); line-height: 1.5; }
.tk-stat--hero { grid-column: 1 / -1; padding: 22px; border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 85%); }
.tk-stat--hero .tk-stat__value { font-size: clamp(2rem, 4vw, 3rem); }
.tk-stat.is-good { border-color: rgba(111, 211, 162, 0.45); }
.tk-stat.is-good .tk-stat__value { color: #6fd3a2; }
.tk-stat.is-bad { border-color: rgba(239, 138, 120, 0.45); }
.tk-stat.is-bad .tk-stat__value { color: #ef8a78; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--glass-1); border: 1px solid var(--line); color: var(--text-2); justify-self: start; }
.tk-pill.is-good { color: #6fd3a2; border-color: rgba(111, 211, 162, 0.45); background: rgba(111, 211, 162, 0.08); }
.tk-pill.is-warn { color: #f3c98b; border-color: rgba(240, 180, 90, 0.4); background: rgba(240, 180, 90, 0.08); }
.tk-pill.is-bad { color: #ef8a78; border-color: rgba(239, 138, 120, 0.45); background: rgba(239, 138, 120, 0.08); }
.tk-empty { margin: 0; padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); font-size: 0.9rem; text-align: center; line-height: 1.7; }
.tk-empty[hidden] { display: none; }
.tk-note { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.82rem; line-height: 1.7; color: var(--text-2); background: rgba(255, 255, 255, 0.02); }
.tk-note.is-warn { border-color: rgba(240, 180, 90, 0.35); background: rgba(240, 180, 90, 0.08); color: #f3c98b; }
.tk-formula { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); font: 0.82rem/1.7 var(--font-body); color: var(--text-2); direction: ltr; text-align: left; overflow-wrap: anywhere; }

/* Buttons / chips ---------------------------------------------------------- */
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-actions .btn { flex: 1 1 160px; justify-content: center; }
.tk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 0.88rem/1 var(--font-text); cursor: pointer; transition: border-color var(--dur-micro, .2s), color var(--dur-micro, .2s), background-color var(--dur-micro, .2s); }
.tk-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }
.tk-chip[aria-pressed="true"], .tk-chip.is-done { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.tk-chip .icon { color: var(--accent); }
.tk-chip--sm { min-height: 34px; padding: 0 12px; font-size: 0.8rem; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-link-btn { min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--text-2); font: 500 0.82rem/1 var(--font-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; cursor: pointer; }
.tk-link-btn:hover { color: var(--text); }
.tk-icon-btn { display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text-2); cursor: pointer; }
.tk-icon-btn:hover { color: #ef8a78; border-color: #ef8a78; }
.tk-card [disabled] { opacity: 0.42; pointer-events: none; }

/* Tables + meters ---------------------------------------------------------- */
.tk-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tk-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tk-table th, .tk-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.tk-table th { background: #151515; color: var(--muted); font-weight: 600; font-size: 0.76rem; white-space: nowrap; }
.tk-table tr:last-child td { border-bottom: 0; }
.tk-table .num { font-variant-numeric: tabular-nums; direction: ltr; text-align: end; white-space: nowrap; }
.tk-table tfoot td { font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tk-table input { min-height: 42px; }
.tk-meter { display: grid; gap: 6px; }
.tk-meter__top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: var(--text-2); }
.tk-meter__val { font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; color: var(--muted); }
.tk-meter__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.tk-meter__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: #6fd3a2; transition: width var(--dur-ui, .3s) var(--ease-out, ease); }
.tk-meter.is-warn .tk-meter__fill { background: #f0b45a; }
.tk-meter.is-bad .tk-meter__fill { background: #e06c5a; }
.tk-meter.is-bad .tk-meter__val { color: #ef8a78; }

/* Shell sections ----------------------------------------------------------- */
.tk-credit { margin: 16px 4px 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.tk-credit a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.tk-h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); margin: 0 0 clamp(26px, 3vw, 44px); max-width: 24ch; }
.tk-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .tk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-step { display: grid; align-content: start; gap: 10px; }
.tk-step__num { font: 500 0.85rem/1 var(--font-body); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.tk-step__title { margin: 0; font-size: 1.2rem; }
.tk-step__text { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.tk-about__grid { display: grid; gap: 12px 64px; }
@media (min-width: 1024px) { .tk-about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.tk-faq__grid { display: grid; gap: 16px 64px; }
@media (min-width: 1024px) { .tk-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.tk-faq__list { display: grid; gap: 10px; }
.tk-faq__item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 20px; background: rgba(255, 255, 255, 0.02); }
.tk-faq__item[open] { border-color: var(--line-strong); }
.tk-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.tk-faq__item summary::-webkit-details-marker { display: none; }
.tk-faq__q { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.6; color: var(--text); font-family: var(--font-text); }
.tk-faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform var(--dur-ui, .4s) var(--ease-out, ease); }
.tk-faq__icon::before, .tk-faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1px; margin: -0.5px 0 0 -5.5px; background: var(--text); }
.tk-faq__icon::after { transform: rotate(90deg); }
.tk-faq__item[open] .tk-faq__icon { transform: rotate(45deg); }
.tk-faq__a { padding-bottom: 18px; color: var(--text-2); }
.tk-faq__a p { margin: 0; }
.tk-related__grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .tk-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-rel { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02); transition: border-color var(--dur-ui, .4s), transform var(--dur-ui, .4s) var(--ease-out, ease); }
.tk-rel:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tk-rel:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.tk-rel__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.tk-rel__title { margin: 0; font-size: 1.05rem; font-family: var(--font-text); font-weight: 600; }
.tk-rel__title a { color: var(--text); }
.tk-rel__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tk-rel__title a:focus-visible { outline: none; }
.tk-rel__desc { margin: 0; font-size: 0.9rem; color: var(--text-2); }

/* Focus -------------------------------------------------------------------- */
.tk-lang a:focus-visible, .tk-faq summary:focus-visible, .tk-chip:focus-visible, .tk-link-btn:focus-visible, .tk-icon-btn:focus-visible, .tk-app .btn:focus-visible, .tk-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 480px) {
	.tk-card { padding: 20px 16px; border-radius: var(--radius-lg); }
	.tk-seg label { font-size: 0.8rem; padding: 4px; }
	.tk-stat { padding: 14px 12px; }
}
@media (max-width: 767px) { .tk-input, .tk-select, .tk-textarea { font-size: max(16px, 1rem); } }
@media (prefers-reduced-motion: reduce) { .tk-faq__icon, .tk-rel, .tk-meter__fill { transition: none; } .tk-rel:hover { transform: none; } }

/* ==========================================================================
   Per-tool additions
   ========================================================================== */

/* Shared extras */
.tk-input--xl { min-height: 58px; font-size: 1.35rem; font-weight: 600; }
.tk-app + .tk-card, .tk-app + .tk-app { margin-top: 18px; }
.tk-card__dot { font: 700 1rem/1 var(--font-body); }

/* VAT */
.tk-vat-inv .tk-table input { min-width: 90px; }
.tk-vat-inv .tk-table td:first-child input { min-width: 160px; }
.tk-vat-qty { max-width: 90px; }
.tk-stat[hidden], .tk-pill[hidden], .tk-formula[hidden], .tk-stats[hidden] { display: none; }

/* SERP preview (a neutral, Google-like light result card) */
.tk-serp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tk-serp__dev { min-width: 200px; }
.tk-serp { padding: 18px 20px; border-radius: var(--radius-lg); background: #fff; color: #202124; font-family: Arial, "Helvetica Neue", sans-serif; text-align: start; overflow: hidden; }
.tk-serp[data-dev="mobile"] { max-width: 400px; margin-inline: auto; width: 100%; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28); }
.tk-serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tk-serp__fav { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; color: #4d5156; font: 700 13px/1 Arial, sans-serif; }
.tk-serp__meta { display: grid; min-width: 0; line-height: 1.3; }
.tk-serp__name { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-serp__url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.tk-serp__dots { margin-inline-start: auto; color: #70757a; font-size: 16px; }
.tk-serp__title { margin: 0 0 4px; font-size: 20px; line-height: 1.3; color: #1a0dab; font-weight: 400; overflow-wrap: anywhere; }
.tk-serp[data-dev="desktop"] .tk-serp__title { white-space: nowrap; overflow: hidden; }
.tk-serp[data-dev="mobile"] .tk-serp__title { font-size: 18px; color: #1558d6; }
.tk-serp__desc { margin: 0; font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.tk-serp .is-ph { color: #9aa0a6; }
.tk-serp__code { white-space: pre-wrap; margin: 0; }

/* Discount */
.tk-stat--wide { grid-column: 1 / -1; }

/* Policy generator */
.tk-pol-returns { display: grid; gap: 16px; }
.tk-pol-returns[hidden], [data-show][hidden], [data-show-intl][hidden], [data-m][hidden], [data-mode-a][hidden], [data-mode-b][hidden] { display: none; }
.tk-pol-doc { max-height: min(70vh, 640px); overflow-y: auto; padding: 22px 24px; border-radius: var(--radius-lg); background: #fbfaf7; color: #1f1f1f; font-family: var(--font-text); line-height: 1.85; font-size: 0.95rem; }
.tk-pol-doc[hidden] { display: none; }
.tk-pol-doc h2 { margin: 0 0 12px; font-size: 1.25rem; color: #111; }
.tk-pol-doc h3 { margin: 18px 0 6px; font-size: 1.02rem; color: #111; }
.tk-pol-doc p { margin: 0 0 8px; }
.tk-pol-doc ul { margin: 0 0 8px; padding-inline-start: 20px; }
.tk-pol-doc small { color: #666; }
.tk-pol-doc article + article { margin-top: 26px; padding-top: 22px; border-top: 1px solid #ddd; }
.tk-pol-doc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sizes */
.tk-sizes__bar { display: grid; gap: 14px; }
@media (min-width: 900px) { .tk-sizes__bar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.tk-sizes__group { display: grid; gap: 10px; }
.tk-sizes__group[hidden], .tk-sizes__table tr[hidden] { display: none; }
.tk-sizes__title { margin: 6px 0 0; font-size: 1.15rem; font-family: var(--font-text); font-weight: 600; }
.tk-sizes__table th[scope="row"] { font-weight: 600; color: var(--text); background: none; font-size: 0.86rem; white-space: normal; }
.tk-sizes__table td.num { color: var(--text); font-weight: 600; }
.tk-sizes__note { color: var(--text-2); font-size: 0.8rem; min-width: 160px; }
.tk-sizes__acts { white-space: nowrap; }
.tk-sizes__acts .tk-link-btn + .tk-link-btn { margin-inline-start: 10px; }

/* Character counter */
.tk-chars__ta { min-height: 260px; }
.tk-chars__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .tk-chars__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-chars__limits { display: grid; gap: 12px; max-height: none; }
.tk-chars__g { margin: 8px 0 0; font-size: 0.78rem; color: var(--muted); font-family: var(--font-text); font-weight: 600; letter-spacing: var(--track-label, .04em); }
.tk-sms { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.tk-sms strong { font-variant-numeric: tabular-nums; }

/* Hashtags */
.tk-ht { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, 0.22); }
.tk-ht[hidden] { display: none; }
.tk-ht__tag { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 0.88rem; }
.tk-ht__tag.is-over { background: rgba(239, 138, 120, 0.12); color: #ef8a78; text-decoration: line-through; text-decoration-color: rgba(239, 138, 120, 0.6); }
.tk-ht__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Email signature */
.tk-addon--start { border-inline-start: 0; border-inline-end: 1px solid var(--line); min-width: 92px; justify-content: start; font-size: 0.78rem; }
.tk-sig__color { padding: 4px; cursor: pointer; }
.tk-sig__preview { padding: 22px; border-radius: var(--radius-lg); background: #fff; overflow-x: auto; }
.tk-sig__preview[hidden] { display: none; }

/* Hijri */
.tk-hj__today { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--accent-soft), transparent 90%); }
.tk-hj__today strong { font-size: 1.25rem; color: var(--text); }
.tk-stat__value.tk-hj__value { direction: inherit; unicode-bidi: normal; text-align: start; font-family: var(--font-text); }
.tk-stat--hero .tk-hj__value { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* Full-guide card (link to the tool's article) */
.ae-guide { padding: 8px 0 clamp(8px, 2vw, 24px); }
.ae-guide__card { display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--accent-soft), transparent 70%); color: var(--text); transition: border-color var(--dur-ui, .4s), transform var(--dur-ui, .4s) var(--ease-out, ease); }
.ae-guide__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ae-guide__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ae-guide__tag { font-size: 0.76rem; color: var(--accent); letter-spacing: var(--track-label, .04em); }
.ae-guide__title { font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.45 var(--font-text); }
.ae-guide__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
html[dir="rtl"] .ae-guide__cta .icon { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .ae-guide__card { transition: none; } .ae-guide__card:hover { transform: none; } }

/* Funnel calculator */
.tk-funnel { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.tk-funnel__top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--text-2); }
.tk-funnel__top b { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.tk-funnel__bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.tk-funnel__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent, #e0582c), rgba(224, 88, 44, 0.55)); transition: width var(--dur-ui, .3s) var(--ease-out, ease); }
[dir="rtl"] .tk-funnel__bar span { background: linear-gradient(270deg, var(--accent, #e0582c), rgba(224, 88, 44, 0.55)); }
.tk-funnel__lost { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--muted); }
.tk-mt { margin-top: 18px; }
.tk-prio { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; }
.tk-prio li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; font-size: 0.86rem; color: var(--text-2); }
.tk-prio li small { color: var(--muted); margin-inline-start: 6px; }
.tk-prio li b { font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-prio li.is-best { border-color: rgba(111, 211, 162, 0.45); background: rgba(111, 211, 162, 0.06); }
.tk-prio li.is-best b { color: #6fd3a2; }
@media (max-width: 480px) { .tk-prio li { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .tk-funnel__bar span { transition: none; } }

/* Checks list (OG, Schema) */
.tk-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-notes li { position: relative; padding: 8px 12px; padding-inline-start: 30px; border-radius: 10px; font-size: 0.84rem; line-height: 1.6; color: var(--text-2); background: rgba(255, 255, 255, 0.03); }
.tk-notes li::before { content: ""; position: absolute; inset-inline-start: 12px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tk-notes li.is-good::before { background: #6fd3a2; }
.tk-notes li.is-warn::before { background: #f0b45a; }
.tk-notes li.is-bad::before { background: #ef8a78; }
.tk-code { max-height: 420px; overflow: auto; white-space: pre; overflow-wrap: normal; }

/* Slug generator */
.tk-slugs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-height: 560px; overflow: auto; }
.tk-slug { padding: 12px 14px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; display: grid; gap: 6px; }
.tk-slug__src { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.tk-slug__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-slug__out { font: 600 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; text-align: left; }
.tk-slug__url { font-size: 0.78rem; color: var(--text-2); overflow-wrap: anywhere; text-align: left; }
.tk-slug__meta { font-size: 0.76rem; color: var(--muted); }

/* Open Graph preview */
.tk-og { margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: #f0f2f5; color: #1c1e21; font-family: Helvetica, Arial, sans-serif; text-align: start; border: 1px solid #dadde1; }
.tk-og__img { aspect-ratio: 1.91 / 1; background: #d8dbe0 center / cover no-repeat; display: grid; place-items: center; color: #8a8d91; font-size: 0.85rem; }
.tk-og__img.has-img span { display: none; }
.tk-og__body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.tk-og__domain { font-size: 12px; color: #65676b; text-align: start; }
.tk-og__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: #050505; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-og__title.is-ph { color: #8a8d91; }
.tk-og__desc { margin: 0; font-size: 14px; line-height: 1.35; color: #65676b; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tk-og[data-pv="wa"] { background: #d9fdd3; border-color: #c4ecbd; max-width: 380px; margin-inline: auto; }
.tk-og[data-pv="wa"] .tk-og__body { background: #d1f4cb; }
.tk-og[data-pv="wa"] .tk-og__desc { -webkit-line-clamp: 2; }
.tk-og[data-pv="x"] { background: #000; border-color: #2f3336; color: #e7e9ea; border-radius: 16px; }
.tk-og[data-pv="x"] .tk-og__title { color: #e7e9ea; font-weight: 400; font-size: 15px; }
.tk-og[data-pv="x"] .tk-og__desc { color: #71767b; }
.tk-og[data-pv="x"] .tk-og__domain { color: #71767b; order: 3; }
.tk-og[data-pv="x"][data-card="summary"] { display: grid; grid-template-columns: 130px 1fr; }
.tk-og[data-pv="x"][data-card="summary"] .tk-og__img { aspect-ratio: 1; }
.tk-og[data-pv="x"][data-card="summary"] .tk-og__body { align-content: center; }

/* Color contrast & palette */
.tk-colors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.tk-color { align-items: stretch; }
.tk-color__pick { flex: none; width: 56px; min-height: 50px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius) 0 0 var(--radius); background: rgba(0,0,0,.28); cursor: pointer; }
.tk-color__pick::-webkit-color-swatch-wrapper { padding: 0; }
.tk-color__pick::-webkit-color-swatch { border: 0; border-radius: 8px; }
.tk-color .tk-input { border-start-start-radius: 0; border-end-start-radius: 0; border-left: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.tk-cl-sample { padding: 22px; border-radius: var(--radius-lg, 16px); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.tk-cl-sample__h { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.tk-cl-sample__p { margin: 0; font-size: 1rem; line-height: 1.8; }
.tk-cl-grades { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.tk-cl-grades li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .86rem; color: var(--text-2); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.tk-cl-grades li small { color: var(--muted); }
.tk-cl-grades li.is-pass b { color: #6fd3a2; }
.tk-cl-grades li.is-fail b { color: #ef8a78; }
.tk-cl-sugs { display: grid; gap: 8px; }
.tk-cl-sug { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-2); flex-wrap: wrap; }
.tk-cl-sug small { color: var(--muted); }
.tk-cl-dot { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); flex: none; }
.tk-cl-palette { margin-top: 18px; display: grid; gap: 10px; }
.tk-cl-palette .tk-field { min-width: 220px; }
.tk-cl-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .tk-cl-row { grid-template-columns: repeat(10, minmax(0, 1fr)); } .tk-cl-row--h { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tk-cl-sw { display: grid; align-content: end; gap: 2px; min-height: 76px; padding: 8px; border: 0; border-radius: 10px; text-align: start; font: 500 .72rem/1.2 var(--font-text); cursor: pointer; transition: transform var(--dur-micro, .2s); }
.tk-cl-sw b { font: 600 .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tk-cl-sw:hover { transform: translateY(-2px); }
.tk-cl-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tk-cl-sw { transition: none; } .tk-cl-sw:hover { transform: none; } }

/* Quote & invoice */
.tk-textarea--sm { min-height: 96px; }
.tk-iv-items { display: grid; gap: 8px; }
.tk-iv-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 40px; gap: 6px; align-items: center; }
.tk-iv-row .tk-input { min-height: 44px; padding: 0 10px; }
.tk-iv-row.is-bad .tk-input[data-c="qty"], .tk-iv-row.is-bad .tk-input[data-c="price"] { border-color: #ef8a78; }
.tk-iv-add { justify-self: start; margin-top: 4px; }
@media (max-width: 520px) { .tk-iv-row { grid-template-columns: 1fr 1fr 40px; } .tk-iv-row [data-c="desc"] { grid-column: 1 / -1; } }
.tk-iv-doc { background: #fff; color: #1d1d1f; border-radius: 12px; padding: 26px 24px; font: 400 13px/1.6 var(--font-text, system-ui), system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tk-iv-doc h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #111; }
.tk-iv-doc__head { border-bottom: 3px solid var(--accent, #d4562e); padding-bottom: 12px; margin-bottom: 16px; }
.tk-iv-doc dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.tk-iv-doc dt { color: #6b6b70; }
.tk-iv-doc dd { margin: 0; color: #111; font-variant-numeric: tabular-nums; }
.tk-iv-doc__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.tk-iv-doc__parties small, .tk-iv-doc__notes small { display: block; color: #8a8a90; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tk-iv-doc__parties p, .tk-iv-doc__notes p { margin: 0; overflow-wrap: anywhere; }
.tk-iv-doc__vat { margin-top: 4px !important; color: #555; font-size: 12px; }
.tk-iv-doc__table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.tk-iv-doc__table th { background: #f4f4f6; color: #555; font-weight: 600; font-size: 12px; padding: 8px; text-align: start; }
.tk-iv-doc__table td { padding: 8px; border-bottom: 1px solid #ececf0; vertical-align: top; overflow-wrap: anywhere; }
.tk-iv-doc__table td:nth-child(n+3), .tk-iv-doc__table th:nth-child(n+3) { text-align: end; white-space: nowrap; }
.tk-iv-doc__table td:first-child, .tk-iv-doc__table th:first-child { width: 28px; color: #888; }
.tk-iv-doc__totals { width: min(100%, 300px); margin-inline-start: auto !important; }
.tk-iv-doc__totals dd { text-align: end; }
.tk-iv-doc__totals .is-grand { padding-top: 8px; margin-top: 4px; border-top: 2px solid #111; font-weight: 700; color: #111; font-size: 15px; }
.tk-iv-doc__notes { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #ddd; }
.tk-iv-doc__empty { color: #888; text-align: center; padding: 20px 0; }
.tk-iv-doc__legal { margin-top: 20px; padding-top: 10px; border-top: 1px solid #eee; color: #8a8a90; font-size: 11px; text-align: center; }
#tk-print-root { display: none; }
@media print {
	body.tk-print-doc > *:not(#tk-print-root) { display: none !important; }
	body.tk-print-doc #tk-print-root { display: block !important; }
	body.tk-print-doc #tk-print-root .tk-iv-doc { box-shadow: none; border-radius: 0; padding: 0; font-size: 11pt; }
	@page { margin: 16mm; }
}

/* Product description output */
.tk-ds-out { padding: 18px 20px; border-radius: var(--radius-lg, 16px); background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.08)); color: var(--text-2); line-height: 1.8; font-size: .95rem; margin-bottom: 14px; }
.tk-ds-out h3 { margin: 16px 0 6px; font-size: 1rem; color: var(--text); }
.tk-ds-out p { margin: 0 0 10px; }
.tk-ds-out ul { margin: 0 0 10px; padding-inline-start: 20px; }
.tk-ds-out table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tk-ds-out th, .tk-ds-out td { padding: 7px 10px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); text-align: start; }
.tk-ds-out th { color: var(--text); font-weight: 600; width: 38%; }
.tk-ds-out strong { color: var(--text); }
.tk-ds-seo { margin: 0; direction: inherit; text-align: start; }
@media (min-width: 1024px) { .tk-colors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
.tk-iv-doc dd, .tk-iv-doc__table td[dir="ltr"] { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
