
.header-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.theme-toggle,.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px;color:var(--color-muted);background:transparent;border:0;border-radius:8px;cursor:pointer}
.theme-toggle{width:40px}.language-toggle{font-size:12px;font-weight:600}.language-control{position:relative}.language-options{position:absolute;right:0;top:calc(100% + 8px);width:160px;padding:6px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;box-shadow:var(--shadow-md)}
.language-options a{display:block;padding:8px 10px;text-decoration:none;font-size:14px}.language-options a:hover{background:var(--color-surface-subtle)}
[hidden]{display:none!important}.theme-toggle:hover,.language-toggle:hover{background:var(--color-surface-subtle)}
html[data-theme="dark"]{color-scheme:dark;--color-canvas:#14161b;--color-surface:#1c1f26;--color-surface-subtle:#20232c;--color-ink:#f0f1f5;--color-ink-soft:#d2d5dd;--color-muted:#b0b6c3;--color-border:#353a46;--color-border-strong:#596278;--color-accent:#8fb1ff;--color-accent-strong:#a5c0ff;--color-accent-soft:#27344d;--color-success:#89c6ae;--shadow-md:0 12px 36px #0004}
html[data-theme="dark"] .site-header{background:#14161bf5}
html[data-theme="dark"] .page-home .hero{background:radial-gradient(ellipse at top,#2b2440 0%,#14161b 80%)}
html[data-theme="dark"] .page-home .hero::before{opacity:.1}
html[data-theme="dark"] .page-home .search-box{background:linear-gradient(var(--color-surface),var(--color-surface)) padding-box,linear-gradient(90deg,#78a5ff,#bf8bff) border-box}
html[data-theme="dark"] .button{background:#e5e8f0;color:#17191d}
html[data-theme="dark"] .card,html[data-theme="dark"] .scenario,html[data-theme="dark"] .faq-item,html[data-theme="dark"] .notice,html[data-theme="dark"] .intent-panel{background:var(--color-surface);border-color:var(--color-border)}
@media(max-width:560px){.nav{gap:8px}.brand{gap:7px;font-size:16px}.brand-mark{width:30px;height:30px}.header-tools{gap:2px}.menu-toggle{width:40px;padding:8px}.theme-toggle{width:34px}.language-toggle{padding:5px}.nav-links{flex-basis:100%}}
@media(max-width:360px){.brand{font-size:14px}.nav{gap:4px}.brand-mark{width:26px;height:26px}}

.page-home .search-box{width:min(100%,1064px)}
@media(max-width:560px){.page-home .search-box{width:min(100%,353px);min-height:47.6px;padding:3px 6px;grid-template-columns:22px minmax(0,1fr) 40px}.page-home .search-box input{min-height:40px;padding-block:0;font-size:16px}.page-home .search-box .button{width:40px;height:40px;min-height:40px}.page-home .search-box .button .icon{width:20px;height:20px}}
html[data-theme="dark"] body,html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .brand{color:var(--color-ink)!important}
html[data-theme="dark"] .search-box input{color:var(--color-ink)!important}
html[data-theme="dark"] .page-home .search-box .button{background:#e5e8f0!important;color:#17191d!important}
html[data-theme="dark"] .section-nav,html[data-theme="dark"] .section.alt,html[data-theme="dark"] .footer{background:var(--color-surface-subtle)!important;color:var(--color-ink)}
html[data-theme="dark"] .section-nav a{color:var(--color-muted)!important}
html[data-theme="dark"] .site-header{border-color:var(--color-border)!important}

.language-options{width:180px}.language-options a{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:10px;border-radius:6px;color:var(--color-ink)}.language-options a[aria-current="page"]{background:#eee7fa;color:#493464}.language-code{font-size:12px;font-weight:650}.language-options a:not([aria-current="page"]):hover{background:#f6f3fa}

@media(min-width:801px){.home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

#workflow .step{display:block!important}#workflow .step-heading{display:flex;align-items:center;gap:14px}#workflow .step .workflow-icon{flex:0 0 40px;width:40px;height:40px;margin:0;display:inline-flex;align-items:center;justify-content:center}#workflow .step h3{margin:0!important}#workflow .step>p{margin:14px 0 0!important}
#site-and-bot .button.secondary{background:#eee7fa!important;color:#58408a!important;border:1px solid #d9cdef;box-shadow:none;font-weight:600}#site-and-bot .button.secondary:hover{background:#e4d9f7!important}
#guides .guide-link{display:flex;flex-direction:column;gap:12px;text-decoration:none;padding:24px;min-height:0!important;border-radius:14px;transition:background .15s,border-color .15s}#guides .guide-link h3{font-size:21px;margin:0}#guides .guide-link p{margin:0;font-size:16px}#guides .guide-read{color:#685097;font-size:14px;font-weight:600;margin-top:auto}#guides .guide-link:hover{background:#faf7ff;border-color:#bda8de}#guides .guide-link:focus-visible{outline:3px solid #8652e8;outline-offset:3px}

.page-home .hero-telegram{display:flex!important;flex-direction:column;align-items:center;gap:12px;margin-top:26px!important}
.page-home .hero-telegram p{position:relative;max-width:340px;margin:0;padding-right:25px;color:var(--color-muted);font-size:14px;line-height:1.5;text-align:center}
.telegram-pointer{position:absolute;right:0;bottom:-9px;color:var(--color-muted)}
.page-home .hero-telegram .button.secondary{width:auto!important;min-height:40px!important;padding:8px 18px!important;font-size:14px;font-weight:600;border-radius:9px;background:#eee7fa!important;color:#58408a!important;border:1px solid #d9cdef!important;box-shadow:none!important}
#workflow .workflow{display:block!important}#workflow .steps{margin-top:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#workflow .workflow-telegram{margin-top:20px;color:var(--color-muted);font-size:14px}#workflow .workflow-telegram p{margin:0 0 8px}#workflow .workflow-telegram a{display:inline-flex;align-items:center;gap:8px;color:#685097;font-weight:600;text-decoration:none;padding-block:4px}#workflow .workflow-telegram a:hover{text-decoration:underline}
@media(max-width:800px){#workflow .steps{grid-template-columns:1fr}}

#workflow .workflow-telegram a{min-height:40px;padding:8px 16px;border:1px solid #d9cdef;border-radius:9px;background:#f7f3fc;color:#685097;text-decoration:none}#workflow .workflow-telegram a:hover{background:#eee7fa;text-decoration:none}

#pricing .button{background:#f7f3fc!important;color:#685097!important;border:1px solid #d9cdef!important;box-shadow:none;border-radius:9px;font-weight:600}#pricing .button:hover{background:#eee7fa!important}

/* Desktop groups follow the same centered three-column layout. */
@media(min-width:801px){
 .page-home .home-feature-grid,.page-home #guides .scenario-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1120px;margin-inline:auto}
 .page-home #workflow .steps{max-width:1120px;margin-inline:auto;align-items:stretch}
 .page-home #workflow .step-heading{min-height:72px;align-items:center}
 .page-home #workflow .workflow-telegram{text-align:center}
 .page-home #pricing .inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px}
 .page-home #pricing .section-head{margin:0;max-width:760px}
 .page-home #pricing .section-head p{margin-inline:auto}
 .page-home #pricing .button{align-self:center}
}

/* Compact desktop username fields; preserve existing mobile sizing. */
@media(min-width:801px){
 .page-home .search-box,.page-tool-preview .search-box{width:min(50%,532px)}
 .page-home .hero .lead-line{display:block}
 .page-home .hero .lead-line:last-child{white-space:nowrap}
}
