:root{--ink:#17191f;--muted:#747985;--line:#e8eaf0;--blue:#356df3;--blue2:#2458df;--soft:#eef3ff;--bg:#f7f8fa;--white:#fff;--green:#1b9b68;--shadow:0 24px 70px rgba(25,36,70,.08);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);letter-spacing:-.035em}
*{box-sizing:border-box}html,body,button,input,select,textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;min-height:100vh;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.layout{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;gap:28px}.brand{display:flex;align-items:center;gap:10px;font-weight:850;font-size:22px;letter-spacing:-.055em;padding:0 8px}.brandmark{width:34px;height:34px;background:#20232b;color:#fff;border-radius:10px;display:grid;place-items:center;font-size:16px;font-weight:800}.nav-label{font-size:10px;color:#9aa0aa;font-weight:800;letter-spacing:.1em;padding:0 11px;margin-bottom:7px}.side-nav{display:grid;gap:4px}.side-nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:10px;font-size:13px;color:#626977;font-weight:650;transition:.15s}.side-nav a:hover{background:#f5f7fb;color:#252a34}.side-nav a.active{background:var(--soft);color:var(--blue)}.nav-icon{width:21px;text-align:center;font-size:16px}.sidebar-bottom{margin-top:auto;border-top:1px solid #f0f1f4;padding-top:16px}.profile-chip{display:flex;align-items:center;gap:10px;padding:10px}.avatar{width:34px;height:34px;border-radius:11px;background:#edf2ff;color:var(--blue);display:grid;place-items:center;font-weight:800}.profile-text{min-width:0;flex:1}.profile-text strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-text small{display:block;color:#8a909c;font-size:11px;margin-top:3px}.main{min-width:0;padding:0 34px 48px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:30px}.crumb{font-size:13px;color:#7d8491}.topbar-actions{display:flex;align-items:center;gap:10px}.page-title{font-size:30px;line-height:1.2;letter-spacing:-.065em;margin:0;font-weight:850}.page-subtitle{color:#777e8a;font-size:13px;line-height:1.75;margin:9px 0 0}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.btn{padding:11px 15px;border-radius:11px;font-size:13px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s}.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn-blue{background:var(--blue);color:#fff;box-shadow:0 7px 18px #356df326}.btn-blue:hover{background:var(--blue2)}.btn-dark{background:#20232b;color:#fff}.btn-light{background:#fff;border:1px solid var(--line);color:#292d36}.btn-danger{background:#fff1f1;border:1px solid #ffdddd;color:#bb3030}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.stat-label{font-size:12px;color:#7c8390;font-weight:650}.stat-value{font-size:29px;letter-spacing:-.06em;font-weight:850;margin-top:12px}.stat-foot{font-size:11px;color:#9298a3;margin-top:6px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.card-title{font-size:15px;font-weight:800;letter-spacing:-.04em}.card-note{font-size:11px;color:#9298a3}.two-col{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)}.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;background:#fff}.data-table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px}.data-table th,.data-table td{padding:14px 15px;text-align:left;border-bottom:1px solid #edf0f4;vertical-align:middle}.data-table th{background:#f8f9fb;color:#747985;font-size:11px;font-weight:800;white-space:nowrap}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f9faff}.data-table td{color:#4e5563;line-height:1.5}.data-table select,.control{padding:9px 10px;border:1px solid #dfe3eb;border-radius:9px;background:#fff;color:var(--ink);font-size:12px;outline:none;max-width:100%}.control:focus,.data-table select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #356df31b}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;background:#f1f3f7;color:#606775;white-space:nowrap}.badge.green{background:#eaf8f1;color:#168558}.badge.blue{background:#edf2ff;color:#356df3}.badge.amber{background:#fff5e5;color:#9b6a12}.badge.red{background:#fff0f0;color:#c34242}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.empty{padding:28px;text-align:center;color:#858b97;font-size:13px}.form-grid{display:grid;gap:15px}.field{display:grid;gap:7px}.field label{font-size:12px;font-weight:750;color:#505664}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe3eb;border-radius:10px;padding:12px;color:#20232b;background:#fff;outline:none;font-size:13px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #356df31b}.field small{color:#9096a1;font-size:11px;line-height:1.6}.inline-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.inline-form .control{flex:1;min-width:150px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #eff0f4}.setting-row:last-child{border-bottom:0}.setting-row strong{display:block;font-size:13px}.setting-row small{display:block;color:#858b97;font-size:11px;line-height:1.6;margin-top:5px}.switch{appearance:none;width:40px;height:23px;background:#d8dce4;border-radius:99px;position:relative;flex-shrink:0;transition:.2s}.switch:before{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 1px 3px #0002;transition:.2s}.switch:checked{background:var(--blue)}.switch:checked:before{left:20px}.notice{border:1px solid #e0e8ff;background:#f0f4ff;border-radius:12px;padding:14px 15px;color:#566582;font-size:12px;line-height:1.75}.notice.warning{background:#fff8ed;border-color:#f8e6c5;color:#84672d}.notice.success{background:#edfaf3;border-color:#d5f1e1;color:#267b55}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#20232b;color:#fff;padding:13px 17px;border-radius:11px;font-size:12px;box-shadow:0 12px 30px #0002;transition:.2s;z-index:99;max-width:calc(100% - 30px)}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-menu{display:none}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand-panel{background:#20232b;color:#fff;padding:clamp(32px,6vw,86px);display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-brand-panel h1{font-size:clamp(34px,4vw,54px);line-height:1.12;letter-spacing:-.07em;max-width:500px;margin:55px 0 18px}.login-brand-panel p{font-size:14px;color:#b9bdc7;line-height:1.9;max-width:420px}.login-form-panel{display:grid;place-items:center;padding:32px}.login-box{width:min(100%,390px)}.login-box h2{font-size:28px;letter-spacing:-.06em;margin:0 0 10px}.login-box>p{font-size:13px;color:#777e8a;line-height:1.75;margin:0 0 25px}.login-foot{font-size:11px;color:#9aa0aa;line-height:1.7;margin-top:20px}.mobile-brand{display:none}.hidden{display:none!important}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:0 24px 38px}.two-col{grid-template-columns:1fr}}
@media(max-width:760px){body.mobile-nav-open:after{content:"";position:fixed;inset:0;background:rgba(20,25,38,.38);z-index:40}body.mobile-nav-open{overflow:hidden}.layout{grid-template-columns:1fr}.sidebar{position:fixed;z-index:50;left:-270px;top:0;width:248px;transition:left .2s;box-shadow:0 10px 40px #18264a12}.sidebar.open{left:0}.mobile-menu{display:inline-flex}.main{padding:0 16px 30px}.topbar{height:64px;margin-bottom:24px}.page-head{align-items:flex-start;flex-direction:column}.page-title{font-size:26px}.stats{gap:10px}.stat-value{font-size:25px}.three-col{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-brand-panel{min-height:auto;padding:28px}.login-brand-panel h1{margin:42px 0 12px;font-size:36px}.login-brand-panel p{margin-bottom:8px}.login-form-panel{padding:42px 22px}.mobile-brand{display:flex}.topbar .crumb{display:none}}
@media(max-width:420px){.stats{grid-template-columns:1fr 1fr}.card{padding:16px}.topbar-actions .btn{padding:9px 10px;font-size:11px}}

/* Unified TEND visual system */
.login-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:34px 20px 22px;background:radial-gradient(circle at 50% 12%,#e9efff 0,transparent 34%),var(--bg)}
.login-page>.brand{width:min(100%,1040px);padding:0;font-size:22px}
.login-card{width:min(100%,440px);margin:auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:var(--shadow)}
.login-symbol{width:48px;height:48px;border-radius:15px;background:#20232b;color:white;display:grid;place-items:center;font-weight:850;font-size:21px;margin-bottom:25px}
.login-card .kicker{font-size:11px}
.login-card h1{font-size:30px;line-height:1.2;letter-spacing:-.065em;margin:12px 0}
.login-card>p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 24px}
.login-discord{width:100%;padding:14px}
.login-divider{height:1px;background:#eff0f4;margin:25px 0}
.login-note{display:flex;gap:11px;align-items:flex-start}
.login-note>span{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#eaf8f1;color:var(--green);font-size:12px;font-weight:900;flex-shrink:0}
.login-note strong{font-size:12px;display:block}
.login-note small{display:block;color:#858b97;font-size:11px;line-height:1.7;margin-top:5px}
.login-back{display:block;text-align:center;color:#737986;font-size:12px;margin-top:24px}
.login-back:hover{color:var(--blue)}
.login-footer{font-size:11px;color:#a0a4ad;text-align:center}
.not-found{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:32px 20px;gap:20px}
.not-found>.brand{width:min(100%,900px)}
.not-found .card{width:min(100%,520px);margin:auto;padding:34px}
.not-found h1{font-size:29px;letter-spacing:-.06em;margin:20px 0 10px}
.not-found p{color:var(--muted);font-size:13px;line-height:1.8;margin:0 0 22px}
@media(max-width:560px){.login-card{padding:25px 22px}.login-card h1{font-size:27px}.login-page{padding-top:25px}}


/* Dashboard and payment refinements */
.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:26px 28px;margin-bottom:20px;background:linear-gradient(115deg,#fff 0%,#f2f6ff 100%);border:1px solid #e4eaf8;border-radius:18px}
.welcome-kicker,.payment-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:850;color:var(--blue)}
.dashboard-welcome h1{font-size:clamp(24px,3vw,34px);line-height:1.2;letter-spacing:-.065em;margin:10px 0}
.dashboard-welcome h1 span{color:var(--blue)}
.dashboard-welcome p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.payment-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-top:16px}
.payment-title{font-size:18px;font-weight:850;letter-spacing:-.04em;margin:8px 0}
.payment-panel>p{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 17px}
.bank-row,.payment-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;background:#f8f9fc;border:1px solid #edf0f5;border-radius:12px;margin-bottom:14px}
.bank-row>div,.payment-summary>div{display:grid;gap:6px}
.bank-row span,.payment-summary span{font-size:10px;color:#858b97}
.bank-row strong,.payment-summary strong{font-size:14px;letter-spacing:-.02em}
.quick-links{display:grid;gap:9px}
.quick-links a{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 14px;border:1px solid #edf0f4;border-radius:11px;transition:.15s}
.quick-links a:hover{background:#f8faff;border-color:#dce5ff}
.quick-links strong{font-size:12px}
.quick-links span{font-size:11px;color:#7d8491;text-align:right}
@media(max-width:760px){.dashboard-welcome{align-items:flex-start;flex-direction:column;padding:22px}.dashboard-welcome .btn{width:100%}.bank-row,.payment-summary{align-items:flex-start;flex-direction:column}.quick-links a{align-items:flex-start;flex-direction:column;gap:5px}.quick-links span{text-align:left}}

.reason-text{display:block;margin-top:5px;color:#b42318;font-size:11px;line-height:1.5}.review-reason{min-width:170px;width:100%;padding:9px 10px;border:1px solid #e1e5ec;border-radius:8px;font:inherit;font-size:12px;outline:none}.review-reason:focus{border-color:#356df3;box-shadow:0 0 0 3px #356df31b}

/* account card */
.account-card{margin-bottom:18px}.account-line{display:flex;align-items:center;gap:12px}.account-line>div:last-child{display:grid;gap:4px}.account-line strong{font-size:14px}.account-line small{font-size:11px;color:#858b97}

.bot-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px;margin-top:18px}
.bot-tab{white-space:nowrap;border:1px solid var(--line);background:#fff;color:#656c79;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:750}
.bot-tab.active{background:var(--soft);border-color:#dce5ff;color:var(--blue)}
.bot-panel{display:none}.bot-panel.active{display:block}
.bot-server-card .inline-form select{min-width:240px;flex:1}
.stack-list{display:grid;gap:8px}
.stack-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}
.stack-row strong{display:block;font-size:12px;overflow-wrap:anywhere}
.stack-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5;overflow-wrap:anywhere}
.stack-actions{display:flex;gap:6px;flex-wrap:wrap}
.stack-actions .btn,.stack-row>.btn{padding:8px 10px;font-size:11px;flex-shrink:0}
.check-line{display:flex;align-items:center;gap:9px;font-size:12px;color:#555d69}
.check-line input{accent-color:var(--blue)}
.feature-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.feature-setting-card{border:1px solid var(--line);border-radius:13px;padding:15px;min-width:0;display:grid;gap:12px}
.feature-setting-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.feature-setting-head strong{display:block;font-size:13px}
.feature-setting-head small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:4px}
.switch-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}
.feature-config-label{font-size:11px;font-weight:750;color:#656c79}
.feature-setting-card textarea{width:100%;resize:vertical;border:1px solid #dfe3eb;border-radius:9px;padding:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.5;min-height:64px}
.feature-setting-card textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #356df31b}
.feature-setting-card .btn{justify-self:start}
.hidden{display:none!important}
@media(max-width:900px){.feature-settings-grid{grid-template-columns:1fr}.bot-tabs{margin-right:-10px}.bot-server-card .inline-form{align-items:stretch}.bot-server-card .inline-form .btn{flex:1}}

/* TEND command library */
.command-library{display:grid;gap:28px}.command-group{min-width:0}.command-group-title{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:800;color:#303541;margin:0 0 12px}.command-group-title span{font-size:11px;font-weight:700;color:#8a909c;background:#f3f5f8;border-radius:999px;padding:5px 9px}.command-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.command-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;transition:border-color .16s,box-shadow .16s}.command-card:hover{border-color:#cbd7ff;box-shadow:0 6px 20px #25345a0a}.command-card-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}.command-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#edf2ff;color:var(--blue);font-size:15px;font-weight:800}.command-code{font-size:12px;font-weight:800;color:#356df3;background:#f3f6ff;border-radius:6px;padding:5px 7px}.command-card>strong{font-size:13px;color:#282d37}.command-card p{font-size:11px;color:#7e8592;line-height:1.65;margin:7px 0 15px;flex:1}.command-card .btn{width:100%;justify-content:center;margin-top:auto}.command-card .btn span{margin-left:auto}.command-group+.command-group{border-top:1px solid #eff1f5;padding-top:22px}@media(max-width:1100px){.command-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.command-card-grid{grid-template-columns:1fr}.command-card{padding:14px}}


/* Friendly section explanations */
.section-intro{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px 18px;margin:0 0 16px;display:flex;align-items:flex-start;gap:12px}
.section-intro:before{content:"i";flex:0 0 22px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--blue);font-size:12px;font-weight:850}
.section-intro strong{display:block;font-size:13px;font-weight:800;line-height:1.5}
.section-intro p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.75}
@media(max-width:560px){.section-intro{padding:14px;gap:9px}}




.brand-logo{display:block;width:34px;height:34px;object-fit:contain;border-radius:8px;flex:none}.sidebar .brand-logo{width:34px;height:34px}.footer-brand .brand-logo{width:29px;height:29px}.login-page>.brand .brand-logo{width:34px;height:34px}.login-symbol{background:transparent!important;padding:0!important}.login-symbol img{width:48px;height:48px;object-fit:contain;display:block}

.feature-setting-card{background:#fff;transition:border-color .15s,box-shadow .15s}
.feature-setting-card:hover{border-color:#cbd7ff;box-shadow:0 5px 18px #25345a0a}
.feature-setting-card .btn{justify-self:start}
.feature-editor-backdrop{position:fixed;inset:0;z-index:200;background:rgba(20,25,38,.48);display:grid;place-items:center;padding:18px;overflow:auto}
.feature-editor{width:min(100%,620px);max-height:min(88vh,820px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px #10182835;padding:22px}
.feature-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}
.feature-editor h2{font-size:20px;letter-spacing:-.05em;margin:0}
.feature-editor header p{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 0}
.feature-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
.feature-editor-fields .field{min-width:0;align-self:start}
.feature-editor-fields .field:has(.channel-tree){grid-column:1/-1;width:100%}
.feature-editor-fields .field:has(.channel-tree) .channel-tree{width:100%;box-sizing:border-box}
.feature-editor-fields .field:has(textarea){grid-column:1/-1}
.feature-editor-fields .field>span{font-size:12px;font-weight:700;color:#505664}
.feature-editor-fields input,.feature-editor-fields select,.feature-editor-fields textarea{width:100%;min-width:0;border:1px solid #dfe3eb;border-radius:9px;padding:10px;background:#fff;font:inherit;font-size:12px;color:var(--ink)}
.feature-editor-fields textarea{resize:vertical;line-height:1.6}
.feature-editor-check{display:flex;align-items:center;gap:9px;padding:11px 0;font-size:13px;font-weight:700}
.feature-editor-check input{width:17px;height:17px;accent-color:var(--blue)}
.feature-editor-enabled{border-top:1px solid var(--line);margin-top:16px;padding-top:17px}
.feature-editor footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:16px;margin-top:12px}
@media(max-width:560px){.feature-editor{padding:17px;border-radius:14px}.feature-editor-fields{grid-template-columns:1fr}.feature-editor-fields .field:has(textarea){grid-column:auto}.feature-editor>header{align-items:flex-start}}

/* Interactive purchase tutorial */
.tutorial-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin:0 0 18px}
.tutorial-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.tutorial-kicker,.tutorial-step-label{display:block;color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.1em}
.tutorial-heading h2{font-size:19px;letter-spacing:-.045em;margin:7px 0 5px;color:var(--ink)}
.tutorial-heading p,.tutorial-stage>p,.tutorial-pane>p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.tutorial-demo-badge{flex:none;padding:7px 10px;border-radius:8px;background:#f3f6ff;color:#356df3;font-size:10px;font-weight:800}
.tutorial-progress{display:flex;gap:6px;margin-bottom:17px}.tutorial-progress span{height:4px;flex:1;border-radius:9px;background:#edf0f5}.tutorial-progress span.active{background:var(--blue)}
.tutorial-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px}
.tutorial-steps{display:grid;align-content:start;gap:7px}
.tutorial-steps button{display:flex;align-items:flex-start;gap:11px;text-align:left;padding:12px 10px;border:1px solid transparent;background:transparent;border-radius:10px;color:#606775}
.tutorial-steps button.active{background:#f5f7ff;border-color:#e4eaff;color:#315fd5}
.tutorial-steps button>b{font-size:11px;font-weight:850;padding-top:1px}
.tutorial-steps button span{font-size:12px;font-weight:800}
.tutorial-steps button small{display:block;font-size:10px;font-weight:500;color:#858b97;margin-top:4px}
.tutorial-stage{min-width:0;border:1px solid #edf0f5;border-radius:13px;padding:19px}
.tutorial-pane{display:none}.tutorial-pane.active{display:block}
.tutorial-pane h3{font-size:16px;letter-spacing:-.035em;margin:7px 0}
.tutorial-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:17px}
.tutorial-plans label{cursor:pointer;min-width:0}.tutorial-plans input{position:absolute;opacity:0;pointer-events:none}
.tutorial-plans label>span{height:100%;min-height:116px;display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid #e5e8ef;border-radius:11px}
.tutorial-plans input:checked+span{border-color:var(--blue);background:#f7f9ff;box-shadow:0 0 0 1px var(--blue)}
.tutorial-plans strong{font-size:12px}.tutorial-plans small{font-size:10px;color:var(--muted);line-height:1.4}.tutorial-plans b{font-size:13px;margin-top:auto}
.tutorial-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}
.tutorial-fields label{display:grid;gap:7px;font-size:11px;font-weight:750;color:#505664}
.tutorial-fields input{width:100%;min-width:0;border:1px solid #dfe3eb;border-radius:9px;padding:11px;font:inherit;font-size:12px}
.tutorial-hint{margin-top:13px;padding:11px 12px;background:#f7f8fa;border-radius:9px;color:#737b88;font-size:10px;line-height:1.6}
.tutorial-invite-preview{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e6e9ef;border-radius:12px;margin-top:17px;min-width:0}
.tutorial-discord-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#edf2ff;color:#356df3;font-size:17px;font-weight:900;flex:none}
.tutorial-invite-preview>div:nth-child(2){display:grid;gap:5px;min-width:0}.tutorial-invite-preview strong{font-size:12px}.tutorial-invite-preview small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.tutorial-preview-tag{margin-left:auto;flex:none;font-size:9px;font-weight:800;color:#7d8491;background:#f1f3f6;padding:5px 7px;border-radius:6px}
.tutorial-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eff1f5;padding-top:14px;margin-top:19px}
.tutorial-footer>span{font-size:11px;color:var(--muted);font-weight:750}.tutorial-footer>div{display:flex;gap:7px}
.tutorial-complete{margin-top:13px;padding:12px;border-radius:9px;background:#f0f7f3;color:#28734a;font-size:11px;font-weight:750}
@media(max-width:700px){.tutorial-layout{grid-template-columns:1fr;gap:12px}.tutorial-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.tutorial-steps button{padding:9px 7px;gap:6px}.tutorial-steps button span{font-size:10px}.tutorial-steps button small{font-size:9px}.tutorial-stage{padding:15px}}
@media(max-width:480px){.tutorial-card{padding:15px}.tutorial-heading{flex-direction:column;gap:10px}.tutorial-plans{grid-template-columns:1fr}.tutorial-plans label>span{min-height:0;display:grid;grid-template-columns:1fr auto;align-items:center}.tutorial-plans small{grid-column:1}.tutorial-plans b{grid-column:2;grid-row:1/3}.tutorial-fields{grid-template-columns:1fr}.tutorial-invite-preview{align-items:flex-start;flex-wrap:wrap}.tutorial-preview-tag{margin-left:0}}

/* Virtual Discord server management simulator */
.tutorial-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.sim-backdrop{position:fixed;inset:0;z-index:500;background:#101522b8;display:grid;place-items:center;padding:18px}
.sim-window{width:min(1380px,100%);height:min(850px,94vh);background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 100px #0005}
.sim-top{height:65px;flex:none;display:flex;align-items:center;gap:14px;padding:0 19px;border-bottom:1px solid #e8eaf0}
.sim-top>div{display:grid;gap:3px}.sim-top strong{font-size:15px}.sim-kicker{font-size:9px;letter-spacing:.1em;color:#356df3;font-weight:850}
.sim-warning{margin-left:auto;background:#fff5e7;color:#98600c;padding:7px 10px;border-radius:7px;font-size:10px;font-weight:800}
.sim-close{width:32px;height:32px;border-radius:8px;background:#f1f3f6;color:#525967;font-size:22px}
.sim-body{display:grid;grid-template-columns:62px 190px minmax(280px,1fr) 310px;min-height:0;flex:1;background:#f4f5f8}
.sim-server-rail{background:#202431;display:flex;align-items:center;flex-direction:column;gap:12px;padding:15px 8px}
.sim-server-logo{width:40px;height:40px;border-radius:14px;background:#3a4152;color:#fff;display:grid;place-items:center;font-weight:900}.sim-server-logo.active{background:#356df3;border-radius:13px}
.sim-channel-rail{background:#e9ebf0;display:flex;flex-direction:column;padding:17px 10px;min-width:0}
.sim-server-name{font-size:12px;font-weight:850;padding:0 8px 18px;border-bottom:1px solid #d9dce4}.sim-server-name span{float:right}
.sim-channel-label{font-size:10px;color:#7b8290;font-weight:800;margin:19px 8px 8px}
.sim-channel{background:transparent;text-align:left;color:#626a78;padding:9px 10px;border-radius:7px;font-size:12px;margin:2px 0}
.sim-channel.active{background:#fff;color:#28344d;font-weight:800}
.sim-user{margin-top:auto;border-top:1px solid #d8dce4;padding:13px 4px 0;display:flex;align-items:center;gap:8px}.sim-user>span:last-child{display:grid;gap:3px}.sim-user b{font-size:10px}.sim-user small{font-size:9px;color:#269b68}
.sim-avatar{width:32px;height:32px;flex:none;border-radius:50%;background:#dce5ff;color:#315fd5;display:grid;place-items:center;font-size:11px;font-weight:850}
.sim-discord{min-width:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e5e8ee}
.sim-channel-head{height:52px;flex:none;border-bottom:1px solid #eceef2;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.sim-channel-head b{font-size:13px}.sim-channel-head span{font-size:10px;color:#8a909c}
.sim-chat{padding:15px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:18px}
.sim-message{display:flex;gap:10px;align-items:flex-start}.sim-message>div{min-width:0;flex:1}.sim-message-meta{display:flex;align-items:center;gap:8px}.sim-message-meta b{font-size:11px}.sim-message-meta small{font-size:9px;color:#9298a3}.sim-message p{font-size:12px;line-height:1.6;margin:5px 0;color:#424957;overflow-wrap:anywhere}
.sim-delete{font-size:9px;color:#9a6570;background:transparent;padding:3px 0}.sim-delete:hover{color:#c33}
.sim-compose{display:flex;gap:8px;padding:12px;border-top:1px solid #eceef2}.sim-compose input,.sim-form-block input,.sim-form-block textarea{min-width:0;width:100%;border:1px solid #e0e4eb;border-radius:8px;padding:10px;font-size:11px;outline:0}.sim-compose button,.sim-inline button,.sim-primary{background:#356df3;color:#fff;border-radius:8px;padding:0 13px;font-size:11px;font-weight:800;flex:none}
.sim-control{background:#fff;min-width:0;overflow:auto;padding:15px}
.sim-control-title{display:grid;gap:4px;margin-bottom:14px}.sim-control-title b{font-size:13px}.sim-control-title small{font-size:10px;color:#8a909c}
.sim-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#f2f4f7;border-radius:9px}.sim-tabs button{padding:8px 2px;border-radius:7px;background:transparent;color:#737b88;font-size:10px;font-weight:750}.sim-tabs button.active{background:#fff;color:#356df3;box-shadow:0 1px 4px #18243a12}
#sim-control-content{padding-top:14px}.sim-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sim-stat-grid>div{display:grid;gap:7px;padding:12px;border:1px solid #edf0f4;border-radius:9px}.sim-stat-grid small{font-size:9px;color:#818895}.sim-stat-grid b{font-size:17px}
.sim-info-card{display:grid;gap:7px;padding:12px;border:1px solid #e9edf4;border-radius:9px;margin-top:11px}.sim-info-card b{font-size:11px}.sim-info-card span,.sim-info-card small{font-size:10px;color:#737b88;line-height:1.5}.sim-online-dot{color:#269b68!important}
.sim-action-list{display:grid;gap:6px;margin-top:12px}.sim-action-list button{display:flex;justify-content:space-between;padding:11px;border:1px solid #edf0f4;border-radius:8px;background:#fff;text-align:left;font-size:10px;font-weight:750;color:#4d5563}.sim-action-list button span{color:#356df3}
.sim-feedback{padding:10px;background:#f3f6ff;border-radius:8px;color:#4964a6;font-size:10px;line-height:1.6;margin-top:10px}
.sim-form-block{display:grid;gap:8px}.sim-form-block label{font-size:10px;font-weight:800;color:#505664}.sim-form-block small{font-size:9px;color:#858c98;line-height:1.5}.sim-inline{display:flex;gap:6px}.sim-inline button{padding:0 10px}.sim-list-title{font-size:10px;font-weight:850;margin:17px 0 8px}.sim-ban-row{display:flex;align-items:center;justify-content:space-between;padding:9px;border:1px solid #edf0f4;border-radius:8px;margin-bottom:6px;font-size:10px}.sim-ban-row button{background:transparent;color:#b44a57;font-size:10px}
.sim-form-block textarea{resize:vertical}.sim-primary{min-height:36px}.sim-ann-preview{display:grid;gap:8px;padding:12px;border:1px solid #e5eaf5;border-left:3px solid #356df3;border-radius:8px;margin-top:12px}.sim-ann-preview small,.sim-ann-preview span{font-size:9px;color:#818895}.sim-ann-preview b{font-size:12px}.sim-ann-preview p{font-size:11px;line-height:1.6;white-space:pre-wrap;margin:0}
.sim-bottom{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 15px;border-top:1px solid #e8eaf0}.sim-bottom span{font-size:9px;color:#818895}
.sim-empty{font-size:11px;color:#8b929e;text-align:center;padding:25px}
@media(max-width:1000px){.sim-body{grid-template-columns:52px 155px minmax(230px,1fr)}.sim-control{grid-column:1/-1;max-height:270px;border-top:1px solid #e5e8ee}.sim-window{height:95vh}.sim-control-title{display:none}.sim-tabs{max-width:360px}}
@media(max-width:620px){.sim-backdrop{padding:0}.sim-window{height:100dvh;border-radius:0}.sim-top{padding:0 11px}.sim-warning{font-size:8px}.sim-body{grid-template-columns:42px 112px minmax(0,1fr);grid-template-rows:minmax(280px,1fr) 240px}.sim-server-rail{padding:12px 4px}.sim-server-logo{width:32px;height:32px}.sim-channel-rail{padding:12px 6px}.sim-server-name{font-size:10px;padding:0 4px 13px}.sim-channel{font-size:10px;padding:8px 5px}.sim-channel-head{padding:0 9px}.sim-channel-head span{display:none}.sim-chat{padding:10px}.sim-control{grid-column:1/-1;grid-row:2;max-height:none;padding:12px}.sim-bottom{height:44px;padding:0 9px}.sim-bottom span{max-width:68%;line-height:1.4}.sim-bottom .btn{font-size:9px;padding:7px}}

/* Guided tutorial page */
.tutorial-demo-ribbon{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:11px 14px;background:#eef3ff;border:1px solid #e0e9ff;border-radius:10px;font-size:11px;color:#52627e}.tutorial-demo-ribbon b{color:#356df3;white-space:nowrap}.tutorial-only-note{display:inline-block;margin-left:7px;color:#356df3;font-size:10px;font-weight:800}
.tutorial-demo-page .sidebar-bottom>a,.tutorial-demo-page .sidebar-bottom>button{font-size:11px}
.demo-modal-backdrop{position:fixed;inset:0;z-index:1100;background:#11182788;display:grid;place-items:center;padding:18px}.demo-modal{width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;padding:20px;box-shadow:0 24px 80px #0003}.demo-modal header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.demo-modal header b{font-size:16px}.demo-modal-close{width:30px;height:30px;border-radius:8px;background:#f1f3f6;font-size:20px}.demo-inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.demo-inventory-grid>div{display:grid;gap:5px;padding:12px;border:1px solid #edf0f4;border-radius:9px}.demo-inventory-grid small,.demo-modal>small{font-size:10px;color:#8a909c}.demo-inventory-grid b{font-size:12px;overflow-wrap:anywhere}.demo-modal h4{font-size:12px;margin:18px 0 7px}.demo-modal p{font-size:11px;color:#606775}.demo-field{display:grid;gap:7px;margin:12px 0;font-size:11px;font-weight:750}.demo-field select,.demo-field textarea{padding:10px;border:1px solid #e2e6ee;border-radius:8px}.demo-check{display:flex;gap:8px;align-items:center;font-size:11px;margin:14px 0}.demo-modal #save-demo-feature{margin:4px 0 12px}
#guided-tour{position:fixed;inset:0;z-index:900}.tour-shade{position:absolute;inset:0;background:#12172399}.tour-focus{background:transparent}.tour-popover{width:min(360px,calc(100vw - 32px));padding:18px;background:#fff;border-radius:14px;box-shadow:0 18px 60px #0003}.tour-count{font-size:9px;letter-spacing:.12em;color:#356df3;font-weight:900}.tour-popover h2{font-size:17px;margin:8px 0}.tour-popover p{font-size:12px;line-height:1.7;color:#697180;margin:0}.tour-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px}.tour-controls>div{display:flex;gap:7px}.tour-controls button{font-size:11px;padding:8px 11px;border-radius:8px;background:#f1f3f6;color:#525a68}.tour-controls button:disabled{opacity:.4}.tour-controls button.btn-blue{background:#356df3;color:#fff}
@media(max-width:760px){.tour-popover{left:16px!important;top:auto!important;bottom:16px!important}.demo-inventory-grid{grid-template-columns:1fr 1fr}}

/* Guided tour must let users interact with the highlighted demo controls. */
#guided-tour{pointer-events:none}
#guided-tour .tour-shade{pointer-events:none}
#guided-tour .tour-popover{pointer-events:auto}

.support-layout{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:16px;min-height:560px}
.support-list-card,.support-chat-card{min-width:0;overflow:hidden}
.support-ticket-list{display:grid;gap:7px;padding:12px;max-height:680px;overflow:auto}
.support-ticket-item{display:grid;gap:8px;width:100%;padding:13px;text-align:left;background:#fff;border:1px solid #edf0f4;border-radius:11px;color:var(--ink);cursor:pointer}
.support-ticket-item:hover{border-color:#cbd7ff}.support-ticket-item.active{background:#f6f8ff;border-color:#9eb5ff}
.support-ticket-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.support-ticket-item-top strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.support-ticket-item>small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.support-chat-card{display:flex;flex-direction:column;min-height:560px}
.support-chat-empty{display:grid;place-content:center;justify-items:center;flex:1;text-align:center;padding:35px}.support-empty-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#f0f4ff;color:#356df3;font-size:23px;margin-bottom:14px}.support-chat-empty strong{font-size:14px}.support-chat-empty p{font-size:11px;color:var(--muted);line-height:1.7}
.support-chat-view{display:flex;flex-direction:column;min-height:560px;flex:1;min-width:0}
.support-chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 18px;border-bottom:1px solid var(--line)}.support-chat-head>div:first-child{display:grid;gap:5px;min-width:0}.support-chat-head strong{font-size:14px;overflow-wrap:anywhere}.support-chat-head small{font-size:10px;color:var(--muted)}.support-chat-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.support-message-list{display:flex;flex-direction:column;gap:17px;padding:18px;flex:1;min-height:250px;max-height:580px;overflow:auto;background:#fafbfc}
.support-message{display:flex;align-items:flex-start;gap:10px;max-width:90%}.support-message.mine{align-self:flex-end;flex-direction:row-reverse}.support-message-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#edf1f7;color:#536078;font-size:11px;font-weight:850;flex:none}.support-message-avatar.admin{background:#eaf0ff;color:#356df3}.support-message-body{min-width:0}.support-message-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px}.support-message-meta strong{font-size:10px}.support-message-meta small{font-size:9px;color:#969daa}.support-message-body p{margin:0;padding:10px 12px;border:1px solid #e9edf3;border-radius:4px 12px 12px 12px;background:#fff;color:#3e4654;font-size:12px;line-height:1.7;overflow-wrap:anywhere;white-space:normal}.support-message.mine .support-message-body p{background:#edf3ff;border-color:#dbe6ff;border-radius:12px 4px 12px 12px}
.support-reply-form{display:flex;align-items:flex-end;gap:9px;padding:13px;border-top:1px solid var(--line);background:#fff}.support-reply-form textarea{resize:vertical;min-height:44px;max-height:150px;flex:1;min-width:0;border:1px solid #dfe3eb;border-radius:10px;padding:11px;font:inherit;font-size:12px;line-height:1.5;outline:0}.support-reply-form textarea:focus{border-color:var(--blue)}.support-reply-form .btn{min-height:42px}.support-closed-note{padding:14px;text-align:center;color:var(--muted);font-size:11px;background:#f7f8fa}
.support-new-box{margin-bottom:16px;padding:18px}.support-new-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}.support-new-heading strong{font-size:14px}.support-new-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.support-new-box form{display:grid;gap:12px}.support-new-box .field{display:grid;gap:7px}.support-new-box .field>span{font-size:11px;font-weight:750}.support-new-box input,.support-new-box textarea{width:100%;min-width:0;border:1px solid #dfe3eb;border-radius:9px;padding:11px;font:inherit;font-size:12px}.support-new-box textarea{resize:vertical}.support-new-actions{display:flex;justify-content:flex-end}
@media(max-width:850px){.support-layout{grid-template-columns:1fr;min-height:0}.support-ticket-list{max-height:260px;grid-template-columns:repeat(2,minmax(0,1fr))}.support-chat-card,.support-chat-view{min-height:500px}}
@media(max-width:560px){.support-ticket-list{grid-template-columns:1fr}.support-chat-head{align-items:flex-start;flex-direction:column}.support-chat-head-actions{width:100%;justify-content:space-between}.support-message{max-width:100%}.support-reply-form{padding:10px}.support-reply-form .btn{padding:0 12px}}

.support-admin-layout{display:grid;grid-template-columns:minmax(240px,330px) minmax(0,1fr);gap:0;min-height:540px}
.support-admin-list{border-right:1px solid var(--line);min-width:0}.support-admin-list .support-ticket-list{max-height:620px}
.support-chat-inner{min-width:0;display:flex;flex-direction:column}.support-chat-inner .support-chat-view{min-height:540px}
@media(max-width:850px){.support-admin-layout{grid-template-columns:1fr}.support-admin-list{border-right:0;border-bottom:1px solid var(--line)}.support-admin-list .support-ticket-list{max-height:250px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.support-admin-list .support-ticket-list{grid-template-columns:1fr}}

/* Discord account confirmation and linked profile image */
.avatar{overflow:hidden;flex:0 0 auto}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tend-account-confirm{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.42);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);animation:tend-confirm-fade 420ms cubic-bezier(.16,1,.3,1) both}
.tend-account-confirm-card{width:min(100%,390px);padding:30px;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 28px 90px rgba(15,23,42,.2);animation:tend-confirm-rise 560ms cubic-bezier(.16,1,.3,1) both}
.tend-confirm-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#7c8799}
.tend-account-confirm-card h2{margin:10px 0 7px;font-size:24px;letter-spacing:-.055em;color:#171b24}
.tend-confirm-desc{margin:0;color:#78808d;font-size:13px;line-height:1.6}
.tend-confirm-profile{display:flex;align-items:center;gap:13px;margin:24px 0;padding:15px;border:1px solid #edf0f4;border-radius:17px;background:#fafbfc}
.tend-confirm-avatar{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;overflow:hidden;border-radius:17px;background:#edf2ff;color:#356df3;font-size:21px;font-weight:800}
.tend-confirm-avatar img{width:100%;height:100%;object-fit:cover}
.tend-confirm-info{min-width:0;display:grid;gap:5px}
.tend-confirm-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:#202633}
.tend-confirm-info small{font-size:11px;color:#8992a0}
.tend-account-confirm-card .btn{width:100%;min-height:46px;justify-content:center}
.tend-account-confirm-card .tend-confirm-no{margin-top:9px}
@keyframes tend-confirm-fade{from{opacity:0}to{opacity:1}}
@keyframes tend-confirm-rise{from{opacity:0;transform:translate3d(0,16px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.tend-account-confirm,.tend-account-confirm-card{animation:none}}

.tend-logout-card{display:flex;flex-direction:column;gap:0}
.tend-logout-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:26px;width:100%}
.tend-logout-actions .btn{display:flex;position:relative;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:0 16px;align-items:center;justify-content:center;line-height:1.2;white-space:nowrap}
.tend-logout-actions .tend-logout-yes{background:#e5484d;border:1px solid #e5484d;color:#fff}
.tend-logout-actions .tend-logout-yes:hover{background:#d9363e;border-color:#d9363e}
.tend-logout-actions .tend-logout-yes:disabled{opacity:.65;cursor:wait}

.tend-logout-card{display:flex;flex-direction:column;gap:0}
.tend-logout-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:26px;width:100%}
.tend-logout-actions .btn{display:flex;position:relative;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:0 16px;align-items:center;justify-content:center;line-height:1.2;white-space:nowrap}
.tend-logout-actions .tend-logout-yes{background:#e5484d;border:1px solid #e5484d;color:#fff}
.tend-logout-actions .tend-logout-yes:hover{background:#d9363e;border-color:#d9363e}
.tend-logout-actions .tend-logout-yes:disabled{opacity:.65;cursor:wait}

/* TEND dark theme */
html.theme-dark{color-scheme:dark}
html.theme-dark body{background:#11151d;color:#edf1f7}
html.theme-dark .sidebar,html.theme-dark .card,html.theme-dark .table-wrap,html.theme-dark .support-list-card,html.theme-dark .support-chat-card{background:#1a202b;border-color:#303949;color:#edf1f7}
html.theme-dark .sidebar{border-right-color:#303949}
html.theme-dark .brand,html.theme-dark .page-title,html.theme-dark .card-title,html.theme-dark .stat-value,html.theme-dark .profile-text strong{color:#edf1f7}
html.theme-dark .topbar,html.theme-dark .sidebar-bottom{border-color:#303949}
html.theme-dark .crumb,html.theme-dark .page-subtitle,html.theme-dark .stat-label,html.theme-dark .stat-foot,html.theme-dark .card-note,html.theme-dark .profile-text small{color:#aab3c2}
html.theme-dark .side-nav a{color:#aab3c2}
html.theme-dark .side-nav a:hover{background:#252e3d;color:#edf1f7}
html.theme-dark .side-nav a.active{background:#263550;color:#9bb5ff}
html.theme-dark .btn-light{background:#202837;border-color:#394457;color:#e5eaf2}
html.theme-dark .btn-dark{background:#e8edf5;color:#171b24}
html.theme-dark .btn-danger{background:#3a2227;border-color:#583039;color:#ff9ca5}
html.theme-dark .data-table th,html.theme-dark .admin-table th{background:#202837;color:#aab3c2;border-color:#303949}
html.theme-dark .data-table td,html.theme-dark .admin-table td{color:#c7cfdb;border-color:#303949}
html.theme-dark .data-table tbody tr:hover,html.theme-dark .admin-table tbody tr:hover{background:#222c3b}
html.theme-dark .control,html.theme-dark .data-table select,html.theme-dark .status-select,html.theme-dark input,html.theme-dark select,html.theme-dark textarea{background:#111720;border-color:#394457;color:#edf1f7}
html.theme-dark .badge{background:#2a3342;color:#c7cfdb}
html.theme-dark .badge.green{background:#183b31;color:#7ee0b4}
html.theme-dark .badge.blue{background:#263550;color:#9bb5ff}
html.theme-dark .badge.amber{background:#42351f;color:#f0c77a}
html.theme-dark .badge.red{background:#42262b;color:#ff9ca5}
html.theme-dark .empty,html.theme-dark .empty-state{color:#aab3c2}
html.theme-dark .payment-summary,html.theme-dark .quick-links a,html.theme-dark .support-ticket-item{background:#202837;border-color:#303949;color:#edf1f7}
html.theme-dark .support-ticket-item.active{background:#263550;border-color:#526fae}
html.theme-dark .support-message-list{background:#141a24}
html.theme-dark .support-message-body p{background:#202837;border-color:#303949;color:#e1e7f0}
html.theme-dark .support-message.mine .support-message-body p{background:#263550;border-color:#354b70}
html.theme-dark .support-chat-head,html.theme-dark .support-reply-form{background:#1a202b;border-color:#303949}
html.theme-dark .support-closed-note{background:#202837;color:#aab3c2}
html.theme-dark .tend-account-confirm-card{background:#1a202b;border-color:#394457}
html.theme-dark .tend-account-confirm-card h2,html.theme-dark .tend-confirm-info strong{color:#edf1f7}
html.theme-dark .tend-confirm-desc,html.theme-dark .tend-confirm-info small{color:#aab3c2}
html.theme-dark .tend-confirm-profile{background:#202837;border-color:#394457}
html.theme-dark .toast{background:#e8edf5;color:#171b24}
.theme-toggle{white-space:nowrap}
@media(max-width:560px){.topbar-actions .theme-toggle{padding:9px 10px;font-size:11px}.topbar-actions .theme-toggle span{display:none}}

@media(max-width:760px){
 .sidebar{height:100dvh;height:100vh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .sidebar-bottom{position:sticky;bottom:0;z-index:5;flex:none;margin-top:auto;padding:12px 0 calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 20px rgba(15,23,42,.055)}
 .sidebar-bottom [data-logout]{min-height:46px}
 [data-side-nav]{flex:1 0 auto}
}
html.theme-dark .sidebar-bottom{background:#1a222e!important;border-color:#303b4c!important;box-shadow:0 -8px 20px rgba(0,0,0,.22)}


/* Dark theme: payment details and every form control */
html.theme-dark :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.control,.status-select,.review-reason){background-color:#111821!important;color:#edf1f7!important;border-color:#3a4659!important;caret-color:#edf1f7!important;-webkit-text-fill-color:#edf1f7!important;color-scheme:dark;}
html.theme-dark :is(input,textarea)::placeholder{color:#8995a7!important;opacity:1!important;-webkit-text-fill-color:#8995a7!important;}
html.theme-dark select option{background:#1a222e!important;color:#edf1f7!important;}
html.theme-dark input:-webkit-autofill,html.theme-dark input:-webkit-autofill:hover,html.theme-dark input:-webkit-autofill:focus{ -webkit-text-fill-color:#edf1f7!important;-webkit-box-shadow:0 0 0 1000px #111821 inset!important;box-shadow:0 0 0 1000px #111821 inset!important;caret-color:#edf1f7!important;}
html.theme-dark :is(.bank-row,.payment-summary){background:#202b3a!important;border:1px solid #354255!important;color:#edf1f7!important;}
html.theme-dark :is(.bank-row,.payment-summary) :is(span,small){color:#aab4c3!important;}
html.theme-dark :is(.bank-row,.payment-summary) strong{color:#edf1f7!important;}
html.theme-dark .payment-panel{background:#1a222e!important;border-color:#303b4c!important;color:#edf1f7!important;}

/* Instant feature activation controls */
.feature-setting-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.feature-toggle{position:relative;display:inline-flex;align-items:center;cursor:pointer;min-width:46px;min-height:28px}
.feature-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.feature-toggle-track{position:relative;width:46px;height:26px;border-radius:999px;background:#d8dde6;transition:background .18s ease,box-shadow .18s ease}
.feature-toggle-track:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .18s ease}
.feature-toggle input:checked+.feature-toggle-track{background:#2875ed}
.feature-toggle input:checked+.feature-toggle-track:after{transform:translateX(20px)}
.feature-toggle input:focus-visible+.feature-toggle-track{outline:3px solid #2875ed44;outline-offset:3px}
.feature-toggle input:disabled+.feature-toggle-track{opacity:.55;cursor:wait}
