:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #56655e;
  --paper: #f6f8f6;
  --white: #fff;
  --green: #14634c;
  --green-dark: #0e4d3a;
  --mint: #e5f2ec;
  --line: #e4eae5;
  --coral: #f2775e;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.site-header {
  position: relative; z-index: 10;
  width: min(1160px, calc(100% - 48px)); height: 78px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; gap: 10px; align-items: center; font: 800 18px/1 "Manrope", sans-serif; letter-spacing: -.7px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--green); border-radius: 11px 11px 11px 3px; font-size: 17px; }
.brand-accent { color: var(--green); }
.top-nav { display: flex; gap: 34px; align-items: center; color: #52625d; font-size: 13px; font-weight: 600; }
.top-nav a:hover, .category-heading a:hover, .back-link:hover { color: var(--green); }
.top-nav { align-self: stretch; }
.category-menu { align-self: stretch; }
.category-menu summary { display: flex; align-items: center; gap: 5px; height: 100%; cursor: pointer; list-style: none; padding: 16px 0; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary:hover { color: var(--green); }
.category-menu summary:focus-visible, .category-dropdown a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 5px; }
.category-menu[open] > summary { color: var(--green); }
.category-dropdown { position: absolute; top: 100%; right: 0; width: min(760px, 100%); padding: 20px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 14px 14px; box-shadow: 0 14px 35px #14231f24; max-height: min(70vh, 580px); overflow-y: auto; }
.category-menu-heading { color: var(--green); margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.category-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.category-menu-grid a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.category-menu-grid a:hover { background: var(--mint); }
.category-menu-grid .tool-card-icon { position: static; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; }
.language-menu { align-self: stretch; }
.language-menu summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 100%; padding: 12px 0; cursor: pointer; list-style: none; color: var(--green); }
.language-code { font-size: 12px; font-weight: 700; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:focus-visible, .language-options button:focus-visible, .language-options a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 5px; }
.language-dropdown { position: absolute; top: 100%; right: 0; width: min(340px, 100%); padding: 18px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 14px 14px; box-shadow: 0 14px 35px #14231f24; max-height: min(70vh, 580px); overflow-y: auto; }
.language-status { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.language-options button, .language-options a { display: flex; align-items: center; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); text-align: start; font-size: 13px; }
.language-options button:hover, .language-options a:hover, .language-options button[aria-pressed="true"], .language-options a[aria-current="true"] { color: var(--green-dark); background: var(--mint); border-color: var(--green); }
.language-suggestion { width: min(1160px, calc(100% - 32px)); margin: 12px auto; padding: 12px; color: var(--ink); background: var(--mint); font-size: 13px; border-radius: 8px; }
.language-suggestion a { color: var(--green); text-decoration: underline; }
.language-suggestion button { margin-inline-start: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.hero {
  position: relative; isolation: isolate; width: min(1160px, calc(100% - 48px)); min-height: 390px;
  margin: 19px auto 0; padding: 63px 78px; display: flex; align-items: center;
  overflow: hidden; background: #e9f1eb; border-radius: 20px;
}
.hero-copy { position: relative; z-index: 1; width: 56%; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", "Segoe UI", sans-serif; }
.hero h1 { margin: 0; font-size: clamp(44px, 5.3vw, 64px); letter-spacing: -3.5px; line-height: 1.09; }
.hero h1 span { color: var(--green); }
.hero-description { max-width: 440px; margin: 17px 0 23px; color: #55645e; font-size: 16px; }
.search-form { display: flex; align-items: stretch; gap: 8px; width: min(520px, 100%); }
.search-box {
  display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; height: 54px; padding: 0 14px;
  color: var(--green); background: white; border: 2px solid var(--green); border-radius: 11px; box-shadow: 0 4px 18px #14634c24;
}
.search-box:focus-within { outline: 3px solid #14634c40; outline-offset: 3px; }
.search-box > span:first-child { font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #65736f; }
.search-button { flex-shrink: 0; padding: 0 20px; border: 2px solid var(--green); border-radius: 11px; color: white; background: var(--green); font-weight: 700; }
.search-button:hover { border-color: var(--green-dark); background: var(--green-dark); }
.search-button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero.hero-search { min-height: 0; padding: 24px; }
.hero-search .hero-copy { width: 100%; }
.hero-search .search-form { width: min(700px, 100%); margin: auto; }
.search-results { margin-top: 32px; }
.privacy-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.privacy-note span { margin-right: 7px; color: var(--green); font-size: 8px; }
.hero-art { position: absolute; z-index: 0; top: 30px; right: 8%; width: 365px; height: 315px; }
.art-window { position: absolute; top: 40px; left: 20px; width: 280px; height: 205px; padding: 0 23px; background: #fff; border: 1px solid #dce7de; border-radius: 13px; box-shadow: 0 22px 45px #143a241c; transform: rotate(4deg); }
.art-top { height: 39px; display: flex; gap: 5px; align-items: center; border-bottom: 1px solid #edf0ed; }
.art-top i { width: 6px; height: 6px; border-radius: 50%; background: #cfdbd3; }
.art-lines { display: flex; flex-direction: column; gap: 13px; padding-top: 26px; }
.art-lines b { width: 74%; height: 9px; border-radius: 9px; background: #ebf1ec; }
.art-lines b:nth-child(2) { width: 49%; }
.art-lines b:nth-child(3) { width: 62%; }
.art-lines span { position: absolute; right: 25px; bottom: 31px; display: grid; width: 54px; height: 54px; place-items: center; color: var(--green); background: #e9f4ed; border-radius: 50%; font-size: 12px; font-weight: 700; }
.art-spark { position: absolute; top: 9px; right: 20px; color: var(--coral); font-size: 48px; }
.art-dot { position: absolute; right: 41px; bottom: 29px; width: 17px; height: 17px; background: #eaa95e; border-radius: 50%; }
.catalog-section { width: min(1160px, calc(100% - 48px)); margin: 62px auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin-bottom: 0; font-size: 28px; letter-spacing: -1.2px; }
.tool-count { padding: 6px 11px; color: #5d6e67; background: #eaf0eb; border-radius: 7px; font-size: 11px; }
.category-section { margin-bottom: 40px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.category-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.category-heading a, .all-tools-link { color: var(--green); font-size: 12px; font-weight: 700; }
.category-tool-group { margin-top: 23px; }
.category-tool-group h2, .category-tool-group h4 { margin: 0 0 13px; color: var(--ink); font-size: 17px; letter-spacing: -.3px; }
.category-tool-group h4 { font-size: 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tool-card {
  --card-icon-size: 38px; --card-inset: 21px;
  position: relative;
  min-height: 172px; padding: 20px 21px; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid #e9ede9; border-radius: 12px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: #c4d9cb; box-shadow: 0 11px 24px #173b260c; }
.tool-card-icon { position: absolute; top: 20px; right: var(--card-inset); width: var(--card-icon-size); height: var(--card-icon-size); display: grid; place-items: center; color: var(--green); background: var(--mint); border-radius: 10px; }
.tool-card-icon svg { display: block; width: 63%; height: 63%; }
.tool-card-category { width: 100%; padding-right: calc(var(--card-icon-size) + 12px); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.tool-card h3 { padding-right: calc(var(--card-icon-size) + 12px); margin: 8px 0 5px; font-size: 15px; letter-spacing: -.3px; }
.tool-card p { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-link { margin-top: auto; color: var(--green); font-size: 11px; font-weight: 700; }
.empty-search { padding: 30px; color: var(--muted); text-align: center; }
.trust-strip { width: min(1160px, calc(100% - 48px)); margin: 10px auto 70px; padding: 21px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: #eaf1eb; border-radius: 13px; }
.trust-strip > div { display: flex; align-items: center; gap: 13px; }
.trust-strip > div > span { color: var(--green); font: 700 13px "Manrope", sans-serif; }
.trust-strip p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.trust-strip strong { color: var(--ink); font-size: 12px; }
.site-footer { width: min(1160px, calc(100% - 48px)); min-height: 120px; margin: auto; padding: 24px 0 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--line); }
.site-footer > div { flex: 1; min-width: 0; }
.footer-brand { font-size: 15px; }
.site-footer p { max-width: 480px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.sister-sites p { margin: 0 0 16px; padding-right: 60px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: var(--green); font-size: 12px; }
.footer-links a, .privacy-settings, .privacy-page a, .information-page a { text-decoration: underline; text-underline-offset: 3px; }
.sister-sites { width: min(520px, 100%); min-width: 0; }
.sister-sites h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.sister-sites .footer-links { margin-top: 8px; }
.privacy-settings { padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.back-to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--green); border-radius: 50%; color: white; background: var(--green); box-shadow: 0 4px 16px #14231f24; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--green-dark); }
.back-to-top:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.privacy-page, .information-page { max-width: 850px; }
.privacy-page section, .information-page section { margin-top: 32px; }
.privacy-page h2, .information-page h2 { font-size: 23px; }
.privacy-page a, .information-page a { overflow-wrap: anywhere; color: var(--green); }
.content-page { width: min(1160px, calc(100% - 48px)); min-height: 65vh; margin: 35px auto 75px; }
.content-page > h1, .tool-main h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 45px); letter-spacing: -2px; line-height: 1.2; }
.lead { max-width: 740px; margin-bottom: 25px; color: var(--muted); font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 30px; color: #62716b; font-size: 12px; font-weight: 600; }
.category-grid { margin-top: 28px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.tool-main .eyebrow { margin-bottom: 9px; }
.tool-main > .lead { margin-bottom: 24px; }
.tool-panel { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 25px #173b2607; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > label { color: #394840; font-size: 12px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fbfcfb;
  border: 1px solid #dfe6e1; border-radius: 8px; outline: none; font-size: 13px;
}
.form-field textarea { min-height: 150px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #66a489; box-shadow: 0 0 0 3px #14634c12; }
.form-field input[type="file"] { padding: 8px; }
.field-help { color: var(--muted); font-size: 10px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; color: #394840; font-size: 12px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--green); }
.button-primary {
  min-height: 44px; margin-top: 20px; padding: 0 18px; display: inline-flex; align-items: center; gap: 20px;
  color: white; background: var(--green); border: 0; border-radius: 8px; font-size: 13px; font-weight: 700;
  transition: background .15s ease;
}
.button-primary:hover { background: var(--green-dark); }
.button-primary span { font-size: 16px; }
.button-secondary { margin-top: 13px; padding: 8px 12px; color: var(--green); background: #e9f3ed; border: 0; border-radius: 7px; font-size: 11px; font-weight: 700; }
.result-box { margin-top: 19px; padding: 17px 18px; color: #214c3a; background: #eef6f0; border: 1px solid #d9e9de; border-radius: 9px; overflow-wrap: anywhere; }
.result-box h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.3px; }
.result-box p { margin: 5px 0; font-size: 13px; white-space: pre-wrap; }
.result-error { color: #8b3123; background: #fff3ef; border-color: #f4d7cd; }
.writing-output { margin: 13px 0; padding: 15px; color: var(--ink); background: white; border: 1px solid #dfe6e1; border-radius: 8px; font: 13px/1.7 "DM Sans", "Segoe UI", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.writing-word-count { color: var(--muted); }
.writing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.writing-actions .button-secondary { margin-top: 5px; }
.file-order { padding-left: 20px; margin: 8px 0; }
.file-order li { margin: 8px 0; overflow-wrap: anywhere; }
.file-order li span { display: block; font-size: 12px; }
.file-order .button-secondary { margin: 4px 6px 0 0; }
.schedule-scroll { max-width: 100%; max-height: 420px; overflow: auto; margin-top: 12px; }
.schedule-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.schedule-scroll th, .schedule-scroll td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-actions .button-secondary { margin-top: 0; }
.email-subject-options { display: grid; gap: 10px; margin: 12px 0; padding-left: 24px; }
.email-subject-options li { padding-left: 3px; color: var(--ink); font-size: 13px; }
.email-subject-options li .button-secondary { margin-left: 10px; margin-top: 0; }
.related-email-tools { margin-top: 27px; }
.download-link { display: block; width: fit-content; margin-top: 9px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tool-explainer { margin: 27px 0 0; }
.tool-explainer h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.5px; }
.tool-explainer h3 { margin: 17px 0 5px; font-size: 14px; }
.tool-explainer p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.notice { margin-top: 20px; padding: 13px 15px; color: #735527; background: #fff8e9; border-left: 3px solid #d9ab50; border-radius: 4px; font-size: 11px; }
.notice strong { color: #664616; }
.related-panel { position: sticky; top: 20px; padding: 20px; background: #eaf1eb; border-radius: 12px; }
.related-icon { display: inline-grid; width: 30px; height: 30px; place-items: center; color: var(--green); background: white; border-radius: 9px; }
.related-panel h2 { margin: 12px 0 4px; font-size: 17px; letter-spacing: -.5px; }
.related-panel > p { margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.related-links { display: flex; flex-direction: column; }
.related-links a { padding: 9px 0; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #d9e4db; font-size: 11px; font-weight: 600; }
.related-links a span { color: var(--green); }
.all-tools-link { display: inline-block; margin-top: 14px; }
.clock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.clock-item { padding: 11px; display: flex; flex-direction: column; background: #fff; border: 1px solid #e0ebe2; border-radius: 8px; }
.clock-item span { color: var(--muted); font-size: 10px; }
.clock-item strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.clock-item small { color: var(--muted); font-size: 9px; }
.generated-code { display: block; max-width: 100%; height: auto; margin: 12px 0; background: white; }
.camera-preview { display: block; width: min(100%, 520px); max-height: 60vh; margin: 12px 0; background: #13231d; border-radius: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; align-self: center; padding: 6px; color: var(--green); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.theme-toggle:hover { background: var(--mint); }
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.theme-sun { display: none; }
.theme-status { width: min(1160px, calc(100% - 32px)); margin: 8px auto; color: var(--ink); font-size: 12px; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ecf4ef;
  --muted: #b3c5ba;
  --paper: #111c18;
  --white: #1b2b23;
  --green: #8cddb3;
  --green-dark: #b4ebcc;
  --mint: #253d30;
  --line: #486153;
}
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .top-nav,
[data-theme="dark"] .hero-description,
[data-theme="dark"] .back-link,
[data-theme="dark"] .tool-count { color: var(--muted); }
[data-theme="dark"] .hero,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .related-panel,
[data-theme="dark"] .tool-count { background: #20352a; }
[data-theme="dark"] .search-box,
[data-theme="dark"] .tool-panel,
[data-theme="dark"] .writing-output,
[data-theme="dark"] .clock-item,
[data-theme="dark"] .related-icon,
[data-theme="dark"] .art-window { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .tool-card { border-color: var(--line); }
[data-theme="dark"] .tool-card:hover { border-color: var(--green); }
[data-theme="dark"] .form-field > label,
[data-theme="dark"] .checkbox-field { color: var(--ink); }
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea { background: var(--paper); border-color: var(--line); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 1; }
[data-theme="dark"] .search-box input::placeholder { color: var(--muted); }
[data-theme="dark"] .button-primary,
[data-theme="dark"] .search-button,
[data-theme="dark"] .back-to-top,
[data-theme="dark"] .brand-mark { color: #10281c; }
[data-theme="dark"] .button-secondary { background: var(--mint); }
[data-theme="dark"] .result-box { color: #d3efdf; background: #203b2b; border-color: var(--line); }
[data-theme="dark"] .result-error { color: #ffd1c7; background: #492b29; border-color: #96675e; }
[data-theme="dark"] .notice { color: #f4dca9; background: #3b3220; border-color: #d9ab50; }
[data-theme="dark"] .notice strong { color: #ffe7ba; }
[data-theme="dark"] .related-links a,
[data-theme="dark"] .writing-output,
[data-theme="dark"] .art-top { border-color: var(--line); }
[data-theme="dark"] .art-lines b,
[data-theme="dark"] .art-top i { background: var(--line); }
[data-theme="dark"] .art-lines span { background: var(--mint); }
[dir="rtl"] .category-dropdown, [dir="rtl"] .language-dropdown { right: auto; left: 0; }
[dir="rtl"] .tool-card-icon { right: auto; left: var(--card-inset); }
[dir="rtl"] .category-menu-grid .tool-card-icon { left: auto; }
[dir="rtl"] .tool-card-category, [dir="rtl"] .tool-card h3 { padding-right: 0; padding-left: calc(var(--card-icon-size) + 12px); }
[dir="rtl"] .hero-art { right: auto; left: 8%; }
[dir="rtl"] .notice { border-left: 0; border-right: 3px solid #d9ab50; }
[dir="rtl"] .sister-sites p { padding-right: 0; padding-left: 60px; }
[dir="rtl"] .form-field input[type="number"], [dir="rtl"] .form-field input[type="url"],
[dir="rtl"] .generated-code, [dir="rtl"] .clock-item strong { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .writing-output, [dir="rtl"] .form-field textarea { unicode-bidi: plaintext; }
.language-options [lang], .language-code, .footer-links a[href^="https:"] { unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .category-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 355px; padding: 52px; }
  .hero-copy { width: 66%; }
  .hero-art { right: -9%; opacity: .72; transform: scale(.82); transform-origin: right center; }
  [dir="rtl"] .hero-art { left: -9%; transform-origin: left center; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .related-panel { position: static; }
  .related-links { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
}
@media (max-width: 560px) {
  .category-menu, .language-menu { padding-bottom: 16px; margin-bottom: -16px; }
  .category-dropdown { padding: 12px; max-height: 65vh; }
  .category-menu-grid { grid-template-columns: 1fr; }
  body { font-size: 14px; }
  .site-header, .hero, .catalog-section, .trust-strip, .site-footer, .content-page { width: calc(100% - 32px); }
  .site-header { height: auto; min-height: 66px; flex-wrap: wrap; gap: 16px; padding: 16px 0; }
  .brand { font-size: 16px; }
  .top-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 10px; }
  .hero { min-height: 365px; margin-top: 8px; padding: 36px 25px; align-items: flex-start; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 47px; letter-spacing: -2.7px; }
  .hero-description { max-width: 320px; font-size: 14px; }
  .hero-art { top: 180px; right: -40px; opacity: .24; transform: scale(.7); }
  [dir="rtl"] .hero-art { left: -40px; }
  .search-form { position: relative; z-index: 1; }
  .search-box { gap: 6px; padding: 0 9px; }
  .search-box input { font-size: 16px; }
  .search-button { padding: 0 12px; }
  .hero.hero-search { padding: 18px 12px; }
  .catalog-section { margin-top: 43px; }
  .section-heading { align-items: flex-start; gap: 10px; }
  .section-heading h2 { font-size: 22px; }
  .tool-count { white-space: nowrap; }
  .tool-grid { grid-template-columns: 1fr; gap: 9px; }
  .tool-card { --card-icon-size: 32px; --card-inset: 17px; min-height: 145px; padding: 17px; }
  .tool-card-icon { top: var(--card-inset); border-radius: 8px; }
  .category-section { margin-bottom: 30px; }
  .trust-strip { grid-template-columns: 1fr; gap: 13px; margin-bottom: 45px; padding: 18px; }
  .site-footer { flex-direction: column; gap: 14px; }
  .content-page { margin-top: 21px; }
  .content-page > h1, .tool-main h1 { font-size: 34px; letter-spacing: -1.5px; }
  .back-link { margin-bottom: 23px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field-wide { grid-column: auto; }
  .tool-panel { padding: 17px; }
  .clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-links { grid-template-columns: 1fr; }
}
