/* Código Morse Traductor Online — Improved Stylesheet */
:root {
  --bg:#fafbff; --fg:#0f172a; --muted:#5a6072; --muted-bg:#eef1f8;
  --card:#ffffff; --border:#e4e8f2; --primary:#5a6cff; --primary-glow:#8b9bff;
  --accent:#eef1ff; --radius:14px;
  --shadow-card:0 4px 20px rgba(30,41,91,.08);
  --shadow-elegant:0 12px 40px -8px rgba(90,108,255,.22);
  --shadow-lift:0 20px 60px -15px rgba(90,108,255,.30);
  --gradient-subtle:linear-gradient(180deg,#f4f6ff 0%,#fafbff 100%);
  --gradient-primary:linear-gradient(135deg,var(--primary),var(--primary-glow));
  --font-sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --font-display:var(--font-sans);
}
[data-theme="dark"] {
  --bg:#0b0f1a; --fg:#e6eaf5; --muted:#9199ae; --muted-bg:#161c2c;
  --card:#121826; --border:#222a3d; --accent:#1a2238;
  --gradient-subtle:linear-gradient(180deg,#0e1322 0%,#0b0f1a 100%);
  --shadow-card:0 4px 20px rgba(0,0,0,.45);
  --shadow-elegant:0 12px 40px -8px rgba(0,0,0,.5);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;font-family:var(--font-sans);background:var(--bg);color:var(--fg);line-height:1.75;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.2;margin:1.25em 0 .5em}
h1{font-size:clamp(2rem,5vw,3.4rem);font-weight:800;letter-spacing:-.025em}
h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;letter-spacing:-.015em;margin-top:0}
h3{font-size:1.1rem;font-weight:600;margin:1em 0 .4em}
h4{font-size:.95rem;font-weight:600}
p{margin:.8em 0;line-height:1.8}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
code{background:var(--muted-bg);padding:.1em .4em;border-radius:4px;font-size:.88em;font-family:ui-monospace,'SF Mono',monospace}
ul,ol{padding-left:1.4em}
li{margin:.35em 0}
.container{max-width:1100px;margin:0 auto;padding:0 clamp(1.25rem,3vw,2rem)}
.narrow{max-width:820px;margin:0 auto;padding:0 clamp(1.25rem,3vw,2rem)}
.narrow p{max-width:760px;line-height:1.8}
/* HEADER */
.header{position:sticky;top:0;z-index:50;background:color-mix(in oklab,var(--bg) 88%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:.75rem}
.logo{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--fg);text-decoration:none;flex-shrink:0}
.logo-mark{width:34px;height:34px;border-radius:9px;background:var(--gradient-primary);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.logo-text{font-size:.92rem;line-height:1.2;font-family:var(--font-display)}
.nav{display:none;gap:.2rem;align-items:center}
.nav a{padding:.45rem .7rem;border-radius:8px;color:var(--muted);font-size:.875rem;font-weight:500;transition:.15s}
.nav a:hover{background:var(--accent);color:var(--fg);text-decoration:none}
.nav a.active{background:var(--accent);color:var(--fg);font-weight:600}
@media(min-width:1024px){.nav{display:flex}.menu-toggle{display:none!important}}
.controls{display:flex;align-items:center;gap:.35rem;flex-shrink:0}
.btn-icon{background:none;border:1px solid var(--border);border-radius:8px;padding:.45rem .55rem;cursor:pointer;color:var(--fg);display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-family:inherit;transition:.15s;line-height:1}
.btn-icon:hover{background:var(--accent)}
.menu-toggle{display:inline-flex}
.lang-pills{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.lang-pill{background:none;border:none;padding:.35rem .6rem;font-size:.75rem;font-weight:700;letter-spacing:.06em;cursor:pointer;color:var(--muted);font-family:inherit;transition:.15s;line-height:1}
.lang-pill:hover{background:var(--accent);color:var(--fg)}
.lang-pill.active{background:var(--primary);color:#fff}
.mobile-nav{display:none;flex-direction:column;border-top:1px solid var(--border);background:var(--bg);padding:.5rem 1rem}
.mobile-nav.open{display:flex}
.mobile-nav a{padding:.65rem .75rem;border-radius:8px;color:var(--muted);font-size:.9rem;transition:.15s}
.mobile-nav a:hover{background:var(--accent);color:var(--fg)}
.mobile-nav a.active{background:var(--accent);color:var(--fg);font-weight:600}
/* HERO */
.hero{background:var(--gradient-subtle);padding:4.5rem 0 0}
.hero-inner{max-width:800px;margin:0 auto;text-align:center;padding:0 1.5rem 2.5rem}
.chip{display:inline-flex;align-items:center;gap:.4rem;border:1px solid rgba(90,108,255,.25);background:rgba(90,108,255,.07);padding:.35rem 1rem;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:1rem}
.hero h1{background:linear-gradient(135deg,var(--fg) 30%,var(--primary));-webkit-background-clip:text;background-clip:text;color:transparent;margin:.5rem 0 1rem}
.hero p.lead{color:var(--muted);font-size:1.05rem;max-width:640px;margin:.5rem auto 0;line-height:1.8}
/* TRANSLATOR TOOL */
.translator{max-width:1100px;margin:0 auto;padding:0 clamp(1rem,3vw,2rem) 5rem}
.translator-card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:2rem;box-shadow:0 20px 60px -15px rgba(90,108,255,.22),0 4px 20px rgba(30,41,91,.08);position:relative;overflow:hidden}
.translator-card::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(90,108,255,.025) 0%,transparent 50%);pointer-events:none}
@media(min-width:768px){.translator-card{padding:2.5rem 2.75rem 2rem}}
.translator-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.75rem}
.translator-head h2{margin:0;font-size:1.2rem;font-family:var(--font-display);font-weight:700}
.switch{display:inline-flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.82rem;cursor:pointer;user-select:none}
.switch input{position:absolute;opacity:0;pointer-events:none}
.switch-track{width:36px;height:20px;border-radius:999px;background:var(--muted-bg);border:1px solid var(--border);position:relative;transition:.2s;flex-shrink:0}
.switch-track::after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch input:checked + .switch-track{background:var(--primary);border-color:var(--primary)}
.switch input:checked + .switch-track::after{transform:translateX(16px)}
/* 3-col layout */
.translator-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:1.25rem;align-items:start}
@media(max-width:767px){.translator-grid{grid-template-columns:1fr;gap:.75rem}}
.t-col{display:flex;flex-direction:column;gap:.5rem}
.t-col label{font-size:.72rem;font-weight:700;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;display:block}
textarea{width:100%;min-height:180px;padding:1rem 1.1rem;border-radius:12px;border:1.5px solid var(--border);background:var(--bg);color:var(--fg);font-family:ui-monospace,'SF Mono',Menlo,monospace;font-size:.9rem;resize:vertical;transition:border-color .2s,box-shadow .2s;line-height:1.65}
textarea::placeholder{color:var(--muted);opacity:.65}
textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(90,108,255,.12)}
/* Swap */
.t-swap-col{display:flex;align-items:center;justify-content:center;padding-top:2rem}
@media(max-width:767px){.t-swap-col{padding-top:.25rem;padding-bottom:.25rem}}
.btn-swap{width:52px;height:52px;border-radius:50%;border:2px solid var(--border);background:var(--card);color:var(--primary);font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.34,1.56,.64,1);box-shadow:0 4px 16px rgba(90,108,255,.15);flex-shrink:0}
.btn-swap:hover{background:var(--gradient-primary);border-color:transparent;color:#fff;transform:rotate(180deg) scale(1.1);box-shadow:0 8px 28px rgba(90,108,255,.35)}
.btn-swap.swapped{transform:rotate(180deg)}
.btn-swap.swapped:hover{transform:rotate(360deg) scale(1.1)}
/* Counter */
.counter{font-size:.72rem;color:var(--muted);text-align:right;min-height:1.1rem}
/* Stats row */
.translator-stats{display:flex;gap:0;margin-top:1.25rem;border-radius:12px;border:1.5px solid var(--border);background:var(--muted-bg);overflow:hidden}
.stat-item{display:flex;flex-direction:column;gap:.2rem;flex:1;padding:.85rem 1.25rem;border-right:1px solid var(--border)}
.stat-item:last-child{border-right:none}
.stat-label{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}
.stat-value{font-size:1.2rem;font-weight:700;color:var(--fg);font-family:var(--font-display)}
/* Column actions */
.col-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
/* Audio controls section */
.audio-controls{margin-top:1.5rem;padding:1.25rem 1.5rem;background:var(--muted-bg);border-radius:16px;border:1.5px solid var(--border)}
.control-groups{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:flex-start}
.control-group{display:flex;flex-direction:column;gap:.4rem}
.control-group-label{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}
.control-group-btns{display:flex;flex-wrap:wrap;gap:.4rem}
/* Convert row */
.convert-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem;align-items:center;padding-top:1.25rem;border-top:1px solid var(--border)}
/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .95rem;border-radius:9px;border:1.5px solid var(--border);background:var(--card);color:var(--fg);font-weight:600;font-size:.78rem;cursor:pointer;transition:all .15s ease;font-family:inherit;line-height:1;white-space:nowrap}
.btn:hover{background:var(--accent);border-color:var(--primary);color:var(--primary);transform:translateY(-1px);box-shadow:0 3px 10px rgba(90,108,255,.12)}
.btn:active{transform:translateY(0);box-shadow:none}
.btn.active{background:var(--accent);border-color:var(--primary);color:var(--primary)}
.btn-primary{background:var(--gradient-primary);color:#fff;border-color:transparent;box-shadow:0 3px 12px rgba(90,108,255,.3)}
.btn-primary:hover{opacity:.9;background:var(--gradient-primary);color:#fff;box-shadow:0 5px 20px rgba(90,108,255,.4)}
/* Flash visual display */
.flash-display{display:none;align-items:center;gap:1rem;margin-top:1.25rem;padding:.8rem 1.5rem;background:var(--muted-bg);border-radius:12px;border:1.5px solid var(--border)}
.flash-light{width:40px;height:40px;border-radius:50%;background:var(--border);border:2px solid var(--border);transition:background .05s,box-shadow .05s;flex-shrink:0}
.flash-light.on{background:#ffe066;border-color:#f0c000;box-shadow:0 0 22px 6px rgba(255,220,0,.55)}
.flash-symbol{font-family:ui-monospace,monospace;font-size:1.8rem;font-weight:700;color:var(--primary);min-width:2.5rem;text-align:center}
/* Settings panel */
.settings-panel{margin-top:1.25rem;padding:1.35rem 1.5rem;background:var(--muted-bg);border-radius:14px;border:1.5px solid var(--border)}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.setting-item{display:flex;flex-direction:column;gap:.3rem}
.setting-item label{font-size:.78rem;font-weight:600;color:var(--fg)}
.setting-item input[type="range"]{width:100%;accent-color:var(--primary);cursor:pointer}
.setting-item select{padding:.4rem .6rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--fg);font-size:.82rem;font-family:inherit;cursor:pointer}
/* SECTIONS */
.section{padding:5rem 0}
.section-alt{background:var(--gradient-subtle)}
.section-header{text-align:center;max-width:720px;margin:0 auto 3.5rem;padding:0 clamp(1rem,3vw,1.5rem)}
.section-badge{display:inline-block;padding:.3rem .9rem;border-radius:999px;background:rgba(90,108,255,.08);border:1px solid rgba(90,108,255,.2);font-size:.65rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:.85rem}
.section-header h2{margin:.2rem 0 .85rem;font-size:clamp(1.6rem,3vw,2.1rem)}
.section-header p{color:var(--muted);margin:0;font-size:1rem;line-height:1.75}
/* Feature cards */
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.5rem}
@media(min-width:1024px){.features-grid{grid-template-columns:repeat(3,1fr)}}
.feature-card{background:var(--card);border:1.5px solid var(--border);border-radius:18px;padding:1.75rem;box-shadow:var(--shadow-card);transition:transform .2s ease,box-shadow .2s ease,border-color .2s;display:flex;flex-direction:column;height:100%}
.feature-card:hover{box-shadow:var(--shadow-elegant);transform:translateY(-4px);border-color:rgba(90,108,255,.22)}
.feature-icon{width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,rgba(90,108,255,.1),rgba(90,108,255,.04));border:1px solid rgba(90,108,255,.14);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin-bottom:1rem;flex-shrink:0}
.feature-card h3{margin:0 0 .55rem;font-size:1rem;letter-spacing:-.01em}
.feature-card p{margin:0;font-size:.875rem;color:var(--muted);line-height:1.65;flex:1}
/* Infographic images */
.infographic{margin:2.5rem 0;text-align:center}
.infographic img{max-width:760px;width:100%;height:auto;border-radius:20px;box-shadow:var(--shadow-elegant);margin:0 auto;border:1px solid var(--border);transition:box-shadow .25s,transform .25s}
.infographic img:hover{box-shadow:0 24px 64px -12px rgba(90,108,255,.28);transform:translateY(-2px)}
.infographic figcaption{text-align:center;font-size:.8rem;color:var(--muted);margin-top:.8rem}
.features-infographic{max-width:760px;margin:0 auto 3rem;padding:0}
.features-infographic img{border-radius:20px;box-shadow:var(--shadow-elegant);width:100%;height:auto;border:1px solid var(--border);transition:box-shadow .25s,transform .25s}
.features-infographic img:hover{box-shadow:0 24px 64px -12px rgba(90,108,255,.28);transform:translateY(-2px)}
/* Tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.6rem auto;max-width:760px;border-radius:16px;border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow-card)}
table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:300px}
thead th{background:var(--gradient-primary);color:#fff;font-weight:700;font-family:var(--font-display);padding:.85rem 1rem;text-align:left;font-size:.88rem;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--muted-bg)}
tbody td{padding:.75rem 1rem;vertical-align:top;border-bottom:1px solid var(--border);color:var(--fg)}
.morse-code,td.morse-code,.morse-table td:nth-child(2),.morse-table td:nth-child(4){font-family:"Courier New",Courier,monospace;font-size:18px;font-weight:700;letter-spacing:2px;color:#4f46e5;white-space:nowrap}
@media(max-width:768px){.morse-code,td.morse-code,.morse-table td:nth-child(2),.morse-table td:nth-child(4){font-size:16px;letter-spacing:1.5px}}
@media(min-width:640px){.table-two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;max-width:760px;margin:1.6rem auto}.table-two-col .table-wrap{margin:0;max-width:none;box-shadow:none}}
/* Morse mini cards */
.morse-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:.6rem;margin:1.75rem 0}
.morse-number-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.morse-mini-card{background:var(--card);border:1.5px solid var(--border);border-radius:10px;padding:.7rem .9rem;display:flex;flex-direction:column;gap:.25rem;transition:transform .15s,box-shadow .15s,border-color .15s}
.morse-mini-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-card);border-color:rgba(90,108,255,.2)}
.morse-mini-card strong{font-size:1.1rem;font-family:var(--font-display);color:var(--fg)}
.morse-mini-card .morse-code{font-size:.82rem;letter-spacing:1px;color:var(--primary)}
/* Uses grid */
.uses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.35rem;margin:2rem 0;align-items:stretch}
.use-card{background:var(--card);border:1.5px solid var(--border);border-radius:16px;padding:1.4rem 1.6rem;height:100%;transition:transform .15s,box-shadow .15s,border-color .15s}
.use-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card);border-color:rgba(90,108,255,.2)}
.use-card h3{margin:0 0 .5rem;font-size:.95rem;color:var(--primary)}
.use-card p{margin:0;font-size:.875rem;color:var(--muted);line-height:1.65}
/* Facts */
.facts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.85rem;margin:1.75rem 0}
.fact-item{background:var(--card);border:1.5px solid var(--border);border-radius:12px;padding:1rem 1.25rem;display:flex;align-items:flex-start;gap:.65rem;transition:box-shadow .15s}
.fact-item:hover{box-shadow:var(--shadow-card)}
.fact-item::before{content:"•";color:var(--primary);font-size:1.3rem;line-height:1;flex-shrink:0}
.fact-item p{margin:0;font-size:.875rem;line-height:1.55}
/* Users list */
.users-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.65rem;margin:1.5rem 0;list-style:none;padding:0}
.users-list li{background:var(--card);border:1.5px solid var(--border);border-radius:10px;padding:.75rem 1rem;font-size:.88rem;font-weight:500;display:flex;align-items:center;gap:.5rem;transition:border-color .15s,transform .15s}
.users-list li:hover{border-color:var(--primary);transform:translateY(-1px)}
.users-list li::before{content:"✓";color:var(--primary);font-weight:700;font-size:.85rem}
/* Benefits */
.benefits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.35rem;margin:2rem 0;align-items:stretch}
.benefit-card{background:var(--card);border:1.5px solid var(--border);border-radius:16px;padding:1.35rem;height:100%;transition:transform .15s,box-shadow .15s}
.benefit-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.benefit-card h3{margin:0 0 .4rem;font-size:.95rem}
.benefit-card p{margin:0;font-size:.875rem;color:var(--muted)}
/* Methods */
.methods-grid{display:grid;gap:1.5rem;margin:2rem 0}
@media(min-width:768px){.methods-grid{grid-template-columns:1fr 1fr}}
.method-card{background:var(--card);border:1.5px solid var(--border);border-radius:18px;padding:1.75rem;transition:box-shadow .15s}
.method-card:hover{box-shadow:var(--shadow-card)}
.method-badge{display:inline-block;background:var(--gradient-primary);color:#fff;border-radius:7px;padding:.3rem .75rem;font-size:.72rem;font-weight:700;margin-bottom:.75rem}
.step-list{list-style:none;padding:0;margin:.75rem 0 0;counter-reset:steps}
.step-list li{counter-increment:steps;display:flex;align-items:flex-start;gap:.65rem;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.875rem;color:var(--muted)}
.step-list li:last-child{border-bottom:none}
.step-list li::before{content:counter(steps);background:var(--accent);color:var(--primary);font-weight:700;font-size:.72rem;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.1rem}
/* FAQ */
.faq-list{margin:2rem 0;display:flex;flex-direction:column;gap:.5rem}
.faq-item{background:var(--card);border:1.5px solid var(--border);border-radius:14px;overflow:hidden;transition:box-shadow .15s,border-color .15s}
.faq-item:hover{box-shadow:var(--shadow-card)}
.faq-item.open{border-color:rgba(90,108,255,.25)}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.35rem;cursor:pointer;font-size:.92rem;font-weight:600;color:var(--fg);background:none;border:none;text-align:left;font-family:inherit;transition:.15s}
.faq-q:hover{background:var(--muted-bg)}
.faq-icon{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.68rem;transition:.25s;color:var(--muted)}
.faq-item.open .faq-icon{transform:rotate(45deg);background:var(--primary);border-color:var(--primary);color:#fff}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .25s}
.faq-item.open .faq-a{max-height:500px;padding:0 1.35rem 1.25rem}
.faq-a p{margin:.2em 0;font-size:.9rem;color:var(--muted);line-height:1.75}
/* Author */
.author-section{background:var(--gradient-subtle);padding:5rem 0}
.author-card{max-width:900px;margin:0 auto;padding:0 1.25rem}
.author-inner{background:var(--card);border:1.5px solid var(--border);border-radius:22px;padding:2rem;box-shadow:var(--shadow-card);display:flex;gap:2rem;align-items:center}
@media(max-width:767px){.author-inner{flex-direction:column;text-align:center;gap:1.25rem}}
.author-img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:4px solid var(--accent);flex-shrink:0}
.author-content h2{margin:0 0 .4rem;font-size:1.3rem}
.author-content .author-title{color:var(--primary);font-size:.83rem;font-weight:600;margin:0 0 .65rem}
.author-content p{color:var(--muted);font-size:.9rem;margin:0 0 1rem;line-height:1.7}
.author-profile{display:flex;gap:2.25rem;align-items:flex-start;max-width:900px;margin:0 auto;padding:0 1.25rem}
@media(max-width:767px){.author-profile{flex-direction:column;align-items:center;text-align:center}}
.author-profile-img{width:150px;height:150px;border-radius:50%;object-fit:cover;border:5px solid var(--accent);flex-shrink:0}
.expertise-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.9rem;margin:1.4rem 0}
.expertise-item{background:var(--card);border:1px solid var(--border);border-radius:11px;padding:.9rem 1.1rem}
.expertise-item h4{margin:0 0 .3rem;font-size:.87rem;color:var(--primary)}
.expertise-item p{margin:0;font-size:.82rem;color:var(--muted)}
/* CTA */
.cta-btn{display:inline-flex;align-items:center;gap:.45rem;padding:.75rem 1.75rem;border-radius:12px;background:var(--gradient-primary);color:#fff;font-weight:600;font-size:.92rem;border:none;cursor:pointer;text-decoration:none;transition:all .2s;font-family:inherit;box-shadow:0 4px 16px rgba(90,108,255,.3)}
.cta-btn:hover{opacity:.9;text-decoration:none;color:#fff;transform:translateY(-1px);box-shadow:0 6px 24px rgba(90,108,255,.4)}
.cta-btn-outline{background:none;border:2px solid var(--primary);color:var(--primary);box-shadow:none}
.cta-btn-outline:hover{background:var(--accent);color:var(--primary);box-shadow:none}
/* Dropdowns */
.nav .dropdown{position:relative;display:flex;align-items:center}
.nav .dropdown-toggle{display:flex;align-items:center;gap:.3rem;padding:.45rem .7rem;border-radius:8px;color:var(--muted);font-size:.875rem;font-weight:500;cursor:pointer;background:none;border:none;font-family:inherit;line-height:1;transition:.15s}
.nav .dropdown-toggle:hover,.nav .dropdown.open .dropdown-toggle{background:var(--accent);color:var(--fg)}
.nav .dropdown-toggle svg{transition:transform .2s}
.nav .dropdown.open .dropdown-toggle svg{transform:rotate(180deg)}
.dropdown-menu{display:none;position:absolute;top:calc(100% + .35rem);left:0;background:var(--card);border:1px solid var(--border);border-radius:14px;min-width:230px;box-shadow:var(--shadow-elegant);z-index:300;padding:.4rem}
.dropdown.open .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:.55rem .85rem;border-radius:8px;color:var(--muted);font-size:.875rem;font-weight:500;transition:.15s;text-decoration:none;white-space:nowrap}
.dropdown-menu a:hover{background:var(--accent);color:var(--fg);text-decoration:none}
.mobile-dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:.65rem .75rem;border-radius:8px;color:var(--muted);font-size:.9rem;font-weight:600;cursor:pointer}
.mobile-dropdown-header:hover{background:var(--accent);color:var(--fg)}
.mobile-dropdown-header svg{transition:transform .2s}
.mobile-dropdown-items{display:none;padding-left:1rem}
.mobile-dropdown-items.open{display:block}
.mobile-dropdown-items a{padding:.5rem .75rem;display:block;font-size:.85rem}
/* FOOTER */
footer{margin-top:4rem;background:var(--gradient-subtle);border-top:1px solid var(--border)}
.footer-grid{display:grid;gap:2rem;padding:3.5rem clamp(1.25rem,3vw,2rem);max-width:1100px;margin:0 auto}
@media(min-width:768px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
footer h3{margin:0 0 .5rem;font-size:.98rem}
footer h4{margin:0 0 .7rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
footer ul{list-style:none;padding:0;margin:0}
footer ul li{margin:.4rem 0}
footer ul a{color:var(--muted);font-size:.86rem;transition:.15s}
footer ul a:hover{color:var(--fg);text-decoration:none}
.socials{display:flex;gap:.5rem;margin-top:.9rem;flex-wrap:wrap}
.socials a{width:36px;height:36px;border:1px solid var(--border);border-radius:50%;background:var(--card);display:inline-flex;align-items:center;justify-content:center;color:var(--fg);transition:all .15s}
.socials a:hover{color:var(--primary);border-color:var(--primary);transform:translateY(-1px)}
.footer-bottom{border-top:1px solid var(--border);text-align:center;padding:1.1rem;font-size:.76rem;color:var(--muted)}
/* Toast */
.toast{position:fixed;top:1rem;left:50%;transform:translateX(-50%) translateY(-120%);background:var(--card);border:1px solid var(--border);border-radius:12px;padding:.7rem 1.4rem;box-shadow:var(--shadow-elegant);font-size:.86rem;opacity:0;transition:.25s;z-index:200;pointer-events:none;white-space:nowrap;font-weight:500}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* Breadcrumb */
.breadcrumb{font-size:.8rem;color:var(--muted);padding:.65rem 0;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--primary)}
/* Forms */
.form-field{margin:1rem 0}
.form-field label{display:block;margin-bottom:.4rem;font-weight:500;font-size:.88rem}
.form-field input,.form-field textarea,.form-field select{width:100%;padding:.65rem;border-radius:9px;border:1px solid var(--border);background:var(--bg);color:var(--fg);font-family:inherit;font-size:.92rem}
/* Animations */
@keyframes fadeInUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.hero-inner,.translator-card{animation:none!important}
.tool-footer{display:flex;align-items:center;justify-content:flex-end;margin-top:.85rem}


/* Mobile header fix: keep menu visible and avoid brand text pushing controls off-screen */
@media (max-width: 640px){
  .header-inner{
    height: 56px;
    gap: .45rem;
  }
  .logo{
    min-width: 0;
    flex: 1 1 auto;
    gap: .45rem;
  }
  .logo-mark{
    width: 32px;
    height: 32px;
  }
  .logo-text{
    display: none !important;
  }
  .controls{
    flex: 0 0 auto;
    gap: .28rem;
  }
  .lang-pill{
    padding: .34rem .52rem;
    font-size: .72rem;
  }
  .btn-icon{
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9px;
  }
  .menu-toggle{
    display: inline-flex !important;
  }
}
@media (min-width: 641px) and (max-width: 1023px){
  .logo-text{
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* Global bilingual footer */
.site-footer, footer[data-global-footer]{
  border-top:1px solid var(--border);
  background:var(--muted-bg, #f4f6ff);
  padding:3.5rem 0 0;
  margin-top:4rem;
}
.site-footer .footer-grid, footer[data-global-footer] .footer-grid{
  max-width:1100px;
  margin:0 auto;
  padding:0 1rem 3rem;
  display:grid;
  grid-template-columns:1.35fr .9fr .8fr .9fr;
  gap:3rem;
  align-items:start;
}
.site-footer .footer-brand .logo, footer[data-global-footer] .footer-brand .logo{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:1rem;
}
.site-footer .footer-desc, footer[data-global-footer] .footer-desc{
  font-size:.9rem;
  color:var(--muted);
  margin:.5rem 0 1rem;
  line-height:1.7;
  max-width:330px;
}
.site-footer h4, footer[data-global-footer] h4{
  margin:0 0 1rem;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--fg);
  font-weight:800;
}
.site-footer ul, footer[data-global-footer] ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.7rem;
}
.site-footer a, footer[data-global-footer] a{
  color:var(--muted);
  text-decoration:none;
  font-size:.92rem;
  transition:.15s;
}
.site-footer a:hover, footer[data-global-footer] a:hover,
.site-footer a:focus-visible, footer[data-global-footer] a:focus-visible{
  color:var(--primary);
  text-decoration:none;
}
.site-footer .socials, footer[data-global-footer] .socials{
  display:flex;
  gap:.7rem;
  align-items:center;
}
.site-footer .socials a, footer[data-global-footer] .socials a{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--fg);
  background:var(--card);
  border:1px solid var(--border);
}
.site-footer .socials a:hover, footer[data-global-footer] .socials a:hover{
  background:var(--primary);
  color:#fff;
}
.site-footer .footer-bottom, footer[data-global-footer] .footer-bottom{
  border-top:1px solid var(--border);
  text-align:center;
  color:var(--muted);
  font-size:.86rem;
  padding:1rem;
}
@media(max-width:768px){
  .site-footer, footer[data-global-footer]{
    padding-top:2.4rem;
  }
  .site-footer .footer-grid, footer[data-global-footer] .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:2rem;
    padding-bottom:2rem;
  }
  .site-footer .footer-desc, footer[data-global-footer] .footer-desc{
    margin-left:auto;
    margin-right:auto;
  }
  .site-footer .socials, footer[data-global-footer] .socials{
    justify-content:center;
  }
  .site-footer .footer-brand .logo, footer[data-global-footer] .footer-brand .logo{
    justify-content:center;
  }
}

/* =========================================================
   Above-fold competitive tool redesign (home + /en/)
   ========================================================= */
.tool-hero{
  position:relative;
  isolation:isolate;
  min-height:calc(100svh - 64px);
  padding:clamp(.75rem,1.6vw,1.25rem) 0 clamp(1rem,2vw,1.75rem);
  background:
    radial-gradient(circle at 12% 12%,rgba(90,108,255,.18),transparent 28%),
    radial-gradient(circle at 86% 22%,rgba(234,91,179,.14),transparent 24%),
    linear-gradient(180deg,#f6f8ff 0%,#edf3ff 100%);
  overflow:hidden;
}
[data-theme="dark"] .tool-hero{
  background:
    radial-gradient(circle at 10% 10%,rgba(90,108,255,.22),transparent 28%),
    radial-gradient(circle at 86% 20%,rgba(234,91,179,.13),transparent 24%),
    linear-gradient(180deg,#0a1020 0%,#0b0f1a 100%);
}
.tool-hero-bg{
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.9;
  background-image:radial-gradient(rgba(90,108,255,.18) 1px,transparent 1px);
  background-size:18px 18px;
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.86) 48%,transparent 100%);
}
.tool-hero-inner{
  max-width:920px;
  padding:0 1.25rem .9rem;
}
.tool-hero .chip{
  margin-bottom:.45rem;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(90,108,255,.10);
}
[data-theme="dark"] .tool-hero .chip{background:rgba(18,24,38,.74)}
.tool-hero h1{
  font-size:clamp(2.15rem,4.4vw,4rem);
  line-height:1.02;
  margin:.25rem 0 .45rem;
  letter-spacing:-.055em;
}
.tool-hero p.lead{
  font-size:clamp(.94rem,1.4vw,1.1rem);
  line-height:1.55;
  max-width:720px;
}
.hero-benefits{
  margin:.75rem auto 0;
  display:flex;
  justify-content:center;
  gap:.45rem;
  flex-wrap:wrap;
}
.hero-benefits span{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.28rem .62rem;
  border-radius:999px;
  border:1px solid rgba(90,108,255,.18);
  background:rgba(255,255,255,.62);
  color:var(--muted);
  font-size:.74rem;
  font-weight:700;
}
[data-theme="dark"] .hero-benefits span{background:rgba(18,24,38,.72)}
.tool-hero .translator{
  max-width:1180px;
  padding:0 clamp(.75rem,2vw,1.25rem) 0;
}
.translator-card-pro{
  border-radius:28px;
  padding:clamp(1rem,1.8vw,1.35rem)!important;
  border:1px solid rgba(90,108,255,.16);
  background:rgba(255,255,255,.91);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 24px 70px -20px rgba(40,58,150,.34),0 2px 0 rgba(255,255,255,.65) inset;
}
[data-theme="dark"] .translator-card-pro{
  background:rgba(16,24,41,.92);
  box-shadow:0 24px 70px -20px rgba(0,0,0,.65),0 1px 0 rgba(255,255,255,.05) inset;
}
.translator-card-pro::before{
  background:linear-gradient(135deg,rgba(90,108,255,.05),transparent 40%),linear-gradient(315deg,rgba(234,91,179,.04),transparent 38%);
}
.translator-card-pro .translator-head{
  align-items:center;
  margin-bottom:.8rem;
}
.mini-kicker{
  display:block;
  color:var(--primary);
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:800;
  font-size:.62rem;
  line-height:1;
  margin-bottom:.35rem;
}
.translator-card-pro .translator-head h2{
  font-size:clamp(1.1rem,2vw,1.45rem);
  letter-spacing:-.025em;
}
.tool-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.55rem;
  flex-wrap:wrap;
}
.sample-row,.preset-row{
  display:flex;
  align-items:center;
  gap:.38rem;
  flex-wrap:wrap;
  margin:.1rem 0 .75rem;
  color:var(--muted);
  font-size:.76rem;
  font-weight:700;
}
.sample-chip,.preset-chip{
  border:0;
  border-radius:999px;
  padding:.32rem .62rem;
  background:linear-gradient(135deg,rgba(90,108,255,.13),rgba(139,155,255,.12));
  color:var(--primary);
  font:inherit;
  font-size:.72rem;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.sample-chip:hover,.preset-chip:hover,.preset-chip.active{
  transform:translateY(-1px);
  background:var(--gradient-primary);
  color:#fff;
  box-shadow:0 8px 20px rgba(90,108,255,.24);
}
.translator-card-pro .translator-grid{
  gap:clamp(.75rem,1.5vw,1.15rem);
}
.field-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.translator-card-pro .counter{
  min-height:auto;
  text-align:right;
  font-size:.68rem;
  color:var(--muted);
}
.translator-card-pro textarea{
  min-height:clamp(128px,19svh,168px);
  resize:vertical;
  border-radius:18px;
  padding:1rem 1.05rem;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,255,.86));
  border:1px solid rgba(90,108,255,.18);
  box-shadow:0 1px 0 rgba(255,255,255,.75) inset,0 10px 30px rgba(90,108,255,.06);
}
[data-theme="dark"] .translator-card-pro textarea{
  background:linear-gradient(180deg,rgba(11,15,26,.88),rgba(14,21,38,.88));
  border-color:rgba(139,155,255,.18);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 10px 30px rgba(0,0,0,.25);
}
.translator-card-pro textarea:focus{
  border-color:rgba(90,108,255,.65);
  box-shadow:0 0 0 4px rgba(90,108,255,.14),0 14px 34px rgba(90,108,255,.10);
}
.translator-card-pro .t-swap-col{
  padding-top:3rem;
}
.translator-card-pro .btn-swap{
  width:50px;
  height:50px;
  border:0;
  background:linear-gradient(135deg,#ff7a59,#ff4d8d);
  color:#fff;
  box-shadow:0 14px 32px rgba(255,77,141,.28);
}
.translator-card-pro .col-actions{
  gap:.45rem;
  margin-top:.55rem;
}
.translator-card-pro .btn{
  position:relative;
  border:0;
  border-radius:12px;
  padding:.58rem .82rem;
  background:linear-gradient(180deg,#fff,#f4f6ff);
  color:#273352;
  font-weight:800;
  font-size:.76rem;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 8px 18px rgba(42,58,120,.08);
}
[data-theme="dark"] .translator-card-pro .btn{
  background:linear-gradient(180deg,#1a2337,#131b2d);
  color:#e8ecff;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 8px 18px rgba(0,0,0,.22);
}
.translator-card-pro .btn:hover{
  color:#fff;
  background:var(--gradient-primary);
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(90,108,255,.24);
}
.translator-card-pro .btn-primary,.translator-card-pro .btn-play{
  color:#fff;
  background:linear-gradient(135deg,#5267ff 0%,#8b5cf6 52%,#e95aa9 100%);
  box-shadow:0 12px 26px rgba(90,108,255,.26);
}
.translator-card-pro .btn-soft{
  color:var(--primary);
  background:linear-gradient(135deg,rgba(90,108,255,.12),rgba(139,155,255,.08));
}
.translator-card-pro .btn-danger{
  color:#ff4d6d;
}
.translator-card-pro .btn-danger:hover{
  color:#fff;
  background:linear-gradient(135deg,#ff4d6d,#ff7a59);
  box-shadow:0 14px 28px rgba(255,77,109,.22);
}
.tool-dashboard{
  display:grid;
  grid-template-columns:minmax(380px,.92fr) 1fr;
  gap:.8rem;
  align-items:stretch;
  margin-top:.9rem;
}
.translator-card-pro .translator-stats{
  margin:0;
  border-radius:18px;
  border:1px solid rgba(90,108,255,.14);
  background:linear-gradient(135deg,rgba(90,108,255,.08),rgba(255,255,255,.58));
  min-height:74px;
}
[data-theme="dark"] .translator-card-pro .translator-stats{
  background:linear-gradient(135deg,rgba(90,108,255,.12),rgba(18,24,38,.7));
}
.translator-card-pro .stat-item{
  padding:.72rem .9rem;
  justify-content:center;
  border-right:1px solid rgba(90,108,255,.12);
}
.translator-card-pro .stat-label{
  font-size:.58rem;
}
.translator-card-pro .stat-value{
  font-size:clamp(1rem,1.6vw,1.32rem);
}
.quick-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-content:center;
  gap:.45rem;
  padding:.7rem;
  border:1px solid rgba(90,108,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.55);
}
[data-theme="dark"] .quick-toolbar{background:rgba(18,24,38,.55)}
.flash-display{
  margin-top:.8rem;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,224,102,.16),rgba(90,108,255,.07));
  border:1px solid rgba(90,108,255,.14);
  font-size:.82rem;
  color:var(--muted);
}
.settings-panel,.reference-panel{
  margin-top:.85rem;
  padding:.95rem;
  border-radius:20px;
  border:1px solid rgba(90,108,255,.14);
  background:rgba(255,255,255,.58);
  box-shadow:0 12px 32px rgba(42,58,120,.06);
}
[data-theme="dark"] .settings-panel,[data-theme="dark"] .reference-panel{background:rgba(18,24,38,.62)}
.settings-panel[hidden],.reference-panel[hidden]{display:none!important}
.setting-switch{justify-content:center}
.reference-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:center;
  color:var(--muted);
  font-size:.78rem;
  margin-bottom:.65rem;
}
.reference-head strong{color:var(--fg);font-size:.9rem}
.reference-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(72px,1fr));
  gap:.4rem;
}
.reference-grid button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  border:1px solid rgba(90,108,255,.13);
  border-radius:12px;
  padding:.52rem .6rem;
  background:linear-gradient(180deg,#fff,#f7f8ff);
  color:var(--fg);
  cursor:pointer;
  font-weight:800;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
[data-theme="dark"] .reference-grid button{background:linear-gradient(180deg,#1a2337,#131b2d)}
.reference-grid button small{
  font-family:ui-monospace,'SF Mono',Menlo,monospace;
  color:var(--primary);
  font-weight:800;
}
.reference-grid button:hover{
  transform:translateY(-1px);
  border-color:rgba(90,108,255,.38);
  box-shadow:0 10px 22px rgba(90,108,255,.13);
}
@media(max-width:980px){
  .tool-dashboard{grid-template-columns:1fr}
  .translator-card-pro .translator-stats{min-height:auto}
}
@media(max-width:767px){
  .tool-hero{min-height:auto;padding-top:.85rem}
  .tool-hero h1{font-size:2.1rem}
  .hero-benefits{display:none}
  .translator-card-pro .translator-head{gap:.6rem}
  .tool-head-actions{justify-content:flex-start;width:100%}
  .translator-card-pro .t-swap-col{padding:.15rem 0}
  .translator-card-pro .btn-swap{transform:rotate(90deg)}
  .translator-card-pro textarea{min-height:132px}
  .translator-card-pro .translator-stats{display:grid;grid-template-columns:repeat(2,1fr)}
  .translator-card-pro .stat-item:nth-child(2){border-right:none}
  .translator-card-pro .stat-item:nth-child(-n+2){border-bottom:1px solid rgba(90,108,255,.12)}
  .quick-toolbar,.col-actions{gap:.4rem}
  .translator-card-pro .btn{flex:1 1 auto;justify-content:center}
}
@media(max-height:760px) and (min-width:900px){
  .tool-hero-inner{padding-bottom:.55rem}
  .tool-hero h1{font-size:clamp(2rem,3.9vw,3.4rem)}
  .tool-hero p.lead{font-size:.95rem;line-height:1.45}
  .hero-benefits{margin-top:.5rem}
  .translator-card-pro textarea{min-height:118px}
  .translator-card-pro .btn{padding:.5rem .72rem}
  .tool-dashboard{margin-top:.7rem}
  .translator-card-pro .translator-stats{min-height:62px}
  .quick-toolbar{padding:.55rem}
}

/* =========================================================
   Button polish v8 — website color palette, cleaner text
   ========================================================= */
:root{
  --tool-primary:#5a6cff;
  --tool-primary-2:#7d8cff;
  --tool-primary-3:#8b9bff;
  --tool-ink:#111827;
  --tool-soft:#f3f5ff;
  --tool-soft-2:#e9edff;
}
.tool-hero{
  padding-top:clamp(1rem,2vw,1.55rem);
}
.tool-hero-inner{
  padding-bottom:clamp(.7rem,1.4vw,1rem);
}
.tool-hero .chip{
  margin-bottom:.55rem;
  padding:.42rem 1rem;
  border-color:rgba(90,108,255,.24);
  background:linear-gradient(135deg,rgba(90,108,255,.10),rgba(139,155,255,.08));
}
.tool-hero h1{
  font-size:clamp(2.15rem,4.7vw,4.15rem);
  line-height:.98;
  margin:.25rem 0 .65rem;
  letter-spacing:-.06em;
}
.tool-hero p.lead{
  max-width:680px;
  font-size:clamp(.96rem,1.25vw,1.06rem);
  line-height:1.48;
}
.translator-card-pro{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,251,255,.94))!important;
  border:1px solid rgba(90,108,255,.18)!important;
  box-shadow:0 22px 60px -24px rgba(62,76,180,.38),0 1px 0 rgba(255,255,255,.82) inset!important;
}
[data-theme="dark"] .translator-card-pro{
  background:linear-gradient(180deg,rgba(19,26,46,.96),rgba(13,19,35,.95))!important;
  border-color:rgba(139,155,255,.22)!important;
  box-shadow:0 24px 70px -26px rgba(0,0,0,.72),0 1px 0 rgba(255,255,255,.06) inset!important;
}
.translator-card-pro .translator-head h2{
  font-weight:850;
  letter-spacing:-.035em;
  color:var(--fg);
}
.mini-kicker,.sample-row,.preset-row,.field-label-row label,.control-group-label,.stat-label{
  letter-spacing:.075em;
}
.sample-row,.preset-row{
  margin:.15rem 0 .9rem;
  font-size:.8rem;
}
.sample-chip,.preset-chip{
  min-height:34px;
  padding:.48rem .78rem;
  border:1px solid rgba(90,108,255,.18);
  background:linear-gradient(180deg,#ffffff,#eff2ff);
  color:#4251d8;
  font-weight:850;
  font-size:.77rem;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 7px 16px rgba(90,108,255,.10);
}
.sample-chip:hover,.preset-chip:hover,.preset-chip.active{
  background:linear-gradient(135deg,var(--tool-primary),var(--tool-primary-3));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(90,108,255,.28);
}
.translator-card-pro textarea{
  font-size:1rem;
  color:#18213a;
  min-height:clamp(130px,18svh,164px);
  border-radius:19px;
  line-height:1.65;
}
[data-theme="dark"] .translator-card-pro textarea{
  color:#edf1ff;
}
#t-text{
  font-family:var(--font-sans);
  letter-spacing:0;
}
#t-morse{
  font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  letter-spacing:.045em;
}
.translator-card-pro textarea::placeholder{
  font-size:.98rem;
  letter-spacing:0;
  color:#7b86aa;
  opacity:.78;
}
#t-morse::placeholder{
  letter-spacing:.035em;
}
.translator-card-pro .counter{
  font-size:.74rem;
  font-weight:700;
  color:#667092;
}
.translator-card-pro .btn-swap{
  width:54px;
  height:54px;
  background:linear-gradient(135deg,#5a6cff,#8b9bff)!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(90,108,255,.32)!important;
}
.translator-card-pro .btn-swap:hover{
  box-shadow:0 18px 36px rgba(90,108,255,.42)!important;
}
.translator-card-pro .btn,
.translator-card-pro label.btn{
  min-height:42px;
  padding:.74rem 1.08rem;
  border-radius:13px;
  border:1px solid rgba(90,108,255,.16);
  color:#2f3a5f;
  font-size:.84rem;
  font-weight:850;
  letter-spacing:-.01em;
  background:linear-gradient(180deg,#ffffff 0%,#eef2ff 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.88) inset,0 9px 18px rgba(63,78,153,.10);
}
[data-theme="dark"] .translator-card-pro .btn,
[data-theme="dark"] .translator-card-pro label.btn{
  color:#edf1ff;
  border-color:rgba(139,155,255,.20);
  background:linear-gradient(180deg,#233052 0%,#18223e 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 10px 20px rgba(0,0,0,.22);
}
.translator-card-pro .btn:hover,
.translator-card-pro label.btn:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--tool-primary),var(--tool-primary-3));
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(90,108,255,.28);
}
.translator-card-pro .btn-primary,
.translator-card-pro .btn-play,
.translator-card-pro #t-copy-text,
.translator-card-pro #t-copy-morse,
.translator-card-pro #t-share{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#5367ff 0%,#6f7fff 48%,#8b9bff 100%);
  box-shadow:0 12px 26px rgba(90,108,255,.30);
}
.translator-card-pro #t-random,
.translator-card-pro #t-repeat,
.translator-card-pro #t-copy-link,
.translator-card-pro #t-reference-btn{
  color:#4a59e8;
  background:linear-gradient(135deg,#f6f7ff 0%,#e7ebff 100%);
  border-color:rgba(90,108,255,.20);
}
.translator-card-pro #t-random:hover,
.translator-card-pro #t-repeat:hover,
.translator-card-pro #t-copy-link:hover,
.translator-card-pro #t-reference-btn:hover{
  color:#fff;
  background:linear-gradient(135deg,#5a6cff,#8392ff);
  border-color:transparent;
}
.translator-card-pro #t-file + .btn,
.translator-card-pro label[for="t-file"],
.translator-card-pro #t-download,
.translator-card-pro #t-export-audio{
  color:#4655df;
  background:linear-gradient(135deg,#ffffff 0%,#eaf0ff 100%);
  border-color:rgba(90,108,255,.20);
}
.translator-card-pro #t-sound-toggle,
.translator-card-pro #t-flash,
.translator-card-pro #t-settings-btn{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#6374ff 0%,#8b9bff 100%);
  box-shadow:0 12px 25px rgba(90,108,255,.26);
}
.translator-card-pro #t-sound-toggle.active,
.translator-card-pro #t-flash.active,
.translator-card-pro .btn.active{
  color:#fff;
  background:linear-gradient(135deg,#485dff 0%,#7d8cff 52%,#a4afff 100%);
  box-shadow:0 14px 30px rgba(90,108,255,.34);
}
.translator-card-pro #t-stop{
  color:#4251d8;
  background:linear-gradient(180deg,#ffffff,#edf1ff);
  border-color:rgba(90,108,255,.22);
}
.translator-card-pro #t-clear.btn-danger{
  color:#5a6cff;
  background:linear-gradient(180deg,#ffffff,#f0f3ff);
  border-color:rgba(90,108,255,.22);
}
.translator-card-pro #t-clear.btn-danger:hover,
.translator-card-pro #t-stop:hover{
  color:#fff;
  background:linear-gradient(135deg,#5367ff,#8b9bff);
  border-color:transparent;
}
.quick-toolbar{
  gap:.55rem;
  padding:.8rem;
  border-color:rgba(90,108,255,.14);
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(239,243,255,.72));
}
[data-theme="dark"] .quick-toolbar{
  background:linear-gradient(135deg,rgba(25,35,61,.80),rgba(17,24,43,.78));
}
.translator-card-pro .translator-stats{
  background:linear-gradient(135deg,#f5f7ff 0%,#e9edff 100%);
  border-color:rgba(90,108,255,.16);
}
[data-theme="dark"] .translator-card-pro .translator-stats{
  background:linear-gradient(135deg,rgba(36,47,82,.9),rgba(24,34,62,.85));
}
.translator-card-pro .stat-value{
  color:#10172f;
  font-weight:850;
}
[data-theme="dark"] .translator-card-pro .stat-value{color:#edf1ff}
@media(min-width:768px){
  .translator-card-pro .col-actions .btn,
  .translator-card-pro .quick-toolbar .btn{
    flex:0 0 auto;
  }
}
@media(max-width:767px){
  .translator-card-pro .btn,
  .translator-card-pro label.btn{
    min-height:44px;
    padding:.78rem .9rem;
    font-size:.82rem;
  }
  .tool-hero h1{font-size:2.25rem;line-height:1.04}
  .translator-card-pro textarea{min-height:135px}
}
@media(max-height:760px) and (min-width:900px){
  .tool-hero{padding-top:.75rem}
  .tool-hero-inner{padding-bottom:.55rem}
  .translator-card-pro textarea{min-height:118px}
  .translator-card-pro .btn,
  .translator-card-pro label.btn{min-height:38px;padding:.62rem .92rem;font-size:.8rem}
  .sample-chip,.preset-chip{min-height:30px;padding:.38rem .68rem}
}


/* =========================================================
   Simplified translator controls — primary vs advanced
   ========================================================= */
.primary-toolbar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.55rem;
  margin-top:.95rem;
}
.primary-toolbar .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
}
.advanced-launch{
  display:flex;
  align-items:stretch;
}
.advanced-launch .btn-advanced{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:74px;
  border-radius:18px;
  padding:.9rem 1rem;
}
.advanced-launch .btn-advanced::after{
  content:"▾";
  font-size:1rem;
  opacity:.8;
}
.advanced-launch .btn-advanced.active::after{
  content:"▴";
}
.advanced-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-bottom:.85rem;
}
.advanced-actions .btn,
.advanced-actions label.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:980px){
  .primary-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px){
  .primary-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));}
  .advanced-launch .btn-advanced{min-height:60px;}
}


/* =========================================================
   Button layout fix — remove stats block and decongest actions
   ========================================================= */
.tool-dashboard{
  display:none;
}
.primary-toolbar-clean{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  margin-top:1rem;
}
.primary-actions-row,
.secondary-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  align-items:center;
}
.primary-actions-row .btn,
.secondary-actions-row .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  white-space:nowrap;
}
.primary-actions-row .btn{
  flex:1 1 150px;
}
.secondary-actions-row .btn{
  flex:0 1 165px;
}
.secondary-actions-row #t-settings-btn{
  margin-left:auto;
  min-width:210px;
}
@media (min-width:981px){
  .primary-actions-row{
    display:grid;
    grid-template-columns:repeat(5,minmax(130px,1fr));
  }
  .secondary-actions-row{
    display:grid;
    grid-template-columns:repeat(4,minmax(150px,1fr));
  }
  .secondary-actions-row #t-settings-btn{
    margin-left:0;
    min-width:0;
  }
}
@media (max-width:767px){
  .primary-actions-row,
  .secondary-actions-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .primary-actions-row .btn,
  .secondary-actions-row .btn{
    width:100%;
    min-height:46px;
  }
  .secondary-actions-row #t-settings-btn{
    grid-column:1 / -1;
    margin-left:0;
    min-width:0;
  }
}


/* =========================================================
   Button spacing improvement — spread controls full width
   ========================================================= */
.primary-toolbar-clean{
  width:100%;
  gap:.9rem;
  margin-top:1.15rem;
}
.primary-actions-row,
.secondary-actions-row{
  width:100%;
  display:grid;
  align-items:stretch;
  gap:.8rem;
}
.primary-actions-row{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.secondary-actions-row{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.primary-actions-row .btn,
.secondary-actions-row .btn{
  width:100%;
  min-height:48px;
  padding:.72rem 1rem;
  white-space:nowrap;
}
.secondary-actions-row #t-settings-btn{
  margin-left:0;
  min-width:0;
}
@media (max-width:1100px){
  .primary-actions-row{grid-template-columns:repeat(3,minmax(0,1fr));}
  .secondary-actions-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px){
  .primary-toolbar-clean{gap:.75rem;}
  .primary-actions-row,
  .secondary-actions-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;}
  .secondary-actions-row #t-settings-btn{grid-column:1 / -1;}
}


/* =========================================================
   Final controls layout — buttons under each input/output box
   ========================================================= */
.primary-toolbar,
.primary-toolbar-clean,
.tool-dashboard{
  display:none!important;
}
.translator-card-pro .translator-grid{
  align-items:start;
}
.box-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem;
  margin-top:1rem;
  width:100%;
}
.box-actions .btn{
  width:100%;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
  padding:.72rem .95rem;
}
.output-box-actions #t-settings-btn{
  grid-column:1 / -1;
}
@media (min-width:981px){
  .input-box-actions{
    padding-right:.25rem;
  }
  .output-box-actions{
    padding-left:.25rem;
  }
}
@media (max-width:767px){
  .box-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.62rem;
    margin-top:.8rem;
  }
  .box-actions .btn{
    min-height:46px;
    padding:.7rem .72rem;
    font-size:.78rem;
  }
}

/* Accessible mobile dropdown buttons */
.mobile-dropdown-header{width:100%;border:0;background:transparent;font-family:inherit;text-align:left}
.mobile-dropdown-header:focus-visible{outline:3px solid rgba(90,108,255,.22);outline-offset:2px}


/* Legal pages and privacy controls */
.legal-main{background:var(--bg)}
.legal-hero{padding:3.2rem 0 2.4rem;background:linear-gradient(135deg,rgba(90,108,255,.12),rgba(124,92,255,.04));border-bottom:1px solid var(--border)}
.legal-hero .container{max-width:900px}.legal-kicker{text-transform:uppercase;letter-spacing:.12em;color:var(--primary);font-size:.75rem;font-weight:800;margin:0 0 .55rem}.legal-hero h1{font-size:clamp(2rem,5vw,3.2rem);margin:0 0 .7rem}.legal-hero p{max-width:760px;color:var(--muted);font-size:1rem;line-height:1.75;margin:0}
.legal-page{padding-top:2.4rem;padding-bottom:4rem}.legal-page h2{scroll-margin-top:90px}.legal-page h3{margin-top:1.4rem}.legal-updated{display:inline-flex;padding:.45rem .75rem;border:1px solid var(--border);border-radius:999px;background:var(--card);font-size:.83rem}.legal-note{padding:1rem 1.15rem;border:1px solid rgba(90,108,255,.24);border-left:4px solid var(--primary);border-radius:12px;background:rgba(90,108,255,.06);margin:1.2rem 0 1.5rem}.legal-toc{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.15rem 1.3rem;margin:1.5rem 0;box-shadow:var(--shadow-card)}.legal-toc strong{display:block;margin-bottom:.5rem}.legal-toc ol{margin:.25rem 0 0;padding-left:1.25rem;columns:2;column-gap:2rem}.legal-toc li{break-inside:avoid;margin:.35rem 0}.inline-link-button,.footer-link-button{appearance:none;border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}.inline-link-button{color:var(--primary);font-weight:600;text-decoration:underline}.footer-link-button{color:var(--muted);font-size:.86rem}.footer-link-button:hover{color:var(--fg)}
.cookie-banner{position:fixed;z-index:10000;left:1rem;right:1rem;bottom:1rem;max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.15rem 1.25rem;border:1px solid var(--border);border-radius:18px;background:var(--card);box-shadow:0 22px 70px rgba(15,23,42,.22)}.cookie-banner[hidden],.cookie-modal[hidden]{display:none!important}.cookie-banner-copy{max-width:720px}.cookie-banner h2{font-size:1.05rem;margin:0 0 .35rem}.cookie-banner p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.55}.cookie-banner a,.cookie-policy-links a{color:var(--primary);font-weight:600}.cookie-actions,.cookie-modal-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.55rem}.cookie-btn{min-width:130px;min-height:43px;padding:.68rem .9rem;border-radius:10px;border:1.5px solid var(--primary);font:inherit;font-size:.84rem;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .15s}.cookie-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(90,108,255,.18)}.cookie-btn-primary,.cookie-btn-choice{background:var(--primary);color:#fff}.cookie-btn-secondary{background:var(--card);color:var(--primary)}
.cookie-modal{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:1rem}.cookie-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(3px)}.cookie-modal-card{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:1.3rem;box-shadow:0 28px 90px rgba(0,0,0,.3)}.cookie-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.8rem}.cookie-modal-head h2{margin:.15rem 0 0;font-size:1.35rem}.cookie-eyebrow{margin:0;color:var(--primary);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.cookie-close{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--fg);font-size:1.45rem;cursor:pointer}.cookie-option{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--border)}.cookie-option strong{font-size:.93rem}.cookie-option p{margin:.25rem 0 0;color:var(--muted);font-size:.82rem;line-height:1.5}.cookie-option input{width:22px;height:22px;accent-color:var(--primary);flex-shrink:0}.cookie-always{font-size:.76rem;font-weight:700;color:var(--primary);white-space:nowrap}.cookie-policy-links{text-align:center;color:var(--muted);font-size:.8rem;margin:.9rem 0 0}.cookie-modal-open{overflow:hidden}
@media(max-width:850px){.cookie-banner{align-items:stretch;flex-direction:column}.cookie-actions{grid-auto-flow:row;grid-template-columns:1fr}.cookie-btn{width:100%}.legal-toc ol{columns:1}}@media(max-width:480px){.cookie-banner{left:.55rem;right:.55rem;bottom:.55rem;padding:1rem}.cookie-modal-actions{grid-auto-flow:row}.legal-hero{padding:2.2rem 0 1.8rem}}

.dropdown-menu-right{left:auto;right:0}


/* Cookie consent UI — portfolio-quality refresh (2026-07-11b) */
.footer-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.5rem .8rem;
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));
  border-radius:999px;
  background:color-mix(in srgb,var(--card) 86%,var(--accent));
  color:var(--fg);
  font-size:.84rem;
  font-weight:700;
  line-height:1;
  box-shadow:0 4px 14px rgba(30,41,91,.06);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.footer-link-button:hover,
.footer-link-button:focus-visible{
  color:var(--primary);
  border-color:color-mix(in srgb,var(--primary) 48%,var(--border));
  background:var(--card);
  box-shadow:0 8px 22px rgba(90,108,255,.14);
  transform:translateY(-1px);
  outline:none;
}
.cookie-banner{
  position:fixed;
  z-index:10000;
  left:50%;
  right:auto;
  bottom:18px;
  width:min(1120px,calc(100% - 32px));
  max-width:none;
  margin:0;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:1.5rem;
  padding:1.05rem 1.15rem 1.05rem 1.3rem;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--primary) 20%,var(--border));
  border-radius:20px;
  background:color-mix(in srgb,var(--card) 94%,transparent);
  box-shadow:0 24px 75px rgba(15,23,42,.24),0 6px 24px rgba(90,108,255,.12);
  backdrop-filter:blur(18px) saturate(1.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
}
.cookie-banner::before{
  content:"";
  position:absolute;
  inset:12px auto 12px 0;
  width:4px;
  border-radius:0 999px 999px 0;
  background:var(--gradient-primary);
}
.cookie-banner-copy{
  position:relative;
  min-width:0;
  max-width:760px;
  padding-left:3.35rem;
}
.cookie-banner-copy::before{
  content:"✓";
  position:absolute;
  left:0;
  top:50%;
  width:2.45rem;
  height:2.45rem;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border-radius:13px;
  background:var(--gradient-primary);
  color:#fff;
  font-size:1rem;
  font-weight:900;
  box-shadow:0 8px 24px rgba(90,108,255,.28);
}
.cookie-banner h2{
  margin:0 0 .28rem;
  font-size:1.08rem;
  font-weight:800;
  letter-spacing:-.012em;
  color:var(--fg);
}
.cookie-banner p{
  margin:0;
  color:var(--muted);
  font-size:.85rem;
  line-height:1.55;
}
.cookie-banner a,
.cookie-policy-links a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
  text-underline-offset:3px;
}
.cookie-banner a:hover,
.cookie-policy-links a:hover{text-decoration:underline}
.cookie-actions,
.cookie-modal-actions{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(118px,1fr);
  gap:.6rem;
  align-items:stretch;
}
.cookie-btn{
  min-width:118px;
  min-height:44px;
  padding:.68rem .95rem;
  border:1.5px solid var(--primary);
  border-radius:11px;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  line-height:1.05;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.cookie-btn:hover,
.cookie-btn:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(90,108,255,.19);
  outline:none;
}
.cookie-btn-choice{
  background:var(--gradient-primary);
  color:#fff;
  border-color:transparent;
}
.cookie-btn-secondary{
  background:var(--card);
  color:var(--primary);
  border-color:color-mix(in srgb,var(--primary) 55%,var(--border));
}
.cookie-modal-card{
  width:min(640px,100%);
  border-radius:22px;
  padding:1.45rem;
  border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border));
  box-shadow:0 34px 100px rgba(0,0,0,.34);
}
.cookie-modal-head{padding-bottom:1rem}
.cookie-modal-head h2{font-size:1.45rem}
.cookie-option{padding:1.05rem .15rem}
.cookie-option input{width:23px;height:23px}
.cookie-close{transition:background .16s ease,transform .16s ease}
.cookie-close:hover{background:var(--accent);transform:rotate(4deg)}
@media(max-width:900px){
  .cookie-banner{
    grid-template-columns:1fr;
    gap:.95rem;
    padding:1rem 1rem 1.05rem 1.15rem;
  }
  .cookie-banner-copy{max-width:none}
  .cookie-actions{grid-auto-columns:1fr;width:100%}
}
@media(max-width:560px){
  .cookie-banner{
    bottom:10px;
    width:calc(100% - 20px);
    border-radius:17px;
    padding:.92rem;
  }
  .cookie-banner-copy{padding-left:2.9rem}
  .cookie-banner-copy::before{width:2.15rem;height:2.15rem;border-radius:11px}
  .cookie-banner h2{font-size:1rem}
  .cookie-banner p{font-size:.79rem;line-height:1.48}
  .cookie-actions{
    grid-auto-flow:row;
    grid-template-columns:1fr 1fr;
    gap:.5rem;
  }
  .cookie-actions .cookie-btn{width:100%;min-width:0;min-height:42px;padding:.62rem .55rem}
  .cookie-actions .cookie-btn-secondary{grid-column:1 / -1;grid-row:2}
  .cookie-modal{padding:.65rem}
  .cookie-modal-card{border-radius:18px;padding:1.05rem}
  .cookie-modal-actions{grid-auto-flow:row;grid-template-columns:1fr}
  .cookie-modal-actions .cookie-btn{width:100%}
}


/* ABOUT & CONTACT TRUST PAGES — 2026-07 */
.trust-page{max-width:960px;padding-top:3.5rem;padding-bottom:1rem}
.trust-page h1{margin:.25rem 0 .8rem;font-size:clamp(2rem,5vw,3rem)}
.trust-page h2{margin:0 0 .85rem;font-size:clamp(1.35rem,3vw,1.85rem)}
.trust-page h3{margin:0 0 .45rem}
.trust-page p{max-width:none}
.page-hero-card{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--card),var(--accent));border:1.5px solid var(--border);border-radius:24px;padding:clamp(1.5rem,4vw,2.6rem);box-shadow:var(--shadow-elegant);margin-bottom:2.4rem}
.page-hero-card::after{content:"••• — — — •••";position:absolute;right:-1rem;top:.6rem;color:var(--primary);opacity:.07;font:800 clamp(2rem,7vw,5rem)/1 ui-monospace,monospace;letter-spacing:.12em;white-space:nowrap;pointer-events:none}
.page-hero-card>*{position:relative;z-index:1}
.page-kicker{display:inline-flex;padding:.32rem .75rem;border-radius:999px;background:rgba(90,108,255,.1);border:1px solid rgba(90,108,255,.22);color:var(--primary);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.page-lead{font-size:clamp(1rem,2vw,1.15rem);color:var(--muted);line-height:1.8;max-width:760px!important}
.page-quick-links{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.25rem}
.content-section{padding:2.2rem 0;border-bottom:1px solid var(--border)}
.content-section:last-child{border-bottom:0}
.about-figure{margin:1.7rem 0 0}
.about-figure img{width:100%;border-radius:18px;border:1px solid var(--border);box-shadow:var(--shadow-card);aspect-ratio:16/9;object-fit:cover}
.about-figure figcaption{margin-top:.65rem;text-align:center;color:var(--muted);font-size:.82rem}
.about-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.35rem}
.about-card-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.about-card{background:var(--card);border:1.5px solid var(--border);border-radius:16px;padding:1.3rem;box-shadow:var(--shadow-card);transition:transform .18s,box-shadow .18s,border-color .18s}
.about-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-elegant);border-color:rgba(90,108,255,.25)}
.about-card p{font-size:.91rem;color:var(--muted);line-height:1.68;margin:.35rem 0 .55rem}
.about-card a{font-size:.86rem;font-weight:700}
.about-card-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:rgba(90,108,255,.1);color:var(--primary);font-weight:800;margin-bottom:.85rem}
.about-users{grid-template-columns:repeat(2,minmax(0,1fr))}
.process-list{counter-reset:steps;list-style:none;padding:0;margin:1.35rem 0}
.process-list li{counter-increment:steps;position:relative;padding:1rem 1rem 1rem 3.4rem;margin:.65rem 0;background:var(--card);border:1px solid var(--border);border-radius:13px}
.process-list li::before{content:counter(steps);position:absolute;left:1rem;top:1rem;width:1.7rem;height:1.7rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--gradient-primary);color:#fff;font-size:.76rem;font-weight:800}
.contact-strip{display:grid;grid-template-columns:1fr auto;gap:1.5rem;align-items:center;background:var(--gradient-subtle);border:1.5px solid var(--border)!important;border-radius:18px;padding:1.5rem;margin-top:2.2rem}
.contact-strip h2{margin:0 0 .45rem}
.contact-strip p{margin:0;color:var(--muted)}
.contact-strip-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;min-width:230px}
.text-link{font-size:.82rem;overflow-wrap:anywhere}
.contact-email-card{margin-top:1.3rem;background:var(--card);border:1.5px solid var(--border);border-radius:16px;padding:1.1rem 1.25rem;max-width:620px;box-shadow:var(--shadow-card)}
.contact-email-label{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.contact-email-card>a{display:block;font-size:clamp(1rem,3vw,1.25rem);font-weight:800;margin:.2rem 0;overflow-wrap:anywhere}
.contact-email-card p{font-size:.84rem;margin:.1rem 0;color:var(--muted)}
.check-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1.2rem 0}
.check-list li{position:relative;padding:.85rem .9rem .85rem 2.4rem;border:1px solid var(--border);background:var(--card);border-radius:12px;font-size:.9rem}
.check-list li::before{content:"✓";position:absolute;left:.85rem;color:var(--primary);font-weight:900}
.contact-form-section{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1.4rem;align-items:start}
.contact-form-card{background:var(--card);border:1.5px solid var(--border);border-radius:18px;padding:1.35rem;box-shadow:var(--shadow-card)}
.contact-form-card .form-field{margin:.7rem 0}
.contact-form-card input,.contact-form-card textarea,.contact-form-card select{background:var(--bg);border-width:1.5px;transition:border-color .18s,box-shadow .18s}
.contact-form-card input:focus,.contact-form-card textarea:focus,.contact-form-card select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(90,108,255,.12)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.contact-submit{margin-top:.45rem}
.small-note{font-size:.84rem;color:var(--muted);padding:.85rem 1rem;border-left:3px solid var(--primary);background:var(--accent);border-radius:0 10px 10px 0}
.notice-card{padding:1rem 1.15rem;border-radius:13px;border:1px solid rgba(245,158,11,.3);background:rgba(245,158,11,.08);margin:1.1rem 0}
.faq-simple{display:grid;gap:.65rem}
.faq-simple details{background:var(--card);border:1px solid var(--border);border-radius:13px;padding:0 1rem}
.faq-simple summary{cursor:pointer;font-weight:700;padding:1rem 1.8rem 1rem 0;position:relative;list-style:none}
.faq-simple summary::-webkit-details-marker{display:none}
.faq-simple summary::after{content:"+";position:absolute;right:0;top:.8rem;color:var(--primary);font-size:1.35rem}
.faq-simple details[open] summary::after{content:"−"}
.faq-simple details p{margin:0 0 1rem;color:var(--muted);font-size:.92rem}
.social-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:1rem}
.social-contact-grid a{display:flex;flex-direction:column;padding:1rem 1.1rem;border:1.5px solid var(--border);border-radius:13px;background:var(--card);color:var(--fg);transition:.18s}
.social-contact-grid a:hover{text-decoration:none;border-color:var(--primary);transform:translateY(-2px);box-shadow:var(--shadow-card)}
.social-contact-grid span{font-size:.78rem;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:760px){
  .trust-page{padding-top:2rem}
  .about-card-grid,.about-card-grid.two-col,.about-users,.check-list,.contact-form-section,.social-contact-grid{grid-template-columns:1fr}
  .contact-strip{grid-template-columns:1fr}
  .contact-strip-actions{min-width:0}
  .form-grid{grid-template-columns:1fr}
  .page-hero-card{border-radius:18px}
}


/* --- UI polish: editorial headings, refined lists, global back-to-top --- */
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) h2{
  position:relative;
  margin:2.1rem 0 1rem;
  padding:0 0 0 1.05rem;
  font-size:clamp(1.45rem,2.7vw,2.05rem);
  font-weight:800;
  letter-spacing:-.025em;
  scroll-margin-top:92px;
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.18em;
  width:5px;
  height:1.05em;
  border-radius:999px;
  background:var(--gradient-primary);
  box-shadow:0 10px 22px rgba(90,108,255,.22);
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) h2::after{
  content:"";
  display:block;
  width:68px;
  height:3px;
  border-radius:999px;
  margin-top:.45rem;
  background:linear-gradient(90deg,var(--primary),transparent);
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) h3{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin:1.6rem 0 .7rem;
  font-size:clamp(1.08rem,2vw,1.28rem);
  font-weight:750;
  letter-spacing:-.015em;
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) h3::before{
  content:"";
  width:.55rem;
  height:.55rem;
  border-radius:50%;
  background:var(--gradient-primary);
  box-shadow:0 0 0 5px rgba(90,108,255,.10);
  flex:0 0 auto;
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ul,
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ol{
  margin:1rem 0 1.35rem;
  padding:0;
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ul > li,
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ol > li{
  list-style:none;
  position:relative;
  margin:.72rem 0;
  padding:.82rem 1rem .82rem 3rem;
  border:1px solid color-mix(in oklab,var(--border) 92%, var(--primary) 8%);
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in oklab,var(--card) 94%, var(--accent) 6%), color-mix(in oklab,var(--card) 98%, transparent));
  box-shadow:0 12px 28px -20px rgba(90,108,255,.30);
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ul > li::before{
  content:"";
  position:absolute;
  left:1rem;
  top:1.15rem;
  width:.72rem;
  height:.72rem;
  border-radius:50%;
  background:var(--gradient-primary);
  box-shadow:0 0 0 5px rgba(90,108,255,.10);
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ol{
  counter-reset:editorial-steps;
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ol > li::before{
  counter-increment:editorial-steps;
  content:counter(editorial-steps);
  position:absolute;
  left:.72rem;
  top:.62rem;
  width:1.55rem;
  height:1.55rem;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:.8rem;
  font-weight:800;
  line-height:1;
  background:var(--gradient-primary);
  box-shadow:0 10px 20px rgba(90,108,255,.22);
}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) li > p:first-child{margin-top:0}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) li > p:last-child{margin-bottom:0}
main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) strong{
  color:var(--fg);
}
.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:56px;
  height:56px;
  border:none;
  border-radius:50%;
  background:var(--gradient-primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
  cursor:pointer;
  box-shadow:0 18px 38px -14px rgba(90,108,255,.55);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
  z-index:120;
}
.back-to-top:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 42px -12px rgba(90,108,255,.62);
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top svg{width:20px;height:20px;display:block}
@media (max-width:640px){
  .back-to-top{right:16px;bottom:16px;width:52px;height:52px}
  main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ul > li,
  main :is(article.prose, article.legal-page, article.trust-page, .article-section, .content-wrap article) ol > li{padding:.78rem .9rem .78rem 2.85rem}
}

/* =========================================================
   Above-the-fold mobile and tablet homepage UX — 2026-08-04
   ========================================================= */
.tool-hero{display:flex;flex-direction:column}
.tool-hero-inner{display:contents}
.tool-hero .chip{order:1;align-self:center}
.tool-hero h1{order:2;align-self:center;width:100%;max-width:920px;padding-left:1.25rem;padding-right:1.25rem;text-align:center}
.tool-hero p.lead{order:3;align-self:center;width:100%;padding-left:1.25rem;padding-right:1.25rem;text-align:center}
.tool-hero .hero-benefits{order:4;align-self:center}
.tool-hero .translator{order:5;width:100%}

@media(max-width:1023px){
  .header-inner{height:56px}
  .tool-hero{min-height:calc(100svh - 56px);padding:.4rem 0 .7rem}
  .tool-hero h1{order:1;margin:.05rem 0 .45rem;font-size:clamp(1.72rem,5vw,2.45rem);line-height:1.02;letter-spacing:-.045em}
  .tool-hero .translator{order:2;padding:0 .65rem}
  .tool-hero .chip{order:3;margin:.75rem auto .2rem;padding:.32rem .75rem;font-size:.61rem}
  .tool-hero p.lead{order:4;max-width:760px;margin:.15rem auto .35rem;font-size:.84rem;line-height:1.45}
  .tool-hero .hero-benefits{order:5;margin:.3rem auto 0}
  .translator-card-pro{padding:.8rem!important;border-radius:20px}
  .translator-card-pro .translator-head{margin-bottom:.55rem;gap:.45rem;flex-wrap:nowrap}
  .translator-card-pro .translator-head h2{font-size:1.02rem;line-height:1.1}
  .mini-kicker{display:none}
  .tool-head-actions{gap:.35rem;flex-wrap:nowrap}
  .tool-head-actions .btn{min-height:34px;padding:.48rem .62rem;font-size:.7rem}
  .translator-card-pro textarea{min-height:104px;height:104px;padding:.72rem .78rem;border-radius:14px;font-size:.86rem;line-height:1.45;resize:none}
  .field-label-row{gap:.4rem}
  .translator-card-pro .counter{font-size:.62rem}
  .translator-card-pro .t-swap-col{padding-top:2.15rem}
  .translator-card-pro .btn-swap{width:40px;height:40px;font-size:1rem}
  .box-actions{gap:.42rem;margin-top:.45rem}
  .box-actions .btn{min-height:38px;padding:.52rem .45rem;font-size:.71rem}
  .input-box-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .output-box-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .output-box-actions #t-settings-btn{grid-column:1 / -1}
}

@media(max-width:767px){
  .tool-hero{padding-top:.28rem}
  .tool-hero h1{margin:0 0 .32rem;font-size:clamp(1.55rem,7.2vw,2rem)}
  .tool-hero .translator{padding:0 .5rem}
  .translator-card-pro{padding:.62rem!important;border-radius:17px}
  .translator-card-pro .translator-head{margin-bottom:.38rem}
  .translator-card-pro .translator-head h2{font-size:.92rem}
  .tool-head-actions .btn{min-height:30px;padding:.4rem .48rem;font-size:.64rem}
  .translator-card-pro .translator-grid{gap:.34rem}
  .t-col{gap:.24rem}
  .field-label-row label{font-size:.63rem}
  .translator-card-pro .counter{font-size:.56rem}
  .translator-card-pro textarea{min-height:76px;height:76px;padding:.55rem .64rem;border-radius:12px;font-size:.78rem;line-height:1.35}
  .translator-card-pro textarea::placeholder{font-size:.78rem}
  .translator-card-pro .t-swap-col{padding:.05rem 0}
  .translator-card-pro .btn-swap{width:32px;height:32px;font-size:.88rem}
  .box-actions{gap:.32rem;margin-top:.28rem}
  .box-actions .btn{min-height:34px;padding:.4rem .24rem;border-radius:10px;font-size:.66rem;line-height:1.1;white-space:normal}
  .tool-hero .chip{margin-top:.62rem}
  .tool-hero p.lead{font-size:.78rem;line-height:1.4}
  .hero-benefits{display:flex;gap:.3rem;padding:0 .5rem}
  .hero-benefits span{padding:.22rem .48rem;font-size:.63rem}
}

@media(max-width:767px) and (max-height:720px){
  .header-inner{height:52px}
  .tool-hero{min-height:calc(100svh - 52px);padding-top:.2rem}
  .tool-hero h1{font-size:1.48rem;margin-bottom:.22rem}
  .translator-card-pro .translator-head{display:none}
  .translator-card-pro textarea{min-height:60px;height:60px;padding:.45rem .58rem;font-size:.72rem}
  .translator-card-pro textarea::placeholder{font-size:.72rem}
  .field-label-row label{font-size:.58rem}
  .translator-card-pro .counter{font-size:.51rem}
  .translator-card-pro .btn-swap{width:28px;height:28px;font-size:.8rem}
  .box-actions .btn{min-height:30px;padding:.33rem .2rem;font-size:.61rem}
  .tool-hero .chip{margin-top:.5rem}
}

@media(min-width:1024px) and (max-height:820px){
  .tool-hero{padding-top:.65rem;padding-bottom:.8rem}
  .tool-hero .chip{margin-bottom:.32rem;padding:.34rem .85rem}
  .tool-hero h1{font-size:clamp(2rem,4.1vw,3.65rem);margin:.18rem 0 .38rem}
  .tool-hero p.lead{font-size:.94rem;line-height:1.4}
  .tool-hero .hero-benefits{margin-top:.42rem}
  .sample-row{display:none}
  .translator-card-pro{padding:1rem!important}
  .translator-card-pro .translator-head{margin-bottom:.55rem}
  .translator-card-pro textarea{min-height:112px;height:112px;resize:none}
  .box-actions{margin-top:.62rem;gap:.52rem}
  .box-actions .btn{min-height:42px;padding:.58rem .75rem}
}

.input-box-actions{grid-template-columns:repeat(3,minmax(0,1fr))}


/* =========================================================
   Mobile live translator viewport fit + input reliability — 2026-08-04b
   ========================================================= */
@media(max-width:1023px){
  .header-inner{height:50px}
  .tool-hero{min-height:calc(100svh - 50px);padding:.18rem 0 .55rem}
  .tool-hero h1{margin:0 0 .3rem;font-size:clamp(1.55rem,4.8vw,2.25rem);line-height:1;letter-spacing:-.045em}
  .tool-hero .translator{padding:0 .5rem}
  .translator-card-pro{padding:.62rem!important;border-radius:17px}
  .translator-card-pro .translator-head,
  .translator-card-pro .sample-row{display:none!important}
  .translator-card-pro textarea{min-height:88px;height:88px;padding:.58rem .66rem;border-radius:12px;font-size:.8rem;line-height:1.35;resize:none}
  .translator-card-pro textarea::placeholder{font-size:.8rem}
  .translator-card-pro .translator-grid{gap:.42rem}
  .translator-card-pro .t-swap-col{padding-top:1.7rem}
  .translator-card-pro .btn-swap{width:34px;height:34px;font-size:.9rem}
  .box-actions{gap:.3rem;margin-top:.3rem}
  .box-actions .btn{min-height:32px;padding:.36rem .28rem;border-radius:9px;font-size:.64rem;line-height:1.05;white-space:normal}
  .input-box-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .output-box-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .output-box-actions #t-settings-btn{grid-column:2 / -1}
  .tool-hero .chip{order:3;margin:.55rem auto .15rem;padding:.25rem .65rem;font-size:.58rem}
  .tool-hero p.lead{order:4;margin:.1rem auto .25rem;font-size:.76rem;line-height:1.35}
  .tool-hero .hero-benefits{order:5;margin:.2rem auto 0}
}

@media(max-width:767px){
  .header-inner{height:48px}
  .tool-hero{min-height:calc(100svh - 48px);padding:.12rem 0 .45rem}
  .tool-hero h1{font-size:clamp(1.28rem,6vw,1.62rem);margin:0 0 .2rem;padding-left:.5rem;padding-right:.5rem}
  .tool-hero .translator{padding:0 .35rem}
  .translator-card-pro{padding:.42rem!important;border-radius:14px}
  .translator-card-pro .translator-grid{gap:.18rem}
  .t-col{gap:.12rem}
  .field-label-row{min-height:12px;gap:.25rem}
  .field-label-row label{font-size:.54rem;line-height:1}
  .translator-card-pro .counter{font-size:.49rem;line-height:1}
  .translator-card-pro textarea{min-height:58px;height:58px;padding:.4rem .5rem;border-radius:10px;font-size:.7rem;line-height:1.25}
  .translator-card-pro textarea::placeholder{font-size:.7rem}
  .translator-card-pro .t-swap-col{padding:.02rem 0}
  .translator-card-pro .btn-swap{width:24px;height:24px;font-size:.7rem;box-shadow:0 7px 16px rgba(90,108,255,.24)!important}
  .box-actions{gap:.22rem;margin-top:.18rem}
  .box-actions .btn{min-height:28px;padding:.26rem .12rem;border-radius:8px;font-size:.56rem;line-height:1.02}
  .output-box-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .output-box-actions #t-settings-btn{grid-column:2 / -1}
  .tool-hero .chip{margin-top:.42rem}
  .tool-hero p.lead{font-size:.7rem;line-height:1.3;padding-left:.7rem;padding-right:.7rem}
  .tool-hero .hero-benefits{display:none!important}
}

@media(max-width:767px) and (max-height:620px){
  .header-inner{height:44px}
  .tool-hero{min-height:calc(100svh - 44px);padding-top:.08rem}
  .tool-hero h1{font-size:1.16rem;margin-bottom:.12rem}
  .translator-card-pro{padding:.34rem!important}
  .translator-card-pro textarea{min-height:48px;height:48px;padding:.32rem .44rem;font-size:.64rem}
  .translator-card-pro textarea::placeholder{font-size:.64rem}
  .box-actions .btn{min-height:25px;font-size:.52rem}
  .translator-card-pro .btn-swap{width:21px;height:21px;font-size:.62rem}
  .tool-hero .chip,.tool-hero p.lead{display:none!important}
}


/* NL/mobile translator spacing and three-language switcher — 2026-08-06c */
.lang-pills{flex-shrink:0;white-space:nowrap}
.lang-pill{flex:0 0 auto;min-width:31px}

@media(max-width:1023px){
  .tool-hero h1{order:1;margin-bottom:.42rem}
  .tool-hero .chip{order:2;margin:.02rem auto .46rem}
  .tool-hero .translator{order:3}
  .tool-hero p.lead{order:4}
  .tool-hero .hero-benefits{order:5}
}

@media(max-width:767px){
  .tool-hero h1{margin-bottom:.34rem}
  .tool-hero .chip{display:inline-flex!important;order:2;margin:.02rem auto .38rem;padding:.27rem .7rem;font-size:.58rem}
  .translator-card-pro textarea{min-height:82px!important;height:82px!important}
}

@media(max-width:767px) and (max-height:620px){
  .tool-hero h1{margin-bottom:.28rem}
  .tool-hero .chip{display:inline-flex!important;margin:.02rem auto .32rem}
  .translator-card-pro textarea{min-height:70px!important;height:70px!important}
}


/* 2026-08-07: remove empty space below homepage translator on all devices */
.tool-hero{min-height:0!important;height:auto!important;padding-bottom:.45rem!important}
.tool-hero .translator{padding-bottom:0!important;margin-bottom:0!important}
.tool-hero + #features{padding-top:2.2rem!important}
@media(max-width:1023px){.tool-hero{min-height:0!important}.tool-hero + #features{padding-top:1.65rem!important}}
@media(max-width:767px){.tool-hero{min-height:0!important;padding-bottom:.15rem!important}.tool-hero + #features{padding-top:1.15rem!important}.tool-hero + #features .section-header{margin-bottom:1.8rem}}
@media(max-width:767px) and (max-height:720px){.tool-hero{min-height:0!important}}


/* Russian navigation: compact labels while retaining the same site header geometry. */
html[lang="ru"] body .header .header-inner.container{max-width:1320px}
html[lang="ru"] body .header-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}
html[lang="ru"] body .header .nav{gap:.05rem}
html[lang="ru"] body .header .nav a{padding:.4rem .5rem;font-size:.78rem;white-space:nowrap}
html[lang="ru"] body .header .logo-text{font-size:.82rem;white-space:nowrap}
html[lang="ru"] body .header .language-selector-toggle{min-width:122px;height:38px}
@media(max-width:1240px) and (min-width:1024px){
  html[lang="ru"] body .header .logo-text{display:none}
  html[lang="ru"] body .header .logo-mark{display:flex}
}

/* Master-style language dropdown — 2026-08-07 */
.language-selector{position:relative;display:inline-flex;align-items:center;z-index:1200;flex:0 0 auto}
.language-selector-toggle{height:38px;min-width:124px;padding:0 10px 0 11px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--fg);display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:.78rem;font-weight:600;line-height:1;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s;white-space:nowrap}
.language-selector-toggle:hover,.language-selector-toggle:focus-visible{background:var(--accent);border-color:color-mix(in srgb,var(--primary) 45%,var(--border));outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}
.language-globe{width:17px;height:17px;flex:0 0 17px;color:currentColor}
.language-current-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.language-chevron{width:14px;height:14px;flex:0 0 14px;margin-left:auto;transition:transform .18s ease}
.language-selector.open .language-chevron{transform:rotate(180deg)}
.language-selector-menu{position:absolute;top:calc(100% + 8px);right:0;width:188px;padding:6px;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 45px rgba(17,24,39,.18);display:none;max-height:min(70vh,440px);overflow:auto;overscroll-behavior:contain}
.language-selector.open .language-selector-menu{display:block;animation:languageMenuIn .14s ease-out}
@keyframes languageMenuIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.language-option{min-height:38px;width:100%;padding:8px 9px;border-radius:8px;color:var(--fg);display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none!important;font-size:.82rem;font-weight:500;line-height:1.2;transition:background .14s,color .14s}
.language-option:hover,.language-option:focus-visible{background:var(--accent);color:var(--fg);outline:none}
.language-option.active{background:#e3f5ee;color:#087a55;font-weight:700}
[data-theme="dark"] .language-option.active{background:rgba(31,169,120,.18);color:#72deb8}
.language-check{width:17px;height:17px;flex:0 0 17px;opacity:0}
.language-option.active .language-check{opacity:1}
@media(max-width:640px){
  .language-selector-toggle{height:36px;min-width:106px;max-width:118px;padding:0 8px;gap:6px;font-size:.72rem}
  .language-globe{width:16px;height:16px;flex-basis:16px}
  .language-selector-menu{position:fixed;top:62px;right:10px;left:auto;width:min(210px,calc(100vw - 20px));max-height:calc(100vh - 78px)}
}
@media(max-width:360px){
  .language-selector-toggle{min-width:94px;max-width:100px;font-size:.68rem}
  .language-chevron{width:12px;height:12px;flex-basis:12px}
}

/* 2026-08-07: compact, single-line desktop legal dropdown in every language */
@media(min-width:1024px){
  .header .nav .legal-nav-dropdown{
    flex:0 0 auto;
    min-width:0;
  }
  .header .nav .legal-nav-dropdown .dropdown-toggle{
    flex:0 0 auto;
    width:auto;
    min-width:max-content;
    max-width:none;
    min-height:38px;
    padding:.42rem .58rem;
    gap:.28rem;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
    line-height:1.1;
    border:1px solid transparent;
  }
  .header .nav .legal-nav-dropdown .dropdown-toggle > span{
    display:block;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
  }
  .header .nav .legal-nav-dropdown .dropdown-toggle:focus{
    outline:none;
  }
  .header .nav .legal-nav-dropdown .dropdown-toggle:focus-visible{
    outline:none;
    border-color:color-mix(in srgb,var(--primary) 45%,var(--border));
    box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent);
  }
  .header .nav .legal-nav-dropdown.open .dropdown-toggle{
    border-color:var(--border);
    background:var(--accent);
  }
  .header .nav .legal-nav-dropdown .dropdown-menu{
    left:auto;
    right:0;
    width:max-content;
    min-width:250px;
    max-width:min(320px,calc(100vw - 24px));
    padding:.32rem;
    top:calc(100% + .42rem);
    border-radius:12px;
    box-shadow:0 14px 36px rgba(17,24,39,.16);
  }
  .header .nav .legal-nav-dropdown .dropdown-menu a{
    padding:.5rem .72rem;
    min-height:36px;
    display:flex;
    align-items:center;
    white-space:nowrap;
    line-height:1.25;
    font-size:.84rem;
  }
}

/* Russian needs a little more header room because translated labels are longer. */
@media(min-width:1024px){
  html[lang="ru"] body .header .header-inner.container{
    max-width:1360px;
    padding-left:1rem;
    padding-right:1rem;
  }
  html[lang="ru"] body .header .nav .legal-nav-dropdown .dropdown-toggle{
    font-size:.76rem;
    padding-left:.48rem;
    padding-right:.48rem;
  }
}

/* =========================================================
   Unified editorial refresh — YES article visual language
   Applies the same heading, list and content-card polish site-wide
   ========================================================= */

:root{
  --editorial-soft:color-mix(in oklab,var(--accent) 58%,var(--card) 42%);
  --editorial-line:color-mix(in oklab,var(--primary) 34%,var(--border) 66%);
}

/* Homepage / landing section titles */
body main .section .section-header > h2,
body main .author-section > .container > h2{
  position:relative;
  width:fit-content;
  max-width:100%;
  margin:.15rem auto 1.05rem;
  padding:0 0 .72rem;
  font-size:clamp(1.72rem,3.4vw,2.35rem);
  font-weight:850;
  letter-spacing:-.035em;
  line-height:1.12;
  background:linear-gradient(135deg,var(--fg) 18%,var(--primary) 92%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
body main .section .section-header > h2::after,
body main .author-section > .container > h2::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:76px;
  height:4px;
  transform:translateX(-50%);
  border-radius:999px;
  background:var(--gradient-primary);
  box-shadow:0 8px 18px rgba(90,108,255,.22);
}
body main .section .section-header > p{
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
  font-size:1rem;
  line-height:1.78;
}

/* Article/page section headings — same editorial marker used by YES */
body main .blog-shell > h2,
body main article.article-wrap > h2,
body main article.prose > h2,
body main article.legal-page > h2,
body main article.trust-page > h2,
body main .content-section > h2,
body main .content-wrap .article-section > h2,
body main .legal-main article h2{
  position:relative;
  margin:2.35rem 0 1.05rem;
  padding:0 0 .58rem 1.1rem;
  font-size:clamp(1.5rem,3vw,2.12rem);
  font-weight:850;
  letter-spacing:-.03em;
  line-height:1.18;
  color:var(--fg);
  scroll-margin-top:90px;
}
body main .blog-shell > h2::before,
body main article.article-wrap > h2::before,
body main article.prose > h2::before,
body main article.legal-page > h2::before,
body main article.trust-page > h2::before,
body main .content-section > h2::before,
body main .content-wrap .article-section > h2::before,
body main .legal-main article h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.12em;
  width:5px;
  height:1.08em;
  border-radius:999px;
  background:var(--gradient-primary);
  box-shadow:0 8px 20px rgba(90,108,255,.23);
}
body main .blog-shell > h2::after,
body main article.article-wrap > h2::after,
body main article.prose > h2::after,
body main article.legal-page > h2::after,
body main article.trust-page > h2::after,
body main .content-section > h2::after,
body main .content-wrap .article-section > h2::after,
body main .legal-main article h2::after{
  content:"";
  display:block;
  width:76px;
  height:3px;
  margin-top:.48rem;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),rgba(90,108,255,0));
}

/* Editorial subheads */
body main .blog-shell > h3,
body main article.article-wrap > h3,
body main article.prose > h3,
body main article.legal-page > h3,
body main article.trust-page > h3,
body main .content-section > h3,
body main .content-wrap .article-section > h3{
  display:flex;
  align-items:flex-start;
  gap:.65rem;
  margin:1.7rem 0 .72rem;
  font-size:clamp(1.08rem,2vw,1.3rem);
  font-weight:780;
  letter-spacing:-.015em;
  line-height:1.35;
  color:var(--fg);
}
body main .blog-shell > h3::before,
body main article.article-wrap > h3::before,
body main article.prose > h3::before,
body main article.legal-page > h3::before,
body main article.trust-page > h3::before,
body main .content-section > h3::before,
body main .content-wrap .article-section > h3::before{
  content:"";
  width:.58rem;
  height:.58rem;
  margin-top:.36em;
  border-radius:50%;
  flex:0 0 auto;
  background:var(--gradient-primary);
  box-shadow:0 0 0 5px rgba(90,108,255,.10);
}

/* Normal content lists become clean YES-style point cards. Exclude purpose-built grids/lists. */
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]),
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]),
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ul:not([class]),
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ol:not([class]){
  display:grid;
  gap:.72rem;
  margin:1.05rem 0 1.5rem;
  padding:0;
  list-style:none;
}
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]) > li,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]) > li,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ul:not([class]) > li,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ol:not([class]) > li{
  list-style:none;
  position:relative;
  margin:0;
  min-height:3rem;
  padding:.88rem 1rem .88rem 3rem;
  border:1px solid var(--editorial-line);
  border-radius:17px;
  background:linear-gradient(135deg,var(--card),var(--editorial-soft));
  box-shadow:0 10px 28px -23px rgba(90,108,255,.48);
  color:var(--muted);
  line-height:1.68;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]) > li:hover,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]) > li:hover{
  transform:translateY(-1px);
  border-color:rgba(90,108,255,.34);
  box-shadow:0 14px 30px -23px rgba(90,108,255,.58);
}
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]) > li::before,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ul:not([class]) > li::before{
  content:"✓";
  position:absolute;
  left:.92rem;
  top:.82rem;
  width:1.45rem;
  height:1.45rem;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-size:.75rem;
  font-weight:900;
  background:var(--gradient-primary);
  box-shadow:0 7px 16px rgba(90,108,255,.24);
}
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]){
  counter-reset:yes-editorial-steps;
}
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]) > li::before,
body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > div:not([class]) > ol:not([class]) > li::before{
  counter-increment:yes-editorial-steps;
  content:counter(yes-editorial-steps);
  position:absolute;
  left:.88rem;
  top:.78rem;
  width:1.55rem;
  height:1.55rem;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-size:.76rem;
  font-weight:900;
  background:var(--gradient-primary);
  box-shadow:0 7px 16px rgba(90,108,255,.24);
}

/* Generic content callouts and cards get the same softness/radius as YES */
body main :is(.info-box,.callout,.cta-box:not(.cta-box-gradient),.notice-card,.internal-resource-links){
  border-radius:18px;
  border-color:var(--editorial-line);
  box-shadow:0 14px 34px -27px rgba(90,108,255,.48);
}
body main :is(.feature-card,.use-card,.benefit-card,.method-card,.mini-card,.fact-item,.morse-mini-card,.related-list a){
  border-radius:18px;
  border-color:var(--editorial-line);
}
body main :is(.feature-card,.use-card,.benefit-card,.method-card,.mini-card,.fact-item,.morse-mini-card){
  background:linear-gradient(145deg,var(--card),color-mix(in oklab,var(--card) 94%,var(--accent) 6%));
}

/* Hero polish so old pages feel part of the same editorial family */
body main :is(.blog-hero,.article-hero,.letter-hero,.legal-hero){
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 82% 18%,rgba(90,108,255,.11),transparent 30%),
    radial-gradient(circle at 12% 80%,rgba(129,140,248,.08),transparent 26%),
    var(--gradient-subtle);
}
body main :is(.blog-hero,.article-hero,.letter-hero,.legal-hero)::after{
  content:"• • •  — — —  • • •";
  position:absolute;
  right:-1.2rem;
  bottom:-.22em;
  color:var(--primary);
  opacity:.055;
  font:900 clamp(2.4rem,8vw,6rem)/1 ui-monospace,monospace;
  letter-spacing:.12em;
  white-space:nowrap;
  pointer-events:none;
}
body main :is(.blog-hero-inner,.article-hero-inner,.letter-shell,.legal-hero-inner){position:relative;z-index:1}
body main :is(.blog-hero-inner,.article-hero-inner,.letter-hero .letter-shell) h1{
  background:linear-gradient(135deg,var(--fg) 22%,var(--primary) 94%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:900;
  letter-spacing:-.045em;
}

/* Richer image treatment without changing actual assets/content */
body main :is(.article-image,.image-card,.infographic,.features-infographic,.hero-img) img{
  border-radius:22px;
  border:1px solid var(--editorial-line);
  box-shadow:0 22px 55px -30px rgba(30,41,91,.38),0 10px 28px -20px rgba(90,108,255,.4);
}

/* Homepage cards and section rhythm */
body main .section{padding-top:clamp(3.7rem,7vw,5.4rem);padding-bottom:clamp(3.7rem,7vw,5.4rem)}
body main .section .section-header{margin-bottom:clamp(2rem,4vw,3.1rem)}
body main .features-grid,
body main .uses-grid,
body main .benefits-grid{gap:1rem}
body main .feature-card,
body main .use-card,
body main .benefit-card{box-shadow:0 14px 34px -28px rgba(30,41,91,.38)}

/* Better reading measure on old long-form pages */
body main .blog-shell > p,
body main article.article-wrap > p,
body main article.prose > p,
body main article.legal-page > p,
body main article.trust-page > p{
  max-width:800px;
  line-height:1.84;
}

[data-theme="dark"] body main :is(.feature-card,.use-card,.benefit-card,.method-card,.mini-card,.fact-item,.morse-mini-card){
  background:linear-gradient(145deg,var(--card),color-mix(in oklab,var(--card) 90%,var(--accent) 10%));
}

@media(max-width:700px){
  body main .section .section-header > h2{font-size:clamp(1.55rem,7vw,1.95rem)}
  body main .blog-shell > h2,
  body main article.article-wrap > h2,
  body main article.prose > h2,
  body main article.legal-page > h2,
  body main article.trust-page > h2,
  body main .content-section > h2,
  body main .content-wrap .article-section > h2{padding-left:.9rem;font-size:clamp(1.38rem,6.2vw,1.78rem)}
  body main .blog-shell > h2::before,
  body main article.article-wrap > h2::before,
  body main article.prose > h2::before,
  body main article.legal-page > h2::before,
  body main article.trust-page > h2::before,
  body main .content-section > h2::before,
  body main .content-wrap .article-section > h2::before{width:4px}
  body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]) > li,
  body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]) > li{padding:.78rem .85rem .78rem 2.75rem;border-radius:15px}
  body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ul:not([class]) > li::before{left:.78rem;top:.75rem}
  body main :is(.blog-shell,article.article-wrap,article.prose,article.legal-page,article.trust-page,.content-section,.article-section) > ol:not([class]) > li::before{left:.72rem;top:.7rem}
}

/* Homepage / landing long-form headings that are not wrapped in .section-header */
body main .section > .narrow > h2,
body main .section > .container > h2:not(.translator-head h2){
  position:relative;
  margin:0 0 1rem;
  padding:0 0 .58rem 1.05rem;
  font-size:clamp(1.5rem,3vw,2.12rem);
  font-weight:850;
  letter-spacing:-.03em;
  line-height:1.18;
  color:var(--fg);
}
body main .section > .narrow > h2::before,
body main .section > .container > h2:not(.translator-head h2)::before{
  content:"";
  position:absolute;
  left:0;
  top:.12em;
  width:5px;
  height:1.08em;
  border-radius:999px;
  background:var(--gradient-primary);
  box-shadow:0 8px 20px rgba(90,108,255,.23);
}
body main .section > .narrow > h2::after,
body main .section > .container > h2:not(.translator-head h2)::after{
  content:"";
  display:block;
  width:76px;
  height:3px;
  margin-top:.48rem;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),rgba(90,108,255,0));
}
body main .section > .narrow > h3,
body main .section > .container > h3{
  display:flex;
  align-items:flex-start;
  gap:.65rem;
  margin:1.8rem 0 .8rem;
  font-size:clamp(1.08rem,2vw,1.3rem);
  font-weight:780;
  line-height:1.35;
}
body main .section > .narrow > h3::before,
body main .section > .container > h3::before{
  content:"";
  width:.58rem;
  height:.58rem;
  margin-top:.36em;
  border-radius:50%;
  flex:0 0 auto;
  background:var(--gradient-primary);
  box-shadow:0 0 0 5px rgba(90,108,255,.10);
}
body main .section > .narrow > h2 + p,
body main .section > .container > h2 + p{
  color:var(--muted);
  font-size:1rem;
  line-height:1.82;
  margin-top:0;
}

@media(max-width:700px){
  body main .section > .narrow > h2,
  body main .section > .container > h2:not(.translator-head h2){
    padding-left:.9rem;
    font-size:clamp(1.38rem,6.2vw,1.78rem);
  }
  body main .section > .narrow > h2::before,
  body main .section > .container > h2:not(.translator-head h2)::before{width:4px}
}

/* 2026-08-08: native-language flags in the six-language selector */
.language-current-flag,.language-flag{font-size:1.05rem;line-height:1;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.language-selector-toggle .language-current-flag{margin-left:.02rem}
.language-option{justify-content:flex-start;gap:.65rem}
.language-option-name{flex:1;min-width:0}
.language-option .language-check{margin-left:auto}
@media(max-width:640px){.language-current-flag,.language-flag{font-size:1rem}.language-selector-toggle{max-width:138px}}

/* Mobile above-the-fold tool focus */
@media(max-width:767px){
  .tool-hero{
    min-height:calc(100svh - 56px);
    padding-bottom:2.5rem;
  }
  .tool-hero-inner{
    padding-left:1rem;
    padding-right:1rem;
  }
  .tool-hero h1{
    margin-top:.55rem;
    font-size:2rem;
  }
  .tool-hero p.lead{
    max-height:3.2rem;
    overflow:hidden;
  }
  .hero-benefits{
    margin-top:1rem;
  }
  .tool-hero .translator{
    padding-bottom:0;
  }
  .translator-card-pro{
    min-height:520px;
    padding:1.1rem!important;
  }
  .translator-card-pro textarea{
    min-height:170px;
  }
}


/* Mobile table clarity fixes */
@media (max-width:768px){
  .table-wrap{
    filter:none !important;
    opacity:1 !important;
    backdrop-filter:none !important;
  }
  .table-wrap table{
    filter:none !important;
    opacity:1 !important;
  }
  .table-wrap thead th,
  table thead th{
    background:var(--primary,#4f46e5) !important;
    color:#fff !important;
    opacity:1 !important;
    text-shadow:none !important;
    -webkit-filter:none !important;
    filter:none !important;
    padding:.7rem .65rem;
    font-size:.82rem;
  }
  .table-wrap tbody td{
    color:var(--fg) !important;
    opacity:1 !important;
  }
}

/* Hide accidental standalone html text nodes */
body > .html-label,
.html-label,
code.html-label{
  display:none !important;
}

/* Final mobile/tablet above-fold layout fixes */
@media (max-width: 767px){
  .tool-hero{min-height:100vh;display:flex;align-items:flex-start;overflow:hidden;padding-bottom:0}
  .tool-hero-inner{width:100%}
  .translator-card-pro{margin-bottom:0;padding-bottom:1rem}
  .translator-card-pro textarea{min-height:230px}
  .translator-card-pro .translator-grid{gap:1rem}
  .tool-dashboard,.hero-benefits{display:none}
  .tool-hero + section,
  .tool-hero ~ section{margin-top:2rem}
}

@media (min-width:768px) and (max-width:1199px){
  .tool-hero{min-height:900px}
  .translator-card-pro{padding:2.5rem}
  .translator-card-pro textarea{min-height:300px}
  .translator-card-pro .translator-grid{gap:2rem}
}

/* Keep article tables sharp on all devices */
.table-wrap th,
.morse-table th,
article table th{
  opacity:1!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* remove accidental visible html labels */
.tool-hero .html-label,
.tool-hero .language-label-html,
.article-html-label{display:none!important}

/* Final mobile/tablet tool sizing adjustment */
@media (max-width: 767px){
  .tool-hero{
    min-height: calc(100svh - 56px);
    padding-bottom: .35rem;
  }
  .tool-hero-inner{
    padding-bottom: .25rem;
  }
  .tool-hero .translator{
    padding-bottom:0;
  }
  .translator-card-pro{
    padding:1rem .85rem .75rem !important;
  }
  .translator-card-pro .translator-head{
    margin-bottom:.45rem;
  }
  .translator-grid{
    gap:.55rem !important;
  }
  .translator textarea,
  .translator-card-pro textarea{
    min-height:145px !important;
  }
  .translator-card-pro .translator-actions,
  .translator-card-pro .tool-actions{
    margin-top:.35rem !important;
  }
  .tool-hero + *{
    margin-top:0;
  }
}

@media (min-width:768px) and (max-width:1200px){
  .tool-hero{
    min-height:calc(100svh - 64px);
  }
  .tool-hero-inner{
    max-width:1100px;
  }
  .translator-card-pro{
    padding:1.6rem 1.5rem !important;
  }
  .translator-card-pro textarea{
    min-height:190px !important;
  }
}
