:root{color-scheme:light;--bg:#f2f2f7;--panel:#fff;--ink:#111217;--muted:#80838c;--line:#e8e8ed;--blue:#087fff;--soft:#eaf3ff;--green:#259c70;--nav:#ffffffeb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}body.dark{color-scheme:dark;--bg:#0f1115;--panel:#1c1f25;--ink:#f5f5f7;--muted:#90959f;--line:#2b2e36;--blue:#58a5ff;--soft:#1e334e;--green:#50c997;--nav:#171a20ef}[hidden]{display:none!important}a{color:var(--blue);text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.app{max-width:860px;margin:auto;padding:0 24px}header{height:76px;display:flex;align-items:center;justify-content:space-between}.logo{color:var(--ink);font-size:28px;font-weight:800;letter-spacing:-1.6px;display:flex;align-items:baseline;gap:5px}.logo>span{font-size:10px;color:#f4435b}.logo>small{font-size:8px;letter-spacing:2px;margin-left:3px}.header-right{display:flex;gap:16px;align-items:center}.icon,.text-button,.close{border:0;background:none;color:var(--blue);padding:7px 0;font-size:13px}.icon{font-size:24px;color:var(--muted);width:32px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0}.page-heading p{margin:0 0 4px;font-size:12px;color:var(--muted)}h1{font-size:31px;line-height:1.15;letter-spacing:-1px;margin:0;font-weight:750}h2{font-size:17px;margin:0;letter-spacing:-.25px}h3{font-size:16px;line-height:1.35;margin:0 0 8px}p{margin:6px 0 12px}.support{font-size:13px}.account-strip{display:flex;align-items:center;justify-content:space-between;border-radius:18px;padding:21px 24px;background:var(--panel)}.account-strip span,.account-strip strong{display:block}.account-strip span{font-size:12px;color:var(--muted)}.account-strip strong{font-size:27px;letter-spacing:-.8px;margin-top:3px}.small-button,.round-next{background:var(--soft);color:var(--blue);border:0;border-radius:10px;font-size:13px;font-weight:600;padding:11px 14px}.trial-row{display:flex;align-items:center;justify-content:space-between;margin-top:12px;background:var(--soft);border-radius:16px;padding:17px 20px}.trial-row strong{font-size:14px}.trial-row p{font-size:12px;color:var(--muted);margin:3px 0 0}.round-next{font-size:22px;padding:4px 8px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 10px;padding:0 4px}.section-title h2{font-size:15px}.group{background:var(--panel);border-radius:16px;overflow:hidden;margin-bottom:14px}.padded{padding:22px}.empty{padding:28px 22px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font-size:15px;margin-bottom:5px}.segmented{display:flex;background:var(--line);padding:3px;border-radius:10px;margin-bottom:12px}.segmented button{border:0;background:none;color:var(--muted);flex:1;min-height:32px;border-radius:8px;font-size:12px;white-space:nowrap}.segmented button.selected{background:var(--panel);color:var(--ink);box-shadow:0 1px 4px #0001}.plan-row{display:flex;align-items:center;justify-content:space-between;padding:19px 20px;gap:18px;border-bottom:1px solid var(--line)}.plan-row:last-child{border:0}.plan-row strong{font-size:15px}.plan-row p{font-size:11px;color:var(--muted);margin:3px 0 0}.plan-price{white-space:nowrap;color:var(--blue);border:0;background:var(--soft);border-radius:10px;padding:10px 13px;font-size:14px;font-weight:650}.plan-row input{max-width:92px;padding:8px;min-height:36px;margin:8px 0 0}.footnote{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 5px 18px}.help-row{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:var(--panel);border-radius:14px;padding:18px 20px;color:var(--blue);font-size:14px;margin:22px 0}.button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:0;border-radius:12px;font-size:14px;font-weight:600;padding:12px 16px;text-align:center}.primary{background:var(--blue);color:#fff}.secondary{background:var(--soft);color:var(--blue)}form>.button{width:100%;margin-top:18px}label{display:block;color:var(--muted);font-size:12px;margin:17px 0 7px}input,select{width:100%;border:1px solid var(--line);border-radius:10px;min-height:46px;padding:12px;background:var(--bg);color:var(--ink);outline-color:var(--blue)}.balance-panel{padding:28px 22px;margin-bottom:16px}.balance-panel span{display:block;font-size:13px;color:var(--muted)}.balance-panel strong{display:block;font-size:48px;font-weight:750;letter-spacing:-2px;margin-top:5px}.quick-amounts{display:flex;gap:8px;margin-top:12px}.quick-amounts button{flex:1;background:var(--soft);color:var(--blue);border:0;padding:9px;border-radius:9px;font-size:12px}.transaction,.profile-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line);font-size:13px}.transaction:last-child,.profile-row:last-child{border:0}.transaction small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.positive{color:var(--green)}.profile-row span{color:var(--muted)}.profile-row strong{font-size:13px;font-weight:500;overflow-wrap:anywhere;text-align:right}.subscription{padding:20px;border-bottom:1px solid var(--line)}.subscription:last-child{border:0}.subscription-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.subscription-top strong{font-size:15px}.status{font-size:10px;background:var(--soft);color:var(--blue);padding:4px 8px;border-radius:6px;white-space:nowrap}.subscription p{color:var(--muted);font-size:12px;margin:7px 0 15px}.sub-actions{display:flex;gap:8px}.sub-actions .button{flex:1;font-size:12px;min-height:39px;padding:9px}.instruction-row{display:flex;gap:16px;padding:20px;border-bottom:1px solid var(--line)}.instruction-row:last-child{border:0}.instruction-row b{color:var(--blue);font-size:14px}.instruction-row strong{font-size:14px}.instruction-row p{color:var(--muted);font-size:12px;margin:5px 0 0}.client-name{display:flex;align-items:center;justify-content:space-between;margin:20px 0}.client-name a{font-size:12px}.steps{padding-left:20px;color:var(--muted);font-size:13px}.steps li{padding:5px 0}.steps strong{color:var(--ink);font-weight:500}.bottom-nav{display:flex;gap:4px;padding:5px;margin:24px 0 16px;background:var(--panel);border-radius:14px}.bottom-nav button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;color:var(--muted);padding:11px 5px;border-radius:10px;font-size:12px}.bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.bottom-nav .selected{color:var(--blue);background:var(--soft)}main{min-height:calc(100vh - 190px)}.notice{border-radius:12px;background:var(--soft);padding:14px 16px;font-size:13px;margin:15px 0;overflow-wrap:anywhere}.notice.error,.form-error{color:#d74444}.notice.error{background:#fbebec}body.dark .notice.error{background:#402126}.form-error{font-size:12px;margin-top:14px}dialog{width:min(430px,calc(100% - 28px));background:var(--panel);color:var(--ink);border:0;border-radius:24px;padding:24px;box-shadow:0 20px 100px #0004;max-height:90dvh;overflow:auto}dialog::backdrop{background:#0005;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}.close{font-size:27px;color:var(--muted);line-height:1;padding:0 3px}.divider{font-size:11px;color:var(--muted);text-align:center;margin:20px 0 0}.centered{display:block;margin:10px auto 0}.login-code{display:block;text-align:center;letter-spacing:8px;font-size:29px;margin:18px 0}.qr{display:block;width:220px;max-width:100%;margin:16px auto;border-radius:12px;background:white;padding:8px}.copy-field{display:flex;gap:8px}.copy-field input{font-size:11px;min-width:0}.copy-field button{padding:8px 12px;white-space:nowrap}.client-imports{display:grid;gap:8px;margin:18px 0}.connection-section{margin-top:22px}.connection-section>h3{font-size:13px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.metric{padding:17px;background:var(--panel);border-radius:14px}.metric span{display:block;color:var(--muted);font-size:10px}.metric strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:7px}.filter-wrap{margin:10px 0}.admin-user{padding:16px 20px;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.admin-user:last-child{border:0}.admin-user-top{display:flex;justify-content:space-between;gap:15px}.admin-user p{color:var(--muted);font-size:11px;margin:5px 0 0}.pagination{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.connection-page{max-width:500px;margin:35px auto;padding:0 18px 30px}.connection-page header{margin-bottom:20px}.connection-page h1{font-size:28px;margin:0 0 8px}.connection-page .group{margin-top:20px}.connection-page .button{width:100%}@media(min-width:700px){.bottom-nav{position:fixed;top:12px;left:calc(50% - 80px);width:450px;background:var(--bg);margin:0;padding:0}.bottom-nav button{font-size:11px;padding:10px}.bottom-nav svg{width:17px;height:17px}.header-right{position:relative;z-index:2}.app header{height:85px}.app{max-width:860px}main{max-width:620px;margin:auto;padding-bottom:40px}.bottom-nav{left:calc(50% - 180px);width:390px}.bottom-nav button{gap:4px}.bottom-nav button span{font-size:10px}}@media(max-width:699px){.app{padding:0 18px}.app header{height:66px}.page-heading{margin-top:15px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;margin:0;background:var(--nav);backdrop-filter:blur(22px);border-top:1px solid var(--line);border-radius:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));gap:0}.bottom-nav button{flex-direction:column;gap:3px;padding:3px 2px;min-height:45px;font-size:9px;border-radius:0}.bottom-nav .selected{background:none}.bottom-nav svg{height:22px;width:22px}main{padding-bottom:calc(95px + env(safe-area-inset-bottom))}.account-strip{padding:18px 20px}.page-heading h1{font-size:29px}.profile-row{align-items:flex-start}.profile-row strong{max-width:70%}.metrics{grid-template-columns:repeat(2,1fr)}.metric strong{font-size:25px}dialog{padding:23px;max-height:88dvh}.plan-row{padding:18px}.instruction-row{padding:18px}.padded{padding:20px}.support{font-size:12px}.connection-page{margin-top:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:699px){input,select{font-size:16px}.icon,.text-button{min-height:44px}.round-next{min-width:44px;min-height:44px}.quick-amounts button{min-height:44px}}

.owner-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.owner-controls .button{min-height:40px;font-size:12px;padding:8px 14px}.owner-controls .footnote{margin:0}.danger{background:#e3474d;color:white;width:100%;margin-top:18px}.owner-history{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.owner-history p{padding:9px 0;border-bottom:1px solid var(--line)}.owner-history small{display:block;margin-top:4px}.owner-log-title,#owner-grant h3{margin-top:24px}#owner-name,#owner-info{overflow-wrap:anywhere}#owner-message{font-size:12px;color:var(--blue)}#owner-message.form-error{color:#d74444}

.confirm-actions{display:flex;gap:10px;margin-top:22px}.confirm-actions>.button{flex:1;margin:0}#owner-confirm-dialog{max-width:360px}#owner-confirm-text{font-size:14px;line-height:1.6;margin-top:18px;overflow-wrap:anywhere}
/* iOS interface: native system type, grouped lists and floating controls. */
:root{--bg:#f2f2f7;--panel:#fff;--ink:#161619;--muted:#777982;--line:#e6e6eb;--blue:#007aff;--accent:#007aff;--soft:#edf4ff;--nav:#ffffffd9}body.dark{--bg:#000;--panel:#1c1c1e;--ink:#f5f5f7;--muted:#9b9ba3;--line:#343437;--blue:#64acff;--accent:#0a84ff;--soft:#15263d;--nav:#242426de}html,body,button,a,input,select,.app,.connection-page,.ios-sheet{touch-action:manipulation}body{font-size:16px;line-height:1.48}button,a{touch-action:manipulation}button{transition:background .15s,transform .15s}button:active{transform:scale(.985)}button:disabled{transform:none}input,select{font-size:16px}h1{font-size:34px;letter-spacing:-1.1px}h2{font-size:20px}h3{font-size:18px}.group{border-radius:20px}.section-title{margin-top:30px}.section-title h2{font-size:19px;letter-spacing:-.45px}.section-caption{font-size:13px;color:var(--muted);margin:0 5px 15px}.page-heading{margin-bottom:22px}.page-heading p{font-size:13px}.app header{height:80px}.button{min-height:49px;font-size:15px;border-radius:14px;padding:13px 16px}.button.primary{background:var(--accent);color:white}.button.plain{background:none;color:var(--blue);font-size:14px;font-weight:500}.text-button,.icon{min-height:44px}.icon{min-width:44px}.account-strip{margin-top:14px;border-radius:20px;padding:17px 20px}.account-strip strong{font-size:25px}.small-button{min-height:44px;font-size:13px}.trial-row{padding:17px 18px;border:1px solid var(--line);background:var(--panel);gap:12px;border-radius:20px}.trial-row strong{font-size:14px}.trial-row p{font-size:11px}.trial-row .small-button{white-space:nowrap}.segmented{padding:4px;border-radius:12px;min-height:43px;background:var(--line);margin-bottom:14px}.segmented button{font-size:13px;min-height:35px;border-radius:9px}.segmented .selected{background:var(--panel);box-shadow:0 1px 4px #0001;color:var(--ink)}.setup-card{border-radius:26px;background:var(--panel);padding:24px;box-shadow:0 3px 20px #00000004}.setup-icon{width:54px;height:54px;border-radius:17px;background:var(--soft);color:var(--blue);display:grid;place-items:center;margin-bottom:17px}.system-symbol{display:inline-flex;flex:none;width:27px;height:27px;color:var(--blue)}.system-symbol svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.setup-icon .system-symbol{width:29px;height:29px}.eyebrow{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.4px}.setup-card .eyebrow{margin:0 0 7px}.setup-card h2{font-size:24px;font-weight:750;line-height:1.18;letter-spacing:-.65px;margin-bottom:10px;max-width:330px}.setup-description{font-size:14px;color:var(--muted);margin:0 0 20px;max-width:370px}.setup-card>.button{width:100%}.setup-mini{display:flex;gap:10px;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:16px}.plan-choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);color:var(--ink);padding:20px}.plan-choice:last-child{border:0}.plan-choice:active{background:var(--soft);transform:none}.plan-choice-info,.plan-choice-price{display:flex;flex-direction:column;gap:5px}.plan-choice-info strong{font-size:18px;font-weight:650;letter-spacing:-.35px}.plan-choice-info small{font-size:12px;color:var(--muted)}.plan-choice-price{text-align:right;flex-shrink:0}.plan-choice-price strong{font-size:20px;color:var(--blue);font-weight:650;letter-spacing:-.4px}.plan-choice-price small{font-size:12px;color:var(--blue)}.subscription{padding:21px}.subscription p{font-size:12px;line-height:1.6}.subscription-top strong{font-size:16px}.sub-actions .button{font-size:13px;min-height:46px}.share-shortcut{padding:8px!important;min-height:39px!important;margin:8px auto 0!important;font-size:12px!important}.status{font-size:11px;border-radius:7px}.status-ACTIVE{background:#27b07d16;color:var(--green)}.status-EXPIRED,.status-LIMITED,.status-DISABLED{background:#ff453a15;color:#e44d43}.empty{font-size:13px;padding:26px 22px}.empty strong{font-size:16px;margin-bottom:8px}.footnote{font-size:12px}.support{font-size:12px}.device-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 7px;font-size:11px;color:var(--muted)}.device-group-title strong{font-weight:500}.device-group-title span{white-space:nowrap}.device-row{padding:16px 18px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.device-row:last-child{border:0}.device-row>.system-symbol{width:38px;height:38px;border-radius:12px;background:var(--soft);padding:7px}.device-row>div{min-width:0}.device-row strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.device-row p{font-size:11px;line-height:1.6;color:var(--muted);margin:3px 0 0}.device-empty{font-size:13px;line-height:1.6;color:var(--muted);padding:14px 18px 20px}.owner-controls{flex-wrap:wrap}.owner-controls>.footnote{flex-basis:100%}.owner-controls .button{flex:1}.owner-block-shortcut{background:#ff453a14;color:#e14a42;font-size:12px}.ios-sheet{width:min(520px,calc(100% - 30px));max-height:91dvh;padding:28px;border-radius:28px}.ios-sheet .dialog-head{margin-bottom:20px}.ios-sheet .dialog-head h2{font-size:21px;letter-spacing:-.5px}.ios-sheet .button{width:100%;margin-top:11px}.flow-title{font-size:23px;line-height:1.2;letter-spacing:-.55px;margin:6px 0 15px}.flow-note{font-size:14px;line-height:1.65;color:var(--muted);margin:14px 0 20px}.flow-progress{list-style:none;padding:0;display:flex;gap:6px;margin:0 0 27px}.flow-progress li{display:flex;align-items:center;flex:1;gap:7px;color:var(--muted);font-size:10px;white-space:nowrap}.flow-progress b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--bg);font-size:11px;flex:none}.flow-progress .current{color:var(--blue);font-weight:650}.flow-progress .current b{background:var(--accent);color:white}.flow-progress .complete b{background:#27b07d16;color:var(--green)}.purchase-summary{display:flex;flex-direction:column;gap:7px;padding:21px;background:var(--bg);border-radius:20px}.purchase-summary strong{font-size:22px;letter-spacing:-.6px}.purchase-summary span{font-size:13px;color:var(--muted)}.purchase-summary b{font-size:33px;letter-spacing:-1px;margin-top:12px}.invoice{border-radius:17px;background:var(--bg);padding:4px 17px;margin:20px 0}.invoice>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.invoice>div:last-child{border:0}.invoice span{color:var(--muted)}.invoice strong{text-align:right;max-width:64%;font-weight:550}.telegram-button{background:#229ed9;color:white}.telegram-confirm-card{background:var(--bg);padding:18px;border-radius:20px;text-align:center;margin:18px 0}.telegram-confirm-card .flow-note{font-size:13px;margin:10px 0}.telegram-confirm-card .eyebrow{font-size:10px;letter-spacing:0}.login-code{letter-spacing:7px;font-size:31px;font-weight:750;margin:14px 0}.client-choices{display:grid;gap:9px;margin:20px 0}.client-choice{display:flex;align-items:center;gap:13px;padding:14px;border:1.5px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);text-align:left;min-height:64px}.client-choice.selected{border-color:var(--blue);background:var(--soft)}.client-monogram{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--bg);color:var(--blue);font-size:18px;font-weight:700}.client-choice strong{font-size:15px}.client-check{margin-left:auto;color:var(--blue);font-size:19px}.method-tabs{margin:20px 0}.method-tabs button{flex:1}.connection-final{font-size:14px;line-height:1.7;padding-left:23px}.connection-final li{padding:9px 0}.activity-indicator{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:mita-spin .8s linear infinite;margin:30px auto}#purchase-message:empty{display:none}#purchase-message{font-size:13px;color:var(--blue);line-height:1.6}#purchase-message.form-error{color:#e14a42}.connection-page{max-width:560px}.connection-page .group{padding:24px}.connection-page .button{margin-top:12px}#plans-section{scroll-margin-top:22px}.profile-row{font-size:14px}#profile-devices-section{scroll-margin-top:18px}.ios-sheet .qr{width:220px}.ios-sheet input[readonly]{font-size:12px}.ios-sheet label{font-size:13px}.form-error{line-height:1.6}.help-row{border-radius:18px;min-height:56px}.header-right{gap:10px}@keyframes mita-spin{to{transform:rotate(360deg)}}
@media(max-width:699px){.app{padding:0 18px}.app header{height:71px}.page-heading{margin-top:19px}.page-heading h1{font-size:32px}.bottom-nav{left:12px;right:12px;bottom:calc(9px + env(safe-area-inset-bottom));border:1px solid #8882;border-radius:25px;padding:8px 5px;background:var(--nav);box-shadow:0 5px 25px #00000014;backdrop-filter:blur(25px) saturate(160%);-webkit-backdrop-filter:blur(25px) saturate(160%)}.bottom-nav button{font-size:9px;min-height:44px;gap:4px;border-radius:18px}.bottom-nav .selected{background:var(--soft)}.bottom-nav svg{width:22px;height:22px}.bottom-nav button span{font-size:9px}main{padding-bottom:calc(115px + env(safe-area-inset-bottom))}.ios-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-height:94dvh;border-radius:28px 28px 0 0;padding:30px 21px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 70px #0003}.ios-sheet:before{content:'';position:absolute;top:9px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:var(--muted);opacity:.35}.ios-sheet .dialog-head h2{font-size:21px}.setup-card{padding:22px}.setup-card h2{font-size:23px}.flow-progress li{flex-direction:column;gap:5px;white-space:normal;text-align:center}.flow-progress{margin-bottom:23px}.connection-page{margin-top:6px}.connection-page .group{padding:22px}.flow-title{font-size:23px}.owner-controls .button{min-height:44px}.subscription-top{align-items:flex-start}.subscription-top strong{max-width:66%}.device-group-title{font-size:10px}}@media(max-width:359px){.app{padding:0 14px}.setup-card{padding:20px}.setup-mini{font-size:9px;gap:6px}.trial-row{display:block}.trial-row .small-button{width:100%;margin-top:12px}.plan-choice{padding:18px 16px}.plan-choice-info strong{font-size:17px}.plan-choice-price strong{font-size:18px}.sub-actions{flex-direction:column}.sub-actions .button{width:100%}.invoice>div{font-size:12px;gap:11px}}@media(prefers-reduced-motion:reduce){button{transition:none}.activity-indicator{animation-duration:1.8s}}

.setup-card.has-active{padding:20px 22px}.has-active .setup-icon{width:40px;height:40px;border-radius:13px;margin-bottom:12px}.has-active .setup-icon .system-symbol{width:24px;height:24px}.has-active h2{font-size:22px}.has-active .setup-description{margin-bottom:15px}.has-active .setup-mini{display:none}

.ios-sheet input[readonly]{font-size:16px}
/* miTa-X product interface */
:root{--bg:#eeeff1;--panel:#fff;--ink:#202322;--muted:#656a70;--line:#e4e6e9;--blue:#cc1831;--accent:#cc1831;--soft:#cc18310d;--nav:#fff;color-scheme:light}body.dark{--bg:#101112;--panel:#1c1e1f;--ink:#f0f0ed;--muted:#a0a3a4;--line:#303233;--blue:#ff344b;--accent:#e82440;--soft:#ff344b12;--nav:#1c1e1f;color-scheme:dark}body{font-family:Arial,sans-serif}.app{max-width:1120px;padding:0 30px 0 230px;min-height:100dvh}header{height:90px;border-bottom:1px solid var(--line)}.logo{display:flex;align-items:center}.logo img{width:116px;height:52px;object-fit:contain;filter:brightness(.3)}body.dark .logo img{filter:none}.page-heading h1{font-size:29px;letter-spacing:-.7px}.page-heading{margin:28px 0 22px}.group,.setup-card,.trial-row,.account-strip,.help-row,.balance-panel,.purchase-summary,.invoice{border-radius:14px;box-shadow:none;background:var(--panel);border:1px solid var(--line)}.setup-card{padding:24px;text-align:left}.setup-card h2{font-size:24px}.setup-icon{background:var(--soft);color:var(--blue);border-radius:10px}.setup-mini{display:none}.button,.small-button,.plan-choice,.client-choice{border-radius:10px;box-shadow:none}.button.primary,.small-button{background:var(--accent);color:#fff;min-height:50px}.button.secondary{background:var(--soft);color:var(--blue)}.plan-choice{background:var(--panel);border:1px solid var(--line)}.plan-choice.selected{border-color:var(--blue);background:var(--soft)}.bottom-nav{position:fixed;left:max(20px,calc((100vw - 1120px)/2));top:115px;bottom:auto;right:auto;width:185px;display:flex;flex-direction:column;gap:8px;background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0}.bottom-nav button{display:flex;flex-direction:row;gap:13px;padding:14px 16px;min-height:50px;color:var(--muted);border-radius:10px;font-size:14px;justify-content:flex-start}.bottom-nav button span{font-size:14px}.bottom-nav button.selected{background:var(--soft);color:var(--blue)}main{padding-bottom:40px}.ios-sheet{border-radius:14px}.icon,.close,.text-button{min-height:44px;min-width:44px}input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.view{min-width:0}.group,.view p,.profile-row strong{overflow-wrap:anywhere}.subscription-top{gap:10px}.telegram-button{background:var(--accent)}
@media(max-width:699px){.app{padding:0 18px}.app header{height:72px;position:sticky;top:0;z-index:20;background:var(--bg)}.logo img{width:98px;height:44px}.header-right{gap:4px}.header-right .text-button{font-size:12px}.page-heading{margin:22px 0}.page-heading h1{font-size:29px}.bottom-nav{top:auto;left:0;right:0;bottom:0;width:auto;flex-direction:row;gap:0;background:var(--nav);border-top:1px solid var(--line);border-radius:0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-shadow:none;backdrop-filter:none}.bottom-nav button{flex:1;min-width:0;flex-direction:column;justify-content:center;gap:5px;padding:5px 2px;min-height:48px;font-size:10px}.bottom-nav button span{font-size:10px}.bottom-nav button.selected{background:transparent}.bottom-nav svg{width:22px;height:22px}main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.setup-card{padding:20px}.ios-sheet{border-radius:16px 16px 0 0}.trial-row{padding:18px}.support{font-size:11px}.subscription-top strong{max-width:65%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
/* All dialogs share one viewport-centred layout, including mobile keyboards. */
dialog,dialog.ios-sheet{position:fixed!important;inset:var(--dialog-top,0px) 0 auto!important;top:calc(var(--dialog-top,0px) + var(--dialog-height,100dvh)/2)!important;transform:translateY(-50%);margin:0 auto!important;width:min(520px,calc(100% - 32px))!important;max-width:calc(100% - 32px);max-height:calc(var(--dialog-height,100dvh) - 32px)!important;height:auto;border:1px solid var(--line);border-radius:16px!important;padding:24px!important;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;background:var(--panel);color:var(--ink)}dialog.ios-sheet:before{display:none!important}dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h2{margin:0;font-size:21px}.dialog-head .close{display:grid;place-items:center;flex:none;width:44px;height:44px}.ui-icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.button .ui-icon,.small-button .ui-icon{margin:0 2px}.text-button .ui-icon{width:16px;height:16px}#theme{display:grid;place-items:center}#theme .ui-icon{width:23px;height:23px}#open-login-bot{background:var(--accent);color:#fff}#tg-check{background:var(--soft);color:var(--blue)}#auth-dialog .telegram-confirm-card{margin-top:12px}#auth-dialog .login-code{font-variant-numeric:tabular-nums}#auth-dialog .footnote{margin-bottom:0}@media(max-width:359px){dialog,dialog.ios-sheet{padding:18px!important;width:calc(100% - 24px)!important}.dialog-head h2{font-size:19px}}
/* Consistent action geometry */
.header-right{display:flex;align-items:center;gap:8px}.header-right>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 10px}.header-right>.icon{padding:0;width:44px}.sub-actions,.confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.sub-actions>.button,.confirm-actions>.button{width:100%;height:100%;min-height:50px;margin:0!important;padding:12px;line-height:1.3}.ios-sheet .button,dialog .button{width:100%;min-height:50px;margin:12px 0 0;line-height:1.35}.owner-controls{display:flex;gap:10px;align-items:stretch}.owner-controls>.button{flex:1;min-height:48px}.quick-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-amounts button{min-height:44px;margin:0}.segmented{align-items:stretch}.segmented button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px}.plan-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:90px}.plan-choice-info{min-width:0}.plan-choice-price{flex-shrink:0;text-align:right}.trial-row{gap:14px}.trial-row .small-button{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:50px}.account-strip{gap:12px}.account-strip .small-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px}.dialog-head .close{padding:0!important;margin:0!important}.button,.small-button{box-sizing:border-box}.ui-icon{pointer-events:none}@media(max-width:359px){.sub-actions{grid-template-columns:1fr}.trial-row .small-button{width:100%}.header-right{gap:2px}.header-right>button{padding:0 6px}} 
/* Help: equal-width actions with consistent spacing. */
#view-guide #client-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:18px 0 22px}#view-guide #client-tabs>button{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 6px}#view-guide #client-guide>.button{display:flex;width:100%;min-height:50px;margin:0;padding:12px 16px;align-items:center;justify-content:center;gap:8px;line-height:1.4}#view-guide #client-guide>.button+.button{margin-top:12px}#view-guide>.button{width:100%;min-height:50px;margin:18px 0 0;justify-content:center}#view-guide #client-guide .steps{margin:12px 0 22px}#view-guide .button .ui-icon{flex-shrink:0}
#view-guide #client-guide>.button{min-height:64px}
#view-guide #client-guide>.button{height:72px;min-height:72px;box-sizing:border-box}
.support-messages{display:flex;flex-direction:column;gap:12px;max-height:440px;overflow:auto;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:14px;margin-top:12px}.support-bubble{width:fit-content;max-width:90%;padding:12px 14px;border-radius:12px;overflow-wrap:anywhere;background:var(--bg)}.support-bubble.from-user{align-self:flex-end;background:var(--soft)}.support-bubble strong{font-size:12px;color:var(--muted)}.support-bubble p{white-space:pre-wrap;margin:6px 0;font-size:15px}.support-bubble small{font-size:11px;color:var(--muted)}.support-compose{margin:14px 0 24px}.support-compose textarea{box-sizing:border-box;width:100%;min-height:92px;max-height:240px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;background:var(--panel);color:var(--ink)}.support-compose textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.support-compose .button{width:100%;margin-top:12px}.support-thread{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);background:var(--panel);color:var(--ink);padding:16px;min-height:72px}.support-thread span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted)}.support-thread small{color:var(--blue)}#admin-support-chat{margin:20px 0}#view-guide>.button[data-go=support]{margin-bottom:20px}@media(max-width:699px){.support-messages{max-height:42dvh;padding:12px}.support-bubble{max-width:94%}}
