/* AvtoMaydon v21 — one-page settings */
.v21-settings{--v21-ink:#0b4134;--v21-green:#008864;--v21-soft:#f4faf7;--v21-line:#d9e9e1;max-width:1100px;margin:0 auto 35px;display:grid;gap:16px;color:var(--v21-ink)}
.v21-settings-intro{padding:10px 4px 5px}
.v21-settings-eyebrow{display:block;margin-bottom:7px;color:#008764;letter-spacing:1.8px;font-size:10px;font-weight:850}
.v21-settings-intro h2{font-size:22px;letter-spacing:-.8px;line-height:1.3;margin:0 0 7px;color:#063d2e}
.v21-settings-intro p{font-size:12px;color:#719185;margin:0}
.v21-settings-form{display:grid;gap:16px}
.v21-setting-card{background:#fff;border:1px solid var(--v21-line);border-radius:20px;padding:27px 30px;box-shadow:0 12px 28px rgba(0,78,53,.035);position:relative;overflow:hidden}
.v21-setting-card:before{content:"";position:absolute;left:0;top:25px;bottom:25px;width:3px;background:linear-gradient(#00a77c,#b1ebd0);border-radius:0 4px 4px 0}
.v21-setting-heading{display:flex;align-items:center;gap:15px;margin-bottom:25px}
.v21-setting-step{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:linear-gradient(125deg,#008b6a,#005b47);color:#fff;font-size:13px;font-weight:800;box-shadow:0 6px 12px rgba(0,114,82,.14)}
.v21-setting-heading>div{min-width:0;flex:1}
.v21-setting-heading h3{font-size:18px;font-weight:800;letter-spacing:-.4px;color:var(--v21-ink);line-height:1.3;margin:0 0 5px}
.v21-setting-heading p{margin:0;color:#719386;font-size:11px;line-height:1.5}
.v21-setting-radio{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.v21-setting-radio legend{font-size:12px;font-weight:800;color:#245744;margin:0 0 11px;padding:0}
.v21-setting-radio em,.v21-field em{font-style:normal;color:#e69a39}
.v21-unit-option{position:relative;display:flex;align-items:center;gap:13px;margin:0!important;padding:17px 18px;border:1.5px solid #d8e9e0;border-radius:13px;background:#fbfefd;cursor:pointer;min-height:80px;box-sizing:border-box;transition:border-color .15s,background .15s,box-shadow .15s}
.v21-unit-option:hover{border-color:#6dcaad;background:#f2fbf6}
.v21-unit-option:has(input:checked){border-color:#008864;background:#e9f8f0;box-shadow:0 0 0 2px rgba(0,145,101,.06)}
.v21-unit-option input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.v21-unit-option:focus-within{outline:3px solid rgba(4,152,110,.2);outline-offset:1px}
.v21-unit-content{display:grid;gap:5px;flex:1}
.v21-unit-content strong{font-size:13px;font-weight:800;color:#104a39}
.v21-unit-content small{font-size:11px;font-weight:500;line-height:1.5;color:#719185}
.v21-radio-mark{position:relative;width:19px;height:19px;flex-shrink:0;border:2px solid #b7d6c7;border-radius:50%;background:#fff}
.v21-unit-option:has(input:checked) .v21-radio-mark{border-color:#008864;background:#008864}
.v21-unit-option:has(input:checked) .v21-radio-mark:after{content:"";position:absolute;inset:4px;border-radius:50%;background:white}
.v21-field{display:grid;gap:8px;font-weight:800!important;color:#245744!important;font-size:12px!important;margin:0!important}
.v21-input-suffix{display:flex;align-items:stretch;overflow:hidden;border-radius:11px;border:1px solid #d8e9df;background:#f9fcfa;min-width:0}
.v21-input-suffix:focus-within{border-color:#008864;box-shadow:0 0 0 3px rgba(0,157,109,.08)}
.v21-input-suffix input{height:49px!important;min-width:0!important;width:100%!important;background:#fff!important;border:0!important;border-radius:0!important;margin:0!important;padding:0 15px!important;outline:0!important;box-shadow:none!important;font-size:16px!important;font-weight:800!important;color:#004d39!important}
.v21-input-suffix>span{display:grid;place-items:center;white-space:nowrap;min-width:75px;background:#eff8f3;border-left:1px solid #d8e9df;padding:0 14px;font-size:12px;font-weight:800;color:#3a7e65}
.v21-amount-field{margin-top:19px!important}
.v21-setting-hint{font-size:11px;line-height:1.6;color:#648d7b;margin:14px 0 0}
.v21-capacity-info{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.v21-capacity-info>div{min-width:130px;padding:11px 15px;background:#f4faf6;border:1px solid #deebe3;border-radius:10px;display:grid;gap:6px}
.v21-capacity-info small{font-size:10px;font-weight:600;color:#759588}
.v21-capacity-info strong{font-size:14px;font-weight:850;color:#0b6249}
.v21-telegram-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:8px 11px;border-radius:25px;background:#f0f5f3;color:#678b7a;font-size:10px;font-weight:800}
.v21-telegram-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#a3bcaf}
.v21-telegram-state.is-linked{background:#e4f8ed;color:#067b58}
.v21-telegram-state.is-linked:before{background:#00b77c}
.v21-telegram-guide{background:linear-gradient(115deg,#f5fcf8,#ecf8f3);border:1px solid #d1e8dc;border-radius:13px;padding:18px 21px;margin-bottom:19px}
.v21-telegram-guide>strong{display:flex;align-items:center;gap:8px;font-size:12px;color:#075f46}
.v21-telegram-guide svg{width:17px;height:17px}
.v21-telegram-guide ol{margin:12px 0 0 17px;padding:0;display:grid;gap:7px;font-size:11px;line-height:1.7;color:#4f7768}
.v21-telegram-guide li{padding-left:3px}
.v21-telegram-guide code{padding:2px 5px;background:#e0f2e8;border-radius:5px;font-size:11px;color:#00684b}
.v21-telegram-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v21-telegram-fields .v21-field{width:100%;max-width:none}
.v21-telegram-fields input{box-sizing:border-box;height:47px;width:100%;min-width:0;padding:0 14px;border:1px solid #d7e6dd;border-radius:10px;margin:0;background:#fff;color:#184736;font-size:13px;outline:0}
.v21-telegram-fields input:focus{border-color:#00a276;box-shadow:0 0 0 3px rgba(0,159,107,.08)}
.v21-optional{display:inline-block;font-size:10px;font-weight:500;color:#8ba498;margin-left:4px}
.v21-bot-status{display:flex;align-items:center;gap:9px;background:#eaf8f0;border:1px solid #d1e8da;color:#427763;border-radius:9px;padding:11px 13px;margin:17px 0 0;font-size:10px;line-height:1.5}
.v21-bot-status svg{height:16px;width:16px;flex-shrink:0;color:#008e69}
.v21-bot-status.needs-setup{color:#8d6b34;background:#fffbef;border-color:#f0e0bf}
.v21-bot-status.needs-setup svg{color:#b88835}
.v21-settings-footer{justify-content:space-between;align-items:center;gap:20px;padding:22px 25px;background:linear-gradient(115deg,#e9f9f1,#def6ea);border:1px solid #bde7d1;border-radius:16px}
.v21-settings-footer>div{display:grid;gap:5px}
.v21-settings-footer strong{font-size:13px;color:#064d38}
.v21-settings-footer span{font-size:11px;color:#588570;line-height:1.5; padding:12px}
.v21-settings-save{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;background:linear-gradient(125deg,#007556,#009f76);border:0;border-radius:11px;padding:14px 25px;color:#fff!important;font-size:13px;font-weight:850;box-shadow:0 8px 17px rgba(0,105,74,.14);cursor:pointer}
.v21-settings-save:hover{filter:brightness(1.07)}
.v21-settings-save svg{width:17px;height:17px}
.v21-audit-link{display:inline-flex;align-items:center;gap:9px;width:fit-content;color:#327a61;font-size:11px;font-weight:750;padding:3px 7px;text-decoration:none}
.v21-audit-link:hover{text-decoration:underline}
.v21-audit-link svg{width:16px;height:16px}
@media(max-width:700px){.v21-setting-card{padding:23px 19px}.v21-setting-radio{grid-template-columns:1fr}.v21-telegram-fields{grid-template-columns:1fr}.v21-setting-heading{align-items:flex-start}.v21-telegram-state{font-size:9px}}
@media(max-width:490px){.v21-setting-heading{flex-wrap:wrap}.v21-telegram-state{margin-left:57px}.v21-settings-footer{flex-direction:column;align-items:stretch;padding:19px}.v21-settings-save{width:100%}.v21-settings-intro h2{font-size:20px}.v21-setting-heading h3{font-size:16px}}
