/* Self-contained app: system fonts, no CDN, no remote imagery or icon runtime. */
:root{--bg:#fbfbfa;--surface:#fff;--ink:#242927;--muted:#717773;--line:#eaeaea;--green:#346538;--soft:#edf3ec;--yellow:#fbf3db;--red:#fdebec;--radius:8px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a:hover{color:var(--green)}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:active{transform:scale(.985)}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,5vw,58px);line-height:1.12;letter-spacing:-.045em;font-weight:650}h2{font-size:25px;letter-spacing:-.025em;line-height:1.3}h3{font-size:17px;letter-spacing:-.015em;line-height:1.4}p:last-child{margin-bottom:0}small{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}svg{flex-shrink:0}.muted{color:var(--muted)}.mono,code{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.eyebrow{font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:650;color:var(--muted);margin-bottom:16px}.small{font-size:13px}.header{height:80px;max-width:1280px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:650;letter-spacing:-.025em;white-space:nowrap}nav{display:flex;align-items:center;gap:25px}nav a{font-size:13px;color:var(--muted)}nav a.active{color:var(--ink);font-weight:650}.nav-button{font-size:13px!important;padding:8px 14px!important}.footer{max-width:1200px;margin:64px auto 0;padding:24px 0 30px;border-top:1px solid var(--line);display:flex;gap:24px;justify-content:space-between;color:var(--muted);font-size:12px}.footer span:first-child{font-weight:650;color:var(--ink)}#main{max-width:1200px;margin:0 auto;padding:48px 0;min-height:65vh;outline:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;border:1px solid var(--ink);border-radius:5px;background:var(--ink);color:white;font-size:13px;font-weight:550;transition:background .16s,transform .16s;line-height:1.4;text-align:center}.btn:hover{background:#3a403d;color:white}.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.btn.secondary:hover{background:#f3f5f2}.btn.danger{color:#9f2f2d;background:var(--red);border-color:transparent}.btn.compact{min-height:32px;padding:5px 11px;font-size:12px}.link-button{border:none;background:transparent;padding:0;color:var(--green);font-size:13px;text-decoration:underline;text-underline-offset:3px}.icon-button{background:transparent;border:0;font-size:28px;line-height:1;width:36px;height:36px;color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.row.wrap{flex-wrap:wrap}.between{justify-content:space-between}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stack>*+*{margin-top:20px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}.page-head h1{font-size:32px;margin-bottom:8px}.page-head p{color:var(--muted);font-size:14px;margin:0}.card{padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.card h3{margin-bottom:8px}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.section{margin-top:68px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-title h2{margin:0}.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:80px;padding:48px 0 70px}.hero h1{max-width:540px;margin-bottom:24px}.hero p{max-width:470px;font-size:17px;color:var(--muted);line-height:1.7}.hero .actions{margin-top:28px}.hero-note{margin-top:22px;font-size:12px;color:var(--muted)}.connect-panel{border:1px solid var(--line);background:white;border-radius:8px;padding:0 30px}.connect-head{padding:24px 0;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.02em}.connection-step{display:flex;align-items:flex-start;gap:18px;padding:23px 0;border-bottom:1px solid var(--line)}.connection-step:last-child{border-bottom:0}.step-num{font-family:ui-monospace,monospace;color:var(--green);font-size:12px;line-height:28px}.connection-step h3{margin:0 0 3px;font-size:15px}.connection-step p{font-size:13px;line-height:1.6;margin:0}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px}.strip{display:flex;justify-content:space-between;gap:30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}.strip strong{font-size:14px;font-weight:550}.strip p{font-size:12px;color:var(--muted);margin:4px 0 0}.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.plan{display:flex;flex-direction:column;position:relative;overflow:hidden}.plan-name{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;margin-bottom:16px}.price{font-size:36px;font-weight:650;line-height:1.25;letter-spacing:-.045em}.price small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.plan-list{list-style:none;padding:0;margin:24px 0 28px;font-size:13px}.plan-list li{padding:9px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px}.plan-list li:last-child{border:0}.plan .btn{margin-top:auto;width:100%}.plan-description{color:var(--muted);font-size:13px;margin-top:12px}.note{padding:14px 18px;background:#f3f5f2;border-radius:5px;font-size:13px;line-height:1.6;color:#556057}.note.warning{background:var(--yellow);color:#7a5b16}.note.error{background:var(--red);color:#9f2f2d}.notice-space{margin:20px 0}.badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:99px;font-size:10px;font-weight:650;line-height:1.6;letter-spacing:.03em;white-space:nowrap;background:#f1f2f0;color:var(--muted)}.badge.good{background:var(--soft);color:var(--green)}.badge.warn{background:var(--yellow);color:#956400}.badge.bad{background:var(--red);color:#9f2f2d}.auth-wrap{max-width:440px;margin:30px auto}.auth-wrap h1{font-size:32px}.auth-wrap>p{color:var(--muted);font-size:14px}.auth-wrap .card{margin-top:26px;padding:30px}.auth-foot{margin-top:23px;text-align:center;font-size:13px;color:var(--muted)}.auth-foot a{color:var(--green)}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:19px}.field label{font-size:12px;font-weight:550;color:#424945}.field small{color:var(--muted);font-size:11px}.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid #dfe3dd;border-radius:5px;background:white;color:var(--ink);font-size:14px;min-height:43px}.field textarea{resize:vertical;min-height:88px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green)}.field input[readonly]{background:#f6f7f4}.check-field{display:flex;gap:10px;align-items:center;font-size:13px;margin:8px 0 24px}.check-field input{accent-color:var(--green);width:16px;height:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.span-two{grid-column:1/-1}.form-error{color:#9f2f2d;font-size:13px;margin:0 0 18px}.form-error:empty{display:none}.full{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden;margin-bottom:26px}.stat{padding:25px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-label{color:var(--muted);font-size:12px;margin-bottom:10px}.stat-value{font-size:25px;font-weight:600;letter-spacing:-.035em;line-height:1.3}.stat-detail{font-size:11px;color:var(--muted);margin-top:6px}.progress{height:5px;width:100%;border-radius:2px;background:#e9eee7;overflow:hidden;margin:15px 0 7px}.progress-fill{height:100%;background:var(--green)}.usage-card{display:grid;grid-template-columns:1.3fr .7fr;gap:50px;align-items:center}.usage-big{font-size:34px;font-weight:600;letter-spacing:-.04em}.usage-big small{font-size:14px;color:var(--muted);letter-spacing:0}.info-pairs{display:grid;gap:10px;font-size:13px}.info-pair{display:flex;justify-content:space-between;gap:20px}.info-pair span:first-child{color:var(--muted)}.empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:14px}.empty strong{display:block;color:var(--ink);font-size:17px;font-weight:550;margin-bottom:8px}.empty .btn{margin-top:18px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:white}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:#f8f9f6;white-space:nowrap}th,td{padding:16px 20px;border-bottom:1px solid var(--line);vertical-align:middle}tbody tr:last-child td{border-bottom:0}td .muted{font-size:11px}td strong{font-weight:550}.device-list{display:grid;gap:14px}.device{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 25px}.device-title{display:flex;align-items:center;gap:12px;margin-bottom:5px}.device-title h3{margin:0;font-size:15px}.device p{color:var(--muted);font-size:12px;margin:0}.device-symbol{width:38px;height:42px;border:1px solid var(--line);border-radius:5px;display:flex;justify-content:center;align-items:center;color:var(--muted);font-size:11px;font-family:ui-monospace,monospace}.qr-block{text-align:center;padding:10px 0 18px}.qr-block img{width:210px;height:210px;object-fit:contain;background:white;max-width:100%;border:1px solid var(--line);border-radius:6px;padding:10px}.qr-block p{font-size:12px;color:var(--muted);margin:10px 0}.copy-field{display:flex;gap:8px}.copy-field input{flex:1;min-width:0;padding:10px;border:1px solid var(--line);border-radius:5px;font:11px ui-monospace,monospace;background:#f8f9f6;color:var(--muted)}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.payment-amount{font-size:38px;font-weight:650;letter-spacing:-.04em}.checkout-code{font:20px ui-monospace,monospace;letter-spacing:.08em}.payment-status{padding:20px;background:var(--soft);border-radius:6px;margin-top:22px}.payment-status h3{margin-bottom:5px}.payment-status p{font-size:13px}.countdown{font:12px ui-monospace,monospace;color:var(--muted)}.guide-card{display:flex;flex-direction:column}.guide-card .btn{align-self:flex-start;margin-top:auto}.steps{padding-left:21px;font-size:13px;color:#525b55}.steps li{margin-bottom:12px;padding-left:5px}.faq{margin-top:40px}.faq details{border-bottom:1px solid var(--line);padding:18px 0}.faq summary{cursor:pointer;font-size:14px;font-weight:550}.faq p{color:var(--muted);font-size:13px;margin:12px 0 0;max-width:800px}.account-summary{max-width:650px}.admin-layout{display:grid;grid-template-columns:185px minmax(0,1fr);gap:40px;max-width:1280px;margin:auto;padding:40px 40px 0}.admin-layout #main{padding:0;margin:0;min-width:0}.sidebar{padding-top:5px}.sidebar .eyebrow{font-size:10px;padding:0 12px}.sidebar nav{display:flex;flex-direction:column;align-items:stretch;gap:4px}.sidebar a{padding:10px 12px;border-radius:5px;font-size:13px}.sidebar a.active{background:#edf1ea;color:var(--green);font-weight:550}.sidebar .sidebar-foot{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.admin-layout .page-head h1{font-size:29px}.admin-layout .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-layout .stat{padding:22px}.admin-layout .page-head{margin-bottom:24px}.filter-bar{display:flex;gap:12px;margin-bottom:18px;align-items:center}.filter-bar input{border:1px solid var(--line);background:white;padding:8px 12px;font-size:13px;border-radius:5px;max-width:350px;width:100%}.filter-bar .muted{font-size:12px}.audit-detail{font:11px ui-monospace,monospace;color:var(--muted);max-width:440px;overflow-wrap:anywhere;white-space:pre-wrap}.settings-section{margin-bottom:25px}.settings-section>h3{margin-bottom:20px}.loading{padding:90px 20px;text-align:center;font-size:13px;color:var(--muted)}.loading:before{content:"";display:block;width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;margin:0 auto 14px;animation:spin .75s linear infinite}.error-panel{max-width:520px;margin:45px auto;padding:30px;border:1px solid var(--line);border-radius:8px;background:white}.error-panel h2{font-size:22px}.error-panel p{color:var(--muted);font-size:14px}.skip-link{position:fixed;top:-80px;left:16px;z-index:50;background:var(--ink);color:white;padding:10px 14px}.skip-link:focus{top:10px}#toasts{position:fixed;right:25px;bottom:25px;z-index:100;display:grid;gap:8px;max-width:min(380px,calc(100vw - 40px))}.toast{background:var(--ink);color:white;padding:13px 18px;border-radius:6px;font-size:13px;animation:arrive .2s ease-out}.toast.error{background:#733d37}dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100vh - 60px);padding:28px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);overflow:auto}dialog::backdrop{background:rgba(25,31,26,.35)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.dialog-head h2{font-size:22px;margin:0}.dialog-head .icon-button{margin-right:-8px}.dialog-hint{font-size:13px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.checkbox-note{display:block;font-size:12px;color:var(--muted)}.reveal{animation:arrive .3s ease-out}.inline-note{margin-top:14px;font-size:12px;color:var(--muted)}.word-break{overflow-wrap:anywhere}.text-right{text-align:right}.node-health{display:flex;align-items:center;gap:10px}.node-health span{font-size:12px}.health-list{display:grid;gap:13px}.key-value{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;font-size:13px;margin-bottom:12px}.key-value>span:first-child{color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1281px){#main{padding-left:0;padding-right:0}}@media(max-width:1280px){#main{margin:0 40px}.footer{margin-left:40px;margin-right:40px}.hero{gap:44px}.admin-layout{gap:25px}.admin-layout #main{margin:0}}
@media(max-width:900px){.header{padding:0 24px}.header nav{gap:15px}#main{margin:0 24px;padding:35px 0}.footer{margin-left:24px;margin-right:24px}.hero{gap:30px}.hero h1{font-size:42px}.connect-panel{padding:0 22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.grid.three,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout{grid-template-columns:150px minmax(0,1fr);gap:20px;padding:30px 24px 0}.admin-layout .stats{grid-template-columns:1fr}.admin-layout .stat{border-right:0;border-bottom:1px solid var(--line)}.admin-layout .stat:last-child{border:0}.usage-card{gap:25px}.checkout-grid{gap:20px}.device{align-items:flex-start}.device .actions{justify-content:flex-end}}
@media(max-width:640px){body{font-size:14px}.header{height:auto;min-height:72px;padding:18px 20px;gap:14px;align-items:flex-start;flex-wrap:wrap}.brand{font-size:16px}.brand svg{width:24px;height:24px}.header nav{gap:16px;flex-wrap:wrap;justify-content:flex-start}.header nav a{font-size:12px}.header nav .btn{padding:6px 12px!important}.header nav .nav-hide-mobile{display:none}#main{margin:0 20px;padding:30px 0}.footer{margin:38px 20px 0;gap:12px;flex-wrap:wrap;padding-bottom:22px}.footer span:nth-child(2){display:none}.hero{grid-template-columns:1fr;gap:36px;padding:18px 0 36px}.hero h1{font-size:44px;max-width:390px;margin-bottom:20px}.hero p{font-size:15px;max-width:420px}.hero .actions{margin-top:24px}.connect-panel{padding:0 23px}.connection-step{padding:19px 0}.strip{gap:18px;flex-wrap:wrap}.strip>div{flex:1;min-width:130px}.section{margin-top:42px}.section-title h2{font-size:22px}.plans-grid{grid-template-columns:1fr}.card{padding:22px}.price{font-size:32px}.page-head{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px}.page-head h1{font-size:29px}.page-head p{font-size:13px}.grid.two,.grid.three,.grid.four,.checkout-grid,.usage-card{grid-template-columns:1fr}.stats{margin-bottom:20px}.stat{padding:19px 16px}.stat-value{font-size:22px}.stat-label{font-size:11px}.stat-detail{font-size:10px}.usage-card{gap:25px}.usage-big{font-size:31px}.device{padding:20px;flex-direction:column;gap:18px}.device .actions{justify-content:flex-start}.device .actions .btn{font-size:12px}.form-grid{grid-template-columns:1fr}.span-two{grid-column:auto}.auth-wrap{margin:20px auto}.auth-wrap .card{padding:25px}.checkout-code{font-size:17px}.payment-amount{font-size:34px}.admin-layout{display:block;padding:24px 20px 0}.admin-layout #main{margin:0;padding:0}.sidebar{margin-bottom:25px;padding:0}.sidebar .eyebrow{display:none}.sidebar nav{flex-direction:row;overflow:auto;white-space:nowrap;gap:5px;padding-bottom:8px}.sidebar nav a{padding:8px 12px;font-size:12px}.sidebar .sidebar-foot{display:none}.admin-layout .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-layout .stat{padding:14px 10px;border-bottom:0;border-right:1px solid var(--line)}.admin-layout .stat:nth-child(-n+2){border-bottom:0}.admin-layout .stat-value{font-size:20px}.admin-layout .stat-label{font-size:10px}.admin-layout .stat-detail{display:none}th,td{padding:13px 15px}.filter-bar{flex-wrap:wrap}dialog{padding:24px 20px}.dialog-head h2{font-size:20px}.key-value{grid-template-columns:100px minmax(0,1fr)}.section-title .btn{font-size:11px;padding:7px 10px}.guide-card .btn{margin-top:8px}.guide-card h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Reserve the page scrollbar across short and long account views. */
html{scrollbar-gutter:stable}
/* User's design standard: iOS grouped surfaces, SF hierarchy and large controls.
 * These tokens intentionally supersede the earlier neutral foundation. */
:root{--bg:#f2f2f7;--ink:#1c1c1e;--muted:#6d6d72;--line:#e5e5ea;--green:#007aff;--soft:#eaf3ff;--radius:16px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif}
.header{background:rgba(242,242,247,.97);height:82px;border-bottom:0}.brand{font-weight:650}.brand svg{color:#007aff}.header nav a:hover{color:#007aff}.btn{background:#007aff;border-color:#007aff;border-radius:10px;min-height:44px;padding:11px 17px;font-size:14px;font-weight:550}.btn:hover{background:#006be0}.btn.secondary{border-color:transparent;background:#eef1f5;color:#007aff}.btn.secondary:hover{background:#e4eaf2}.btn.danger{background:#fff0ef;color:#d23d36}.btn.compact{min-height:38px;border-radius:8px;padding:8px 12px}.nav-button{min-height:36px!important;border-radius:9px!important}.header nav .btn.secondary{background:#e6e9ef}.card{border-color:transparent;background:white;padding:26px;border-radius:16px}.hero{padding:32px 0 56px;gap:70px}.hero h1{font-size:clamp(38px,5vw,54px);font-weight:700;letter-spacing:-.04em}.hero p{font-size:17px;line-height:1.65}.hero-note{margin-top:18px}.connect-panel{border:0;border-radius:18px;box-shadow:none}.connect-head{font-weight:550}.connection-step h3{font-weight:600}.strip{border-color:#dedee5;padding:24px 0}.page-head h1{font-weight:700;letter-spacing:-.035em}.page-head p{font-size:14px}.eyebrow{letter-spacing:.075em;font-weight:600}.plan-name{font-size:14px;letter-spacing:0;text-transform:none}.plan .btn{border-radius:11px}.plan-list li{padding:12px 0}.price{font-size:34px}.plan-list strong{font-weight:550}.note{background:#e9edf3;color:#515b6b;border-radius:12px;padding:17px 19px}.note.warning{background:#fff6df;color:#805f13}.note.error{background:#fff0ef;color:#b53932}.badge{padding:4px 10px;font-size:11px;letter-spacing:0;font-weight:550}.badge.good{background:#ebf7ef;color:#29884b}.badge.warn{background:#fff5db;color:#936800}.badge.bad{background:#fff0ef;color:#c34a42}.status-dot{background:#30a65c}.field label{font-size:13px;color:#48484a}.field input,.field select,.field textarea{background:#f6f6f9;border:1px solid transparent;border-radius:10px;min-height:46px;padding:11px 13px;font-size:15px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#007aff;background:white}.field input[readonly]{background:#f4f4f8}.check-field{font-size:14px;min-height:38px}.stats{border:0;border-radius:16px}.stat{padding:25px;border-right:1px solid var(--line)}.stat-value{font-size:25px;letter-spacing:-.035em;font-weight:650}.stat-label{font-size:12px}.progress{height:7px;border-radius:4px;background:#e6edf7}.progress-fill{border-radius:4px;background:#007aff}.info-pair strong{font-weight:550}.table-wrap{border:0;border-radius:16px}th{background:#fafafd;font-size:11px;text-transform:none;letter-spacing:0;font-weight:600}th,td{padding:17px 20px}.device-symbol{background:#f0f3f8;color:#527395;border:0;border-radius:9px;width:42px;height:46px}.device-title h3{font-size:16px}.qr-block img{border-color:#eeeef3;border-radius:12px}.copy-field input{border:0;border-radius:9px;padding:13px;font-size:12px;background:#f3f3f8}.payment-status{background:#eaf5ef;border-radius:12px;padding:21px}.checkout-code{letter-spacing:.06em}.auth-wrap .card{border-radius:18px}.auth-wrap h1{font-weight:700}.auth-foot a{color:#007aff}.sidebar nav{background:#e8e8ef;border-radius:12px;padding:6px}.sidebar a{border-radius:8px;min-height:43px;color:#666670}.sidebar a.active{background:white;color:#007aff;box-shadow:0 1px 3px rgba(0,0,0,.035)}.sidebar .sidebar-foot{border-color:#dedee5;padding-left:7px}.admin-layout .stats{border-radius:16px}.filter-bar input{border:0;background:#e5e5ed;border-radius:10px;padding:12px 14px;min-height:44px}.footer{border-color:#dedee5}dialog{border:0;border-radius:20px;padding:30px;background:#fff;box-shadow:0 14px 60px rgba(0,0,0,.1)}dialog::backdrop{background:rgba(12,16,25,.36)}.dialog-head h2{font-weight:650;font-size:23px}.icon-button{background:#f1f1f6;border-radius:50%;font-size:24px;width:34px;height:34px;display:flex;align-items:center;justify-content:center}.error-panel{border:0;border-radius:16px}.toast{border-radius:12px;background:rgba(32,34,40,.96);padding:15px 19px}.mobile-nav{display:none}.faq summary{min-height:26px}.faq details{border-color:#dedee5}.guide-card h2{font-weight:650}.form-grid .field{margin-bottom:20px}.inline-note{line-height:1.65}.dialog-hint{font-size:14px}.dialog-actions{margin-top:26px}.link-button{color:#007aff;min-height:30px}.settings-section{padding:28px}.node-health{min-height:40px}
@media(max-width:900px){.hero{gap:35px}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.header{padding:0 24px}.admin-layout .stat{border-right:0}.admin-layout .stat:last-child{border-bottom:0}.sidebar nav{padding:4px}.sidebar a{padding:9px 10px}}
@media(max-width:640px){.header{height:auto;min-height:70px;padding:19px 20px;gap:15px}.header nav{gap:14px}.header nav a{font-size:13px;min-height:32px;display:inline-flex;align-items:center}.header nav .btn{min-height:36px!important}.header nav .nav-hide-mobile{display:none}.hero{padding:15px 0 34px;gap:32px}.hero h1{font-size:42px;line-height:1.12;letter-spacing:-.04em}.hero p{font-size:15px}.hero .btn{font-size:14px;min-height:46px}.connect-panel{border-radius:16px;padding:0 22px}.connection-step{padding:19px 0}.connection-step p{font-size:13px}.section{margin-top:36px}.card{padding:22px;border-radius:16px}.page-head h1{font-size:30px}.page-head p{font-size:13px}.btn.compact{min-height:44px;font-size:13px}.stats{border-radius:16px}.stat{padding:20px 16px}.stat-label{font-size:12px}.stat-value{font-size:23px}.stat-detail{font-size:11px}.usage-card{gap:24px}.usage-big{font-size:32px}.device{padding:22px}.device .actions{gap:8px;width:100%}.device .actions .btn{min-height:44px;font-size:12px}.device .actions .btn:first-child{flex:1}.field input,.field select,.field textarea{font-size:16px;min-height:48px}.auth-wrap .card{padding:25px 22px}.auth-wrap h1{font-size:32px}.auth-foot{font-size:14px}.sidebar nav{background:#e5e5ed;border-radius:10px;padding:4px;overflow:auto;gap:3px}.sidebar nav a{font-size:13px;min-height:40px;padding:8px 12px;border-radius:7px;display:flex;align-items:center}.sidebar nav a.active{background:white}.admin-layout{padding-top:16px}.admin-layout .stat{padding:16px 12px;border-right:1px solid var(--line)}.admin-layout .stat-label{font-size:11px}.admin-layout .stat-value{font-size:20px}.admin-layout .stat:nth-child(-n+2){border-bottom:0}.table-wrap{border-radius:14px}th,td{padding:16px}.copy-field .btn{font-size:13px;padding:10px 12px}.copy-field input{font-size:11px}.dialog-head h2{font-size:22px}.dialog-actions .btn{min-height:46px}dialog{padding:26px 22px;max-height:calc(100dvh - 40px);border-radius:20px}.guide-card .btn{min-height:44px}.steps{font-size:14px}.steps li{margin-bottom:15px}.settings-section{padding:24px 22px}.key-value{grid-template-columns:100px minmax(0,1fr)}.footer{font-size:12px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:7px 12px max(9px,env(safe-area-inset-bottom));gap:0;border-top:1px solid rgba(60,60,67,.15);background:rgba(248,248,251,.98);z-index:30;justify-content:space-around}.mobile-nav a{flex:1;text-align:center;padding:13px 4px;color:#77777e;font-size:12px;line-height:1.3;min-height:44px;display:flex;align-items:center;justify-content:center}.mobile-nav a.active{color:#007aff;font-weight:600}.has-mobile-nav{padding-bottom:78px}.has-mobile-nav .header nav a[href="#/dashboard"]{display:none}.has-mobile-nav #toasts{bottom:90px}.section-title h2{font-size:23px}.section-title .btn{font-size:12px;min-height:42px}.price{font-size:34px}.plan-list{font-size:14px}.plan-list li{padding:12px 0}}
/* Hiddify is the single onboarding path. The QR and clipboard controls remain
 * available when the browser cannot open the installed application's link. */
.connect-config .dialog-hint{margin-bottom:18px}.connect-actions{gap:10px}.connect-actions .btn:first-child{flex:1}.connect-config .config-link{margin:24px 0 0}.connect-config .qr-block{padding:22px 0 8px}.config-fallback{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}.config-fallback summary{cursor:pointer;font-size:13px;min-height:30px;color:#007aff}.config-fallback p{margin-top:12px}.payment-status.is-review{background:#fff6df;color:#805f13}.help-row{padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.help-row h3{margin-bottom:5px}.help-row p{margin:0}.guide-page{max-width:850px}.segmented{display:flex;background:#e6e6ed;padding:4px;border-radius:12px;gap:4px;margin-bottom:24px;overflow:auto}.segmented button{border:0;background:transparent;color:#66666e;padding:11px 14px;min-height:44px;flex:1;white-space:nowrap;border-radius:9px;font-size:13px;font-weight:500;line-height:1.35}.segmented button.active{background:white;color:#1c1c1e;box-shadow:0 1px 3px rgba(0,0,0,.04);font-weight:600}.hiddify-guide{padding:0 32px}.guide-step{padding:30px 0;display:grid;grid-template-columns:32px minmax(0,1fr);gap:16px;border-bottom:1px solid var(--line)}.guide-step:last-child{border-bottom:0}.guide-number{font-size:14px;font-weight:600;width:30px;height:30px;border-radius:9px;background:#edf3fc;color:#007aff;display:flex;align-items:center;justify-content:center}.guide-step h2{font-size:20px;font-weight:600;margin-bottom:10px;line-height:1.35}.guide-step p{font-size:14px;line-height:1.65;margin-bottom:18px;max-width:650px}.guide-step:last-child p{margin-bottom:0}.hiddify-panel{outline-offset:8px}.user-orders td:first-child .mono{white-space:nowrap;overflow-wrap:normal;font-size:11px}.user-orders td:nth-child(3){white-space:nowrap}.user-orders td:nth-child(2){min-width:140px}.page-head h1{overflow-wrap:anywhere}.plan-list{margin-bottom:24px}.plan .inline-note{font-size:11px}.qr-block img[hidden]{display:none}
.skip-link{top:10px;transform:translateY(-200%);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}.skip-link:focus{transform:none;clip-path:none;width:auto;height:auto;overflow:visible;padding:10px 14px;border-radius:6px}
/* WCAG AA text colors: filled CTA uses white on #0071e3; text links use the
 * darker #0066cc because their grouped gray backgrounds reduce contrast. */
:root{--green:#0071e3;--muted:#626268}
.btn{background:#0071e3;border-color:#0071e3}.btn:hover{background:#0066cc;color:white}
.btn.secondary,.btn.secondary:hover,.link-button,.auth-foot a,.header nav a:hover,.sidebar a.active,.mobile-nav a.active,.config-fallback summary,.guide-number{color:#0066cc}
.btn.danger{color:#b5362f;background:#fff0ef;border-color:transparent}.badge.good{color:#23753f}.badge.bad{color:#b5362f}
.sidebar a,.mobile-nav a,.segmented button,.device-symbol{color:#626268}
input::placeholder,textarea::placeholder{color:#626268;opacity:1}
/* Email choices remain optional, and verification is one compact step. SMTP
 * and campaign screens reuse the account's grouped surfaces and SF hierarchy. */
.email-consent{align-items:flex-start;line-height:1.6}.email-consent input{flex-shrink:0;margin-top:4px}.email-consent small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.field .otp-input{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:28px;letter-spacing:.24em;text-align:center;font-variant-numeric:tabular-nums;min-height:62px}.email-resend{display:flex;justify-content:center;margin-top:18px}.email-resend .btn{min-height:44px}.email-settings{max-width:930px}.email-test-result:not(:empty){margin-top:20px}.email-test h2,.email-send-summary h2{font-size:21px}.email-body-editor{min-height:230px!important;line-height:1.65}.email-preview-frame{display:block;width:100%;height:730px;border:0;border-radius:16px;background:white}.email-text-preview{margin-top:20px}.email-text-preview summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;color:#0066cc}.email-text-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:22px;border-radius:16px;background:white;font-size:13px;line-height:1.65}.email-send-summary .inline-note{margin-top:18px}.email-campaign-detail .stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:26px}
@media(max-width:640px){.field .otp-input{font-size:27px;min-height:64px}.email-preview-frame{height:700px;border-radius:14px}.email-campaign-detail .stat{padding:18px 12px;border-bottom:0}.email-campaign-detail .stat-label{font-size:11px}.email-campaign-detail .stat-value{font-size:21px}.email-send-summary .actions{width:100%;margin-top:14px}.email-send-summary .actions .btn{flex:1}.email-campaigns .page-head{align-items:flex-start}.email-campaigns .page-head>.btn{font-size:12px;white-space:nowrap}.email-text-preview pre{padding:18px;font-size:12px}}
.email-resend{flex-direction:column;align-items:stretch;gap:10px}.email-resend .inline-note{margin:0;text-align:center;font-size:12px}
/* Merchant actions are explicit at the customer/order rows. Package revocation
 * is presented separately from account suspension and bank-payment approval. */
.admin-row-actions{display:flex;flex-direction:column;gap:8px;min-width:155px}.admin-row-actions .btn{white-space:nowrap}.admin-sub-status{margin:6px 0}.admin-package-summary{background:#f3f5f9;padding:20px;border-radius:14px}.admin-package-summary h3{margin:0 0 14px}.admin-package-summary .info-pairs{font-size:13px}.admin-package-actions{margin-top:18px}.admin-grant-form h3{font-size:18px}.admin-account-controls{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.admin-account-controls summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#0066cc;font-size:14px}.admin-modal-section{margin-top:26px}.admin-payment-history .table-wrap{overflow:auto;border:1px solid var(--line)}.admin-payment-history th,.admin-payment-history td{padding:12px;font-size:12px}.admin-payment-history .table-wrap table{min-width:470px}.payment-review-warning{font-size:12px;color:#805f13;margin-top:7px}.payment-comparison{margin-bottom:20px}.payment-comparison .info-pairs{padding:16px;background:#f3f5f9;border-radius:12px;margin-bottom:14px}.payment-confirm-check{align-items:flex-start;line-height:1.6}.payment-confirm-check input{flex-shrink:0;margin-top:4px}.admin-user-management .info-pair strong,.admin-payment-review .info-pair strong{overflow-wrap:anywhere}.admin-payment-review>.info-pairs{font-size:13px}
@media(max-width:640px){.admin-customer-table{background:transparent;overflow:visible}.admin-customer-table table,.admin-customer-table tbody{display:block;width:100%}.admin-customer-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.admin-customer-table tbody{display:grid;gap:14px}.admin-customer-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:20px;background:white;border-radius:16px}.admin-customer-table td{padding:0;border:0;min-width:0}.admin-customer-table td:first-child{grid-column:1/-1}.admin-customer-table td:nth-child(2){grid-column:1}.admin-customer-table td:nth-child(3){grid-column:2}.admin-customer-table td:last-child{grid-column:1/-1}.admin-row-actions{flex-direction:row;min-width:0;flex-wrap:wrap}.admin-row-actions .btn{flex:1;white-space:normal;min-height:44px;font-size:13px}.admin-package-actions .btn{flex:1}.admin-package-summary{padding:18px}.admin-payment-history .table-wrap table{min-width:450px}.admin-payment-review .dialog-actions .btn{width:100%}.admin-account-controls .actions .btn{width:100%}}
@media(max-width:640px){.admin-order-table,.admin-payment-table{overflow:visible;background:transparent}.admin-order-table table,.admin-order-table tbody,.admin-payment-table table,.admin-payment-table tbody{display:block;width:100%;min-width:0!important}.admin-order-table thead,.admin-payment-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.admin-order-table tbody,.admin-payment-table tbody{display:grid;gap:14px}.admin-order-table tr,.admin-payment-table tr{display:grid;gap:13px;padding:20px;background:white;border-radius:16px}.admin-order-table td,.admin-payment-table td{border:0;padding:0;min-width:0;overflow-wrap:anywhere;font-size:14px}.admin-order-table td[data-label]::before,.admin-payment-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;margin-bottom:3px}.admin-order-table .admin-row-actions{flex-direction:column}.admin-payment-table td:last-child .btn{width:100%;min-height:44px}.admin-payment-history .table-wrap{border:0}.admin-payment-history .table-wrap tr{background:#f3f5f9;padding:16px}.admin-manual-bank .dialog-actions .btn{width:100%}}
@media(max-width:640px){.connect-actions .btn{font-size:13px;padding:11px 13px;min-height:46px}.connect-config .qr-block img{width:190px;height:190px}.config-fallback summary{font-size:14px;min-height:40px}.help-row{gap:16px;padding:23px 0}.help-row .btn{min-height:44px}.segmented{padding:4px;margin-bottom:18px;gap:2px;border-radius:10px}.segmented button{padding:10px 11px;min-height:44px;font-size:12px;border-radius:7px}.hiddify-guide{padding:0 22px}.guide-step{grid-template-columns:26px minmax(0,1fr);gap:13px;padding:25px 0}.guide-number{width:26px;height:28px;font-size:13px;border-radius:8px}.guide-step h2{font-size:18px;margin-bottom:10px}.guide-step p{font-size:14px}.guide-step .actions{gap:8px}.guide-step .btn{font-size:13px;padding:10px 12px;min-height:44px}.user-orders{overflow:visible;background:transparent;border-radius:0}.user-orders table,.user-orders tbody{display:block;width:100%}.user-orders thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.user-orders tbody{display:grid;gap:14px}.user-orders tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:15px;padding:20px;background:white;border-radius:16px}.user-orders td{border:0;padding:0;font-size:14px;min-width:0}.user-orders td:first-child{grid-column:1/-1;padding-bottom:12px;display:flex;flex-direction:column;gap:2px}.user-orders td:first-child .mono{font-size:12px;white-space:normal;overflow-wrap:anywhere}.user-orders td:first-child .muted{font-size:11px}.user-orders td:nth-child(2){min-width:0;grid-column:1;grid-row:2;padding-bottom:12px;font-weight:550;overflow-wrap:anywhere}.user-orders td:nth-child(3){grid-column:2;grid-row:2;padding-bottom:12px;font-weight:550;white-space:nowrap;text-align:right}.user-orders td:nth-child(4){grid-column:1;grid-row:3;align-self:center}.user-orders td:last-child{grid-column:2;grid-row:3;text-align:right}.user-orders .badge{font-size:11px;white-space:normal}.user-orders .btn{min-height:40px;font-size:12px;padding:8px 12px}}

/* Direct configurations contain more QR modules; preserve camera readability. */
.connect-config .config-fallback .qr-block img{width:min(100%,280px);height:auto;aspect-ratio:1}

/* Dashboard is a primary touch target in both customer and admin navigation. */
.header nav a[href="#/dashboard"]{display:inline-flex;align-items:center;min-height:44px}

/* Configured identity, support and node administration. */
.brand{display:inline-flex;align-items:center;gap:8px;min-width:0}.brand img{object-fit:contain;flex:0 0 28px}.logo-preview{object-fit:contain;background:var(--surface,#fff);border:1px solid var(--border,#ddd);border-radius:12px;padding:6px}.support-links{display:flex;gap:8px;flex-wrap:wrap}.support-launcher{position:fixed;right:16px;bottom:20px;z-index:40;max-width:calc(100vw - 32px)}.support-launcher>summary{list-style:none;cursor:pointer;background:#1d1d1f;color:#fff;border-radius:24px;padding:12px 18px;min-height:44px;font-size:14px;font-weight:600;box-shadow:0 4px 16px #0002}.support-launcher>summary::-webkit-details-marker{display:none}.support-popover{position:absolute;right:0;bottom:56px;width:300px;max-width:calc(100vw - 32px);padding:18px;background:#fff;border:1px solid #ddd;border-radius:16px;box-shadow:0 8px 24px #0002}.support-popover p{font-size:13px;line-height:1.5;color:#646469;margin:8px 0 14px}.node-list{display:grid;gap:16px}.node-card h2{font-size:20px}.node-card .info-pair strong{overflow-wrap:anywhere}.has-mobile-nav .support-launcher{bottom:calc(82px + env(safe-area-inset-bottom))}@media(min-width:769px){.has-mobile-nav .support-launcher{bottom:20px}}

.header .brand{max-width:clamp(96px,32vw,260px)}.brand span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

body{overflow-wrap:anywhere}#footer-brand{max-width:100%;white-space:normal;overflow-wrap:anywhere}.header nav{flex-shrink:0}.header .brand{flex:0 1 auto;min-width:0}@media(max-width:640px){.header .brand{max-width:calc(100% - 207px)}}

/* Capacity is monthly transfer volume, separate from plan quota and speed.
 * Unknown/stale aggregate data has no percentage bar or invented zero. */
.capacity-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.capacity-usage-card{min-width:0}.capacity-usage-card h3{margin:0;font-size:16px;font-weight:600;line-height:1.4}.capacity-percent{font-size:46px;line-height:1.2;font-weight:650;letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin-top:22px}.capacity-total{font-size:14px;font-weight:500;color:#61616b;font-variant-numeric:tabular-nums;margin:7px 0 18px}.capacity-meter{height:7px;margin:0 0 17px;background:#e9edf5;overflow:hidden}.capacity-meter.is-unknown{background:#ededf2}.capacity-meter.is-full .progress-fill{background:#b46c17}.capacity-usage-card>.muted{line-height:1.65;margin-bottom:0}.capacity-footnote{font-size:12px;line-height:1.6;color:#73737d;margin:16px 0 0;max-width:65ch}.capacity-updated,.capacity-node-type{font-size:12px;color:#73737d;line-height:1.5;margin:8px 0 0}.capacity-personal-details{border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-variant-numeric:tabular-nums}.capacity-label{font-size:12px;font-weight:550;line-height:1.5;color:#516e97;background:#f0f4fa;padding:5px 9px;border-radius:7px;max-width:100%}.capacity-label.is-pending{color:#74747c;background:#f1f1f5}.capacity-label.is-full{color:#88601f;background:#fff4dc}.capacity-without-plan{margin-top:20px;max-width:560px}.node-capacity-section>.muted{margin:0 0 22px;line-height:1.65;max-width:65ch}.node-capacity-list{display:grid;gap:16px}.node-capacity-card{min-width:0}.node-capacity-card h3{font-size:18px;margin:0;font-weight:600;line-height:1.4}.node-capacity-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:center}.node-capacity-body .info-pairs{font-size:13px;margin-top:22px;font-variant-numeric:tabular-nums}.node-capacity-body .info-pair{gap:14px;align-items:flex-start}.node-capacity-body .info-pair span{flex:0 1 45%}.node-capacity-body .info-pair strong{min-width:0;flex:1;text-align:right;overflow-wrap:anywhere}.capacity-card-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:20px;gap:10px}.capacity-card-actions .btn{min-height:44px}.capacity-update-status{font-size:12px;line-height:1.6;color:#73737d;margin:15px 0 0;min-height:20px}.capacity-update-status.has-error{color:#963a31}.capacity-limit-note{font-size:13px;line-height:1.6;color:#88601f;background:#fff7e8;padding:12px 15px;border-radius:9px;margin:18px 0 0}.node-capacity-form .field small{line-height:1.6}.node-capacity-form .capacity-footnote{margin-top:0}.capacity-card-actions .btn:focus-visible,.node-capacity-section .btn:focus-visible{outline:3px solid #91bdf1;outline-offset:3px}.node-capacity-section .section-title{gap:15px;flex-wrap:wrap}.node-capacity-section .section-title h2{font-size:23px}
@media(max-width:760px){.capacity-usage-grid{grid-template-columns:minmax(0,1fr);gap:16px}.node-capacity-body{grid-template-columns:minmax(0,1fr);gap:0}.node-capacity-body .info-pairs{border-top:1px solid var(--line);padding-top:18px;margin-top:3px}.node-capacity-body .capacity-total{margin-bottom:17px}.capacity-percent{font-size:42px}.capacity-card-actions .btn{flex:1;white-space:normal}.capacity-usage-card h3{font-size:16px}.capacity-label{font-size:11px}.capacity-without-plan{max-width:none}}
@media(prefers-reduced-motion:reduce){.capacity-meter .progress-fill{transition:none}}

/* Prepaid periods extend the existing order flow; no auto-renew charge. */
.purchase-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 20px}.purchase-periods .btn{min-height:44px;font-variant-numeric:tabular-nums}.purchase-periods .btn.is-selected{background:#eaf3ff;color:#0066ce;box-shadow:inset 0 0 0 1px #a6c8f3}.purchase-summary{background:#f4f6fa;border-radius:13px;padding:20px;margin-top:20px;font-variant-numeric:tabular-nums}.purchase-summary .payment-amount{font-size:34px;margin:5px 0 19px}.purchase-summary .info-pair{align-items:flex-start;gap:15px}.purchase-summary .info-pair strong{text-align:right;min-width:0}.purchase-quota-note{font-size:13px;line-height:1.6;color:#61616b;margin:16px 0 0}.purchase-form .field{margin-bottom:0}.renewal-actions{margin-top:20px}.renewal-actions .btn{min-height:44px;width:100%}
@media(max-width:640px){.purchase-periods{gap:6px}.purchase-periods .btn{padding:10px 6px;font-size:13px}.purchase-summary{padding:18px}.purchase-summary .payment-amount{font-size:30px}.purchase-summary .info-pairs{font-size:12px}.purchase-form .dialog-actions .btn{flex:1;white-space:normal}}
.node-selection-policy{margin-bottom:20px}.node-policy-form .field{margin-bottom:16px}.node-policy-form>.muted{max-width:65ch;line-height:1.65;margin-bottom:0}.node-policy-form>.actions{margin-top:20px}.node-policy-form .btn{min-height:44px}.node-policy-ack{margin-top:18px;align-items:flex-start;line-height:1.6}.node-policy-ack input{flex-shrink:0;margin-top:5px}.node-policy-form [hidden]{display:none!important}.purchase-pending-help:not(:empty){margin-top:15px}
.quota-reset-control{margin-top:12px}.quota-reset-control>.btn{width:100%;min-height:44px}.quota-reset-control>.btn:disabled{cursor:default}.quota-reset-availability{font-size:12px;color:#73737d;line-height:1.6;margin:9px 0 0}.quota-reset-availability:empty{display:none}.quota-reset-form .purchase-summary{margin-top:0}.quota-reset-form .dialog-actions .btn{min-height:44px}.quota-reset-checkout-actions{margin-top:20px}.admin-plan-actions{gap:8px}.admin-plan-actions .btn{min-height:44px}.reset-price-form .check-field{align-items:flex-start;line-height:1.6}.reset-price-form .check-field input{flex-shrink:0;margin-top:5px}
@media(max-width:640px){.admin-plan-table{overflow:visible;background:transparent}.admin-plan-table table,.admin-plan-table tbody{display:block;width:100%;min-width:0!important}.admin-plan-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.admin-plan-table tbody{display:grid;gap:14px}.admin-plan-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:20px;background:white;border-radius:16px}.admin-plan-table td{border:0;padding:0;min-width:0;overflow-wrap:anywhere}.admin-plan-table td:first-child,.admin-plan-table td:last-child{grid-column:1/-1}.admin-plan-table td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.admin-plan-actions .btn{flex:1;white-space:normal}.quota-reset-form .dialog-actions .btn{flex:1;white-space:normal}}

/* Live Mbps uses its own hierarchy above monthly GB/TB transfer allowances. */
.bandwidth-section{margin:25px 0 28px}.bandwidth-section>.section-title{margin-bottom:18px}.bandwidth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bandwidth-card{min-width:0}.bandwidth-card h3{font-size:16px;margin:0;font-weight:600}.bandwidth-kicker{display:block;color:#73737d;font-size:12px;line-height:1.5;margin:21px 0 7px}.bandwidth-big{font-size:clamp(28px,3vw,40px);font-weight:650;letter-spacing:-.04em;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.bandwidth-limit{font-size:13px;color:#73737d;font-variant-numeric:tabular-nums;margin:7px 0 18px}.bandwidth-headroom{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.bandwidth-headroom>span{color:#61616b}.bandwidth-headroom>strong{font-weight:600;font-size:16px;text-align:right;font-variant-numeric:tabular-nums}.bandwidth-directions{font-size:13px;margin-top:18px;font-variant-numeric:tabular-nums}.bandwidth-poll-status{font-size:12px;line-height:1.65;color:#73737d;margin:14px 0 0}.bandwidth-poll-status.has-error{color:#963a31}.bandwidth-card.is-loading .bandwidth-big{color:#d6dce6}.monthly-usage-title{font-size:23px;margin:28px 0 0}.node-bandwidth-section{margin-bottom:40px}.node-bandwidth-section>.muted{max-width:65ch;line-height:1.65;margin:0 0 22px}.node-bandwidth-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.node-bandwidth-card{min-width:0}.node-bandwidth-card h3{font-size:18px;margin:0}.node-bandwidth-card .info-pair{align-items:flex-start;gap:13px}.node-bandwidth-card .info-pair strong{min-width:0;text-align:right;overflow-wrap:anywhere}.node-bandwidth-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-bottom:22px;font-variant-numeric:tabular-nums}.node-bandwidth-values strong{display:block;font-size:20px;line-height:1.35;font-weight:600;letter-spacing:-.02em}.node-bandwidth-section .section-title{gap:15px;flex-wrap:wrap}.node-bandwidth-section .btn{min-height:44px}.node-bandwidth-form .field small{line-height:1.65}
@media(max-width:760px){.bandwidth-grid,.node-bandwidth-list{grid-template-columns:minmax(0,1fr);gap:16px}.bandwidth-big{font-size:34px}.bandwidth-card .capacity-label{font-size:11px}.node-bandwidth-section{margin-bottom:32px}.bandwidth-section>.section-title h2,.node-bandwidth-section>.section-title h2{font-size:23px}.node-bandwidth-card .capacity-card-actions .btn{width:100%}}
.bandwidth-throughput-note{font-size:12px;line-height:1.6;color:#73737d;margin:12px 0 0}

/* Customer home starts with the usable plan and configuration. Operational
 * fleet metrics live in admin/nodes; personal live rate is an opt-in detail. */
.customer-dashboard{max-width:960px}.customer-dashboard>.page-head{margin-bottom:24px}.customer-dashboard>.page-head h1{font-size:32px}.customer-plan-card{padding:28px}.customer-plan-heading{gap:14px;align-items:flex-start}.customer-plan-kicker{font-size:12px;color:var(--muted);margin:0 0 5px}.customer-plan-heading h2{font-size:24px;margin:0;line-height:1.3}.customer-plan-heading>.badge{margin-top:3px;white-space:nowrap}.customer-plan-summary{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:25px 0 23px;font-variant-numeric:tabular-nums}.customer-quota-label{font-size:12px;color:var(--muted);margin:0 0 5px}.customer-quota-remaining{font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-.04em}.customer-plan-expiry{text-align:right;flex-shrink:0}.customer-plan-expiry span,.customer-plan-expiry strong{display:block}.customer-plan-expiry span{font-size:12px;color:var(--muted);margin-bottom:5px}.customer-plan-expiry strong{font-size:16px;font-weight:600}.customer-plan-actions{display:flex;gap:12px;align-items:stretch}.customer-plan-actions>.btn,.customer-plan-actions>.renewal-actions{flex:1;min-width:0}.customer-plan-actions .btn{width:100%;min-height:48px;font-size:14px}.customer-plan-actions .renewal-actions{margin:0}.customer-config-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:11px 0 0;max-width:60ch}.customer-quota-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.customer-quota-caption{font-size:12px;color:var(--muted);gap:12px;font-variant-numeric:tabular-nums;margin:0 0 11px}.customer-quota-caption .capacity-percent{margin:0;font-size:12px;line-height:1.5;font-weight:550;letter-spacing:0}.customer-quota-section .capacity-meter{margin:0 0 13px}.customer-reset-date{font-size:13px;line-height:1.6;margin:0}.customer-quota-section .capacity-footnote{margin:6px 0 0;font-size:12px}.customer-plan-details{margin-top:20px;border-top:1px solid var(--line);padding-top:4px}.customer-plan-details>summary,.device-management>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:13px;color:#0066cc}.customer-plan-details .info-pairs{font-size:13px;padding:10px 0 3px}.customer-plan-details .info-pair{gap:14px}.customer-plan-details strong{text-align:right}.customer-access-note{font-size:13px;line-height:1.6;color:#805f13;background:#fff6e5;border-radius:10px;padding:12px 15px;margin:0 0 20px}.customer-onboarding .empty{padding:15px 0}.customer-onboarding .empty strong{font-size:23px;font-weight:600;line-height:1.4;display:block}.customer-onboarding .empty p{max-width:45ch;margin:12px auto 23px}.customer-dashboard .section{margin-top:30px}.customer-dashboard .section-title{margin-bottom:16px}.customer-dashboard .section-title h2{font-size:22px}.customer-devices .device{display:block}.customer-devices .device>.row{align-items:flex-start}.customer-devices .device-config-action{margin-top:17px}.customer-devices .device-config-action>.btn{width:100%;min-height:44px;font-size:13px}.device-management{margin-top:10px}.device-management>summary{font-size:12px;color:var(--muted)}.device-management .actions{padding-top:10px}.device-management .btn{flex:1}.device-config-choices{display:grid;gap:12px}.device-config-choices .btn{justify-content:flex-start;text-align:left;min-height:66px;padding:15px 18px}.device-config-choices strong,.device-config-choices small{display:block}.device-config-choices small{font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}.personal-bandwidth-disclosure{border:1px solid var(--line);border-radius:16px;background:#fff;margin:28px 0 0}.personal-bandwidth-disclosure>summary{display:flex;justify-content:space-between;align-items:center;gap:15px;cursor:pointer;padding:18px 22px;min-height:64px;list-style:none;font-size:14px;font-weight:550}.personal-bandwidth-disclosure>summary::-webkit-details-marker{display:none}.personal-bandwidth-disclosure>summary::after{content:'+';font-size:21px;font-weight:400;color:var(--muted);flex-shrink:0}.personal-bandwidth-disclosure[open]>summary::after{content:'−'}.personal-bandwidth-disclosure>summary>small{font-size:12px;font-weight:400;color:var(--muted);margin-left:auto}.bandwidth-disclosure-body{border-top:1px solid var(--line);padding:0 22px 18px}.bandwidth-disclosure-body .bandwidth-card{padding:22px 0;border:0;box-shadow:none;border-radius:0}.personal-bandwidth-disclosure .bandwidth-grid,.admin-bandwidth-section .bandwidth-grid{grid-template-columns:minmax(0,1fr)}.admin-monthly-aggregate{margin-bottom:35px}.admin-monthly-aggregate .capacity-percent{font-size:34px}.customer-dashboard summary:focus-visible{outline:3px solid #91bdf1;outline-offset:4px;border-radius:8px}
@media(max-width:640px){.customer-dashboard>.page-head{margin-bottom:20px}.customer-dashboard>.page-head h1{font-size:27px}.customer-plan-card{padding:22px}.customer-plan-heading h2{font-size:22px}.customer-plan-heading>.badge{font-size:11px;padding:4px 7px}.customer-plan-summary{gap:15px;margin:23px 0 22px}.customer-quota-remaining{font-size:31px}.customer-plan-expiry strong{font-size:14px}.customer-plan-expiry span{font-size:11px}.customer-plan-actions{gap:9px}.customer-plan-actions .btn{font-size:13px;padding:11px 10px;min-height:46px}.customer-config-hint{font-size:12px}.customer-quota-section{margin-top:20px;padding-top:18px}.customer-plan-details{margin-top:16px}.customer-dashboard .section-title h2{font-size:21px}.customer-devices .device{padding:20px}.personal-bandwidth-disclosure>summary{padding:17px 20px;align-items:flex-start;flex-wrap:wrap;position:relative;padding-right:42px;gap:3px}.personal-bandwidth-disclosure>summary>span,.personal-bandwidth-disclosure>summary>small{width:100%;margin:0}.personal-bandwidth-disclosure>summary::after{position:absolute;right:20px;top:21px}.bandwidth-disclosure-body{padding:0 20px 18px}.customer-onboarding .empty strong{font-size:21px}.customer-plan-details .info-pairs{font-size:12px}.customer-plan-expiry{max-width:115px}.customer-quota-remaining{white-space:nowrap}}
.customer-device-count{font-size:12px;line-height:1.6;color:var(--muted);margin:-5px 0 16px;font-variant-numeric:tabular-nums}
.customer-devices .empty{padding:14px 0}
/* 2026-10-08 UI/UX pass for the account app; appended last to override.
   Same self-hosted Be Vietnam Pro as the public site (OFL; see
   fonts/OFL-be-vietnam-pro.txt), Latin + Vietnamese subsets only. */
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-vietnamese-400.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-vietnamese-600.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-vietnamese-700.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/be-vietnam-pro-latin-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root,body,button,input,select,textarea{font-family:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.price,.stat-value,.timer,.usage-text,td{font-variant-numeric:tabular-nums}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.btn:active{transform:translateY(1px)}
/* Compact support launcher (icon + short label) that no longer covers
   transfer details, device buttons or the bottom navigation. */
.support-launcher{right:max(16px,env(safe-area-inset-right))}
.support-launcher>summary{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px 0 14px;box-shadow:0 6px 20px rgba(29,29,31,.22)}
.support-icon{display:inline-block;width:20px;height:20px;flex-shrink:0;background:center/20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.9A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E")}
/* Device type as a picture instead of a three-letter code ("OTH"). */
.device-symbol{font-size:0;background-position:center;background-repeat:no-repeat;background-size:22px 22px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527395' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E")}
.device-symbol.platform-macos,.device-symbol.platform-windows,.device-symbol.platform-linux{background-size:24px 24px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527395' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='16' height='11' rx='1.8'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E")}
/* FAQ disclosure marker consistent with the public site. */
.faq summary{list-style:none;position:relative;padding-right:32px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:4px;top:-2px;font-size:20px;font-weight:400;color:#77777e}
.faq details[open] summary::after{content:"\2212"}
@media(max-width:640px){
  .support-launcher>summary{width:48px;padding:0;justify-content:center;border-radius:50%}
  .support-launcher .support-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .has-mobile-nav{padding-bottom:140px}
}
@media(prefers-reduced-motion:reduce){.btn:active{transform:none}}
.checkout-label-gap{margin-top:16px}
.checkout-amount{font-size:22px;font-weight:700;letter-spacing:-.01em;margin:4px 0 10px;font-variant-numeric:tabular-nums}
/* 2026-10-10 account redesign: the same language as the public cinematic
   site (floating glass header, pill buttons, night stages, hairline rings with
   soft lift). Appended last so it overrides earlier layers. Motion animates
   transform/opacity only; the global reduced-motion rule above switches it
   off. Photographs come from server-filled <template>s (app/media.py), so this
   file and app.js never hardcode media URLs. */
:root{--bg:#f5f5f7;--ink:#202124;--night:#070b16;--ease:cubic-bezier(.32,.72,0,1);--radius:24px;--ring:0 0 0 1px rgba(15,23,42,.07);--lift:0 1px 2px rgba(15,23,42,.04),0 24px 48px -32px rgba(15,23,42,.34);--arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}
@keyframes rise{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:none}}
@keyframes sheet{from{transform:translate3d(0,100%,0)}to{transform:none}}

/* Floating glass header, identical to the public site's. */
.header{position:sticky;top:10px;z-index:40;width:min(1152px,calc(100% - 32px));max-width:none;height:62px;margin:10px auto 0;padding:0 10px 0 20px;border:0;border-radius:999px;background:rgba(255,255,255,.76);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);box-shadow:0 0 0 1px rgba(15,23,42,.07),0 12px 30px -20px rgba(15,23,42,.4);transition:background-color .5s var(--ease),box-shadow .5s var(--ease)}
.header.is-scrolled{background:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(15,23,42,.08),0 18px 40px -22px rgba(15,23,42,.5)}
.header .brand{gap:9px;color:var(--ink);font-size:22px;font-weight:750;letter-spacing:-.05em}
.header .brand img{width:30px;height:30px;flex:0 0 30px}
.header nav{gap:24px}
.header nav a:not(.btn){display:inline-flex;align-items:center;min-height:44px;color:#45454b;font-size:14px;font-weight:550}
.header nav a:not(.btn):hover{color:#0066cc}
.header nav a.active:not(.btn){color:var(--ink);font-weight:650;box-shadow:inset 0 -2px 0 #0071e3}
.header nav .nav-button{min-height:42px!important;padding:10px 18px!important;border-radius:999px!important;font-size:14px!important}
.header nav .btn:not(.secondary),.header nav .btn:not(.secondary):hover{color:#fff}
.header nav .btn.secondary.nav-button{background:transparent;color:#45454b;box-shadow:inset 0 0 0 1px rgba(15,23,42,.14)}
.header nav .btn.secondary.nav-button:hover{background:rgba(15,23,42,.05);color:var(--ink)}
.scroll-sentinel{position:absolute;top:0;left:0;width:1px;height:24px;pointer-events:none}

/* Page frame aligned with the header pill. */
#main{max-width:1200px;margin:0 auto;padding:40px 24px 56px}
.footer{max-width:1152px;margin:72px auto 0;padding:28px 0 96px;border-top:1px solid #dedee5;align-items:center;flex-wrap:wrap;gap:12px 28px;font-size:13px}
.footer>a{color:#53535d}
.footer>a:hover{color:#0066cc}
#footer-brand{font-size:18px;font-weight:750;letter-spacing:-.05em}
@media(max-width:1200px){.footer{margin-left:24px;margin-right:24px}}
.admin-layout{max-width:1200px;padding:36px 24px 0}
.page-head{margin-bottom:28px}
.page-head h1{font-size:clamp(30px,3.4vw,42px);line-height:1.08;letter-spacing:-.04em;margin-bottom:10px}
.page-head p{font-size:15px}
.section-title h2{letter-spacing:-.03em}

/* Surfaces: hairline ring and soft lift instead of flat grey boxes. */
.card,.table-wrap,.error-panel,.personal-bandwidth-disclosure{border:0;border-radius:var(--radius);box-shadow:var(--ring),var(--lift)}
.note{border-radius:16px}
.notice{margin:18px 0 0;padding:16px 18px;border-radius:18px;background:#eef4fd;color:#33425a;font-size:13px;line-height:1.6}
.notice strong{display:block;margin-bottom:4px;color:#1f2b3d;font-size:14px}
.badge{padding:4px 11px}
.field input,.field select,.field textarea{border-radius:14px}
.copy-field input{border-radius:14px}
.qr-block img{border:0;border-radius:20px;box-shadow:var(--ring)}

/* Buttons: pills with a spring press; key actions carry the arrow circle. */
.btn{border-radius:999px;min-height:46px;padding:11px 20px;font-weight:600;transition:transform .5s var(--ease),background-color .3s var(--ease),color .3s var(--ease),box-shadow .5s var(--ease)}
.btn:hover{box-shadow:0 10px 24px -12px rgba(0,113,227,.6)}
.btn.secondary,.btn.secondary:hover{background:rgba(0,113,227,.08);border-color:transparent;color:#0062c4;box-shadow:none}
.btn.secondary:hover{background:rgba(0,113,227,.13)}
.btn.danger,.btn.danger:hover{box-shadow:none}
.btn.compact{min-height:38px;padding:8px 15px;border-radius:999px}
.btn:active{transform:scale(.98)}
.btn:disabled{transform:none;box-shadow:none}
.btn-cta{position:relative;min-height:50px;padding-left:24px;padding-right:58px}
.btn-cta.full{padding-left:58px}
.btn-cta::after{content:"";position:absolute;top:50%;right:6px;width:38px;height:38px;margin-top:-19px;border-radius:50%;background:rgba(255,255,255,.2) var(--arrow) center/16px no-repeat;transition:transform .6s var(--ease)}
.btn-cta:hover::after{transform:translate(3px,-1px) scale(1.05)}
.btn-cta:disabled::after{transform:none}

/* Account sign-in: a night photo stage beside the form, as on the home page. */
.auth-cinema{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:28px;align-items:stretch;max-width:1100px;margin:0 auto}
.auth-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:600px;padding:44px;overflow:hidden;border-radius:32px;background:var(--night);color:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.1),0 50px 90px -60px rgba(7,11,22,.85)}
.auth-media{position:absolute;inset:0;z-index:-2;display:block}
.auth-media img{width:100%;height:100%;object-fit:cover;object-position:50% 32%}
.auth-stage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(7,11,22,.05) 0%,rgba(7,11,22,.3) 38%,rgba(7,11,22,.86) 74%,rgba(7,11,22,.96) 100%)}
.auth-kicker{display:inline-flex;align-items:center;align-self:flex-start;gap:9px;margin:0 0 20px;padding:7px 14px 7px 12px;border-radius:999px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);color:rgba(255,255,255,.92);font-size:12px;font-weight:600;letter-spacing:.02em}
.auth-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#8ec5ff;box-shadow:0 0 0 4px rgba(142,197,255,.18)}
.auth-stage h1{max-width:460px;margin:0 0 14px;color:#fff;font-size:clamp(36px,4vw,52px);line-height:1.05;letter-spacing:-.04em}
.auth-lead{max-width:430px;margin:0;color:rgba(255,255,255,.82);font-size:17px;line-height:1.6}
.auth-lead strong{color:#fff}
.auth-points{display:grid;gap:10px;margin:26px 0 0;padding:0;list-style:none;color:rgba(255,255,255,.86);font-size:14px}
.auth-points li{display:flex;align-items:center;gap:11px}
.auth-points li::before{content:"";width:22px;height:22px;flex-shrink:0;border-radius:50%;background:rgba(142,197,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ec5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.auth-plan{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 16px;max-width:430px;margin-top:24px;padding:16px 20px;border-radius:20px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.auth-plan span{grid-column:1/-1;color:rgba(255,255,255,.7);font-size:12px;font-weight:600;letter-spacing:.02em}
.auth-plan strong{color:#fff;font-size:18px;letter-spacing:-.02em}
.auth-plan em{color:#a9d1ff;font-size:15px;font-style:normal;font-weight:650;white-space:nowrap}
.auth-plan small{grid-column:1/-1;color:rgba(255,255,255,.7);font-size:12.5px}
.auth-plan.is-loading strong{color:rgba(255,255,255,.72)}
.auth-plan.is-loading small{color:transparent}
.auth-panel{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:24px 4px 24px 12px}
.auth-panel .notice-space{margin:0 0 18px}
.auth-panel>.card,.auth-wrap.auth-cinema .card{margin:0;padding:32px;border-radius:28px}
.auth-panel .auth-foot{margin-top:20px}
.auth-panel .btn-cta.full{min-height:52px}
.auth-wrap.auth-cinema>.auth-panel>.inline-note{text-align:center}
@media(max-width:900px) and (min-width:761px){.auth-cinema{grid-template-columns:1fr 1fr;gap:20px}.auth-stage{padding:32px;min-height:560px}.auth-panel{padding:16px 0}}
@media(max-width:760px){
  .auth-cinema{display:block;max-width:none}
  .auth-stage{display:block;min-height:0;margin:0 -12px;padding:0;border-radius:28px}
  .auth-media{position:relative;inset:auto;z-index:0;aspect-ratio:2/1}
  .auth-stage.is-compact .auth-media{aspect-ratio:3/1}
  .auth-media::after{content:"";position:absolute;inset:auto 0 0;height:75%;background:linear-gradient(180deg,rgba(7,11,22,0) 0%,rgba(7,11,22,.75) 60%,var(--night) 100%)}
  .auth-stage::before{display:none}
  .auth-copy{position:relative;z-index:1;padding:28px 20px 56px}
  .auth-stage.has-photo .auth-copy{margin-top:-64px;padding-top:0}
  .auth-kicker{margin-bottom:12px;font-size:11.5px}
  .auth-stage h1{margin-bottom:8px;font-size:clamp(30px,8.4vw,36px)}
  .auth-lead{font-size:15px}
  .auth-points{display:none}
  .auth-plan{margin-top:16px;padding:13px 16px}
  .auth-panel{position:relative;z-index:2;margin-top:-34px;padding:0}
  .auth-panel>.card,.auth-wrap.auth-cinema .card{padding:24px 20px;border-radius:24px}
}

/* Dashboard: two columns on wide screens, the plan as a night card. */
.customer-dashboard{max-width:1152px}
.customer-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.customer-primary,.customer-secondary{min-width:0}
.customer-secondary>.section:first-child{margin-top:0}
.customer-dashboard .section{margin-top:40px}
.customer-dashboard .section-title h2{font-size:24px}
@media(max-width:1100px){.customer-dashboard{max-width:780px;margin:0 auto}.customer-layout{display:block}.customer-secondary>.section:first-child{margin-top:40px}}
.customer-plan-card,.customer-onboarding{position:relative;isolation:isolate;overflow:hidden;padding:30px 32px 24px;border-radius:30px;background:var(--night);color:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.1),0 44px 80px -50px rgba(7,11,22,.9)}
.customer-plan-card::before,.customer-onboarding::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(90% 120% at 100% 0%,rgba(59,130,246,.36) 0%,rgba(59,130,246,0) 58%),radial-gradient(70% 90% at 0% 100%,rgba(142,197,255,.13) 0%,rgba(142,197,255,0) 62%),linear-gradient(160deg,#0c1427 0%,#070b16 62%)}
.customer-plan-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:6px 12px 6px 10px;border-radius:999px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:rgba(255,255,255,.9);font-size:12px;font-weight:600;letter-spacing:.02em}
.customer-plan-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#8ec5ff;box-shadow:0 0 0 4px rgba(142,197,255,.18)}
.customer-plan-card:not(.is-active) .customer-plan-kicker::before{background:#ff9d94;box-shadow:0 0 0 4px rgba(255,157,148,.18)}
.customer-plan-heading h2{color:#fff;font-size:28px;letter-spacing:-.025em}
.customer-plan-card .badge.good{background:rgba(52,211,153,.14);color:#86efac;box-shadow:inset 0 0 0 1px rgba(52,211,153,.3)}
.customer-plan-card .badge.bad{background:rgba(248,113,113,.14);color:#fca5a5;box-shadow:inset 0 0 0 1px rgba(248,113,113,.3)}
.customer-plan-summary{align-items:flex-end;margin:26px 0 24px}
.customer-quota-label{color:rgba(255,255,255,.66);font-size:13px}
.customer-quota-remaining{font-size:clamp(40px,4.6vw,56px);font-weight:700;line-height:1.04;letter-spacing:-.045em}
.customer-plan-expiry{padding:12px 16px;border-radius:18px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);text-align:left}
.customer-plan-expiry span{color:rgba(255,255,255,.62)}
.customer-plan-expiry strong{color:#fff;font-size:17px}
.customer-access-note{background:rgba(255,196,77,.12);color:#ffd88a;box-shadow:inset 0 0 0 1px rgba(255,196,77,.26)}
.customer-plan-actions{gap:10px}
.customer-plan-actions>.btn{flex:1.35}
.customer-plan-card .btn:not(.secondary),.customer-onboarding .btn:not(.secondary){background:#fff;border-color:#fff;color:#0b1020}
.customer-plan-card .btn:not(.secondary):hover,.customer-onboarding .btn:not(.secondary):hover{background:#eef4ff;color:#0b1020;box-shadow:0 14px 34px -14px rgba(142,197,255,.75)}
.customer-plan-card .btn-cta::after,.customer-onboarding .btn-cta::after{background-color:#0b1020}
.customer-plan-card .btn.secondary{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.customer-plan-card .btn.secondary:hover{background:rgba(255,255,255,.17);color:#fff}
.customer-plan-card .btn:disabled{opacity:.4}
.customer-plan-card.is-expired .renewal-actions{order:-1}
.customer-config-hint{color:rgba(255,255,255,.62)}
.customer-quota-section{border-top-color:rgba(255,255,255,.12)}
.customer-quota-caption{color:rgba(255,255,255,.7);font-size:13px}
.customer-quota-caption .capacity-percent{color:#fff;font-size:13px}
.customer-plan-card .progress{height:8px;border-radius:999px;background:rgba(255,255,255,.12)}
.customer-plan-card .progress-fill{border-radius:999px;background:linear-gradient(90deg,#3b82f6,#8ec5ff);box-shadow:0 0 18px rgba(142,197,255,.45)}
.customer-plan-card .capacity-meter.is-full .progress-fill{background:linear-gradient(90deg,#f59e0b,#fcd34d);box-shadow:none}
.customer-reset-date{color:rgba(255,255,255,.84)}
.customer-plan-card .quota-reset-availability,.customer-plan-card .capacity-footnote{color:rgba(255,255,255,.58)}
.customer-plan-details{border-top-color:rgba(255,255,255,.12)}
.customer-plan-details>summary{color:#a9d1ff}
.customer-plan-details .info-pair span:first-child{color:rgba(255,255,255,.62)}
.customer-plan-details strong{color:#fff}
.customer-plan-card :focus-visible,.customer-onboarding :focus-visible{outline-color:#8ec5ff}
.customer-onboarding .empty{padding:18px 0 10px;color:rgba(255,255,255,.74);text-align:left}
.customer-onboarding .empty strong{color:#fff;font-size:clamp(24px,3vw,30px);letter-spacing:-.03em}
.customer-onboarding .empty p{margin:12px 0 24px}
.customer-devices .device-list{grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
.customer-devices .device{padding:22px 22px 18px}
.device-symbol{width:46px;height:46px;border-radius:14px;background-color:#eef3fb}
.device-title{flex-wrap:wrap;gap:6px 10px}
.device-title h3{font-size:17px}
.help-row.has-photo{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:14px;min-height:240px;padding:24px;overflow:hidden;border:0;border-radius:26px;background:var(--night);color:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.08),0 30px 50px -36px rgba(7,11,22,.65)}
.help-media{position:absolute;inset:0;z-index:-2;display:block}
.help-media img{width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.help-row.has-photo::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(7,11,22,.3) 0%,rgba(7,11,22,.74) 42%,rgba(7,11,22,.95) 100%)}
.help-row.has-photo h3{color:#fff;font-size:21px;letter-spacing:-.02em}
.help-row.has-photo p{color:#fff}
.help-row.has-photo .btn.secondary{background:#fff;color:#0b1020}
.help-row.has-photo .btn.secondary:hover{background:#eef4ff}
@media(min-width:1101px){
  .customer-secondary .user-orders{overflow:visible;background:transparent;box-shadow:none;border-radius:0}
  .customer-secondary .user-orders table,.customer-secondary .user-orders tbody{display:block;width:100%}
  .customer-secondary .user-orders thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .customer-secondary .user-orders tbody{display:grid;gap:12px}
  .customer-secondary .user-orders tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;padding:18px 20px;background:#fff;border-radius:20px;box-shadow:var(--ring),var(--lift)}
  .customer-secondary .user-orders td{border:0;padding:0;font-size:14px;min-width:0}
  .customer-secondary .user-orders td:first-child{grid-column:1/-1;display:flex;flex-direction:column;gap:2px;padding-bottom:10px}
  .customer-secondary .user-orders td:first-child .muted{font-size:12px}
  .customer-secondary .user-orders td:nth-child(2){grid-column:1;grid-row:2;padding-bottom:10px;font-weight:550;overflow-wrap:anywhere}
  .customer-secondary .user-orders td:nth-child(3){grid-column:2;grid-row:2;padding-bottom:10px;font-weight:600;white-space:nowrap;text-align:right}
  .customer-secondary .user-orders td:nth-child(4){grid-column:1;grid-row:3;align-self:center}
  .customer-secondary .user-orders td:last-child{grid-column:2;grid-row:3;text-align:right}
  .customer-secondary .help-row:not(.has-photo){flex-direction:column;align-items:flex-start;gap:14px}
}

/* Plans: the public catalogue's card, featured second plan included. */
.plans-grid{gap:20px}
.plan{padding:30px 28px 26px;border-radius:26px;transition:transform .6s var(--ease),box-shadow .6s var(--ease)}
.plan:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(15,23,42,.08),0 34px 60px -34px rgba(15,23,42,.42)}
.plan.plan-featured{box-shadow:0 0 0 2px #0071e3,var(--lift)}
.plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.plan-heading .plan-name{margin:0;font-size:19px;font-weight:650;letter-spacing:-.02em}
.plan-duration{padding:4px 11px;border-radius:999px;background:#eef3fb;color:#3b4b63;font-size:12px;font-weight:600;white-space:nowrap}
.plan-featured .plan-duration{background:#0071e3;color:#fff}
.plan .price{font-size:40px;line-height:1.1}
.plan-period{margin:6px 0 0;color:var(--muted);font-size:13px}
.plan .btn{margin-top:auto}
.plan-list strong{white-space:nowrap}

/* Orders, checkout, account and guide. */
.checkout-grid{gap:24px}
.payment-status{border-radius:18px}
.checkout-code{font-size:22px}
@media(min-width:1000px){.account-summary{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:24px 28px;align-items:start;max-width:1152px}.account-summary>.page-head,.account-summary>.notice-space{grid-column:1/-1;margin-bottom:4px}.account-summary>.card:not(.section){grid-row:span 2}.account-summary>.section{margin-top:0}}
.account-profile{display:flex;align-items:center;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.account-avatar{display:flex;align-items:center;justify-content:center;width:56px;height:56px;flex-shrink:0;border-radius:50%;background:var(--night) radial-gradient(80% 80% at 70% 20%,rgba(59,130,246,.55),rgba(59,130,246,0) 70%);color:#fff;font-size:22px;font-weight:700}
.account-profile>div{min-width:0}
.account-profile>div>strong,.account-profile>div>span{display:block}
.account-profile>div>strong{font-size:18px;letter-spacing:-.02em}
.account-profile>div>span{color:var(--muted);font-size:14px}
.segmented{padding:5px;border-radius:999px;background:#e8e8ee}
.segmented button{border-radius:999px;transition:background-color .3s var(--ease),color .3s var(--ease)}
.guide-number{border-radius:50%;background:var(--night);color:#fff}
.hiddify-guide{border-radius:26px}
.faq details{padding:20px 0}
.faq summary{font-size:15px}

/* Dialogs: rounded panel; a bottom sheet on phones. */
dialog{border-radius:28px;box-shadow:0 0 0 1px rgba(15,23,42,.06),0 40px 90px -30px rgba(7,11,22,.45)}
dialog::backdrop{background:rgba(7,11,22,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
dialog[open]{animation:rise .45s var(--ease)}
.icon-button{transition:background-color .3s var(--ease)}
.icon-button:hover{background:#e6e6ee}
#toasts .toast{border-radius:18px;background:rgba(17,20,28,.94);box-shadow:0 18px 40px -18px rgba(7,11,22,.6)}

/* Reveal: page sections rise in once per navigation. */
.reveal{animation:none}
.reveal>*,.customer-layout>*>*{animation:rise .7s var(--ease) both}
.reveal>:nth-child(2),.customer-layout>*>:nth-child(2){animation-delay:.06s}
.reveal>:nth-child(3),.customer-layout>*>:nth-child(3){animation-delay:.12s}
.reveal>:nth-child(n+4),.customer-layout>*>:nth-child(n+4){animation-delay:.18s}

@media(max-width:900px){#main{padding:32px 24px 48px}}
@media(max-width:640px){
  .header{top:8px;width:calc(100% - 16px);height:58px;min-height:0;margin-top:8px;padding:0 8px 0 14px;border-radius:22px;flex-wrap:nowrap;align-items:center;gap:10px}
  .header .brand{font-size:20px}
  .header .brand img{width:28px;height:28px;flex-basis:28px}
  .header nav{gap:14px;flex-wrap:nowrap}
  .header nav a:not(.btn){font-size:13px}
  .header nav .nav-button{min-height:44px!important;padding:10px 14px!important;font-size:13px!important}
  .btn.compact{min-height:44px}
  #modal-close{width:44px;height:44px}
  .header nav a.nav-hide-mobile{display:none}
  .header:has(~ #app-shell.admin-layout) .brand span{display:none}
  #main{padding:24px 20px 40px}
  .footer{margin:48px 20px 0;padding-bottom:28px}
  .page-head h1{font-size:30px}
  .card{border-radius:22px}
  .customer-plan-card,.customer-onboarding{margin:0 -12px;padding:24px 22px 20px;border-radius:28px}
  .customer-plan-heading h2{font-size:24px}
  .customer-plan-summary{flex-wrap:wrap;align-items:flex-end;gap:14px;margin:22px 0 20px}
  .customer-quota-remaining{font-size:clamp(36px,11vw,44px)}
  .customer-plan-actions{flex-direction:column}
  .customer-plan-actions .btn{min-height:50px;font-size:14px}
  .customer-devices .device-list{grid-template-columns:minmax(0,1fr)}
  .user-orders,.admin-customer-table,.admin-order-table,.admin-payment-table,.admin-plan-table{box-shadow:none;border-radius:0}
  .user-orders tr{border-radius:20px;box-shadow:var(--ring),var(--lift)}
  .help-row.has-photo{min-height:220px}
  .plan .price{font-size:36px}
  .mobile-nav{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));gap:4px;padding:6px;border:0;border-radius:24px;background:rgba(255,255,255,.84);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);box-shadow:0 0 0 1px rgba(15,23,42,.08),0 18px 40px -18px rgba(15,23,42,.45)}
  .mobile-nav a{flex-direction:column;gap:3px;min-height:52px;padding:6px 4px;border-radius:18px;font-size:11px;font-weight:600;transition:background-color .3s var(--ease),color .3s var(--ease)}
  .mobile-nav a::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--icon) center/22px no-repeat;mask:var(--icon) center/22px no-repeat}
  .mobile-nav a.active{background:rgba(0,113,227,.1);color:#0062c4}
  .mobile-nav a[href="#/dashboard"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V19a1 1 0 0 1-1 1h-4.5v-5.5h-5V20H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E")}
  .mobile-nav a[href="#/plans"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-1 11.5h-11z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E")}
  .mobile-nav a[href="#/orders"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8.5h6M9 12.5h6'/%3E%3C/svg%3E")}
  .mobile-nav a[href="#/account"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20c.9-3.5 3.6-5.5 7-5.5s6.1 2 7 5.5'/%3E%3C/svg%3E")}
  .has-mobile-nav .support-launcher{bottom:calc(84px + env(safe-area-inset-bottom))}
  .has-mobile-nav #toasts{bottom:calc(90px + env(safe-area-inset-bottom))}
  dialog{width:100%;max-width:100%;max-height:calc(100dvh - 24px);margin:auto 0 0;padding:26px 22px max(24px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0}
  dialog[open]{animation:sheet .5s var(--ease)}
  #modal .dialog-actions{flex-direction:column-reverse;align-items:stretch;gap:10px}
  #modal .dialog-actions .btn{flex:none;width:100%;white-space:normal}
}
/* The phone tab bar exists only up to 640px; an older rule lifted the support
   launcher up to 768px, where it covered the footer buttons. */
@media(min-width:641px){.has-mobile-nav .support-launcher{bottom:20px}}
@media(max-width:359px){.header .brand span{display:none}.btn-cta.full{padding-left:18px;padding-right:48px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.btn:active,.plan:hover,.btn-cta:hover::after{transform:none}.btn-cta::after{transition:none}}
/* Paid micro-trial (2026-10-11): a secondary offer inside the night onboarding
   card, trial lines on the plan card, the deduction line at checkout and the
   admin page. All wording comes from the API copy; no inline styles. */
.trial-offer{margin-top:22px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.78);font-size:14px;line-height:1.65}
.trial-offer h3{margin:0 0 8px;color:#fff;font-size:19px;letter-spacing:-.02em}
.trial-offer p{margin:0 0 12px;max-width:62ch}
.trial-offer .trial-offer-note{color:rgba(255,255,255,.62);font-size:12.5px}
.trial-offer>.btn{margin-top:4px}
.customer-onboarding .btn.secondary{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.customer-onboarding .btn.secondary:hover{background:rgba(255,255,255,.17);color:#fff}
.trial-credit-line{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:rgba(142,197,255,.1);box-shadow:inset 0 0 0 1px rgba(142,197,255,.22);color:#cfe5ff;font-size:13px;line-height:1.6}
.trial-price-line{margin:6px 0 0;color:#23753f;font-size:13px;font-weight:550;line-height:1.6;font-variant-numeric:tabular-nums}
.purchase-summary .trial-price-line{margin:-12px 0 16px}
.trial-settings-head{gap:12px;margin-bottom:18px}
.trial-settings-head h3{margin:0}
.trial-plan-summary{margin:0 0 18px}
.trial-create-plan{margin:0 0 20px}
.trial-switch{align-items:flex-start;line-height:1.6;margin:4px 0 22px}
.trial-switch input[role=switch]{-webkit-appearance:none;appearance:none;flex-shrink:0;width:46px;height:28px;margin:0;border-radius:999px;background:radial-gradient(circle at 14px 50%,#fff 10px,transparent 11px),#8e93a0;cursor:pointer;transition:background-color .3s var(--ease)}
.trial-switch input[role=switch]:focus-visible{outline:2px solid #0071e3;outline-offset:3px}
.trial-switch input[role=switch]:checked{background:radial-gradient(circle at 32px 50%,#fff 10px,transparent 11px),#0071e3}
.trial-switch small,.trial-check small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.trial-check{align-items:flex-start;line-height:1.6}
.trial-check input{flex-shrink:0;margin-top:4px}
.admin-trials .section-title{gap:12px;flex-wrap:wrap}
.trial-flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.admin-trial-table td .badge+.muted{margin-top:6px}
.admin-trial-table td:first-child{min-width:200px;overflow-wrap:normal}
.admin-trial-table td.trial-email strong{overflow-wrap:anywhere}
.admin-trial-table td:last-child{white-space:nowrap}
@media(min-width:641px){.admin-trial-table td.trial-times{white-space:nowrap}}
.admin-trial-table td:last-child .btn{white-space:nowrap}
.admin-trial-summary{margin-top:18px;padding:20px;border-radius:14px;background:#f3f5f9}
.admin-trial-summary h3{margin:0}
.admin-trial-summary .info-pairs{margin-top:14px;font-size:13px}
.admin-trial-summary .info-pair strong{overflow-wrap:anywhere;text-align:right}
.admin-trial-summary .actions{margin-top:16px}
.admin-layout .trial-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){
  .admin-layout .trial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .trial-offer>.btn{width:100%;white-space:normal}
  .trial-offer .support-links .btn{flex:1}
  .admin-layout .trial-kpis .stat{padding:16px 12px}
  .admin-trials .section-title .btn{min-height:44px}
  .admin-trial-table{overflow:visible;background:transparent;box-shadow:none;border-radius:0}
  .admin-trial-table table,.admin-trial-table tbody{display:block;width:100%}
  .admin-trial-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .admin-trial-table tbody{display:grid;gap:14px}
  .admin-trial-table tr{display:grid;gap:12px;padding:20px;background:#fff;border-radius:20px;box-shadow:var(--ring),var(--lift)}
  .admin-trial-table td{border:0;padding:0;min-width:0;overflow-wrap:anywhere;font-size:14px}
  .admin-trial-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--muted);font-size:11px}
  .admin-trial-table td:last-child:empty{display:none}
  .admin-trial-table td:last-child .btn{width:100%}
  .admin-trial-summary{padding:18px}
  .admin-trial-summary .actions .btn{width:100%}
}
/* Trial v2 (2026-10-11): landing page #/dung-thu, invitations, auth carry-through and
   admin trial tools. Reuses the night .customer-onboarding look and existing tokens. */
.trial-landing{max-width:960px;margin:0 auto;display:grid;gap:44px}
.trial-hero{padding:46px 44px 40px}
.trial-hero h1{margin:0 0 14px;text-wrap:balance;color:#fff;font-size:clamp(30px,5vw,48px);font-weight:700;line-height:1.08;letter-spacing:-.04em}
.trial-hero .customer-plan-kicker{margin-bottom:18px}
.trial-lead{margin:0 0 28px;max-width:56ch;color:rgba(255,255,255,.78);font-size:clamp(15px,1.6vw,17px);line-height:1.65}
.trial-pricing{margin:0 0 28px}
.trial-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:0 0 12px}
.trial-price-amount{font-size:clamp(46px,9vw,76px);font-weight:700;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.trial-price-note{color:rgba(255,255,255,.7);font-size:14px}
.trial-price-badge{display:inline-block;margin:0;padding:7px 14px;border-radius:999px;background:rgba(142,197,255,.14);box-shadow:inset 0 0 0 1px rgba(142,197,255,.3);color:#cfe5ff;font-size:13px;font-weight:600;line-height:1.5}
.trial-cta{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.trial-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}
.trial-hero .btn-cta,.trial-band .btn-cta{min-height:56px;font-size:16px}
.trial-cta-note{margin:0;max-width:56ch;color:rgba(255,255,255,.84);font-size:14px;line-height:1.6}
.trial-cta .note{max-width:56ch;border:0;background:rgba(255,196,77,.12);color:#ffd88a;box-shadow:inset 0 0 0 1px rgba(255,196,77,.26)}
.trial-text-link{display:inline-flex;align-items:center;min-height:44px;color:#cfe5ff;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.trial-text-link:hover{color:#fff}
.trial-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;padding:0;overflow:hidden;background:var(--line)}
.trial-specs>div{padding:18px 24px;background:var(--surface)}
.trial-specs>div:last-child:nth-child(odd){grid-column:1/-1}
.trial-specs dt{margin:0 0 4px;color:var(--muted);font-size:12px;font-weight:600}
.trial-specs dd{margin:0;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em}
.trial-section .section-title{margin-bottom:18px}
.trial-section .section-title h2{margin:0;font-size:clamp(22px,3vw,28px);letter-spacing:-.03em}
.trial-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.trial-benefits article{padding:24px}
.trial-benefits h3{margin:0 0 8px;font-size:17px;letter-spacing:-.02em}
.trial-benefits p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.trial-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.trial-checks li{padding:22px}
.trial-checks li::before{content:"\2713";display:grid;place-items:center;width:30px;height:30px;margin-bottom:12px;border-radius:50%;background:#e6f4ea;color:#1a7f37;font-size:15px;font-weight:700}
.trial-checks h3{margin:0 0 6px;font-size:16px;letter-spacing:-.02em}
.trial-checks p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.payment-reassure{display:grid;gap:8px;margin:0 0 18px;padding:0;list-style:none;color:var(--muted);font-size:13px;line-height:1.6}
.payment-reassure li{position:relative;padding-left:22px}
.payment-reassure li::before{content:"\2713";position:absolute;left:2px;top:0;color:#1a7f37;font-weight:700}
@media(max-width:900px) and (min-width:641px){.trial-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
.trial-steps{display:grid;gap:14px;margin:0 0 22px;padding:0;list-style:none;counter-reset:trial-step}
.trial-steps li{position:relative;min-height:36px;padding:5px 0 5px 52px;font-size:15px;line-height:1.65;counter-increment:trial-step}
.trial-steps li::before{content:counter(trial-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:#fff;font-size:14px;font-weight:700}
.trial-rules{margin:0;padding-left:20px;color:var(--muted);font-size:14px;line-height:1.7}
.trial-rules li+li{margin-top:8px}
.trial-notes{display:grid;gap:12px}
.trial-notes .inline-note{margin:0}
.trial-faq.faq{margin-top:0}
.trial-band{padding:44px;text-align:left}
.trial-band h2{margin:0 0 10px;color:#fff;font-size:clamp(24px,4vw,34px);letter-spacing:-.035em}
.trial-band p{margin:0 0 24px;max-width:56ch;color:rgba(255,255,255,.78);font-size:16px;line-height:1.65}
.trial-sticky{display:none}
.trial-sticky :focus-visible{outline:2px solid #fff;outline-offset:3px}
.trial-teaser{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 0;padding:22px 26px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--ring),var(--lift)}
.trial-teaser h3{margin:0 0 6px;font-size:18px;letter-spacing:-.02em}
.trial-teaser p{margin:0;max-width:60ch;color:var(--muted);font-size:14px;line-height:1.6}
.trial-teaser>.btn{flex-shrink:0}
.trial-plan-fixed{margin:0 0 6px;color:var(--muted);font-size:13px}
.trial-share-row{display:flex;align-items:stretch;gap:8px}
.trial-share-row .copy-field{flex:1;min-width:0}
.trial-share-row .copy-field input{font-size:13px}
.trial-toolbar{display:grid;grid-template-columns:minmax(220px,320px) 1fr;align-items:end;gap:12px 20px;margin:0 0 6px}
.trial-toolbar .field{margin:0}
.trial-filters{display:flex;flex-wrap:wrap;gap:8px}
.trial-chip.is-selected{background:#eaf3ff;color:#0058b0;box-shadow:inset 0 0 0 1px #8ec5ff}
.trial-result-count{margin:6px 0 12px;color:var(--muted);font-size:12.5px}
.trial-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:120px}
.admin-layout .trial-kpis .stat{border:0;border-top:1px solid var(--line);border-right:1px solid var(--line)}
.admin-layout .trial-kpis .stat:nth-child(3n),.admin-layout .trial-kpis .stat:last-child{border-right:0}
.admin-layout .trial-kpis .stat:nth-child(-n+3){border-top:0}
@media(max-width:900px){
  .admin-layout .trial-kpis .stat:nth-child(n){border-top:1px solid var(--line);border-right:1px solid var(--line)}
  .admin-layout .trial-kpis .stat:nth-child(2n),.admin-layout .trial-kpis .stat:last-child{border-right:0}
  .admin-layout .trial-kpis .stat:nth-child(-n+2){border-top:0}
}
@media(max-width:640px){
  .trial-landing{gap:32px}
  .trial-hero,.trial-band{padding:28px 22px 26px}
  .trial-hero .trial-cta,.trial-band .trial-cta{align-items:stretch;width:100%}
  .trial-hero .btn-cta,.trial-band .btn-cta{width:100%;justify-content:center;white-space:normal}
  .trial-cta-actions{flex-direction:column;align-items:stretch;gap:4px}
  .trial-text-link{justify-content:center}
  .trial-specs,.trial-benefits{grid-template-columns:1fr}
  .trial-checks{grid-template-columns:1fr}
  .trial-specs>div{padding:16px 20px}
  .trial-teaser{flex-direction:column;align-items:stretch;padding:20px}
  .trial-teaser>.btn{width:100%}
  .trial-toolbar{grid-template-columns:1fr}
  .trial-filters .btn{flex:1 1 auto}
  .trial-share-row{flex-direction:column}
  .trial-share-row>.btn{width:100%}
  .trial-landing{padding-bottom:12px}
  .trial-sticky{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:35;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 12px 12px;border-radius:24px;background:rgba(7,11,22,.96);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 18px 40px -14px rgba(7,11,22,.7);transform:translateY(160%);visibility:hidden;transition:transform .35s var(--ease),visibility 0s linear .35s}
  .trial-sticky.is-visible{transform:none;visibility:visible;transition:transform .35s var(--ease),visibility 0s}
  .has-mobile-nav .trial-sticky{bottom:calc(84px + env(safe-area-inset-bottom))}
  .trial-sticky-label{padding:0 6px;font-size:14px;font-weight:600;line-height:1.35;text-align:center}
  .trial-sticky .btn{width:100%;min-height:48px;justify-content:center;white-space:normal}
  .has-trial-sticky .support-launcher{display:none}
}
@media(prefers-reduced-motion:reduce){.trial-sticky,.trial-sticky.is-visible{transition:none}}
/* Plan badge on the account's plan cards (2026-10-12). */
.plan{position:relative}.plan-badge{position:absolute;top:-12px;left:22px;padding:4px 11px;border-radius:999px;background:var(--ink);color:#fff;font-size:12px;font-weight:650;white-space:nowrap}
/* Device setup wizard (owner review 2026-10-21, "a five-year-old can follow it"): three steps,
 * one picture and one big button each; link, QR and settings fold away. */
.setup-wizard{display:grid;gap:18px}
.setup-wizard>.note{margin:0}
.setup-banner{padding:16px 18px;border-radius:18px;background:#eefaf1;box-shadow:inset 0 0 0 1px rgba(27,106,53,.14)}
.setup-banner strong{display:block;font-size:15px;color:#1b6a35}
.setup-banner p{margin:6px 0 0;font-size:13px;line-height:1.6;color:#33503b}
.setup-progress{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.setup-progress li{position:relative;min-width:0}
.setup-progress li+li::before{content:"";position:absolute;top:20px;right:calc(50% + 21px);width:calc(100% - 36px);height:2px;border-radius:2px;background:#e3e7ee;transition:background-color .4s var(--ease)}
.setup-progress li.is-done+li::before{background:#9ed2ad}
.setup-chip{width:100%;min-height:58px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 2px;border:0;border-radius:16px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;line-height:1.2;transition:color .3s var(--ease),background-color .3s var(--ease)}
.setup-chip:hover{background:rgba(0,113,227,.06)}
.setup-chip:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,113,227,.32)}
.setup-dot{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9edf3;color:#4a5361;font-size:13px;font-weight:700;transition:background-color .3s var(--ease),box-shadow .3s var(--ease)}
.setup-chip[aria-current=step]{color:var(--ink)}
.setup-chip[aria-current=step] .setup-dot{background:#0071e3;color:#fff;box-shadow:0 0 0 5px rgba(0,113,227,.14)}
.setup-chip.is-done{color:#1b6a35}
.setup-chip.is-done .setup-dot{background:#e2f4e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.5 12.5l4 4 9-9' stroke='%231b6a35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;color:transparent}
.setup-panel{display:flex;flex-direction:column;text-align:center;animation:rise .45s var(--ease)}
.setup-panel[hidden]{display:none}
.setup-art{width:160px;height:120px;margin:0 auto 6px;background:center/contain no-repeat}
.setup-art.art-download{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' fill='none'%3E%3Ccircle cx='80' cy='62' r='50' fill='%23eaf2fe'/%3E%3Ccircle cx='128' cy='22' r='5' fill='%23cfe2fb'/%3E%3Ccircle cx='30' cy='94' r='4' fill='%23cfe2fb'/%3E%3Crect x='55' y='12' width='50' height='96' rx='12' fill='%23fff' stroke='%230b1b33' stroke-width='3'/%3E%3Cpath d='M73 20h14' stroke='%230b1b33' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='58' r='19' fill='%230071e3'/%3E%3Cpath d='M80 47v18M72.5 58.5L80 66l7.5-7.5' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M68 92h24' stroke='%23d5e3f6' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")}
.setup-art.art-add{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' fill='none'%3E%3Ccircle cx='80' cy='62' r='50' fill='%23eaf2fe'/%3E%3Ccircle cx='32' cy='28' r='5' fill='%23cfe2fb'/%3E%3Ccircle cx='134' cy='90' r='4' fill='%23cfe2fb'/%3E%3Crect x='55' y='12' width='50' height='96' rx='12' fill='%23fff' stroke='%230b1b33' stroke-width='3'/%3E%3Cpath d='M73 20h14' stroke='%230b1b33' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='63' y='40' width='34' height='16' rx='5' fill='%23dcebfd'/%3E%3Crect x='63' y='62' width='34' height='16' rx='5' fill='%230071e3'/%3E%3Cpath d='M69 70h14' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='106' cy='34' r='15' fill='%230071e3' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M106 27.5v13M99.5 34h13' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E")}
.setup-art.art-power{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' fill='none'%3E%3Ccircle cx='80' cy='60' r='50' fill='%23eaf2fe'/%3E%3Ccircle cx='80' cy='60' r='36' fill='%23d3e6fd'/%3E%3Ccircle cx='80' cy='60' r='26' fill='%230071e3'/%3E%3Cpath d='M80 45v14' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M71.2 52.7A12.5 12.5 0 1 0 88.8 52.7' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M121 31l4-4M127 44h5M39 31l-4-4M33 44h-5' stroke='%237fb4f2' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")}
.setup-art.art-download.is-computer{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' fill='none'%3E%3Ccircle cx='80' cy='62' r='50' fill='%23eaf2fe'/%3E%3Ccircle cx='134' cy='20' r='5' fill='%23cfe2fb'/%3E%3Ccircle cx='24' cy='40' r='4' fill='%23cfe2fb'/%3E%3Crect x='33' y='24' width='94' height='62' rx='8' fill='%23fff' stroke='%230b1b33' stroke-width='3'/%3E%3Cpath d='M20 94h120' stroke='%230b1b33' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M70 94h20' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='55' r='17' fill='%230071e3'/%3E%3Cpath d='M80 45v16M73.5 55.5L80 62l6.5-6.5' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.setup-art.art-add.is-computer{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' fill='none'%3E%3Ccircle cx='80' cy='62' r='50' fill='%23eaf2fe'/%3E%3Ccircle cx='26' cy='28' r='5' fill='%23cfe2fb'/%3E%3Ccircle cx='138' cy='104' r='4' fill='%23cfe2fb'/%3E%3Crect x='33' y='24' width='94' height='62' rx='8' fill='%23fff' stroke='%230b1b33' stroke-width='3'/%3E%3Cpath d='M20 94h120' stroke='%230b1b33' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M70 94h20' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='45' y='38' width='56' height='14' rx='5' fill='%23dcebfd'/%3E%3Crect x='45' y='58' width='56' height='14' rx='5' fill='%230071e3'/%3E%3Cpath d='M51 65h20' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='126' cy='28' r='15' fill='%230071e3' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M126 21.5v13M119.5 28h13' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E")}
.setup-count{margin:0;font-size:12px;font-weight:650;letter-spacing:.02em;color:#0062c4}
.setup-panel h3{margin:4px 0 0;font-size:22px;font-weight:650;line-height:1.25;letter-spacing:-.015em;text-wrap:balance}
.setup-panel h3:focus{outline:none}
.setup-lead{margin:8px auto 0;max-width:36ch;font-size:15px;line-height:1.55;color:#3d4450;text-wrap:pretty}
.setup-buttons{display:grid;gap:10px;width:100%;max-width:420px;margin:20px auto 0}
.setup-wizard .setup-go{width:100%;min-height:54px;padding-left:20px;padding-right:20px;font-size:16px;white-space:normal}
.setup-wizard .btn.setup-ghost,.setup-wizard .btn.setup-ghost:hover{background:transparent;border-color:transparent;color:#0062c4;box-shadow:none}
.setup-wizard .btn.setup-ghost:hover{background:rgba(0,113,227,.07)}
.setup-small{margin:14px auto 0;max-width:48ch;font-size:13px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.setup-wizard .text-link{color:#0062c4;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.setup-hint{margin:0;padding:11px 14px;border-radius:14px;background:#fff6df;color:#805f13;font-size:13px;line-height:1.5}
.setup-hint[hidden]{display:none}
.setup-wizard .qr-block{padding:18px 0 0}
.setup-wizard .qr-block img{width:min(100%,232px);height:auto;aspect-ratio:1;padding:12px}
.setup-wizard .qr-block p{margin:10px 0 0;font-size:13px}
.setup-wizard .config-link{margin:16px 0 0;text-align:left}
.setup-wizard .config-link .setup-small{margin:0 0 10px;max-width:none}
.setup-alt{margin-top:16px;border-radius:18px;background:#f4f6fa;text-align:left}
.setup-alt>summary,.setup-extras>summary{list-style:none;cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;font-size:14px;font-weight:600;color:#0062c4;text-align:center}
.setup-alt>summary::-webkit-details-marker,.setup-extras>summary::-webkit-details-marker{display:none}
.setup-alt>summary::after,.setup-extras>summary::after{content:"";flex:none;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .3s var(--ease)}
.setup-alt[open]>summary::after,.setup-extras[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.setup-alt[open]{padding:0 16px 18px}
.setup-alt[open]>summary{margin:0 -16px}
.setup-alt>.setup-small{margin-top:0}
.setup-alt>.btn{width:100%;margin-top:10px}
.setup-tips{list-style:none;counter-reset:tip;margin:18px 0 0;padding:0;display:grid;gap:8px;text-align:left}
.setup-tips li{counter-increment:tip;display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:#f4f6fa;font-size:15px;line-height:1.4}
.setup-tips li::before{content:counter(tip);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--night);color:#fff;font-size:14px;font-weight:700}
.setup-wizard .server-choice{margin-top:16px;padding:18px;border-radius:20px;background:#eefaf1;box-shadow:inset 0 0 0 1px rgba(27,106,53,.12);text-align:left}
.setup-wizard .server-choice h4{margin:0;font-size:16px;font-weight:650;color:#1b4d2b}
.setup-wizard .server-choice p{margin:6px 0 0;font-size:13px;line-height:1.6;color:#3a4a3f}
.setup-wizard .server-choice .btn{margin-top:12px;background:#fff;color:#1b6a35}
.setup-wizard .server-choice .btn:hover{background:#f6fcf7;color:#1b6a35}
.setup-wizard .server-state{font-size:12px}
.setup-extras{border-top:1px solid var(--line)}
.setup-extras[open]{padding-bottom:6px}
.connect-config .setup-more{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.setup-extras>.setup-more:first-of-type{margin-top:0}
.connect-config .setup-more>summary{cursor:pointer;min-height:30px;font-size:14px;color:#0066cc}
.connect-config .setup-more>p{margin:10px 0 0;font-size:13px;line-height:1.6;color:var(--muted);text-align:left}
.connect-config .app-imports{margin-top:12px;gap:8px}
.setup-help{margin:0;text-align:center;font-size:13px;color:var(--muted)}
/* "Add device": the device is picked from pictures and the name fills itself. */
.device-kinds{min-width:0;margin:0 0 18px;padding:0;border:0}
.device-kinds legend{margin:0 0 12px;padding:0;font-size:16px;font-weight:650;color:var(--ink)}
.device-kind-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.device-kind{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cg stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/g%3E%3C/svg%3E");position:relative;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 8px;border-radius:18px;background:#f4f6fa;color:#2b3340;font-size:14px;font-weight:600;line-height:1.25;text-align:center;cursor:pointer;transition:background-color .3s var(--ease),box-shadow .3s var(--ease),transform .3s var(--ease)}
.device-kind.platform-windows,.device-kind.platform-macos,.device-kind.platform-linux{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cg stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='16' height='11' rx='1.8'/%3E%3Cpath d='M2 19h20'/%3E%3C/g%3E%3C/svg%3E")}
.device-kind.platform-other{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cg stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01' stroke-width='2.6'/%3E%3C/g%3E%3C/svg%3E")}
.device-kind:hover{background:#edf2f9}
.device-kind:active{transform:scale(.98)}
.device-kind input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.device-kind-icon{width:40px;height:40px;background:#5b6b80;-webkit-mask:var(--icon) center/30px no-repeat;mask:var(--icon) center/30px no-repeat;transition:background-color .3s var(--ease)}
.device-kind.is-checked{background:#fff;color:#0b1b33;box-shadow:inset 0 0 0 2px #0071e3,0 12px 26px -18px rgba(0,113,227,.7)}
.device-kind.is-checked .device-kind-icon{background:#0071e3}
.device-kind:focus-within{box-shadow:inset 0 0 0 2px #0071e3,0 0 0 4px rgba(0,113,227,.18)}
@media(max-width:640px){.device-kind-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.device-kind{min-height:88px}.setup-panel h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.setup-panel{animation:none}.device-kind:active{transform:none}}
