/* Shared visual language: spacing, typography, controls and surfaces. */
:root{--ink:#25243b;--muted:#737489;--accent:#7660e8;--accent-dark:#5f46d0;--line:#e8e7ef;--bg:#f7f7fb;--soft:#f0ecff;--radius:20px;--surface-shadow:0 4px 24px #28204304}
.ui-icon{display:inline-block;width:21px;height:21px;flex-shrink:0;vertical-align:middle}.button .ui-icon{width:18px;height:18px}.empty-icon .ui-icon,.step-icon .ui-icon,.form-side-icon .ui-icon{width:26px;height:26px}.brand-mark .ui-icon{width:23px;height:23px}
.app-body{background:var(--bg)}.sidebar{background:#211e36;width:248px;flex-basis:248px}.workspace{margin-left:248px}.sidebar .brand{margin-bottom:35px}.side-nav a{min-height:48px;font-size:14px}.sidebar-label{font-size:10px;color:#aaa4c1}.sidebar-bottom .account-label small{font-size:12px}.logout{display:grid;place-items:center}
.app-topbar{height:76px;background:rgba(255,255,255,.82)}.topbar-label{font-size:11px;letter-spacing:.1em}.page{width:100%;max-width:1280px;margin-inline:auto;padding:40px clamp(24px,4vw,56px) 64px}.page-heading{align-items:center;margin-bottom:28px;gap:24px}.page-heading h1{font-size:clamp(30px,3vw,38px);line-height:1.2;letter-spacing:-.045em}.page-heading .lead{font-size:14px;max-width:680px}.eyebrow,.section-kicker{font-size:10px;letter-spacing:.12em}.button,.button-small,.button-compact{min-height:44px;font-size:13px;padding:10px 16px;border-radius:12px;gap:10px}.text-button,.text-link,.back-link{font-size:13px}.text-button{min-height:40px}.button:active{transform:translateY(0)}
.card,.dashboard-card,.recent,.connection-card,.route-card,.metric-card,.settings-panel,.profile-panel,.ops-panel,.management-errors,.management-records,.ledger-section,.promo-panel,.form-card,.empty-state{border-radius:var(--radius);border-color:var(--line);box-shadow:var(--surface-shadow)}
.page>section,.page>.form-layout,.page>.history-list{width:100%;max-width:none}.connection-grid,.route-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.connection-card,.route-card,.metric-card{padding:24px}.connection-card h2,.route-card h2{font-size:21px}.connection-permissions,.route-description,.metric-caption,.connection-ready-note{font-size:13px}.connection-card-top{flex-wrap:wrap}.connection-platform{font-size:12px}.status-pill{font-size:11px;line-height:1.4;padding:6px 10px}.connection-card-actions,.route-card-actions{margin-top:auto;gap:16px}.connection-card,.route-card{display:flex;flex-direction:column}.route-node strong,.route-destination-name{font-size:14px}.route-node small{font-size:10px}
.empty-state{min-height:224px;padding:32px;align-items:center;gap:24px;background:#fff}.empty-state h2{font-size:23px}.empty-state p{font-size:14px;max-width:620px}.empty-icon{width:56px;height:56px;border-radius:17px;flex-shrink:0;background:var(--soft);color:var(--accent)}.compact-empty{min-height:140px;padding:24px}.recent-panel{margin-top:24px;padding:26px}.recent-heading h2{font-size:23px}.recent-empty p,.recent-row-copy p{font-size:13px}.recent-empty strong{font-size:15px}.metric-label{font-size:10px}.metric-link{font-size:12px}.metric-value{font-size:36px}.metric-caption{min-height:24px}.credit-widget{border-radius:20px;background:linear-gradient(120deg,#302748,#49356b);border:0;padding:26px;box-shadow:none}.credit-widget-main>p:last-child,.credit-widget-main>span,.credit-widget-reserved{font-size:12px}.credit-widget-reserved small{font-size:11px}.credit-widget-actions>a:last-child{font-size:12px}.onboarding-card{padding:28px;border-radius:20px;background:#efebfc;border:1px solid #e3dcf6}.onboarding-copy p{font-size:14px}.onboarding-step small{font-size:12px}
.form-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:clamp(20px,2.5vw,36px);align-items:start;max-width:1120px;margin:0 auto}.form-side-note{display:block}.app-body .form-card,.app-body .form-card-wide{width:100%;max-width:none;margin:0;padding:32px}.form-stack{max-width:720px}.form-stack .field{margin-bottom:20px}.form-card h1{font-size:32px}.form-card p,.form-intro{font-size:14px}.form-card .back-link{display:inline-block;margin-bottom:24px}.form-card input:not([type=checkbox]):not([type=radio]),.form-card select,.form-card textarea,.promo-form input{min-height:48px;border-radius:12px;background:#fcfcfe;border:1px solid #dedde8;padding:12px 14px;font-size:14px}.form-stack label,.form-card label,.promo-form label{font-size:13px}.helptext,.form-footnote{font-size:12px!important;line-height:1.65}.helptext ul{padding-left:20px;margin:8px 0}.form-card fieldset{padding:0;border:0}.form-card fieldset label{display:flex;align-items:center;gap:10px;min-height:44px}.form-card input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}.guide-list{max-width:720px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.guide-list summary,.guide-list p,.guide-list li{font-size:13px}.guide-list summary{padding-block:12px}.form-card .auth-switch{max-width:720px}.auth-page{max-width:560px;padding:32px 24px 64px}.auth-page .form-card{padding:36px;margin:0;width:100%;max-width:none}.auth-header{max-width:1280px;margin:auto}.auth-links,.auth-switch{font-size:13px!important}.auth-body{background:radial-gradient(ellipse at 50% 0,#ece6ff 0,transparent 65%),#f7f7fb}.auth-page h1{font-size:32px}
.profile-identity,.profile-section,.profile-danger{padding:28px 32px}.profile-identity h2{font-size:24px;overflow-wrap:anywhere}.profile-section h3,.profile-danger h3{font-size:16px}.profile-section p,.profile-danger p,.profile-identity p{font-size:13px}.history-item{padding:26px;border-radius:20px}.history-item h2{font-size:21px}.history-origin,.history-reason,.history-details p,.history-details summary{font-size:13px}.history-filter{padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:16px;gap:14px}.history-filter label{font-size:13px}.history-post-text{font-size:14px}.history-item-top time{font-size:12px}.history-details{margin-block:18px}.history-details summary{padding-block:8px}.retry-confirmation{font-size:13px}.credit-summary{gap:20px}.credit-summary>div{border-radius:20px;padding:24px}.ledger-section,.promo-panel{padding:28px;margin-top:24px}.ledger-entry-copy strong{font-size:14px}.ledger-entry-copy span,.ledger-entry-copy small,.ledger-entry time{font-size:12px}.promo-panel>.muted{font-size:13px}.promo-form{max-width:720px}.section-heading-small h2{font-size:23px}.pagination{font-size:13px}
.management-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.management-shortcuts a{padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px}.settings-panel,.ops-panel{padding:26px}.settings-panel h2,.ops-panel h2{font-size:23px}.muted,.note{font-size:13px}.table-wrap th{font-size:11px}.table-wrap td{font-size:13px;padding:16px 12px}.bot-actions .button,.bot-actions .text-button,.bot-confirm{font-size:12px}.settings-toggle-grid label,.setting-toggle strong{font-size:13px}.settings-panel+.back-link{display:none}.management-stats{gap:16px}.flash-message{font-size:13px;border-radius:12px}.errorlist{font-size:13px;color:#a33c53;list-style:none;padding:0}.form-stack [hidden]{display:none!important}
@media(min-width:901px){.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:20px}.topbar-account{display:none}.app-topbar{justify-content:flex-end}}
@media(max-width:900px){.workspace{margin-left:0}.sidebar{display:none}.page{padding:28px 24px 48px}.app-topbar{height:68px}.connection-grid,.route-grid{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}}
@media(max-width:700px){.page-heading{align-items:flex-start}.page-heading h1{font-size:30px}.page{padding:26px 18px 48px}.button{white-space:normal;text-align:center}.app-body .form-card,.auth-page .form-card{padding:24px}.empty-state{padding:24px;min-height:220px;align-items:flex-start}.empty-state h2{font-size:21px}.empty-state p{font-size:13px}.connection-card,.route-card,.metric-card,.recent-panel,.ledger-section,.promo-panel,.settings-panel,.ops-panel{padding:22px}.dashboard-metrics{grid-template-columns:1fr;gap:12px}.profile-identity,.profile-section,.profile-danger{padding:24px}.profile-identity h2{font-size:20px}.credit-widget{padding:22px}.history-filter{align-items:stretch}.history-filter select{min-height:44px}.auth-page{padding:20px 16px 48px}.auth-header{padding:22px}.form-card h1{font-size:28px}.ledger-entry time{font-size:11px}}
@media(max-width:420px){.empty-state{flex-direction:column;gap:18px}.empty-state>div{width:100%}.credit-summary>div{padding:20px}.connection-card-actions,.route-card-actions{flex-wrap:wrap}.profile-identity{align-items:flex-start;gap:12px}.auth-header-link{font-size:12px}}
/* Landing: a visual story about publishing, using original vector artwork. */
.landing{background:#fcfbfe}.landing-header{max-width:1280px;width:100%;min-height:88px;padding:20px 40px;margin:auto}.landing-header nav{gap:26px}.landing-header nav a{font-size:13px}.landing-hero{max-width:1280px;grid-template-columns:1fr 1fr;gap:40px;min-height:680px;padding:64px 40px 88px}.hero-copy h1{font-size:clamp(44px,5vw,70px);letter-spacing:-.065em;line-height:1.06}.hero-copy>p{font-size:16px;line-height:1.8;max-width:470px}.hero-tag{font-size:10px;padding:9px 13px}.hero-actions{gap:22px}.hero-actions .button{min-height:50px;padding:13px 22px}.hero-secondary{font-size:13px}.hero-footnote{font-size:12px!important;margin-top:28px!important}.hero-footnote span{margin-right:5px}
.editorial-visual{position:relative;height:540px;isolation:isolate;border-radius:32px;background:radial-gradient(ellipse at 70% 25%,#f7e8db,transparent 60%),linear-gradient(140deg,#e8e0fc,#f1eafa);display:flex;align-items:center;justify-content:center}.visual-grid{position:absolute;inset:0;border-radius:32px;overflow:hidden;background-image:linear-gradient(#ffffff35 1px,transparent 1px),linear-gradient(90deg,#ffffff35 1px,transparent 1px);background-size:36px 36px;z-index:-1}.visual-caption{position:absolute;top:28px;left:28px;font-size:9px;color:#806fa7;font-weight:800;letter-spacing:.16em}.editorial-post{width:290px;padding:15px;background:#fff;border:1px solid #ffffff90;border-radius:20px;box-shadow:0 24px 65px #55407626;transform:rotate(-7deg) translate(-22px,-8px)}.editorial-post-head{display:flex;gap:9px;align-items:center;margin-bottom:12px}.post-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:#8064bc;background:#efe8fa}.editorial-post-head strong{display:block;font-size:11px}.editorial-post-head small{display:block;font-size:8px;color:var(--muted)}.post-menu{margin-left:auto;font-size:20px}.post-art{width:100%;aspect-ratio:1.36;object-fit:cover;border-radius:12px}.editorial-post-copy{padding:14px 3px 3px}.editorial-post-copy strong{display:block;font-size:13px;line-height:1.5}.editorial-post-copy p{font-size:10px;margin:7px 0}.post-tag{font-size:10px;color:#8a6ebf}.publish-chip{position:absolute;display:flex;align-items:center;gap:10px;min-width:185px;padding:13px 15px;border:1px solid #fff;border-radius:15px;background:#fffffff2;box-shadow:0 12px 32px #45327113}.publish-chip>img{width:27px;height:27px;object-fit:contain}.publish-chip>span{font-size:12px;font-weight:750}.publish-chip small{display:block;font-size:8px;font-weight:500;color:var(--muted);margin-top:2px}.publish-chip i{display:grid;place-items:center;margin-left:8px;width:22px;height:22px;border-radius:50%;background:#eaf7ef;color:#4d8b65}.publish-chip i .ui-icon{width:13px;height:13px}.chip-telegram{right:-12px;top:107px;transform:rotate(6deg)}.chip-max{right:-20px;top:260px;transform:rotate(-3deg)}.chip-vk{left:1px;bottom:54px;transform:rotate(3deg)}.visual-stamp{position:absolute;right:27px;bottom:36px;font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.05em;color:#8262ab}.visual-stamp span{display:block;font-size:9px;letter-spacing:0;font-weight:500;margin-top:5px}.platform-strip{max-width:1200px;margin:0 auto;padding:26px 40px;border:1px solid var(--line);border-radius:20px;background:#fff;gap:40px}.platform-strip>span{font-size:10px}.platform-strip>div{font-size:16px}.platform-strip img{width:24px;height:24px}.platform-strip img.max-wordmark{width:40px}.landing-section{max-width:1280px;margin:auto;padding:88px 40px}.section-heading{gap:30px;margin-bottom:32px}.section-heading h2,.feature-section h2{font-size:42px;letter-spacing:-.05em}.section-heading>p{font-size:14px;max-width:330px}.steps-grid{gap:20px}.steps-grid article{padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff;min-height:270px}.steps-grid h3{font-size:20px}.steps-grid p{font-size:14px}.step-icon{width:48px;height:48px;border-radius:15px;margin:24px 0 20px}.step-number{font-size:12px}.feature-section{max-width:1200px;width:calc(100% - 80px);padding:56px;background:#25203c;border-radius:28px}.feature-section p{font-size:15px;max-width:650px}.feature-graphic{gap:16px;margin-top:16px}.feature-card{padding:20px;background:#ffffff08;border:1px solid #ffffff16;border-radius:14px;flex-wrap:wrap}.feature-card b{font-size:14px}.feature-card small{font-size:11px}.feature-card strong{display:none}.feature-card>span{display:grid;place-items:center;flex:none}.faq-section .section-heading{align-items:center}.faq-list{border-top:1px solid var(--line)}.faq-list details{border-bottom:1px solid var(--line);padding:0 4px}.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:20px;list-style:none;cursor:pointer;padding:24px 0;font-size:17px;font-weight:650}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:'+';font-size:24px;font-weight:400;color:var(--accent)}.faq-list details[open] summary:after{content:'−'}.faq-list p{max-width:none;width:100%;box-sizing:border-box;font-size:14px;line-height:1.8;padding:0 0 20px;margin:0}.landing-cta{display:flex;align-items:center;justify-content:space-between;gap:32px;max-width:1200px;margin:0 auto 70px;padding:48px 56px;border-radius:28px;background:#ede7fb}.landing-cta h2{font-size:36px;line-height:1.15;letter-spacing:-.045em;margin:12px 0}.landing-cta p{font-size:14px;margin:0}.landing-cta .button{flex:none;background:var(--accent);color:#fff;border-color:var(--accent);min-height:50px}.landing-footer{max-width:1280px;margin:auto;padding:28px 40px 40px}.landing-footer p{font-size:12px}.is-submitting{opacity:.7;cursor:progress}
@media(max-width:1100px) and (min-width:901px){.editorial-post{width:255px}.publish-chip{min-width:164px;padding:10px}.chip-telegram{right:-8px}.chip-max{right:-8px}.visual-stamp{right:15px;font-size:20px}.hero-copy h1{font-size:54px}}
@media(max-width:900px){.landing-header{padding:20px 24px}.landing-hero{grid-template-columns:1fr;padding:48px 24px 56px;gap:42px}.hero-copy{max-width:650px}.hero-copy h1{font-size:58px}.hero-copy>p{max-width:580px}.editorial-visual{width:100%;max-width:620px;margin:auto;height:480px}.editorial-post{width:290px}.chip-telegram{right:20px}.chip-max{right:10px}.chip-vk{left:24px}.platform-strip{margin-inline:24px;padding:24px;gap:24px}.landing-section{padding:64px 24px}.feature-section{width:calc(100% - 48px);padding:40px 28px}.feature-graphic{grid-template-columns:1fr}.feature-card:last-child{width:auto;grid-column:auto}.landing-cta{margin:0 24px 48px;padding:36px}.landing-footer{padding-inline:24px}.section-heading h2,.feature-section h2{font-size:36px}}
@media(max-width:600px){.landing-header{padding:18px;min-height:76px}.landing-header .brand{font-size:21px}.landing-header .button{font-size:11px;min-height:40px}.landing-hero{padding:38px 20px 40px;gap:32px}.hero-copy h1{font-size:clamp(41px,10vw,56px);margin-block:22px}.hero-copy>p{font-size:14px}.hero-actions{flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.hero-actions .button{font-size:13px;padding:12px 16px}.hero-secondary{font-size:12px}.hero-footnote{font-size:11px!important}.editorial-visual{height:440px;border-radius:24px}.visual-caption{font-size:8px;left:20px;top:20px}.editorial-post{width:240px;transform:rotate(-7deg) translate(-12px,-2px)}.editorial-post-head small{font-size:7px}.publish-chip{min-width:145px;padding:10px;gap:7px;border-radius:12px}.publish-chip>img{width:22px;height:22px}.publish-chip>span{font-size:10px}.publish-chip small{font-size:7px}.publish-chip i{width:18px;height:18px;margin-left:2px}.chip-telegram{right:-7px;top:83px}.chip-max{right:-7px;top:250px}.chip-vk{left:7px;bottom:26px}.visual-stamp{right:15px;bottom:26px;font-size:19px}.visual-stamp span{font-size:7px}.platform-strip{margin-inline:20px;padding:22px 18px;gap:22px;border-radius:16px}.platform-strip>span{font-size:9px}.platform-strip>div{font-size:13px}.landing-section{padding:52px 20px}.section-heading h2,.feature-section h2{font-size:32px}.steps-grid{gap:14px}.steps-grid article{min-height:auto;padding:24px}.steps-grid p{font-size:13px}.step-icon{margin:16px 0}.feature-section{width:calc(100% - 40px);padding:34px 24px}.feature-section p{font-size:14px}.faq-list summary{font-size:15px;padding-block:20px}.landing-cta{margin:0 20px 38px;flex-direction:column;align-items:flex-start;padding:30px 24px;gap:24px}.landing-cta h2{font-size:30px}.landing-footer{padding:22px 20px 32px}.landing-footer p{font-size:11px}.visual-grid{border-radius:24px}}
/* Final alignment and usable empty states. */
.empty-state{border-style:solid}.empty-state .eyebrow,.profile-identity .eyebrow{font-size:10px}.page .form-stack [hidden]{display:none!important}.management-shortcuts a[aria-current=page]{background:var(--soft);border-color:#d8cff3;color:var(--accent-dark)}.settings-toggle-grid>.setting-toggle:last-child:nth-child(odd){width:100%;grid-column:1/-1}.period-filter{flex-wrap:wrap}.period-filter select{min-height:44px}.period-filter button{min-height:44px;border-radius:12px}.hero-copy,.hero-visual,.editorial-visual{animation:none!important;opacity:1!important;transform:none}.platform-strip,.landing-cta{width:calc(100% - 80px)}.form-stack .flash-message{margin:0}.profile-panel{overflow:hidden}.page-heading .heading-with-help{flex-wrap:wrap}.ops-panel-heading>div{min-width:0}.guide-list{background:transparent;border-inline:0;border-bottom:0;border-radius:0;padding-inline:0}.errors-heading{display:grid;gap:6px;margin-bottom:16px}
.errors-heading p,.errors-heading h2{margin:0}
.errors-heading h2{font-size:23px}
.management-errors .empty-state{min-height:0;flex-direction:row;align-items:center;gap:14px;padding:16px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}.management-stats .card{padding:22px}.management-stats .card p{font-size:13px}.ops-worker p,.queue-metrics dt,.ops-pending{font-size:12px}.feature-card>span{width:42px;height:42px}.landing .hero-copy h1{max-width:580px}.auth-page .form-card .eyebrow{font-size:10px}.auth-page .empty-icon{display:grid;place-items:center;margin-bottom:20px}
@media(max-width:900px){.platform-strip,.landing-cta{width:calc(100% - 48px)}}
@media(max-width:600px){.platform-strip,.landing-cta{width:calc(100% - 40px)}.settings-toggle-grid>.setting-toggle:last-child:nth-child(odd){grid-column:auto}.management-shortcuts{gap:6px}.management-shortcuts a{padding:9px 11px;font-size:12px}.period-filter{align-items:stretch;flex-direction:column}.period-filter select,.period-filter button{width:100%}.ops-workers{grid-template-columns:1fr}.queue-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.form-stack{gap:20px;margin-top:24px}.form-stack .field{margin-bottom:0}.auth-body .form-stack label{margin-top:0}.form-stack>.button{margin:4px 0 0}.form-stack>.errorlist:empty{display:none}.auth-page .form-card p{margin-bottom:20px}.auth-page .form-card .eyebrow{margin-bottom:12px}.connection-guide summary{min-height:44px}.button:disabled{cursor:not-allowed;opacity:.6}
.authority-card h2{font-size:26px}.authority-card>p{max-width:680px}.authority-flow{display:flex;align-items:center;max-width:330px;gap:14px;margin:0 0 28px}.authority-flow>span{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:16px;background:var(--soft);color:var(--accent)}.authority-flow .authority-shield{width:68px;height:68px;background:#e8f5ed;color:#397b55}.authority-shield .ui-icon{width:34px;height:34px}.authority-flow i{height:1px;flex:1;background:#d9d2ee}.authority-steps{list-style:none;counter-reset:proof;padding:0!important;margin:28px 0;display:grid;gap:18px}.authority-steps li{counter-increment:proof;display:grid;grid-template-columns:30px 1fr;gap:2px 12px}.authority-steps li:before{content:counter(proof);grid-row:1/3;display:grid;place-items:center;align-self:start;width:28px;height:28px;background:var(--soft);border-radius:9px;color:var(--accent);font-weight:750}.authority-steps strong{font-size:14px}.authority-steps span{font-size:13px;color:var(--muted)}.authority-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 12px}.authority-actions .button{margin:0}.authority-actions form{margin:0}@media(max-width:600px){.authority-card h2{font-size:23px}.authority-actions{align-items:stretch;flex-direction:column}.authority-actions .button{width:100%}}

/* Shared credit catalogue: public pricing and account checkout. */
.credit-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}.credit-package{position:relative;display:flex;flex-direction:column;padding:28px;border:1px solid #e6e2ef;border-radius:26px;background:#fff;box-shadow:0 8px 32px #241b4810}.package-badge{align-self:flex-start;display:inline-block;padding:7px 12px;border-radius:99px;background:#f0ebff;color:#6950c4;font-size:12px;font-weight:750;letter-spacing:.03em}.credit-package h3{font-size:27px;margin:22px 0 8px}.package-description{color:#7c7888;font-size:14px;line-height:1.6;min-height:45px;margin:0 0 24px}.package-quantity{font-size:38px;font-weight:800;letter-spacing:-1px}.package-quantity span{font-size:16px;font-weight:500;letter-spacing:0}.package-price{font-size:48px;line-height:1.15;font-weight:800;letter-spacing:-2px;margin:22px 0 5px}.package-price span{font-size:26px;font-weight:500;letter-spacing:0}.package-unit{color:#7c7888;margin:0;font-size:14px}.package-hook{display:flex;gap:9px;align-items:flex-start;padding:18px 0;margin:20px 0 12px;border-top:1px solid #e9e4f2;font-size:14px;line-height:1.6;min-height:83px}.package-hook svg{flex-shrink:0;width:20px;height:20px;margin-top:2px}.credit-package .button{margin-top:auto;width:100%;justify-content:center;font-size:13px;padding:15px 12px}.credit-package>small{text-align:center;font-size:11px;margin-top:14px;color:#827d91}.credit-package-featured{background:linear-gradient(145deg,#31234f,#211b35);border-color:#5e458b;color:#fff;box-shadow:0 18px 50px #6948bd2b}.credit-package-featured .package-badge{background:#bca6ff;color:#25193e}.credit-package-featured .package-description,.credit-package-featured .package-unit,.credit-package-featured>small{color:#c6bdd8}.credit-package-featured .package-hook{border-color:#ffffff25;color:#e3d9ff}.credit-package-featured .button{background:#aa8bfa;color:#23163d}.pricing-note,.pricing-explainer{font-size:14px;color:#7c7888;line-height:1.7}.pricing-note{text-align:center;max-width:780px;margin:24px auto}.credit-order-list{display:grid;gap:12px;margin-top:20px}.credit-order-list a{display:flex;justify-content:space-between;gap:16px;padding:16px;background:#f7f5fc;border-radius:12px;text-decoration:none}.credit-order-list span{font-size:13px;color:#7c7888}.credit-checkout{max-width:760px}.checkout-summary{display:flex;gap:40px;justify-content:space-between;padding:24px 0;border-bottom:1px solid #ebe7f2;margin-bottom:20px}.checkout-summary span,.checkout-summary strong{display:block}.checkout-summary span{color:#7c7888;font-size:14px;margin-bottom:8px}.checkout-summary strong{font-size:32px}.checkout-notice{background:#f5f1ff;border:1px solid #e4dafa;border-radius:16px;padding:20px;margin:24px 0}.checkout-notice p{margin:8px 0 0;line-height:1.7;color:#71677e}@media(max-width:1000px){.credit-packages{gap:12px}.credit-package{padding:22px 18px}.package-quantity{font-size:32px}.credit-package .button{font-size:12px}}@media(max-width:760px){.credit-packages{grid-template-columns:1fr;max-width:480px;margin:24px auto}.package-description{min-height:0}.package-hook{min-height:0}.credit-order-list a{flex-direction:column}.checkout-summary{flex-direction:column;gap:24px}.checkout-summary strong{font-size:28px}}
.credit-package .package-badge,.credit-checkout .package-badge{position:static}.credit-package .package-price{color:#292536}.credit-package-featured .package-price{color:#fff}.credit-checkout .muted{overflow-wrap:anywhere}

/* Connection onboarding: native controls with consistent browser styling. */
.connect-page{max-width:1120px;margin:0 auto}.connect-page>.back-link{display:inline-block;margin:0 0 26px}.connect-page .page-heading{margin-bottom:30px}.connect-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:28px;align-items:start}.connect-panel{padding:34px;background:#fff;border:1px solid #e9e4f0;border-radius:26px;box-shadow:0 12px 40px #35225208}.connect-form fieldset{border:0;padding:0;margin:0;min-width:0}.network-fieldset legend,.connect-section-title{display:flex;align-items:center;gap:12px;color:#292536;font-size:18px;font-weight:750;letter-spacing:-.02em}.connect-step{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;background:#f0ebff;color:#7858ce;border-radius:10px;font-size:11px;font-weight:800;letter-spacing:.02em}.connect-caption{margin:10px 0 20px;color:#85808f;font-size:13px}.network-options{display:flex;gap:10px;flex-wrap:wrap}.network-choice{position:relative;flex:1 1 100px;min-width:0;cursor:pointer}.connect-form .network-choice input{position:absolute;width:1px;height:1px;opacity:0;margin:0;padding:0}.network-choice-body{display:flex;align-items:center;justify-content:center;gap:8px;min-height:76px;padding:14px 10px;border:1px solid #e4deed;border-radius:16px;background:#faf9fc;transition:border-color .15s,background .15s,box-shadow .15s}.network-choice-body img{width:25px;height:25px;object-fit:contain}.network-choice-body strong{font-size:14px;color:#554c66}.network-check{display:none;color:#7959d7;font-size:14px}.network-choice input:checked+.network-choice-body{border-color:#8a6be4;background:#f4efff;box-shadow:0 0 0 1px #8a6be4}.network-choice input:checked+.network-choice-body .network-check{display:inline}.network-choice input:focus+.network-choice-body{outline:3px solid #b9a5f3;outline-offset:4px}.network-choice:hover .network-choice-body{border-color:#a58bdc}.connect-divider{height:1px;background:#eeeaf3;margin:30px 0}.connect-section-title{margin:0 0 24px}.connect-field{margin:0 0 24px}.connect-field label{display:block;margin:0 0 9px;font-size:14px;font-weight:650;color:#443c54}.connect-field .field-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.field-tag{font-size:10px;color:#93899f;white-space:nowrap}.connect-form .connect-field input,.connect-form .connect-field select{box-sizing:border-box;width:100%;min-width:0;min-height:54px;padding:14px 16px;border:1px solid #dfd8e9;border-radius:13px;background:#faf9fc;color:#30293d;font-family:inherit;font-size:16px;line-height:1.4;box-shadow:0 2px 4px #30204303;-webkit-appearance:none;-moz-appearance:none;appearance:none}.connect-form .connect-field input::placeholder{color:#a19aaa;opacity:1;font-size:14px}.connect-form .connect-field input:focus,.connect-form .connect-field select:focus{outline:3px solid #e5dbff;outline-offset:1px;border-color:#9473e2;background:#fff}.connect-form .connect-field [aria-invalid=true]{border-color:#c34d65}.connect-select{position:relative}.connect-form .connect-select select{padding-right:44px;text-overflow:ellipsis;cursor:pointer}.connect-select>span{position:absolute;right:18px;top:50%;transform:translateY(-50%);pointer-events:none;color:#806d9c}.connect-select svg{width:16px;height:16px}.connect-form .helptext{display:block;font-size:12px;line-height:1.7;color:#8a8197;margin:9px 0 0}.connect-submit{padding-top:4px}.connect-submit .button{width:100%;min-height:54px;justify-content:center;border-radius:13px}.connect-submit p{font-size:12px;text-align:center;color:#8d8499;margin:12px 0 0;line-height:1.6}.connect-form [hidden]{display:none!important}.connect-notice{padding:20px;background:#f8f4ec;border:1px solid #e9dfca;border-radius:14px;font-size:14px;line-height:1.7;color:#827052}.connect-aside{padding:30px 28px;border-radius:26px;background:linear-gradient(145deg,#efe7fc,#f6f3fb 60%,#f6eee9);border:1px solid #eae0f2}.connect-preview{display:flex;align-items:center;max-width:180px;margin:4px 0 30px}.connect-preview-icon{display:flex;width:56px;height:56px;align-items:center;justify-content:center;background:#fff;border:1px solid #e5d8fa;box-shadow:0 6px 16px #75539c10;border-radius:18px;color:#8662c9;flex-shrink:0;transform:rotate(-7deg)}.connect-preview-icon svg{width:26px;height:26px}.connect-preview-target{transform:rotate(7deg);background:#8970ce;color:#fff}.connect-preview-line{height:1px;width:45px;background:#c6b4df}.connect-aside h2{font-size:27px;letter-spacing:-.04em;line-height:1.25;margin:15px 0}.connect-aside>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#8a7c99}.connect-checklist{list-style:none;padding:22px 0 0;margin:24px 0 0;border-top:1px solid #e2d7ed;display:grid;gap:22px}.connect-checklist li{display:flex;gap:12px}.connect-checklist li>span{font-size:11px;font-weight:700;background:#fff9;color:#8e77b4;display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;flex-shrink:0}.connect-checklist strong{font-size:13px;color:#574965}.connect-checklist p{font-size:12px;line-height:1.6;color:#91849e;margin:5px 0 0}.connect-page>.guide-list{max-width:730px;margin-top:36px}@media(max-width:1100px){.connect-layout{grid-template-columns:minmax(0,1fr)}.connect-aside{display:none}}@media(max-width:600px){.connect-panel{padding:24px 18px;border-radius:20px}.connect-page .page-heading h1{font-size:29px}.network-choice{flex-basis:80px}.network-choice-body{flex-direction:column;gap:8px;padding:12px 7px;position:relative}.network-check{position:absolute;top:7px;right:9px}.network-choice-body strong{font-size:13px}.connect-page>.back-link{margin-bottom:20px}.connect-section-title,.network-fieldset legend{font-size:16px}}@media(prefers-reduced-motion:reduce){.network-choice-body{transition:none}}@media(forced-colors:active){.network-choice input:checked+.network-choice-body{outline:2px solid Highlight}.network-choice input:focus+.network-choice-body{outline:3px dashed Highlight}.connect-step,.connect-preview-target{border:1px solid ButtonText}}

/* Landing: platform strip tiles and full footer. */
.platform-strip{display:flex;flex-direction:column;align-items:center;gap:22px}
.platform-strip-title{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8b90a4}
.platform-strip-grid{display:flex;align-items:stretch;justify-content:center;gap:14px;flex-wrap:wrap;width:100%}
.platform-item{display:flex;align-items:center;gap:12px;padding:14px 22px;border:1px solid var(--line);border-radius:16px;background:#fbfaff;min-width:150px;justify-content:center}
.platform-item strong{font-size:15px;color:#54596f;letter-spacing:-.01em}
.platform-item-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:#fff;border:1px solid #eceaf3}
.platform-item-icon img{width:22px;height:22px;object-fit:contain}
.platform-item-icon-max{width:64px}
.platform-item-icon-max img{width:52px;height:auto;max-height:24px}
.landing-footer{border-top:1px solid var(--line);background:#fff;display:block;padding:0}
.landing-footer-top{display:grid;grid-template-columns:1.4fr repeat(3,minmax(0,.7fr));gap:36px;max-width:1280px;margin:0 auto;padding:48px 40px 36px}
.landing-footer-brand p{font-size:13px;line-height:1.75;color:var(--muted);margin:16px 0 0;max-width:300px}
.landing-footer-col{display:flex;flex-direction:column;gap:11px;min-width:0}
.landing-footer-col h2{font-size:11px;letter-spacing:.13em;color:#8b90a4;margin:0 0 4px}
.landing-footer-col a{font-size:13px;font-weight:650;color:#5a5e73}
.landing-footer-col a:hover{color:var(--accent-dark)}
.landing-footer-note{font-size:12px!important;line-height:1.7;color:var(--muted);margin:0}
.landing-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:1280px;margin:0 auto;padding:20px 40px 28px;border-top:1px solid var(--line)}
.landing-footer-bottom span{font-size:12px;color:#9a97ab}
@media(max-width:900px){.landing-footer-top{grid-template-columns:1fr 1fr;padding:40px 24px 28px}.landing-footer-brand{grid-column:1/-1}.landing-footer-bottom{padding-inline:24px}}
@media(max-width:600px){.landing-footer-top{grid-template-columns:1fr;gap:26px;padding:34px 20px 24px}.platform-item{flex:1 1 100%}}

.form-side-note .connect-checklist{list-style:none;padding:18px 0 0;margin:18px 0 0;border-top:1px solid #e2d7ed;display:grid;gap:16px}
.form-side-note .connect-checklist li{display:flex;gap:11px}
.form-side-note .connect-checklist li>span{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#e5e1ff;color:#7858ce;font-size:11px;font-weight:800}
.form-side-note .connect-checklist strong{font-size:13px;color:#574965}
.form-side-note .connect-checklist p{font-size:12px;line-height:1.6;color:#91849e;margin:4px 0 0}

/* Consistent select rendering in Chrome, Safari and Firefox. */
.select-wrap{position:relative}
.select-wrap select{-webkit-appearance:none;appearance:none;padding-right:42px!important;cursor:pointer;text-overflow:ellipsis}
.select-wrap:after{content:"";position:absolute;right:16px;top:50%;width:9px;height:9px;pointer-events:none;transform:translateY(-70%) rotate(45deg);border-right:2px solid #8d85a1;border-bottom:2px solid #8d85a1}
.app-body .form-card select:not([multiple]){-webkit-appearance:none;appearance:none;padding-right:42px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238d85a1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px}
.app-body .form-card select:not([multiple]):focus{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237660e8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Selected service bot: copy name and open the bot. */
.bot-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 0;padding:12px 14px;border:1px solid #e6e0f2;border-radius:12px;background:#fbfaff}
.bot-tools[hidden]{display:none}
.bot-tools-name{font-size:14px;font-weight:800;color:#3c3350;overflow-wrap:anywhere;min-width:0;flex:1}
.bot-tools .button{flex:none}

/* Route form: the source cannot be its own destination. */
div[id^=id_destinations] label.is-disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through}
div[id^=id_destinations] label.is-disabled input{cursor:not-allowed}
/* JS toggles .is-checked so selected cards highlight in browsers without :has(). */
div[id^=id_destinations] label.is-checked{border-color:#beb5ff;background:#f3f1ff}

/* Connect form fields keep the same height as selects. */
.network-fieldset{border:0;margin:0;padding:0;min-width:0}
.network-fieldset legend{font-size:13px;font-weight:750;color:#41465d;margin:0 0 7px}
.connect-section-title{display:flex;align-items:center;gap:10px;margin:26px 0 18px;font-size:13px;font-weight:750;color:#41465d}
.connect-caption{margin:0 0 14px;font-size:12px;color:var(--muted)}
.connect-submit{display:flex;flex-direction:column;gap:10px}
.connect-submit .button{margin:0}
.connect-submit p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}

/* Platform strip grid beats legacy child selectors. */
.platform-strip .platform-strip-grid{display:flex;align-items:stretch;justify-content:center;gap:14px;flex-wrap:wrap;width:100%}

/* Network picker cards inside the shared form stack. */
.form-card fieldset label.network-choice{display:block;min-height:0;margin:0;padding:0}
.network-choice{position:relative;flex:1 1 100px;min-width:0;cursor:pointer}
.network-choice input{position:absolute;width:1px;height:1px;opacity:0;margin:0;padding:0}
.network-choice-body{display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:12px 10px;border:1px solid #e4deed;border-radius:14px;background:#faf9fc;transition:border-color .15s,background .15s,box-shadow .15s}
.network-choice-body img{width:24px;height:24px;object-fit:contain}
.network-choice-body strong{font-size:14px;color:#554c66}
.network-check{display:none;color:#7959d7;font-size:13px}
.network-choice input:checked+.network-choice-body{border-color:#8a6be4;background:#f4efff;box-shadow:0 0 0 1px #8a6be4}
.network-choice input:checked+.network-choice-body .network-check{display:inline}
.network-choice input:focus-visible+.network-choice-body{outline:3px solid #b9a5f3;outline-offset:3px}
.network-choice:hover .network-choice-body{border-color:#a58bdc}
@media(max-width:600px){.network-options{gap:8px}.network-choice{flex:1 1 30%}.network-choice-body{flex-direction:column;min-height:72px;position:relative}.network-check{position:absolute;top:7px;right:9px}}

/* Cross-browser fallbacks: older Safari lacks min() in grid tracks and :has(). */
.field div[id^=id_destinations]{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin-top:10px}
@supports (width:min(100%,1px)){
  .field div[id^=id_destinations]{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
}

/* Destination cards: the widget sits inside a fieldset, so style it unscoped. */
div[id^=id_destinations] label{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:11px 13px;border:1px solid #e6e4ee;border-radius:11px;background:#fbfaff;font-size:13px;font-weight:650;color:#41465d;cursor:pointer;transition:border-color .15s,background .15s}
div[id^=id_destinations] label:hover{border-color:#d6c8f7}
div[id^=id_destinations] input[type=checkbox]{width:16px;height:16px;margin:0;flex:none;accent-color:var(--accent)}

a.bot-tools-name{color:#3c3350;text-decoration:none}
a.bot-tools-name:hover{color:var(--accent-dark);text-decoration:underline}

.ticket-list{display:grid;gap:12px;margin-top:20px}
.ticket-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:16px;text-decoration:none;color:inherit;box-shadow:0 6px 20px rgba(31,35,66,.025)}
.ticket-row:hover{border-color:#d6c8f7;text-decoration:none}
.ticket-row-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.ticket-row-copy strong{font-size:15px;overflow-wrap:anywhere}
.status-open{background:#eeeaff;color:#5a3ec8}.status-answered{background:#e7f7ef;color:#1e704c}.status-closed{background:#f0f0f4;color:#666879}
.ticket-thread{display:grid;gap:12px;margin:22px 0}
.ticket-message{padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px}
.ticket-message header{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:8px}
.ticket-message header time{color:var(--muted)}
.ticket-message p{margin:0;font-size:13px;overflow-wrap:anywhere}
.ticket-message-support{background:#f6f2ff;border-color:#e4dbfc}
.page form.filter-bar[method=get]{align-items:center;gap:12px;margin:0 0 24px}
.filter-bar+section .ticket-list{margin-top:0}
.filter-bar button{min-height:40px;border:1px solid #dfdbea;border-radius:10px;padding:9px 14px;background:#fff;color:var(--ink);font-weight:800;font-size:12px;cursor:pointer}
.filter-bar button:hover{border-color:var(--accent);color:var(--accent)}
.page .filter-bar button[aria-current=true]{background:var(--soft);border-color:var(--accent);color:var(--accent-dark)}
.filter-bar input[type=search]{flex:1;min-width:200px;padding:10px 13px;border:1px solid #deddea;border-radius:10px}
@media(max-width:700px){.ticket-row{align-items:flex-start;flex-direction:column}.filter-bar input[type=search]{min-width:0;width:100%}}

/* Consistent content width and rhythm across account and administration pages. */
.page-heading-copy{flex:1 0 100%;min-width:0;width:100%}
.page-heading .lead,.form-intro,.form-stack,.guide-list{max-width:none}
.page-heading{flex-wrap:wrap}
.page>section+section,.page>.settings-panel+.form-card{margin-top:24px}
.settings-panel-heading,.section-heading-small{flex-wrap:wrap;gap:12px;margin-bottom:24px}
.settings-panel-heading>div,.section-heading-small>div{flex:1 1 100%;min-width:0}
.form-stack>p{margin:0 0 22px}.form-stack>p>label{display:block;margin-bottom:8px}
.form-stack .helptext{display:block;margin-top:8px}
.app-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-body select,.app-body textarea{font:inherit;font-size:14px;min-height:46px;border:1px solid #dedde8;border-radius:12px;background:#fcfcfe;color:var(--ink);padding:11px 14px;max-width:100%;box-sizing:border-box}
.app-body textarea{min-height:130px;resize:vertical}
.app-body input[type=checkbox],.app-body input[type=radio]{accent-color:var(--accent);flex-shrink:0}
input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b8a9f5;outline-offset:3px}
.record-filter{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.record-filter>div{flex:1;min-width:220px}.record-filter label{display:block;font-size:13px;margin-bottom:8px}.record-filter select{width:100%}
.record-description{margin:0 0 24px;color:var(--muted);line-height:1.7}
.management-records{scroll-margin-top:24px}.management-records h2{scroll-margin-top:24px}
.audit-details summary{cursor:pointer;color:var(--accent-dark)}.audit-details dl{margin:12px 0;max-width:420px}.audit-details dl>div{margin-block:10px}.audit-details dt{font-weight:600}.audit-details dd{margin:4px 0;overflow-wrap:anywhere;white-space:normal}
.bot-actions{align-items:flex-start;gap:16px}.bot-actions>form{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.bot-confirm{display:flex;align-items:flex-start;gap:8px;line-height:1.5;max-width:300px}.bot-actions .helptext{max-width:300px}
.table-wrap td{vertical-align:top;overflow-wrap:anywhere}.guide-list li+li{margin-top:10px}
@media(max-width:700px){.record-filter>div,.record-filter>.button{width:100%;flex-basis:100%}.settings-panel-heading,.section-heading-small{margin-bottom:20px}.page-heading-copy{flex-basis:100%}}

.management-records .record-description{margin:16px 0 24px}
.management-records .record-filter select{width:100%;max-width:none}
.settings-actions{margin-top:24px}
.management-bot-panel td:first-child{min-width:160px}
@media(max-width:700px){
  .management-bot-panel .table-scroll-hint,.management-bot-panel thead{display:none}
  .management-bot-panel .table-wrap{border:0;overflow:visible}
  .management-bot-panel table,.management-bot-panel tbody,.management-bot-panel tr,.management-bot-panel td{display:block;width:100%;min-width:0;box-sizing:border-box}
  .management-bot-panel tr{padding:16px;border:1px solid var(--line);border-radius:14px;margin-top:16px}
  .management-bot-panel td{padding:10px 0;border:0}
  .management-bot-panel td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
  .management-bot-panel td:first-child{min-width:0;font-weight:700}
  .management-bot-panel .bot-actions{display:flex;flex-direction:column;align-items:stretch}
  .bot-tools-name{flex-basis:100%}.bot-tools{gap:12px}
}

.repost-direction{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#faf9fe;margin-block:12px}
.repost-role{display:block;margin-bottom:10px;color:#686579;font-size:12px;font-weight:600}
.repost-endpoint strong{display:flex;align-items:center;gap:8px;font-size:18px;color:var(--ink)}
.repost-endpoint img{width:22px;height:22px;object-fit:contain}
.repost-endpoint span,.repost-endpoint small{display:block;margin-top:5px;overflow-wrap:anywhere;font-size:13px}
.repost-endpoint small{color:#924916}
.repost-endpoint+.repost-endpoint{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.repost-arrow{margin-top:24px;color:var(--accent-dark);font-size:24px;line-height:1}
@media(max-width:480px){.repost-direction{grid-template-columns:1fr}.repost-arrow{margin:0;justify-self:start;transform:rotate(90deg)}}

.promo-issue{display:grid;gap:22px;width:100%;min-width:0}
.promo-issue fieldset{margin:0;padding:0;border:0;min-width:0}
.promo-issue legend,.promo-values label{display:block;margin-bottom:8px;font-weight:650;font-size:13px}
.promo-modes,.promo-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.promo-modes label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer}
.promo-modes label:has(:checked){background:var(--soft);border-color:var(--accent);color:var(--accent-dark)}
.promo-issue small{display:block;color:var(--muted);margin-top:4px;font-size:12px}
.promo-values input{width:100%}.promo-issue>.button{justify-self:stretch;justify-content:center}
.promo-values>[hidden],.promo-issue:has(input[value="single"]:checked) [data-promo-date]{display:none}

.route-check-action{margin:0 0 16px}
.route-report{display:grid;gap:16px}.route-report h2,.route-report p{margin:0}
.route-check-row{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:12px;padding:16px;background:var(--bg);border-radius:12px}
.route-check-row p{margin-top:5px}.route-report blockquote{margin:0;border-left:3px solid var(--accent);padding:12px 16px;background:var(--soft)}

.recent-row-copy .recent-direction{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.recent-channel{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow-wrap:anywhere}
.recent-channel img{flex:none;object-fit:contain}

/* Compact help disclosures below administration settings. */
.page>.settings-guide{margin-top:20px;padding:0}
.page>.settings-guide+.settings-guide{margin-top:0}
.settings-guide details{padding:0}
.settings-guide details summary{padding:16px 0;line-height:1.5}
.settings-guide details[open]{padding-bottom:16px}
.settings-guide ol{margin-top:0}

/* A consistent platform grid, including unavailable integrations. */
.form-stack .network-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.form-stack .network-choice{display:block;min-width:0;margin:0}
.form-stack .network-choice-body{flex-direction:row;height:100%;min-height:76px;box-sizing:border-box;padding:14px 10px}
.form-stack .network-choice-body img{display:block;flex:0 0 25px;width:25px;height:25px;object-fit:contain}
.form-stack .network-choice-body strong{overflow-wrap:anywhere}
.network-choice-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.network-choice-copy small{font-size:11px;line-height:1.4;color:var(--muted);font-weight:400}
.form-stack .network-choice-unavailable{cursor:default}
.form-stack .network-choice-unavailable .network-choice-body{background:#f7f7fb;border-style:dashed;box-shadow:none}
.form-stack .network-availability-note{margin:12px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.form-stack .network-choice input:focus-visible+.network-choice-body{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){.form-stack .network-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.form-stack .network-options{grid-template-columns:minmax(0,1fr)}}

/* Fourth destination balances the hero illustration on the left. */

/* Mini App controls must respect the native hidden state. */
.vk-mini-app [hidden]{display:none!important}
.vk-mini-app .auth-page{width:100%;margin-inline:auto}

/* VK configuration uses the shared administration fields and toggle cards. */
.vk-settings-panel .helptext{display:block;margin:8px 0 0;font-size:12px;line-height:1.5}
.vk-key-state{display:flex;align-items:center;gap:8px;margin:14px 0 20px;color:var(--muted);font-size:12px}
.vk-key-dot{width:7px;height:7px;border-radius:50%;background:#a8a3b9;flex:none}.vk-key-dot.is-saved{background:#40b687}
.vk-placement-note{display:grid;gap:8px;margin-top:20px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.vk-placement-note strong{font-size:13px}.vk-placement-note code{font-size:13px;overflow-wrap:anywhere;min-width:0;color:var(--accent-dark)}
.vk-placement-note small{color:var(--muted);font-size:12px;line-height:1.5}
.vk-settings-panel .settings-actions{margin-top:20px;padding-top:0}
@media(max-width:700px){.vk-settings-panel .settings-actions .button{width:100%}}

@media(max-width:700px){
  /* iOS Safari zooms the page when a focused input is under 16px. */
  .form-card input:not([type=checkbox]):not([type=radio]),.form-card select,.form-card textarea,.filter-bar input[type=search],.promo-form input,.period-filter select,.auth-page input{font-size:16px}
  .ticket-thread{margin:16px 0}
}

/* Verification page: use the full card width with a useful channel sidebar. */
.authority-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:clamp(24px,3vw,42px);align-items:start}
.authority-main{min-width:0}
.authority-main>p{max-width:680px}
.authority-aside{display:grid;gap:16px;align-content:start;min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fbfaff}
.authority-summary{display:grid;gap:14px}
.authority-summary .eyebrow,.authority-next .eyebrow{margin:0}
.authority-channel{display:flex;align-items:center;gap:12px;min-width:0}
.authority-channel .platform-icon{width:44px;height:44px;flex:none;border-radius:13px;background:#f0edff}
.authority-channel .platform-icon img{width:22px;height:22px}
.authority-channel .platform-icon.max-icon img{width:30px;height:auto}
.authority-channel-copy{min-width:0}
.authority-channel-copy strong,.authority-channel-copy span{display:block}
.authority-channel-copy strong{font-size:14px;overflow-wrap:anywhere}
.authority-channel-copy span{color:var(--muted);font-size:11px;margin-top:2px}
.authority-meta{display:grid;gap:10px;margin:0;padding-top:14px;border-top:1px solid var(--line)}
.authority-meta>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.authority-meta dt{color:var(--muted);font-size:11px}
.authority-meta dd{margin:0;font-size:11px;font-weight:650;overflow-wrap:anywhere;text-align:right}
.authority-meta .status-pill{font-size:10px;padding:4px 9px}
.authority-next{padding-top:14px;border-top:1px solid var(--line)}
.authority-next ul{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.authority-next li{position:relative;padding-left:22px;color:#555b72;font-size:11px;line-height:1.5}
.authority-next li:before{content:'';position:absolute;left:4px;top:5px;width:7px;height:7px;border-radius:50%;background:#b9aefc}
.authority-help{margin:0;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:11px!important}
.authority-help a{font-weight:700}
@media(max-width:1000px){.authority-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.authority-aside{padding:16px}}

/* Add-connection / add-route: meaningful side panel on desktop, hidden on narrow screens. */
.form-side-note .form-side-note-note{margin:14px 0 0;padding-top:14px;border-top:1px solid #e2d7ed;font-size:11px;line-height:1.6;color:#7b7189}
@media(max-width:900px){.form-side-note{display:none}}

/* VK key fallback: a recovery card inside the form, not an error banner. */
.vk-fallback{display:grid;gap:16px;margin:22px 0 26px;padding:22px 24px;border:1px solid #e3daf9;border-radius:18px;background:linear-gradient(155deg,#f5f1ff 0%,#fbfaff 65%)}
.vk-fallback-head{display:flex;gap:14px;align-items:flex-start}
.vk-fallback-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:13px;background:#fff;color:var(--accent);box-shadow:0 3px 12px #3b2a7a14}
.vk-fallback-icon .ui-icon{width:20px;height:20px}
.vk-fallback-copy .eyebrow{margin:0 0 6px;font-size:10px;color:var(--accent-dark)}
.vk-fallback h2{margin:0 0 6px;font-size:21px;line-height:1.25;letter-spacing:-.03em}
.vk-fallback-copy>p:last-child{margin:0;font-size:13px;line-height:1.65;color:var(--muted);max-width:62ch}
.vk-fallback-steps{margin:0;gap:14px}
.vk-fallback-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.vk-fallback-actions .button{margin:0}
.vk-fallback-note{font-size:12px;color:var(--muted)}
@media(max-width:600px){.vk-fallback{padding:18px}.vk-fallback-actions{align-items:stretch;flex-direction:column}.vk-fallback-actions .button{width:100%}.vk-fallback-note{order:2;text-align:center}}

/* VK Callback API fields: read once, copy once. */
.vk-api-rows{display:grid;gap:8px;margin:14px 0}
.vk-api-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfaff}
.vk-api-label{flex:1 1 190px;font-size:12px;color:var(--muted)}
.vk-api-row code{font-size:12px;overflow-wrap:anywhere}
.vk-api-copy{flex:none;font-size:12px!important}
.vk-api-warning{margin:12px 0;padding:10px 12px;border-left:3px solid #e2b34a;border-radius:10px;background:#fdf7e8;font-size:12px!important;line-height:1.65}
@media(max-width:600px){.vk-api-row{align-items:flex-start}.vk-api-copy{width:100%;text-align:left}}

/* VK confirmation string: VK generates it, so the user pastes it once. */
.vk-api-row-stack{align-items:flex-start;flex-direction:column}
.vk-api-form{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 100%}
.vk-api-form input{flex:1 1 220px;min-height:40px;padding:8px 10px;border:1px solid #dedde8;border-radius:10px;font:inherit;font-size:12px;background:#fff}
.vk-api-form .button{min-height:40px}
