:root{color-scheme:dark;--bg:#08110e;--panel:#0d1915;--panel2:#10211a;--line:rgba(191,230,208,.1);--muted:#879a90;--soft:#b4c2ba;--text:#f3f8f4;--green:#31d58b;--green2:#82f0b7;--purple:#a78bfa;--blue:#6eb8ff;--radius:20px;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 72% -12%,rgba(27,119,76,.18),transparent 35%),var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}.hidden{display:none!important}.ambient{position:fixed;width:340px;height:340px;filter:blur(115px);border-radius:50%;pointer-events:none;z-index:-1;opacity:.12}.ambient-one{background:#00a86b;top:-200px;left:30%}.ambient-two{background:#5b45b3;bottom:-200px;right:3%}.brand{display:inline-flex;align-items:center;gap:11px;font-family:'Inter',system-ui,sans-serif;font-size:16px;font-weight:800;letter-spacing:-.6px}.brand-light{color:#8ca298;font-weight:500}.brand-mark{width:30px;height:30px;border:1px solid rgba(84,226,151,.35);background:linear-gradient(145deg,rgba(39,191,115,.25),rgba(36,80,59,.24));border-radius:10px;display:inline-flex;align-items:flex-end;justify-content:center;gap:2px;padding:7px}.brand-mark span{width:3px;border-radius:4px;background:#49e392;box-shadow:0 0 9px rgba(57,223,134,.3)}.brand-mark span:nth-child(1){height:8px}.brand-mark span:nth-child(2){height:13px}.brand-mark span:nth-child(3){height:10px}.eyebrow{font-size:10px;letter-spacing:1.45px;font-weight:700;color:#7f9b8c}.pulse-dot,.demo-badge i,.green-dot,.muted-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(49,213,139,.45)}.pulse-dot{margin-right:7px}.button{border:1px solid transparent;border-radius:11px;padding:11px 15px;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:16px;transition:transform .18s ease,border-color .18s ease,background .18s ease}.button:hover{transform:translateY(-1px)}.button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:2px}.button-primary{background:linear-gradient(135deg,#3ee69a,#22bd78);color:#062115;box-shadow:0 8px 22px rgba(24,183,111,.16)}.button-primary:hover{background:linear-gradient(135deg,#65efad,#34d88d)}.button-secondary{background:rgba(231,250,238,.04);border-color:rgba(205,239,216,.12);color:#eaf3ed}.button-secondary:hover{border-color:rgba(82,226,146,.45);background:rgba(55,186,115,.08)}.button-wide{width:100%;height:48px;margin-top:6px}.button span{font-size:16px;font-weight:500}/* Authentication */.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(380px,1fr) minmax(430px,.92fr);max-width:1440px;margin:0 auto;padding:28px}.auth-art{position:relative;min-height:calc(100vh - 56px);overflow:hidden;border-radius:25px;border:1px solid rgba(170,235,193,.1);background:radial-gradient(ellipse at 45% 54%,rgba(24,127,77,.3),transparent 47%),linear-gradient(145deg,#10251b,#0b1712 62%,#0e2118);padding:31px 36px;display:flex;flex-direction:column;isolation:isolate}.auth-art:before{content:'';position:absolute;inset:0;z-index:-1;background-image:radial-gradient(rgba(158,224,180,.18) .7px,transparent .7px);background-size:19px 19px;mask-image:linear-gradient(110deg,transparent 5%,#000 75%);opacity:.4}.art-copy{margin:auto 0;max-width:470px;transform:translateY(14px)}.art-copy .eyebrow{display:inline-flex;align-items:center;color:#93bf9f}.art-copy h1{font:800 clamp(48px,6vw,80px)/1.05 'Inter',system-ui,sans-serif;letter-spacing:-5px;margin:23px 0 17px}.art-copy h1 em{font-style:normal;color:#52df98}.art-copy p{max-width:380px;color:#a0b4a7;font-size:15px;line-height:1.8}.art-orbit{position:absolute;z-index:-1;border:1px solid rgba(107,221,152,.14);border-radius:50%;width:540px;height:540px;right:-170px;top:17%;box-shadow:0 0 60px rgba(49,213,139,.05),inset 0 0 70px rgba(49,213,139,.04)}.orbit-b{width:390px;height:390px;right:-92px;top:26%;border-color:rgba(107,221,152,.12)}.art-card{align-self:flex-start;display:flex;align-items:center;gap:13px;padding:14px 17px;border-radius:15px;border:1px solid rgba(169,222,187,.13);background:rgba(8,23,15,.67);backdrop-filter:blur(15px);box-shadow:0 18px 54px rgba(0,0,0,.18);margin-bottom:22px;min-width:290px}.mini-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:rgba(62,220,138,.12);color:#65e8a0;font-size:21px}.art-card strong,.art-card small{display:block}.art-card strong{font-size:12px}.art-card small{color:#84998d;font-size:10px;margin-top:2px}.mini-check{margin-left:auto;color:#55dc93;font-size:17px}.art-footer{display:flex;justify-content:space-between;color:#628071;letter-spacing:1.3px;font-size:9px;font-weight:700}.auth-panel{display:flex;flex-direction:column;justify-content:space-between;padding:10px clamp(28px,6vw,88px) 3px}.auth-panel>.brand{visibility:hidden}.auth-mobile-brand{display:none}.auth-form-wrap{width:100%;max-width:390px;margin:0 auto}.auth-heading{margin-bottom:28px}.auth-heading h2{font:700 30px/1.2 'Inter',system-ui,sans-serif;letter-spacing:-1.2px;margin:11px 0 8px}.auth-heading p{margin:0;color:var(--muted);font-size:13px}.form-stack{display:grid;gap:16px}.field{display:grid;gap:8px;color:#c9d7ce;font-size:11px;font-weight:600}.field small{float:right;color:#779183;font-size:10px;font-weight:500}.field input{width:100%;height:46px;border:1px solid rgba(196,225,204,.13);border-radius:10px;padding:0 13px;background:rgba(13,27,20,.85);color:var(--text);font-size:12px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.field input::placeholder{color:#53665b}.field input:focus{border-color:rgba(63,220,139,.65);box-shadow:0 0 0 3px rgba(51,207,129,.08)}.field input:disabled{color:#7b8d82;background:rgba(9,21,15,.58)}.auth-switch{text-align:center;color:#84988c;font-size:12px;margin:14px 0 0} #auth-message{margin-top:12px}.auth-switch button{background:none;border:0;padding:0 2px;color:#58e19a;font-weight:700;cursor:pointer}.auth-legal{text-align:center;color:#617468;font-size:10px;margin-top:17px}.auth-bottom{display:flex;justify-content:space-between;color:#66786d;font-size:9px;letter-spacing:.3px;padding:16px 0}.notice{padding:11px 13px;border-radius:10px;border:1px solid rgba(237,126,126,.22);background:rgba(140,39,39,.13);color:#f2a9a9;font-size:11px;margin-top:12px}.notice.success{border-color:rgba(72,219,142,.24);background:rgba(28,118,72,.13);color:#96eab7}/* Dashboard */.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;border-right:1px solid var(--line);background:rgba(9,19,15,.94);padding:25px 17px 17px;display:flex;flex-direction:column;z-index:3}.sidebar .brand{padding:2px 9px 34px}.workspace-label{padding:0 12px;color:#5d7265;letter-spacing:1.35px;font-size:9px;font-weight:700;margin-bottom:10px}.side-nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 12px;border:0;background:transparent;color:#8da094;border-radius:10px;font-size:12px;text-align:left;cursor:pointer;transition:background .2s,color .2s}.nav-item:hover,.nav-item.active{background:rgba(71,193,119,.095);color:#e3f4e9}.nav-item.active{box-shadow:inset 2px 0 #45d78c}.nav-icon{width:18px;text-align:center;color:#7d9587;font-size:17px}.nav-item.active .nav-icon{color:#57df98}.sidebar-bottom{margin-top:auto}.sidebar-note{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(153,205,171,.1);background:rgba(20,45,29,.36);padding:12px 11px;border-radius:12px;margin-bottom:13px}.sidebar-note p{margin:0;color:#82978a;font-size:10px;line-height:1.6}.note-icon{flex:none;display:grid;place-items:center;border:1px solid rgba(108,205,143,.28);color:#6ed69a;border-radius:50%;width:17px;height:17px;font-size:10px;font-weight:700}.logout-button{width:100%}.sidebar-version{color:#607267;font-size:8px;letter-spacing:1px;padding:20px 12px 0;font-weight:700}.sidebar-version span{float:right;color:#799083}.main-area{margin-left:242px;min-height:100vh}.topbar{height:67px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:rgba(8,17,14,.68)}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:11px;color:#74877b}.breadcrumbs b{font-weight:400;color:#44564a}.breadcrumbs strong{font-weight:600;color:#d0ddd4}.topbar-right{display:flex;align-items:center;gap:20px}.demo-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(151,203,165,.14);border-radius:30px;padding:6px 10px;color:#87a08f;font-size:8px;letter-spacing:.8px;font-weight:700}.demo-badge i{width:6px;height:6px;background:#d6a45a;box-shadow:0 0 8px rgba(214,164,90,.4)}.user-chip{display:flex;align-items:center;gap:9px;background:none;border:0;color:#d6e2d9;font-size:11px;cursor:pointer}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#23764d,#193b2a);border:1px solid rgba(87,225,145,.2);color:#a1f0be;font-weight:700;font-size:11px}.chevron{color:#7e9184}.content-wrap{max-width:1330px;padding:34px clamp(22px,3.2vw,48px) 25px;margin:0 auto}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}.welcome-row h1{font:700 30px/1.15 'Inter',system-ui,sans-serif;letter-spacing:-1.3px;margin:7px 0}.welcome-row h1 span{color:#54df97}.welcome-row>div>p{color:#82958a;margin:0;font-size:12px}.wave{padding-left:2px}.date-pill{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:#9bad9f;font-size:10px}.date-icon{color:#65dc9b;font-size:16px}.status-grid{display:grid;grid-template-columns:1.15fr 1fr .9fr;gap:13px;margin-bottom:37px}.status-card{position:relative;min-height:148px;padding:17px 18px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(17,34,25,.88),rgba(13,25,19,.88));overflow:hidden}.status-card-main{background:radial-gradient(ellipse at 90% -10%,rgba(41,153,90,.17),transparent 56%),linear-gradient(145deg,rgba(18,39,26,.9),rgba(13,25,19,.9))}.status-card-top{display:flex;align-items:center;gap:9px}.status-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;font-size:15px}.green-icon{background:rgba(50,206,127,.12);color:#62e89f}.purple-icon{background:rgba(154,121,246,.13);color:#b3a0f6}.blue-icon{background:rgba(85,161,231,.13);color:#83c1fa}.status-label{color:#809488;font-weight:700;font-size:8px;letter-spacing:1.15px}.status-value{font:700 17px 'Inter',system-ui,sans-serif;letter-spacing:-.4px;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-card p{font-size:10px;color:#819489;margin:5px 0 11px}.status-foot{display:flex;align-items:center;gap:6px;color:#72877a;font-size:9px}.muted-dot{background:#c99c58;box-shadow:none;width:6px;height:6px}.green-dot{width:6px;height:6px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 17px}.section-heading h2{font:700 20px 'Inter',system-ui,sans-serif;letter-spacing:-.6px;margin:6px 0 4px}.section-heading p{font-size:11px;color:#819488;margin:0}.section-counter{color:#94a79b;font-size:9px;letter-spacing:1px;font-weight:700;padding-bottom:5px}.section-counter i{font-style:normal;color:#52695a}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.plan-card{position:relative;min-height:294px;padding:18px 17px 15px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(150deg,rgba(16,32,23,.9),rgba(12,23,18,.95));display:flex;flex-direction:column;transition:border-color .2s,transform .2s,box-shadow .2s}.plan-card:hover{transform:translateY(-2px);border-color:rgba(99,208,143,.27)}.plan-card.selected{border-color:rgba(61,222,137,.65);box-shadow:0 0 0 1px rgba(61,222,137,.14),0 10px 35px rgba(17,134,76,.08)}.plan-featured{border-color:rgba(57,201,126,.28);background:radial-gradient(ellipse at 92% 2%,rgba(47,165,100,.14),transparent 48%),linear-gradient(150deg,rgba(17,37,25,.96),rgba(12,23,18,.95))}.featured-ribbon{position:absolute;top:0;right:14px;border-radius:0 0 7px 7px;background:rgba(48,192,117,.14);color:#6ce1a0;font-size:7px;letter-spacing:.9px;padding:5px 8px;font-weight:700}.plan-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.plan-icon{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;font-size:16px}.icon-book{background:rgba(94,152,221,.12);color:#8dbbec}.icon-spark{background:rgba(72,209,129,.12);color:#70e4a0}.icon-clock{background:rgba(170,130,242,.13);color:#bea3fa}.plan-tag{color:#7e9185;font-size:8px;letter-spacing:1.05px;font-weight:700}.plan-card h3{font:700 15px 'Inter',system-ui,sans-serif;letter-spacing:-.3px;margin:0 0 6px}.plan-copy{min-height:34px;color:#899b8f;font-size:10px;line-height:1.6;margin:0 0 13px}.plan-card ul{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:7px}.plan-card li{font-size:9px;color:#a2b0a6}.plan-card li span{display:inline-block;width:18px;color:#59d991;font-weight:700}.plan-card li:last-child span{color:#d2ae70}.plan-card .button{margin-top:auto;width:100%;height:37px;padding:0 12px;font-size:10px;justify-content:space-between}.plan-card .button span{font-size:14px}.connection-callout{display:flex;align-items:center;gap:17px;margin-top:18px;border:1px solid rgba(181,145,82,.18);border-radius:15px;background:linear-gradient(100deg,rgba(83,60,28,.16),rgba(17,29,20,.66));padding:17px 18px}.connection-symbol{flex:none;width:42px;height:42px;border-radius:12px;border:1px solid rgba(213,167,87,.18);background:rgba(213,167,87,.08);display:flex;align-items:center;justify-content:center;gap:3px}.connection-symbol span{width:3px;border-radius:3px;background:#d2a55e}.connection-symbol span:nth-child(1){height:9px}.connection-symbol span:nth-child(2){height:16px}.connection-symbol span:nth-child(3){height:12px}.connection-copy{flex:1}.connection-copy .eyebrow{color:#ba9c67;font-size:8px}.connection-copy h3{font:700 13px 'Inter',system-ui,sans-serif;margin:3px 0}.connection-copy p{font-size:9px;color:#98a397;max-width:730px;line-height:1.65;margin:0}.connection-state{flex:none;color:#bf9d63;font-size:8px;letter-spacing:.65px;font-weight:700;display:inline-flex;align-items:center;gap:6px}.connection-state i{width:6px;height:6px;border-radius:50%;background:#c79b56}.profile-section{margin-top:35px}.section-heading.compact{margin-bottom:14px}.section-heading.compact h2{font-size:18px}.profile-card{border:1px solid var(--line);border-radius:15px;background:rgba(14,27,20,.8);padding:18px;display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:16px}.profile-avatar{width:42px;height:42px;font-size:14px}.profile-fields{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px}.profile-fields .field input{height:39px;font-size:10px}.profile-card>.button{align-self:end;height:39px;white-space:nowrap;font-size:10px}.admin-card{border:1px solid var(--line);border-radius:15px;background:rgba(14,27,20,.8);overflow:hidden}.admin-table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:630px;text-align:left}th,td{padding:12px 15px;border-bottom:1px solid var(--line);font-size:10px}th{color:#72877a;font-size:8px;letter-spacing:.8px;text-transform:uppercase}td{color:#bdc9c0}tbody tr:last-child td{border-bottom:0}.role-pill{border:1px solid rgba(66,212,134,.2);border-radius:30px;color:#6edf9c;padding:4px 8px;font-size:8px}.page-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:35px;color:#65786b;font-size:9px}.page-footer b{padding:0 5px;color:#3ca970}.toast{position:fixed;z-index:5;right:22px;bottom:22px;max-width:min(360px,calc(100vw - 36px));padding:12px 15px;border:1px solid rgba(70,214,136,.25);border-radius:12px;background:#10251a;color:#d4f5df;box-shadow:0 14px 42px rgba(0,0,0,.35);font-size:11px;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1120px){.auth-shell{grid-template-columns:.95fr 1.05fr}.auth-panel{padding-left:42px;padding-right:42px}.sidebar{width:210px}.main-area{margin-left:210px}.content-wrap{padding-left:24px;padding-right:24px}.status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.status-card{padding:15px 13px}.plan-grid{gap:9px}.plan-card{padding:15px 13px}.profile-card{grid-template-columns:42px 1fr}.profile-fields{grid-column:2;grid-row:1/3}.profile-card>.button{grid-column:2;justify-self:start}}@media(max-width:820px){.auth-shell{grid-template-columns:1fr;padding:16px;min-height:100svh}.auth-art{display:none}.auth-panel{padding:0 18px 6px;min-height:calc(100svh - 32px)}.auth-panel>.brand{display:none}.auth-mobile-brand{display:inline-flex;align-self:flex-start;margin:13px 0 28px}.auth-form-wrap{margin:auto;max-width:430px}.auth-bottom{padding-top:25px}.sidebar{width:72px;padding:19px 9px 13px;align-items:center}.sidebar .brand{padding:0 0 31px}.sidebar .brand>span:last-child,.workspace-label,.sidebar-note,.sidebar-version{display:none}.side-nav{width:100%;justify-items:center}.nav-item{width:46px;height:44px;min-height:44px;justify-content:center;padding:0;font-size:0}.nav-item.active{box-shadow:inset 0 -2px #45d78c}.nav-icon{font-size:18px}.sidebar-bottom{width:100%;display:grid;justify-items:center}.logout-button{display:flex!important}.main-area{margin-left:72px}.topbar{height:60px;padding:0 19px}.content-wrap{padding:26px 19px}.status-grid{grid-template-columns:1fr 1fr}.status-card:first-child{grid-column:1/-1}.plan-grid{grid-template-columns:1fr 1fr}.plan-card:last-child{grid-column:1/-1;min-height:260px}.profile-fields{grid-template-columns:1fr 1fr}.profile-fields .field:last-child{grid-column:1/-1}}@media(max-width:560px){.auth-shell{padding:0}.auth-panel{padding:0 23px 6px;min-height:100svh}.auth-mobile-brand{margin-top:23px}.auth-heading h2{font-size:27px}.topbar{padding:0 13px}.breadcrumbs{font-size:10px}.topbar-right{gap:9px}.demo-badge{font-size:0;padding:7px}.demo-badge i{width:7px;height:7px}.user-chip{gap:6px}.user-chip #top-user-name{display:none}.content-wrap{padding:24px 14px 20px}.welcome-row{align-items:flex-start;margin-bottom:20px}.welcome-row h1{font-size:25px}.welcome-row>div>p{font-size:10px}.date-pill{font-size:0;padding:7px 9px}.date-icon{font-size:17px}.status-grid{gap:8px;margin-bottom:29px}.status-card{padding:13px 11px;min-height:135px}.status-card:first-child{min-height:128px}.status-value{font-size:14px}.status-card p{font-size:9px}.status-label{font-size:7px;letter-spacing:.7px}.section-heading h2{font-size:17px}.section-heading p{font-size:9px;max-width:260px}.section-counter{font-size:8px}.plan-grid{grid-template-columns:1fr;gap:9px}.plan-card,.plan-card:last-child{grid-column:auto;min-height:unset;padding:15px}.plan-copy{min-height:unset}.plan-card ul{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}.plan-card .button{margin-top:3px}.connection-callout{align-items:flex-start;gap:11px;padding:14px 12px}.connection-symbol{width:35px;height:35px}.connection-copy h3{font-size:12px}.connection-copy p{font-size:9px}.connection-state{position:absolute;opacity:0}.profile-card{grid-template-columns:36px minmax(0,1fr);gap:11px;padding:13px}.profile-avatar{width:35px;height:35px}.profile-fields{grid-template-columns:1fr;grid-column:2;grid-row:1}.profile-fields .field:last-child{grid-column:auto}.profile-card>.button{grid-column:2;grid-row:2}.page-footer{flex-direction:column;font-size:8px;margin-top:25px}.admin-card{margin:0 -3px}.toast{right:12px;bottom:13px}.sidebar{width:58px}.main-area{margin-left:58px}.sidebar .brand{padding-bottom:25px}.nav-item{width:39px;height:41px;min-height:41px}.sidebar{padding-left:6px;padding-right:6px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}/* WhatsApp pairing */.pairing-section{scroll-margin-top:22px}.pairing-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:13px;align-items:stretch}.pairing-card,.pairing-log-card{border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(16,34,24,.88),rgba(12,24,18,.95));padding:19px}.pairing-card{gap:15px}.pairing-card .field input{font-size:13px;letter-spacing:.3px}.pairing-consent{display:flex;align-items:flex-start;gap:10px;color:#afc0b4;font-size:11px;line-height:1.6;cursor:pointer}.pairing-consent input{accent-color:var(--green);width:16px;height:16px;flex:none;margin:2px 0 0}.pairing-warning{margin:-4px 0 0;color:#d2b77f;font-size:10px;line-height:1.6}.pairing-code-card{display:grid;justify-items:center;gap:8px;text-align:center;margin-top:2px;padding:17px 13px;border:1px solid rgba(65,214,135,.25);border-radius:13px;background:rgba(30,102,63,.13)}.pairing-code-card code{font:800 32px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:6px;color:#91f2b9;user-select:all}.pairing-code-card p{margin:0;color:#9eb3a5;font-size:10px}.pairing-log-card{min-height:210px}.pairing-log-heading{display:flex;align-items:center;justify-content:space-between}.pairing-log-heading h3{font:700 15px 'Inter',system-ui,sans-serif;margin:5px 0}.pairing-log-card>p{margin:2px 0 13px;color:#85998c;font-size:10px}.log-lock{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:rgba(56,203,121,.1);color:#63d997}.pairing-log-list{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-height:205px;overflow:auto}.pairing-log-list li{border-left:2px solid rgba(63,205,128,.48);padding:5px 9px;color:#aebdb2;font-size:10px;line-height:1.55;background:rgba(237,255,243,.02);border-radius:0 7px 7px 0}.pairing-log-list time{display:block;color:#70877a;font-size:8px;margin-bottom:1px}.pairing-code-card .button{min-width:125px}.pairing-section .notice{margin:0}@media(max-width:820px){.pairing-layout{grid-template-columns:1fr}.pairing-log-card{min-height:unset}.pairing-log-list{max-height:170px}}@media(max-width:560px){.pairing-card,.pairing-log-card{padding:14px}.pairing-code-card code{font-size:27px;letter-spacing:4px}.pairing-section .section-heading{align-items:flex-start}}/* Developer support and neutral status */.notice.info{border-color:rgba(91,165,220,.24);background:rgba(46,107,150,.12);color:#a9c8dc}.page-footer{align-items:center;gap:18px}.footer-brand{display:grid;gap:6px;min-width:0}.footer-brand span+span{color:#708679}.developer-contact{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}.developer-info{display:grid;gap:4px;margin-right:4px;color:#aebdb2;font-size:9px;line-height:1.4}.contact-kicker{font-size:7px;letter-spacing:1.15px;color:#6f8b79}.contact-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 11px;border:1px solid rgba(109,143,121,.22);border-radius:9px;background:rgba(236,255,241,.025);color:#c5d5c9;font-size:9px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}.contact-link:hover{border-color:rgba(76,210,132,.42);background:rgba(55,188,110,.09);color:#8eecb2}.contact-link span{font-size:12px;color:#6fe09b}.contact-telegram span{color:#80c9e6}@media(max-width:820px){.page-footer{align-items:flex-start;flex-direction:column}.developer-contact{justify-content:flex-start;width:100%}}@media(max-width:560px){.page-footer{align-items:stretch;width:100%;gap:14px}.footer-brand{font-size:8px}.developer-contact{display:grid;grid-template-columns:1fr 1fr;gap:8px}.developer-info{grid-column:1/-1;margin:0 0 2px}.contact-link{min-height:40px;width:100%;font-size:10px}}.auth-bottom{align-items:center;gap:12px;flex-wrap:wrap}.auth-support-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#82958a;font-size:9px}.auth-support-links a{color:#9fe2b7;text-decoration:none;border-bottom:1px solid rgba(93,209,139,.2);padding:3px 0}.auth-support-links a:hover{color:#d0f5dc;border-color:#5dd18b}@media(max-width:560px){.auth-bottom{display:grid;grid-template-columns:1fr;gap:8px;justify-items:center;text-align:center;padding:14px 0}.auth-support-links{justify-content:center;gap:12px}.auth-bottom>span{font-size:9px}}.pairing-linked-card{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid rgba(65,214,135,.25);border-radius:13px;background:rgba(30,102,63,.13)}.linked-mark{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:rgba(49,213,139,.14);color:var(--green2);font-weight:800}.pairing-linked-card strong{display:block;color:var(--green2);font-size:12px}.pairing-linked-card p{margin:4px 0 0;color:#a6b8ab;font-size:10px;line-height:1.6}.session-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.session-actions .button{margin-top:0}.button-danger{background:rgba(152,44,44,.12);border-color:rgba(232,114,114,.24);color:#f1aaaa}.button-danger:hover{border-color:rgba(232,114,114,.5);background:rgba(152,44,44,.2)}.bot-worker-card{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:14px;padding:18px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(16,34,24,.9),rgba(12,24,18,.95))}.bot-worker-copy{min-width:0}.bot-worker-copy h2{font:700 16px 'Inter',system-ui,sans-serif;margin:5px 0}.bot-worker-copy p{max-width:650px;color:#92a598;font-size:10px;line-height:1.6;margin:0}.bot-worker-state{display:flex;align-items:center;gap:8px;margin-top:12px;color:#a8b9ad;font-size:9px}.bot-worker-state strong{color:#8a9f91;font-size:9px;letter-spacing:.7px}.bot-worker-state span{color:#819488}.bot-worker-state.is-running strong{color:var(--green2)}.bot-worker-state.is-running i{background:var(--green);box-shadow:0 0 10px rgba(49,213,139,.45)}.bot-worker-actions{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr));gap:8px;flex:none}.bot-worker-actions .button{min-height:42px;margin:0;font-size:10px;padding:9px 12px}@media(max-width:700px){.bot-worker-card{align-items:stretch;flex-direction:column;gap:14px}.bot-worker-actions{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.bot-worker-actions .button{min-height:46px;padding:8px 6px;font-size:10px}}@media(max-width:420px){.bot-worker-actions{grid-template-columns:1fr}.bot-worker-actions .button{width:100%;min-height:44px}}.activity-summary{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:11px 12px;border:1px solid rgba(109,143,121,.18);border-radius:10px;background:rgba(233,255,239,.025)}.activity-summary>div{display:grid;gap:3px;min-width:0}.activity-summary strong{color:#cfe2d4;font-size:10px;letter-spacing:.3px}.activity-summary small{color:#82998a;font-size:9px;line-height:1.45}.activity-summary.is-running{border-color:rgba(65,214,135,.24);background:rgba(30,102,63,.1)}.activity-summary.is-running strong{color:var(--green2)}.pairing-log-list li.activity-log-entry{display:grid;gap:4px;border-left:0;border:1px solid rgba(109,143,121,.13);padding:8px 10px;border-radius:9px;background:rgba(237,255,243,.025)}.activity-log-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.activity-log-entry time{margin:0}.activity-kind{display:inline-flex;align-items:center;min-height:17px;padding:2px 7px;border-radius:99px;background:rgba(139,159,145,.1);color:#a9b7ad;font-size:7px;font-weight:800;letter-spacing:.7px}.activity-kind.bot{background:rgba(89,125,214,.12);color:#aabcf7}.activity-kind.story{background:rgba(187,102,213,.12);color:#dfb5ee}.activity-kind.whatsapp{background:rgba(49,213,139,.12);color:#8ce8b0}.activity-kind.alert{background:rgba(232,114,114,.12);color:#efaaaa}.activity-log-message{color:#b6c5ba;font-size:10px;line-height:1.5}.control-feedback{display:grid;gap:3px;margin-top:8px;padding:10px 12px;border:1px solid rgba(109,143,121,.18);border-left:3px solid #728a79;border-radius:9px;background:rgba(236,255,241,.025)}.control-feedback strong{font-size:10px;color:#d5e2d8}.control-feedback p{margin:0;font-size:9px;line-height:1.45;color:#91a398}.control-feedback.success{border-left-color:var(--green);background:rgba(30,102,63,.09)}.control-feedback.success strong{color:var(--green2)}.control-feedback.error{border-left-color:#e87272;background:rgba(152,44,44,.09)}.control-feedback.error strong{color:#f0aaaa}.control-feedback.info{border-left-color:#80c9e6;background:rgba(46,107,150,.09)}@media(max-width:560px){.activity-summary{padding:10px}.activity-log-message{font-size:10px}.control-feedback{margin-top:9px}.pairing-log-list{max-height:230px}}.story-settings-card{margin:0 0 18px;padding:19px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(16,34,24,.88),rgba(12,24,18,.95))}.story-settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.story-settings-heading h2{margin:5px 0;font:700 17px 'Inter',system-ui,sans-serif}.story-settings-heading p{margin:0;max-width:620px;color:#91a398;font-size:10px;line-height:1.55}.story-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.story-settings-grid select{width:100%;min-height:39px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#122019;color:#d9e8dd;font:500 12px inherit}.story-reaction-switch{display:flex;align-items:flex-start;gap:10px;margin:13px 0;padding:11px 12px;border:1px solid rgba(109,143,121,.17);border-radius:10px;background:rgba(237,255,243,.025);cursor:pointer}.story-reaction-switch input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--green);flex:none}.story-reaction-switch span{display:grid;gap:3px}.story-reaction-switch strong{font-size:10px;color:#cfe2d4}.story-reaction-switch small{font-size:9px;line-height:1.45;color:#82998a}.emoji-pool-field{min-width:0;margin:0;padding:10px 11px 11px;border:1px solid rgba(109,143,121,.17);border-radius:10px}.emoji-pool-field legend{padding:0 5px;color:#cfe2d4;font-size:10px;font-weight:700}.emoji-pool-field legend small{color:#82998a;font-weight:400}.emoji-pool{display:flex;flex-wrap:wrap;gap:7px}.emoji-choice{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(109,143,121,.2);border-radius:10px;background:rgba(237,255,243,.025);font-size:19px;cursor:pointer;transition:transform .15s,border-color .15s,background .15s}.emoji-choice:hover{transform:translateY(-1px);border-color:rgba(76,210,132,.45)}.emoji-choice.selected{border-color:rgba(65,214,135,.7);background:rgba(49,213,139,.16);box-shadow:0 0 0 2px rgba(49,213,139,.08)}.story-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.story-settings-footer .control-feedback{flex:1;margin:0}.story-settings-note{margin:10px 0 0;color:#778e7e;font-size:9px;line-height:1.5}.story-settings-card button:disabled,.emoji-choice:disabled{opacity:.55;cursor:not-allowed}@media(max-width:560px){.story-settings-card{padding:14px}.story-settings-grid{gap:9px}.story-settings-heading h2{font-size:15px}.story-settings-footer{align-items:stretch;flex-direction:column-reverse}.story-settings-footer .button{width:100%;min-height:42px}.emoji-choice{width:38px;height:38px}}/* Structured per-story activity card */.activity-log-entry.activity-log-story{display:grid;gap:9px;padding:11px 0;border-bottom:1px solid rgba(191,230,208,.07)}.story-log-card{min-width:0;padding:13px;border:1px solid rgba(113,174,139,.18);border-radius:12px;background:linear-gradient(145deg,rgba(18,39,28,.82),rgba(11,25,18,.9))}.story-log-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-bottom:9px;border-bottom:1px solid rgba(191,230,208,.08)}.story-log-heading strong{color:#dff4e6;font:700 12px 'Inter',system-ui,sans-serif;letter-spacing:.15px}.story-log-outcome{max-width:64%;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:700;text-align:center}.story-log-outcome.is-success{color:#8bf0b8;background:rgba(49,213,139,.11);border:1px solid rgba(49,213,139,.2)}.story-log-outcome.is-error{color:#ffb6aa;background:rgba(227,90,74,.1);border:1px solid rgba(227,90,74,.19)}.story-log-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px 12px;margin:0;padding-top:8px}.story-log-field{min-width:0;padding:6px 0}.story-log-field dt{margin:0 0 2px;color:#7f9b8c;font-size:8px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}.story-log-field dd{margin:0;overflow-wrap:anywhere;color:#d6e5da;font-size:10px;font-weight:500;line-height:1.4}.story-log-field:nth-child(3) dd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.15px}.story-log-field:nth-child(9) dd{font-variant-numeric:tabular-nums;letter-spacing:.25px}@media(max-width:760px){.story-log-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 10px}.story-log-card{padding:11px}.story-log-heading strong{font-size:11px}}@media(max-width:360px){.story-log-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 7px}.story-log-field dd{font-size:9px}.story-log-outcome{font-size:8px;padding:3px 6px}}/* Per-account custom emoji editor */.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}.emoji-pool{align-items:center;min-height:42px}.emoji-item{position:relative;display:inline-flex;width:42px;height:44px;align-items:flex-end;justify-content:flex-start}.emoji-choice{touch-action:manipulation;pointer-events:auto;position:relative;z-index:1}.emoji-remove{position:absolute;z-index:2;top:-1px;right:-1px;width:19px;height:19px;padding:0;border:1px solid rgba(213,232,219,.2);border-radius:50%;background:#1a2a21;color:#c8d8ce;font-size:15px;line-height:16px;cursor:pointer;touch-action:manipulation}.emoji-remove:hover,.emoji-remove:focus-visible{border-color:rgba(255,117,117,.65);background:#492321;color:#fff}.emoji-add-row{display:flex;align-items:center;gap:8px;margin-top:12px}.emoji-add-row input{flex:1;min-width:0;height:42px;padding:0 11px;border:1px solid rgba(109,143,121,.22);border-radius:10px;background:rgba(4,13,9,.45);color:var(--text);font-size:12px}.emoji-add-row input::placeholder{color:#71877a}.emoji-add-row .button{min-height:42px;white-space:nowrap}.emoji-help{display:block;margin-top:7px;color:#809589;font-size:9px;line-height:1.5}.emoji-empty{color:#809589;font-size:10px;padding:6px 2px}.emoji-choice:focus-visible,.emoji-remove:focus-visible,.emoji-add-row .button:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:440px){.emoji-add-row{align-items:stretch;flex-wrap:wrap}.emoji-add-row input{flex:1 1 100%}.emoji-add-row .button{width:100%;min-height:44px}.emoji-item{width:44px;height:46px}.emoji-choice{width:40px;height:40px}}.emoji-add-row textarea{flex:1;min-width:0;min-height:78px;padding:10px 11px;resize:vertical;border:1px solid rgba(109,143,121,.22);border-radius:10px;background:rgba(4,13,9,.45);color:var(--text);font:inherit;font-size:12px;line-height:1.5}.emoji-add-row textarea::placeholder{color:#71877a}.emoji-add-row textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}@media(max-width:440px){.emoji-add-row textarea{flex:1 1 100%;width:100%;min-height:82px}.emoji-add-row .button{width:100%;min-height:44px}}/* Refined WhatsApp pairing onboarding */.pairing-layout{grid-template-columns:minmax(0,1.08fr) minmax(275px,.82fr);gap:16px;align-items:stretch}.pairing-card,.pairing-side-card,.pairing-log-card{border:1px solid rgba(170,224,190,.12);border-radius:18px;background:linear-gradient(145deg,rgba(17,36,26,.94),rgba(10,22,16,.96));box-shadow:0 18px 52px rgba(0,0,0,.12)}.pairing-card{padding:23px;gap:17px}.pairing-card #pairing-controls{gap:18px}.pairing-form-intro{display:flex;align-items:center;gap:12px;padding:0 0 16px;border-bottom:1px solid rgba(191,230,208,.09)}.pairing-step-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(67,222,139,.23);border-radius:12px;background:rgba(49,213,139,.1);color:#7aefae;font-size:11px;font-weight:800;letter-spacing:.5px}.pairing-form-intro strong{display:block;color:#e5f4e9;font-size:13px;letter-spacing:-.15px}.pairing-form-intro p{margin:3px 0 0;color:#82978a;font-size:10px;line-height:1.5}.pairing-phone-field{gap:9px}.pairing-phone-field>span{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#d9e6dd;font-size:12px}.pairing-phone-field>span small{float:none;color:#7f9989;font-size:9px;letter-spacing:.35px;text-transform:uppercase}.pairing-phone-field input{height:52px;padding:0 15px;border-color:rgba(143,196,160,.18);border-radius:12px;background:rgba(5,16,10,.68);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;letter-spacing:.7px}.pairing-phone-field input::placeholder{color:#607569;letter-spacing:.5px}.pairing-field-hint{display:block;color:#82968a;font-size:9px;font-weight:400;line-height:1.6}.pairing-field-hint b{color:#9ddcb3;font-weight:700}.pairing-consent{gap:11px;padding:13px 14px;border:1px solid rgba(151,205,168,.12);border-radius:12px;background:rgba(231,250,238,.025);color:#c2d2c8;font-size:10px;line-height:1.55}.pairing-consent input{width:17px;height:17px;margin:1px 0 0;accent-color:#3edc91}.pairing-consent span{display:grid;gap:3px}.pairing-consent strong{color:#e4f2e8;font-size:10px}.pairing-consent small{color:#8da195;font-size:9px;line-height:1.55}.pairing-warning{display:flex;align-items:flex-start;gap:9px;margin:-5px 0 0;padding:11px 12px;border:1px solid rgba(219,174,99,.17);border-radius:11px;background:rgba(133,94,37,.09);color:#c8b78f;font-size:9px;line-height:1.55}.pairing-warning>span:first-child{flex:none;display:grid;place-items:center;width:17px;height:17px;border:1px solid rgba(229,187,113,.37);border-radius:50%;color:#e4bd73;font-size:10px;font-weight:800}.pairing-warning strong{color:#e1c890}.pairing-card .button-wide{height:49px;margin-top:0;border-radius:12px;font-size:12px}.pairing-side-card{position:relative;isolation:isolate;overflow:hidden;padding:25px 23px;align-self:stretch}.pairing-side-orb{position:absolute;z-index:-1;top:-100px;right:-100px;width:245px;height:245px;border:1px solid rgba(87,224,147,.1);border-radius:50%;box-shadow:0 0 65px rgba(41,189,111,.08),inset 0 0 45px rgba(41,189,111,.035)}.pairing-side-card>.eyebrow{color:#70d99c;font-size:9px}.pairing-side-card h3{margin:8px 0 7px;color:#edf7ef;font:700 20px/1.25 'Inter',system-ui,sans-serif;letter-spacing:-.55px}.pairing-side-copy{max-width:370px;margin:0;color:#91a498;font-size:10px;line-height:1.7}.pairing-prep-list{display:grid;gap:19px;margin:23px 0 22px;padding:0;list-style:none}.pairing-prep-list li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:11px;align-items:start}.pairing-prep-list li>span{display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(73,213,136,.2);border-radius:9px;background:rgba(51,191,116,.09);color:#7ce9a7;font-size:10px;font-weight:800}.pairing-prep-list strong,.pairing-prep-list small{display:block}.pairing-prep-list strong{margin:1px 0 3px;color:#dceae0;font-size:10px}.pairing-prep-list small{color:#83988b;font-size:9px;line-height:1.55}.pairing-privacy-note{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid rgba(79,188,126,.14);border-radius:12px;background:rgba(40,117,73,.08)}.pairing-privacy-note>span{color:#6cdda0;font-size:17px;line-height:1}.pairing-privacy-note p{margin:0;color:#8fa397;font-size:9px;line-height:1.6}.pairing-privacy-note strong{color:#bde9cb;font-size:10px}.pairing-code-card{width:100%;margin-top:1px;padding:18px;border-color:rgba(65,214,135,.25);border-radius:14px;background:linear-gradient(150deg,rgba(25,78,48,.2),rgba(18,41,27,.2))}.pairing-code-heading{display:flex;align-items:center;gap:10px;text-align:left}.pairing-code-heading>div{display:grid;gap:2px}.pairing-code-heading .eyebrow{color:#81dca4;font-size:8px}.pairing-code-heading strong{color:#dff4e5;font-size:12px}.pairing-code-shield{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(72,220,140,.22);border-radius:10px;background:rgba(49,213,139,.1);color:#79eaa8;font-size:15px;font-weight:800}.pairing-code-card code{display:block;margin:8px 0 2px;padding:13px 10px;border:1px solid rgba(106,219,150,.12);border-radius:11px;background:rgba(3,17,9,.38);font-size:clamp(25px,4vw,32px);letter-spacing:7px}.pairing-expiry{font-size:9px!important;line-height:1.5}.pairing-copy-button{width:100%;min-height:42px;margin:4px 0 0;border-radius:10px;font-size:10px}.pairing-instructions{width:100%;margin-top:1px;border:1px solid rgba(143,196,160,.12);border-radius:12px;background:rgba(2,14,8,.24);text-align:left;overflow:hidden}.pairing-instructions summary{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;cursor:pointer;list-style:none;user-select:none}.pairing-instructions summary::-webkit-details-marker{display:none}.pairing-instructions summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:10px}.instructions-summary-icon{flex:none;display:grid;place-items:center;width:26px;height:26px;border:1px solid rgba(105,190,223,.19);border-radius:9px;background:rgba(74,153,194,.08);color:#8dcce8;font-size:12px;font-weight:800}.pairing-instructions summary>span:nth-child(2){display:grid;gap:3px;min-width:0}.pairing-instructions summary strong{color:#d5e6da;font-size:10px}.pairing-instructions summary small{color:#809588;font-size:8px}.instructions-chevron{margin-left:auto;color:#8fa899;font-size:16px;transition:transform .18s ease}.pairing-instructions[open] .instructions-chevron{transform:rotate(180deg)}.pairing-instructions-body{padding:0 13px 14px;border-top:1px solid rgba(191,230,208,.07)}.instructions-lead{margin:11px 0;color:#9eafa4;font-size:9px;line-height:1.6}.pairing-platform-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:pairing-step}.pairing-platform-steps li{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:start;counter-increment:pairing-step}.pairing-platform-steps li>strong{color:#85e3a9;font-size:9px}.pairing-platform-steps li>span{color:#a0b1a5;font-size:9px;line-height:1.6}.pairing-platform-steps b{color:#d9e9de;font-weight:700}.pairing-instructions-note{margin-top:12px;padding:9px 10px;border-left:2px solid rgba(223,178,105,.55);border-radius:0 8px 8px 0;background:rgba(141,98,40,.09);color:#c7b78f;font-size:8px;line-height:1.6}.pairing-instructions-note strong{color:#e6cb92}@media(max-width:980px){.pairing-layout{grid-template-columns:minmax(0,1fr) minmax(245px,.78fr);gap:12px}.pairing-card{padding:19px}.pairing-side-card{padding:22px 18px}}@media(max-width:760px){.pairing-layout{grid-template-columns:1fr}.pairing-side-card{padding:21px}.pairing-prep-list{grid-template-columns:1fr;gap:14px}.pairing-side-card h3{font-size:18px}}@media(max-width:560px){.pairing-card{padding:16px;gap:14px}.pairing-card #pairing-controls{gap:15px}.pairing-form-intro{padding-bottom:13px}.pairing-side-card{padding:18px}.pairing-code-card{padding:14px}.pairing-code-card code{font-size:25px;letter-spacing:5px}.pairing-platform-steps li{grid-template-columns:58px minmax(0,1fr);gap:6px}.pairing-instructions summary{gap:8px;padding:10px}.pairing-instructions summary strong{font-size:9px}}/* Realtime international number preview */.pairing-number-feedback{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:2px;padding:10px 11px;border:1px solid rgba(137,176,150,.15);border-radius:11px;background:rgba(2,15,8,.42);transition:border-color .18s ease,background .18s ease}.pairing-number-flag{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(143,196,160,.12);border-radius:9px;background:rgba(232,250,238,.035);font-size:18px;line-height:1}.pairing-number-copy{display:grid;gap:3px;min-width:0}.pairing-number-copy strong{overflow:hidden;color:#dceae0;font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.pairing-number-copy small{overflow-wrap:anywhere;color:#82968a;font-size:8px;font-weight:400;line-height:1.5}.pairing-number-pill{justify-self:end;padding:4px 7px;border:1px solid rgba(142,170,150,.16);border-radius:999px;background:rgba(137,161,143,.07);color:#91a397;font-size:7px;font-weight:700;letter-spacing:.1px;white-space:nowrap}.pairing-number-feedback.is-valid{border-color:rgba(76,214,137,.25);background:rgba(30,102,63,.09)}.pairing-number-feedback.is-valid .pairing-number-pill{border-color:rgba(76,214,137,.22);background:rgba(49,213,139,.1);color:#8ce9af}.pairing-number-feedback.is-invalid{border-color:rgba(229,123,112,.27);background:rgba(111,41,35,.09)}.pairing-number-feedback.is-invalid .pairing-number-pill{border-color:rgba(229,123,112,.22);background:rgba(183,76,66,.1);color:#f2aaa2}.pairing-whatsapp-disclaimer{display:block;color:#718579;font-size:8px;font-weight:400;line-height:1.55}.pairing-whatsapp-disclaimer b{color:#c1ad82;font-weight:700}@media(max-width:420px){.pairing-number-feedback{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:9px}.pairing-number-flag{width:29px;height:29px}.pairing-number-pill{grid-column:2;justify-self:start;margin-top:-2px}.pairing-whatsapp-disclaimer{font-size:7.5px}}.pairing-phone-field>span.pairing-number-feedback{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;justify-content:initial;gap:10px}@media(max-width:420px){.pairing-phone-field>span.pairing-number-feedback{grid-template-columns:30px minmax(0,1fr);gap:8px}}/* Public landing panel: feature overview, free-plan clarity, and motivation */.auth-shell{align-items:stretch;gap:0}.auth-art{justify-content:flex-start;min-height:calc(100svh - 56px);padding:28px 32px 18px;background:radial-gradient(ellipse at 74% 12%,rgba(42,190,112,.18),transparent 39%),radial-gradient(ellipse at 14% 82%,rgba(28,101,71,.22),transparent 48%),linear-gradient(145deg,#10251b,#0b1712 62%,#0e2118)}.auth-art:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,transparent 20%,rgba(116,230,163,.035) 52%,transparent 80%);pointer-events:none}.auth-art>.brand{align-self:flex-start;padding:0;margin-bottom:5px}.auth-art .art-copy{max-width:650px;margin:12px 0 15px;transform:none}.auth-art .art-copy h1{font-size:clamp(39px,4.5vw,61px);letter-spacing:-3.6px;margin:17px 0 10px}.auth-art .art-copy p{max-width:560px;margin:0;color:#9aafa1;font-size:13px;line-height:1.7}.auth-free-banner{display:flex;align-items:center;gap:11px;max-width:520px;margin:0 0 13px;padding:10px 13px;border:1px solid rgba(83,222,143,.2);border-radius:12px;background:linear-gradient(100deg,rgba(32,128,73,.16),rgba(13,35,22,.52));box-shadow:0 10px 32px rgba(0,0,0,.08)}.free-symbol{flex:none;display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:rgba(51,213,132,.15);color:#73eda5;font-size:13px;font-weight:800}.auth-free-banner>span:nth-child(2){display:grid;gap:1px}.auth-free-banner strong{color:#e5faeb;font-size:11px;letter-spacing:.1px}.auth-free-banner small{color:#8ca597;font-size:9px;line-height:1.4}.free-label{margin-left:auto;padding:4px 7px;border:1px solid rgba(95,224,149,.2);border-radius:999px;color:#76e5a1;font-size:7px;font-weight:800;letter-spacing:1px}.auth-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 7px}.auth-feature-card{position:relative;min-width:0;min-height:140px;padding:12px 12px 11px;border:1px solid rgba(169,222,187,.11);border-radius:14px;background:linear-gradient(155deg,rgba(20,42,29,.76),rgba(8,22,14,.76));transition:transform .2s ease,border-color .2s ease,background .2s ease}.auth-feature-card:hover{transform:translateY(-2px);border-color:rgba(80,219,137,.3);background:linear-gradient(155deg,rgba(25,56,37,.86),rgba(8,22,14,.85))}.auth-feature-highlight{border-color:rgba(80,219,137,.22);background:radial-gradient(ellipse at 92% 0,rgba(55,206,125,.11),transparent 48%),linear-gradient(155deg,rgba(20,48,31,.9),rgba(8,22,14,.82))}.auth-feature-limited{border-style:dashed;border-color:rgba(197,168,111,.2);background:rgba(75,58,29,.12)}.auth-feature-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;font-size:14px}.icon-read{background:rgba(99,169,235,.12);color:#9bcaff}.icon-react{background:rgba(72,213,130,.13);color:#78e7a1}.icon-online{background:rgba(216,179,111,.12);color:#d7b773}.auth-feature-tag{position:absolute;top:15px;right:11px;color:#71887a;font-size:7px;font-weight:800;letter-spacing:.75px}.auth-feature-card h2{margin:11px 0 4px;color:#e6f3e9;font:700 12px/1.25 'Inter',system-ui,sans-serif;letter-spacing:-.2px}.auth-feature-card p{margin:0;color:#91a398;font-size:9px;line-height:1.55}.auth-feature-note{display:flex;align-items:flex-start;gap:7px;margin:0 0 10px;color:#7e9385;font-size:8px;line-height:1.5}.auth-feature-note span{flex:none;display:grid;place-items:center;width:14px;height:14px;border:1px solid rgba(137,173,149,.2);border-radius:50%;color:#91b49c;font-size:8px;font-weight:700}.auth-motivation{position:relative;min-height:64px;margin-top:auto;padding:10px 13px 11px;border:1px solid rgba(130,166,143,.12);border-radius:13px;background:rgba(4,16,9,.34);overflow:hidden}.motivation-topline{display:flex;align-items:center;justify-content:space-between}.motivation-topline .eyebrow{color:#81a18d;font-size:7px;letter-spacing:1.1px}.motivation-spark{color:#7ce2a2;font-size:12px}.auth-motivation p{min-height:20px;margin:4px 0 0;color:#d8e7dc;font-size:11px;font-weight:500;letter-spacing:.05px;line-height:1.5}.motivation-caret{display:inline-block;width:1px;height:12px;margin-left:2px;vertical-align:-2px;background:#71e6a0;animation:motivation-blink .8s steps(2,start) infinite}@keyframes motivation-blink{to{visibility:hidden}}.auth-art .art-footer{align-items:center;gap:12px;margin-top:9px;padding-top:0;color:#61776a;font-size:7px;letter-spacing:.65px}.auth-art .art-footer span:last-child{text-align:right;font-weight:500;letter-spacing:0}@media(max-width:1120px){.auth-art{padding-left:25px;padding-right:25px}.auth-art .art-copy h1{font-size:clamp(37px,4.3vw,54px)}.auth-feature-card{padding:11px 10px}.auth-feature-card h2{font-size:11px}}@media(max-width:820px){.auth-shell{display:flex;flex-direction:column;gap:0;padding:12px;min-height:100svh}.auth-art{display:flex;min-height:unset;width:100%;padding:20px 22px 15px;border-radius:22px}.auth-art>.brand{margin-bottom:0}.auth-art .art-copy{margin:10px 0 12px}.auth-art .art-copy h1{font-size:clamp(37px,7vw,52px);letter-spacing:-2.8px;margin:12px 0 7px}.auth-art .art-copy p{font-size:11px;line-height:1.6}.auth-free-banner{margin-bottom:10px}.auth-feature-grid{gap:7px}.auth-feature-card{min-height:126px;padding:10px}.auth-feature-card h2{font-size:10px}.auth-feature-card p{font-size:8px}.auth-feature-tag{top:13px;right:8px;font-size:6px}.auth-feature-note{margin-bottom:8px}.auth-motivation{min-height:58px}.auth-panel{min-height:unset;padding:0 18px 12px}.auth-mobile-brand{display:none}.auth-form-wrap{max-width:440px;margin:0 auto;padding:28px 0 20px}.auth-heading{margin-bottom:20px}.auth-bottom{flex-wrap:wrap;gap:8px;padding-top:13px}.auth-art .art-footer{margin-top:8px}}@media(max-width:560px){.auth-shell{padding:0 0 10px}.auth-art{padding:18px 18px 13px;border-radius:0 0 21px 21px}.auth-art>.brand{font-size:14px}.auth-art .brand-mark{width:27px;height:27px}.auth-art .art-copy{margin:8px 0 10px}.auth-art .art-copy .eyebrow{font-size:8px;letter-spacing:1px}.auth-art .art-copy h1{font-size:clamp(34px,10vw,43px);line-height:1.02;letter-spacing:-2.4px;margin:11px 0 7px}.auth-art .art-copy p{max-width:440px;font-size:10px}.auth-free-banner{gap:8px;padding:8px 10px}.free-symbol{width:24px;height:24px}.auth-free-banner strong{font-size:10px}.auth-free-banner small{font-size:8px}.free-label{font-size:6px}.auth-feature-grid{grid-template-columns:1fr 1fr;gap:7px;margin-bottom:6px}.auth-feature-card{min-height:113px;padding:9px;border-radius:12px}.auth-feature-card h2{font-size:10px;margin:8px 0 3px}.auth-feature-card p{font-size:8px;line-height:1.45}.auth-feature-icon{width:23px;height:23px;font-size:12px}.auth-feature-tag{top:11px;right:7px;font-size:6px;letter-spacing:.45px}.auth-feature-limited{display:grid;grid-template-columns:25px auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;grid-column:1/-1;min-height:54px;padding:8px 10px}.auth-feature-limited .auth-feature-icon{grid-column:1;grid-row:1/3}.auth-feature-limited .auth-feature-tag{position:static;grid-column:2;grid-row:1;justify-self:start}.auth-feature-limited h2{grid-column:3;grid-row:1;margin:0;font-size:9px}.auth-feature-limited p{grid-column:2/4;grid-row:2;font-size:8px}.auth-feature-note{font-size:7px;margin-bottom:7px}.auth-motivation{min-height:55px;padding:8px 10px;margin-top:0}.auth-motivation p{font-size:10px;min-height:16px}.auth-art .art-footer{flex-wrap:wrap;justify-content:space-between;font-size:6px}.auth-art .art-footer span:last-child{max-width:68%;font-size:7px}.auth-panel{padding:0 21px 10px}.auth-form-wrap{padding:24px 0 17px}.auth-heading h2{font-size:25px}.auth-heading p{font-size:11px}.auth-bottom{font-size:8px}.auth-support-links{gap:8px}}@media(prefers-reduced-motion:reduce){.auth-feature-card,.motivation-caret{transition:none;animation:none}.auth-feature-card:hover{transform:none}}/* Realtime footer and public policy pages */.auth-bottom{display:grid;grid-template-columns:1fr auto;align-items:center;gap:9px 18px;border-top:1px solid rgba(191,230,208,.08);padding:14px 0 6px;color:#718579;font-size:9px;letter-spacing:.15px}.footer-live-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;color:#819488;font-size:9px;line-height:1.5}.footer-live-row>span{white-space:nowrap}.live-clock{color:#89a093;font-variant-numeric:tabular-nums;white-space:nowrap}.footer-policy-links{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px}.footer-policy-links a{color:#89a293;font-size:9px;transition:color .16s ease}.footer-policy-links a:hover,.footer-policy-links a[aria-current="page"]{color:#6be3a0}.auth-bottom>.footer-live-row{grid-column:1/-1}.auth-bottom>.footer-policy-links{grid-column:1/-1}.auth-bottom .auth-support-links{display:flex;align-items:center;gap:9px;justify-content:flex-end;color:#718579;font-size:9px}.auth-bottom .auth-support-links a{color:#a6b9ac}.auth-bottom .auth-support-links a:hover{color:#67e29c}.page-footer{display:grid;grid-template-columns:1fr;gap:12px;margin-top:28px;padding:15px 0 5px}.page-footer .footer-brand{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 15px}.page-footer .footer-live-row{padding-top:10px;border-top:1px solid var(--line)}.page-footer .footer-live-row .footer-policy-links{margin-left:auto}.policy-body{min-height:100vh;background:radial-gradient(ellipse at 70% -10%,rgba(32,148,86,.15),transparent 36%),var(--bg)}.policy-shell{width:min(100% - 40px,960px);margin:0 auto;padding:25px 0 22px}.policy-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.policy-back{font-size:10px;padding:9px 12px;gap:9px}.policy-card{border:1px solid rgba(169,222,187,.12);border-radius:20px;background:linear-gradient(145deg,rgba(16,34,24,.96),rgba(9,20,15,.96));padding:clamp(23px,5vw,48px);box-shadow:0 24px 90px rgba(0,0,0,.18)}.policy-card>.eyebrow{display:inline-flex;align-items:center}.policy-card h1{font:800 clamp(30px,5.5vw,45px)/1.1 'Inter',system-ui,sans-serif;letter-spacing:-1.7px;margin:14px 0 11px}.policy-lead{max-width:730px;margin:0;color:#b0c3b6;font-size:14px;line-height:1.8}.policy-updated{margin:13px 0 0;color:#748b7c;font-size:10px}.policy-section{padding:22px 0 0;margin-top:19px;border-top:1px solid rgba(191,230,208,.09)}.policy-section h2{margin:0 0 9px;font:700 16px/1.4 'Inter',system-ui,sans-serif;letter-spacing:-.35px;color:#e4f2e7}.policy-section p,.policy-section li{color:#a6b7ab;font-size:12px;line-height:1.8}.policy-section p{margin:8px 0}.policy-section ul,.policy-section ol{display:grid;gap:9px;padding-left:21px;margin:11px 0}.policy-section li::marker{color:#58d991;font-weight:700}.policy-section strong{color:#d9eee0}.policy-section a{color:#70e2a0;text-decoration:underline;text-decoration-color:rgba(112,226,160,.3);text-underline-offset:3px}.policy-section a:hover{color:#a0f2bd}.policy-section code{padding:2px 5px;border:1px solid rgba(162,206,174,.12);border-radius:5px;background:rgba(4,15,9,.5);color:#b8e5c6;font-size:.92em}.policy-note{display:grid;gap:4px;margin-top:24px;padding:14px 16px;border:1px solid rgba(85,216,139,.16);border-radius:12px;background:rgba(36,116,69,.09)}.policy-note strong{font-size:11px;color:#b7edc8}.policy-note span{font-size:10px;color:#92a99a;line-height:1.65}.policy-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;padding:15px 2px 0;color:#6f8376;font-size:9px}.policy-footer .live-clock{color:#7f9587}.policy-footer .footer-policy-links{margin-left:auto}@media(max-width:820px){.page-footer .footer-live-row{align-items:flex-start}.page-footer .footer-live-row .footer-policy-links{margin-left:0}}@media(max-width:560px){.auth-bottom{grid-template-columns:1fr;justify-items:center;text-align:center;gap:10px;padding-top:15px}.auth-bottom .footer-live-row{justify-content:center;gap:4px 10px;font-size:8px}.auth-bottom>.footer-policy-links{justify-content:center}.auth-bottom .auth-support-links{justify-content:center;flex-wrap:wrap}.page-footer{gap:10px}.page-footer .footer-brand{flex-direction:column}.page-footer .footer-live-row{flex-direction:column;align-items:flex-start;gap:8px}.page-footer .footer-live-row .footer-policy-links{margin-left:0}.policy-shell{width:min(100% - 24px,960px);padding-top:13px}.policy-header{margin-bottom:11px}.policy-header .brand{font-size:14px}.policy-header .brand-mark{width:27px;height:27px}.policy-back{font-size:9px;padding:8px 9px}.policy-card{padding:22px 18px;border-radius:16px}.policy-card h1{font-size:30px}.policy-lead{font-size:12px}.policy-section{padding-top:17px;margin-top:16px}.policy-section h2{font-size:14px}.policy-section p,.policy-section li{font-size:11px}.policy-footer{flex-direction:column;align-items:flex-start;gap:8px}.policy-footer .footer-policy-links{margin-left:0}}@media(prefers-reduced-motion:reduce){.footer-policy-links a{transition:none}}.footer-owner-link{color:#b0c7b8;transition:color .16s ease;text-decoration:none;text-underline-offset:3px}.footer-owner-link:hover,.footer-owner-link:focus-visible{color:#68e3a0;text-decoration:underline}@media(prefers-reduced-motion:reduce){.footer-owner-link{transition:none}}/* Grouped footer layout: identity/time above, destinations below */.auth-bottom{display:grid;grid-template-columns:1fr;gap:9px;margin-top:16px;padding:11px 12px 10px;border:1px solid rgba(169,222,187,.11);border-radius:12px;background:rgba(8,22,15,.56);color:#819488;font-size:9px;letter-spacing:0}.footer-meta-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;color:#8fa397;font-size:9px;line-height:1.55}.footer-utility-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 10px;padding-top:8px;border-top:1px solid rgba(191,230,208,.08)}.footer-utility-divider{display:block;flex:0 0 1px;width:1px;height:15px;background:rgba(180,216,190,.16)}.footer-policy-links{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.footer-policy-links a{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border:1px solid rgba(169,222,187,.1);border-radius:7px;background:rgba(19,43,29,.38);color:#91a99a;font-size:9px;line-height:1.2;white-space:nowrap;text-decoration:none}.footer-policy-links a:hover,.footer-policy-links a[aria-current="page"]{border-color:rgba(95,220,145,.25);background:rgba(48,130,77,.14);color:#72e2a0}.auth-support-links{display:flex;align-items:center;flex-wrap:wrap;gap:5px;color:#809488;font-size:8px}.auth-support-links>span{padding:0 2px;color:#809488;white-space:nowrap}.auth-support-links a{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border:1px solid rgba(169,222,187,.1);border-radius:7px;background:rgba(19,43,29,.38);color:#a5b8aa;font-size:9px;line-height:1.2;white-space:nowrap;text-decoration:none}.auth-support-links a:hover{border-color:rgba(95,220,145,.25);background:rgba(48,130,77,.14);color:#72e2a0}.page-footer{display:grid;grid-template-columns:1fr;gap:10px}.page-footer .footer-meta-row{padding-top:10px;border-top:1px solid var(--line)}.page-footer .footer-utility-row{justify-content:flex-end;padding-top:0;border-top:0}.page-footer .developer-contact{margin-top:2px}.policy-footer{display:grid;grid-template-columns:1fr;gap:9px;padding-top:13px}.policy-footer .footer-utility-row{justify-content:flex-end;padding-top:8px;border-top:1px solid rgba(191,230,208,.08)}.footer-owner-link{color:#b0c7b8;text-decoration:none}.footer-owner-link:hover,.footer-owner-link:focus-visible{color:#68e3a0;text-decoration:underline;text-underline-offset:3px}@media(max-width:560px){  .auth-bottom{gap:8px;padding:10px 9px}  .auth-bottom .footer-meta-row{justify-content:center;text-align:center;gap:3px 10px}  .auth-bottom .footer-utility-row{flex-direction:column;justify-content:center;gap:7px;padding-top:7px}  .auth-bottom .footer-policy-links{justify-content:center}  .auth-bottom .footer-utility-divider{display:none}  .auth-bottom .auth-support-links{justify-content:center}  .page-footer .footer-meta-row{justify-content:center;text-align:center}  .page-footer .footer-utility-row{justify-content:center}  .policy-footer{gap:8px;text-align:center}  .policy-footer .footer-meta-row{justify-content:center;text-align:center;gap:3px 10px}  .policy-footer .footer-utility-row{justify-content:center}  .policy-footer .footer-policy-links{justify-content:center}}@media(prefers-reduced-motion:reduce){.footer-policy-links a,.auth-support-links a,.footer-owner-link{transition:none}}/* Registration password fields */#register-form{gap:13px}.register-security-note{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(76,211,133,.15);border-radius:11px;background:linear-gradient(100deg,rgba(34,105,61,.15),rgba(13,34,22,.46));margin:1px 0 0}.register-security-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(90,220,146,.16);border-radius:9px;background:rgba(54,157,91,.12);color:#6ee39e}.register-security-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.register-security-note>span:last-child{display:grid;gap:2px}.register-security-note strong{font-size:10px;color:#cbe9d4;font-weight:700}.register-security-note small{color:#81998a;font-size:9px;line-height:1.4}.password-field{gap:7px}.password-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:#c9d7ce;font-size:11px;font-weight:600}.password-minimum{color:#7d9686;font-size:9px;font-weight:500;white-space:nowrap}.password-control{position:relative;width:100%}.password-control input{padding-right:52px}.password-toggle{position:absolute;top:50%;right:6px;display:grid;place-items:center;width:34px;height:34px;padding:0;transform:translateY(-50%);border:1px solid transparent;border-radius:8px;background:transparent;color:#86a191;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease}.password-toggle:hover,.password-toggle[aria-pressed="true"]{border-color:rgba(103,218,147,.17);background:rgba(46,127,73,.13);color:#73e3a0}.password-toggle:focus-visible{outline:2px solid rgba(103,218,147,.65);outline-offset:2px}.password-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.password-eye-slash{display:none}.password-toggle[aria-pressed="true"] .password-eye-slash{display:block}.password-field .password-hint{display:block;float:none;margin:0;color:#72897a;font-size:9px;font-weight:400;line-height:1.45}#register-password-match.is-match{color:#74d99a}#register-password-match.is-mismatch{color:#ff9b9b}.password-control:focus-within input{border-color:rgba(63,220,139,.65);box-shadow:0 0 0 3px rgba(51,207,129,.08)}.verification-note{margin-bottom:2px}.verification-prompt{margin:3px 0 0;padding:13px 14px;border:1px dashed rgba(103,218,147,.38);border-radius:10px;background:rgba(20,67,37,.24);color:#b7e6c6;font-size:15px;font-weight:700;letter-spacing:.04em;text-align:center}@media(max-width:560px){#register-form{gap:11px}.register-security-note{padding:9px 10px}.password-field{gap:6px}.password-label{font-size:10px}.password-control input{height:44px}.password-toggle{width:32px;height:32px}}@media(prefers-reduced-motion:reduce){.password-toggle{transition:none}}@media(min-width:821px){.auth-shell.is-registering .auth-motivation{margin-top:34px}.auth-shell.is-registering .auth-art .art-footer{margin-top:11px}}

.public-account-stats{margin-top:20px;padding:12px 13px 10px;border:1px solid rgba(130,166,143,.12);border-radius:13px;background:rgba(4,16,9,.28)}.public-account-stats-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.public-account-stats-head .eyebrow{font-size:7px;letter-spacing:1.1px}.public-stats-live{display:inline-flex;align-items:center;gap:5px;color:#72dfa0;font-size:7px;font-weight:800;letter-spacing:.8px}.public-stats-live i{width:5px;height:5px;border-radius:50%;background:#4de394;box-shadow:0 0 8px rgba(77,227,148,.55)}.public-account-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.public-account-stat{display:grid;gap:1px;min-width:0}.public-account-stat strong{color:#d9e9de;font:700 17px/1 'Inter',system-ui,sans-serif;letter-spacing:-.5px}.public-account-stat span{color:#789082;font-size:8px;white-space:nowrap}.public-account-stat.is-active strong{color:#75e7a5}.public-account-stat.is-inactive strong{color:#d4ad6b}.public-account-stat.is-bot strong{color:#8dbbff}.public-account-stat.is-whatsapp strong{color:#70e2a0}.public-account-stat.is-worker strong{color:#c4a0ff}.public-account-stats>small{display:block;margin-top:8px;color:#5f7668;font-size:7px}.auth-shell.is-registering .public-account-stats{margin-top:14px}.auth-shell.is-registering .auth-motivation{margin-top:24px}@media(max-width:820px){.public-account-stats{margin-top:18px}.auth-shell.is-registering .public-account-stats{margin-top:15px}.auth-shell.is-registering .auth-motivation{margin-top:18px}}

/* Riwayat login perangkat */
.login-history-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:6px 16px}
.login-history-list{list-style:none;margin:0;padding:0}
.login-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.login-history-item:last-child{border-bottom:none}
.login-history-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.login-history-main strong{font-size:13px;color:var(--text)}
.login-history-main small{font-size:11px;color:var(--muted)}
.login-current-badge{flex:none;font-size:10px;font-weight:700;letter-spacing:.4px;color:#062115;background:var(--green);border-radius:999px;padding:4px 10px;white-space:nowrap}

/* Menu hamburger — port dari preview v11: sidebar jadi panel dropdown, konten full */
.app-shell{position:relative}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.menu-toggle{display:inline-grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid rgba(205,239,216,.14);border-radius:11px;background:rgba(231,250,238,.04);color:#eaf3ed;font-size:19px;line-height:1;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease}
.menu-toggle:hover{border-color:rgba(82,226,146,.45);background:rgba(55,186,115,.08)}
.menu-toggle[aria-expanded="true"]{border-color:rgba(82,226,146,.55);background:rgba(55,186,115,.14);color:#7df0ae}
.sidebar{position:absolute;top:76px;left:14px;right:auto;bottom:auto;width:min(274px,100vw - 28px);height:auto;max-height:calc(100vh - 92px);overflow:auto;padding:16px 12px 12px;border:1px solid var(--line);border-radius:16px;background:rgba(9,19,15,.97);box-shadow:0 18px 44px rgba(0,0,0,.5);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:30;align-items:stretch}
.sidebar.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.sidebar .brand{padding:2px 9px 18px}
.sidebar .brand>span:last-child{display:inline}
.workspace-label{display:block}
.side-nav{width:100%;justify-items:stretch}
.nav-item{width:100%;height:44px;min-height:44px;justify-content:flex-start;padding:0 12px;font-size:12.5px}
.nav-item.active{box-shadow:inset 2px 0 #45d78c}
.sidebar-bottom{width:100%;display:block;margin-top:14px}
.sidebar-note{display:flex}
.sidebar-version{display:block}
.main-area{margin-left:0}
@media (prefers-reduced-motion: reduce){.sidebar{transition:none}}

/* Admin member monitor: preserve readable status columns; the table wrapper scrolls on narrow screens. */
#admin .admin-table-wrap table{min-width:1120px}#admin .admin-table-wrap td{white-space:nowrap}#admin .section-heading.compact{align-items:flex-start}

/* Each sidebar destination is a clean, independent workspace view. */
.view-hidden{display:none!important}

/* Personal profile and per-account avatar picker */
.avatar-image{object-fit:cover;padding:0;border-radius:50%;overflow:hidden}.profile-card-rich{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:22px;padding:24px}.profile-identity{display:flex;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}.profile-avatar-image{width:82px;height:82px;flex:none;object-fit:cover;border-radius:24px;border:1px solid rgba(87,225,145,.28);box-shadow:0 10px 30px rgba(0,0,0,.25)}.profile-identity h3{margin:4px 0 2px;font:700 20px 'Inter',system-ui,sans-serif;letter-spacing:-.5px}.profile-identity p{margin:0;color:#82978a;font-size:11px}.profile-avatar-picker{display:grid;gap:12px}.profile-avatar-picker>div:first-child strong,.profile-avatar-picker>div:first-child small{display:block}.profile-avatar-picker>div:first-child strong{font-size:12px}.profile-avatar-picker>div:first-child small{color:#819488;font-size:10px;margin-top:3px}.avatar-picker-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.avatar-presets{display:flex;gap:10px;flex-wrap:wrap}.avatar-choice{width:62px;height:62px;padding:3px;border:1px solid rgba(191,230,208,.12);border-radius:17px;background:rgba(231,250,238,.03);cursor:pointer;transition:border-color .18s,transform .18s,box-shadow .18s}.avatar-choice:hover{transform:translateY(-2px);border-color:rgba(82,226,146,.5)}.avatar-choice[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 2px rgba(49,213,139,.15)}.avatar-choice img{width:100%;height:100%;display:block;object-fit:cover;border-radius:13px}.avatar-choice:disabled{opacity:.55;cursor:wait}.avatar-upload-button{position:relative;overflow:hidden;min-height:42px}.avatar-upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.avatar-feedback{color:#819488;font-size:10px;line-height:1.5}.avatar-feedback[data-kind="success"]{color:#79e5a5}.avatar-feedback[data-kind="error"]{color:#f0a0a0}.profile-card-rich .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.profile-card-rich .profile-fields .field input{height:43px;font-size:11px}.profile-card-actions{display:flex;justify-content:flex-end}.profile-card-actions .button{min-width:175px}@media(max-width:760px){.profile-card-rich{padding:17px}.profile-card-rich .profile-fields{grid-template-columns:1fr}.profile-identity{align-items:flex-start}.avatar-picker-row{align-items:flex-start;flex-direction:column}.profile-card-actions .button{width:100%}}

/* Pagination riwayat login: keyboard-friendly and responsive. */
.login-history-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:12px 0 6px}.login-history-page-button{display:inline-grid;place-items:center;min-width:36px;height:36px;padding:0 10px;border:1px solid rgba(191,230,208,.16);border-radius:10px;background:rgba(231,250,238,.035);color:#c7d8cc;font:inherit;font-size:12px;font-weight:600;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.login-history-page-button:hover:not(:disabled){border-color:rgba(82,226,146,.48);background:rgba(55,186,115,.1);color:#e8fff0}.login-history-page-button[aria-current="page"]{border-color:rgba(82,226,146,.65);background:rgba(55,186,115,.2);color:#78e9a8}.login-history-page-button:disabled{opacity:.42;cursor:default}.login-history-page-ellipsis{padding:0 2px;color:var(--muted);font-size:12px}@media(max-width:560px){.login-history-card{padding:5px 12px}.login-history-item{align-items:flex-start;gap:8px;padding:10px 0}.login-history-main{overflow-wrap:anywhere}.login-history-main strong{font-size:12px}.login-history-main small{font-size:10px;line-height:1.45}.login-history-pagination{gap:4px;margin-top:10px}.login-history-page-button{min-width:34px;height:34px;padding:0 8px;border-radius:9px}}@media(prefers-reduced-motion:reduce){.login-history-page-button{transition:none}}
/* Pairing submit loading state */
#pairing-submit.is-loading{position:relative;overflow:hidden;gap:10px;cursor:progress;transform:none}#pairing-submit.is-loading:hover{transform:none}#pairing-submit.is-loading:disabled{opacity:1}.pairing-submit-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:pairingSubmitSpin .72s linear infinite}.pairing-submit-spinner+span{min-width:0}#pairing-submit.is-loading::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:rgba(255,255,255,.85);transform:scaleX(0);transform-origin:left center;animation:pairingSubmitProgress 3s linear forwards}@keyframes pairingSubmitSpin{to{transform:rotate(360deg)}}@keyframes pairingSubmitProgress{to{transform:scaleX(1)}}@media(max-width:560px){#pairing-submit{width:100%;min-height:48px;gap:10px;padding-inline:12px}#pairing-submit.is-loading{width:100%}.pairing-submit-spinner{width:16px;height:16px;flex-basis:16px}}@media(prefers-reduced-motion:reduce){.pairing-submit-spinner{animation:none}#pairing-submit.is-loading::after{animation:none;transform:scaleX(1)}}
/* Pairing code actions: roomy touch targets on narrow screens. */
.pairing-code-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:4px}.pairing-code-actions .pairing-copy-button,.pairing-code-actions .pairing-change-number-button{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border-radius:10px;font-size:10px;gap:8px}.pairing-change-number-button{border-color:rgba(120,224,157,.2);color:#cae8d3}.pairing-change-number-button:hover:not(:disabled){border-color:rgba(82,226,146,.48);background:rgba(55,186,115,.1)}@media(max-width:560px){.pairing-code-actions{grid-template-columns:1fr;gap:7px}.pairing-code-actions .pairing-copy-button,.pairing-code-actions .pairing-change-number-button{min-height:46px}}


/* Session overview is part of the linked Panel, not the setup/pairing screen. */
.panel-session-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:13px;align-items:start;margin:0 0 14px}
.panel-session-card{display:flex;flex-direction:column;gap:12px;min-width:0}
.panel-session-grid>.pairing-log-card{min-width:0}
@media(max-width:700px){.panel-session-grid{grid-template-columns:minmax(0,1fr);gap:12px}.panel-session-card,.panel-session-grid>.pairing-log-card{width:100%;min-width:0}}


/* Panel control group: bot and WhatsApp session actions share one responsive grid. */
.panel-session-grid{grid-template-columns:minmax(0,1fr);margin-bottom:12px}
.panel-session-card{width:100%;padding:14px;gap:0}
.pairing-linked-card{width:100%;min-width:0}
.bot-worker-card{width:100%;min-width:0;align-items:stretch}
.bot-worker-card>div:last-child{min-width:0;flex:0 1 480px;max-width:480px}
.bot-worker-runtime{display:block;margin-top:9px;color:#8fb79b;font-size:11px;font-variant-numeric:tabular-nums}
.bot-worker-actions{min-width:0}
.bot-worker-actions #session-actions:not(.hidden){display:contents}
.bot-worker-actions #session-actions .button{min-width:0;max-width:100%;white-space:normal;line-height:1.25}
#session-feedback,#bot-feedback{min-width:0;overflow-wrap:anywhere}
.pairing-log-card{width:100%;min-width:0;margin-top:14px;padding:clamp(14px,3.5vw,19px)}
.pairing-log-list li{min-width:0;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:820px){.bot-worker-card{align-items:stretch;flex-direction:column;gap:14px}.bot-worker-card>div:last-child{width:100%;max-width:none;flex:none}.bot-worker-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}
@media(max-width:420px){.bot-worker-actions{grid-template-columns:minmax(0,1fr);width:100%}.bot-worker-actions .button{width:100%;min-height:44px;padding:10px 12px;font-size:11px}.panel-session-card{padding:12px}.pairing-log-heading{gap:8px}.pairing-log-card>p{overflow-wrap:anywhere}}
/* Mobile-friendly clipboard actions for login and WhatsApp pairing fields. */
.field-input-action-row{display:flex;align-items:center;gap:8px;width:100%}.field-input-action-row input{flex:1;min-width:0}.paste-button{display:inline-flex;align-items:center;justify-content:center;min-width:62px;height:40px;padding:0 10px;border:1px solid rgba(103,218,147,.24);border-radius:9px;background:rgba(46,127,73,.15);color:#83e6a8;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;touch-action:manipulation}.paste-button:hover,.paste-button:focus-visible{border-color:rgba(103,218,147,.6);background:rgba(46,127,73,.25);outline:2px solid rgba(103,218,147,.2);outline-offset:1px}.password-control.has-paste input{padding-right:116px}.password-control .paste-button{position:absolute;top:50%;right:44px;min-width:50px;height:30px;padding:0 7px;transform:translateY(-50%);font-size:10px}.password-control .password-toggle{z-index:1}@media(max-width:600px){.field-input-action-row{gap:7px}.field-input-action-row .paste-button{min-width:64px;height:42px;font-size:12px}.password-control.has-paste input{padding-right:116px}.password-control .paste-button{right:44px;min-width:50px;height:32px;font-size:11px}}
.field-input-action-row .paste-button{flex:0 0 auto}.field-input-action-row input{flex:1 1 0;width:0}

/* Pairing cooldown and compact mobile layout. */
#pairing-notice.cooldown{position:relative;overflow:hidden;border-color:rgba(111,188,255,.28);background:linear-gradient(135deg,rgba(42,91,133,.2),rgba(25,63,94,.12));color:#b9dcf6}
#pairing-notice.cooldown::after{content:'';position:absolute;inset:auto 0 0;height:2px;transform-origin:left center;background:linear-gradient(90deg,#71d7ff,#79e8ac);animation:pairingCooldownPulse 1.5s ease-in-out infinite alternate}
@keyframes pairingCooldownPulse{from{opacity:.45;transform:scaleX(.35)}to{opacity:1;transform:scaleX(1)}}
#pairing-submit:disabled,#pairing-retry:disabled{cursor:wait;opacity:.62}
@media(max-width:640px){
 .pairing-section{padding-inline:0}
 .pairing-section .section-heading{margin-bottom:12px}
 .pairing-section .section-heading h2{font-size:clamp(22px,7vw,28px);line-height:1.05}
 .pairing-section .section-heading p{max-width:34rem;font-size:11px;line-height:1.55}
 .pairing-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .pairing-card,.pairing-side-card{min-width:0;border-radius:16px}
 .pairing-card{padding:14px}
 .pairing-form-intro{align-items:flex-start;gap:9px}
 .pairing-form-intro p{font-size:10px;line-height:1.45}
 .pairing-consent{padding:10px;gap:8px}
 .pairing-consent small{font-size:9px;line-height:1.45}
 .pairing-warning{font-size:9px;line-height:1.45}
 .pairing-code-card{padding:13px}
 #pairing-code{font-size:clamp(25px,9vw,38px);letter-spacing:.16em}
 .pairing-code-actions{grid-template-columns:1fr;gap:7px}
 .pairing-code-actions .button{width:100%;min-height:44px}
 .pairing-side-card{padding:14px}
}
@media(prefers-reduced-motion:reduce){#pairing-notice.cooldown::after{animation:none;opacity:.8;transform:scaleX(.7)}}

/* Mobile pairing number layout: keep long validation copy inside the card. */
@media (max-width: 560px) {
  .pairing-card { padding: 16px; }
  .pairing-form-intro { align-items: flex-start; }
  .pairing-form-intro > div,
  .pairing-number-copy { min-width: 0; }
  .pairing-phone-field > span:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .pairing-field-hint,
  .pairing-whatsapp-disclaimer {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .pairing-phone-field > span.pairing-number-feedback {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    min-width: 0;
  }
  .pairing-number-flag {
    width: 30px;
    height: 30px;
  }
  .pairing-number-copy strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .pairing-number-copy small {
    font-size: 8.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .pairing-number-pill {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .pairing-whatsapp-disclaimer {
    font-size: 8px;
    line-height: 1.55;
  }
}

/* Pairing setup disclosure: compact, centered, and accessible by keyboard. */
#pairing .pairing-side-card {
  align-self: start;
  padding: 17px 20px;
}
#pairing .pairing-side-summary {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
  text-align: center;
}
#pairing .pairing-side-summary::-webkit-details-marker {
  display: none;
}
#pairing .pairing-side-summary::marker {
  content: "";
}
#pairing .pairing-side-summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 10px;
}
#pairing .pairing-side-title {
  color: #edf7ef;
  font: 700 18px/1.25 'Inter', system-ui, sans-serif;
  letter-spacing: -.4px;
}
#pairing .pairing-side-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  margin-top: 2px;
  padding: 7px 13px;
  border: 1px solid rgba(87, 224, 147, .25);
  border-radius: 999px;
  background: rgba(49, 213, 139, .08);
  color: #9de8b8;
  font-size: 10px;
  font-weight: 700;
}
#pairing .pairing-side-open-label,
#pairing .pairing-side-close-label {
  display: none;
}
#pairing .pairing-side-card:not([open]) .pairing-side-open-label,
#pairing .pairing-side-card[open] .pairing-side-close-label {
  display: inline;
}
#pairing .pairing-side-chevron {
  display: inline-block;
  color: #73d99c;
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease;
}
#pairing .pairing-side-card[open] .pairing-side-chevron {
  transform: rotate(180deg);
}
#pairing .pairing-side-content {
  margin-top: 15px;
}
#pairing .pairing-side-copy {
  margin-inline: auto;
  text-align: center;
}
#pairing .pairing-prep-list {
  margin-top: 17px;
}
@media (max-width: 760px) {
  #pairing .pairing-side-card {
    order: 1;
    padding: 14px 16px;
  }
  #pairing .pairing-side-content {
    margin-top: 12px;
  }
  #profile .profile-card-rich {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    padding: 16px;
  }
  #profile .profile-card-rich > * {
    min-width: 0;
    grid-column: 1;
    grid-row: auto !important;
  }
  #profile .profile-identity {
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
  }
  #profile .profile-avatar-image {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
  #profile .profile-identity h3 {
    font-size: 18px;
  }
  #profile .profile-avatar-picker {
    min-width: 0;
    gap: 10px;
  }
  #profile .avatar-picker-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  #profile .avatar-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  #profile .avatar-choice {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 3px;
  }
  #profile .avatar-choice img {
    border-radius: 11px;
  }
  #profile .avatar-upload-button {
    width: 100%;
    min-height: 44px;
  }
  #profile .avatar-feedback {
    font-size: 9px;
    overflow-wrap: anywhere;
  }
  #profile .profile-card-rich .profile-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  #profile .profile-card-rich .profile-fields .field {
    min-width: 0;
  }
  #profile .profile-card-rich .profile-fields .field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 12px;
  }
  #profile .profile-card-actions {
    width: 100%;
  }
  #profile .profile-card-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}

/* Mobile admin monitor: switch the wide desktop table into readable labeled cards. */
@media (max-width: 760px) {
  #admin .section-heading.compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  #admin .section-heading.compact > div {
    min-width: 0;
  }
  #admin .section-heading.compact p {
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  #admin .section-counter {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #admin .admin-card {
    margin: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  #admin .admin-table-wrap {
    width: 100%;
    overflow: visible;
  }
  #admin .admin-table-wrap table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
  }
  #admin .admin-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #admin .admin-table-wrap tbody {
    display: grid;
    gap: 10px;
    width: 100%;
  }
  #admin .admin-table-wrap tbody tr {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(14, 27, 20, .8);
  }
  #admin .admin-table-wrap tbody tr td {
    display: grid;
    grid-template-columns: minmax(105px, 36%) minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #admin .admin-table-wrap tbody tr td::before {
    content: attr(data-label);
    color: #82978a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .45px;
    line-height: 1.5;
    text-transform: uppercase;
  }
  #admin .admin-table-wrap tbody tr td:first-child {
    color: var(--text);
    font-weight: 700;
  }
  #admin .admin-table-wrap tbody tr td:last-child {
    border-bottom: 0;
  }
  #admin .admin-table-wrap tbody tr td[colspan="10"] {
    display: block;
    border: 0;
    text-align: center;
  }
  #admin .admin-table-wrap tbody tr td[colspan="10"]::before {
    content: none;
  }
}

@media (max-width: 380px) {
  #admin .admin-table-wrap tbody tr {
    padding-inline: 10px;
  }
  #admin .admin-table-wrap tbody tr td {
    grid-template-columns: minmax(88px, 33%) minmax(0, 1fr);
    gap: 7px;
    font-size: 10px;
  }
  #admin .admin-table-wrap tbody tr td::before {
    font-size: 7px;
  }
}

/* Pairing code mobile readability. */
@media (max-width: 560px) {
  .pairing-code-card {
    gap: 10px;
    padding: 18px 14px 16px;
  }
  .pairing-code-heading {
    width: 100%;
    justify-content: flex-start;
  }
  .pairing-code-heading .eyebrow {
    font-size: 9px;
    letter-spacing: .8px;
  }
  .pairing-code-heading strong {
    font-size: 14px;
  }
  .pairing-code-card code {
    width: 100%;
    margin: 7px 0 2px;
    padding: 15px 8px;
    font-size: 30px;
    letter-spacing: 5px;
    line-height: 1.15;
  }
  .pairing-expiry {
    width: 100%;
    color: #b4c9ba !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
  }
}

/* Mobile audit hardening: keep auth usable first and guard long account text. */
@media (max-width: 820px) {
  #auth-view .auth-art {
    display: none !important;
  }
  #auth-view .auth-panel {
    min-height: 100svh;
    padding: 0 20px 12px;
  }
  #auth-view .auth-panel > .brand:not(.auth-mobile-brand) {
    display: none;
  }
  #auth-view .auth-panel > .auth-mobile-brand {
    display: inline-flex !important;
    align-self: flex-start;
    margin: 18px 0 20px;
    visibility: visible !important;
  }
  #auth-view .auth-form-wrap {
    width: 100%;
    max-width: 440px;
    margin: auto;
  }
}
@media (max-width: 560px) {
  #auth-view .auth-panel {
    min-height: 100svh;
    padding: 0 20px 12px;
  }
  #auth-view .auth-mobile-brand {
    display: inline-flex !important;
    margin: 20px 0 14px;
  }
  #auth-view .auth-form-wrap {
    padding: 10px 0 18px;
  }
  #auth-view .password-control {
    min-width: 0;
  }
  #auth-view .password-control input {
    padding-right: 52px;
  }
  #auth-view .password-toggle {
    right: 4px;
    width: 40px;
    height: 40px;
  }
}
#account-email {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 760px) {
  #profile .profile-identity > div {
    min-width: 0;
  }
  #profile .profile-identity h3,
  #profile .profile-identity p {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #logins .login-history-main {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
@media (max-width: 560px) {
  #logins .login-history-page-button {
    min-width: 40px;
    height: 40px;
  }
  #pairing .pairing-number-copy small,
  #pairing .pairing-number-pill,
  #pairing .pairing-whatsapp-disclaimer {
    font-size: 9px;
  }
}


/* Twelve preset avatars: compact grid on desktop, four columns on phones. */
#profile .avatar-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 432px);
}
#profile .avatar-choice {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
@media (max-width: 760px) {
  #profile .avatar-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 432px;
  }
}

/* Keep short account pages compact on phone browsers. */
@media (max-width: 760px) {
  .content-wrap {
    padding-top: 18px;
  }
  .content-wrap > #pairing,
  .content-wrap > #admin,
  .content-wrap > #profile {
    margin-top: 0;
  }
  .page-footer {
    margin-top: 18px;
  }
}

/* On phones, keep the WhatsApp connection badge identifiable (not a theme switch). */
@media (max-width: 560px) {
  .demo-badge {
    gap: 5px;
    padding: 6px 7px;
    font-size: 7px;
    letter-spacing: .2px;
    white-space: nowrap;
  }
  .demo-badge #connection-badge {
    display: inline;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Appearance picker in Profile. */
.appearance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(14, 27, 20, .8);
}
.appearance-copy h3 {
  margin: 4px 0;
  color: var(--text);
  font: 700 15px 'Inter',system-ui,sans-serif;
}
.appearance-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.theme-picker {
  display: flex;
  flex: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.theme-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(231, 250, 238, .04);
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.theme-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-option:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.theme-option.is-selected {
  border-color: rgba(61, 222, 137, .55);
  background: rgba(55, 186, 115, .13);
  color: var(--text);
}
.theme-option-icon {
  font-size: 15px;
  line-height: 1;
}
@media (max-width: 560px) {
  .appearance-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }
  .theme-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .theme-option {
    min-width: 0;
    width: 100%;
  }
}

/* Light theme overrides; the dark palette remains the default. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f4f6f4;
  --line: rgba(26, 43, 31, .2);
  --muted: #46534a;
  --soft: #303d34;
  --text: #111a14;
  --green: #137543;
  --green2: #145f38;
  --purple: #704bc2;
  --blue: #276da7;
}
html[data-theme="light"] body {
  background: #fff;
  color: var(--text);
}
html[data-theme="light"] .ambient { opacity: 0; }
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 4px 18px rgba(20, 35, 24, .055);
}
html[data-theme="light"] .brand-light,
html[data-theme="light"] .workspace-label,
html[data-theme="light"] .sidebar-version,
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .appearance-copy p,
html[data-theme="light"] .profile-identity p,
html[data-theme="light"] .profile-avatar-picker small,
html[data-theme="light"] .page-footer,
html[data-theme="light"] .sidebar-note p {
  color: var(--muted);
}
html[data-theme="light"] .nav-item { color: #53675a; }
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .nav-item.active {
  background: rgba(36, 151, 82, .09);
  color: #183e27;
}
html[data-theme="light"] .sidebar-note,
html[data-theme="light"] .appearance-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .pairing-card,
html[data-theme="light"] .pairing-side-card,
html[data-theme="light"] .pairing-log-card,
html[data-theme="light"] .login-history-card,
html[data-theme="light"] .bot-worker-card,
html[data-theme="light"] .story-settings-card,
html[data-theme="light"] .status-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .panel-session-card {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(25, 61, 37, .045);
}
html[data-theme="light"] .admin-table-wrap tbody tr {
  border-color: var(--line);
  background: #fff;
}
html[data-theme="light"] th { color: #5b7061; }
html[data-theme="light"] td { color: #304638; }
html[data-theme="light"] .field,
html[data-theme="light"] .password-label,
html[data-theme="light"] .pairing-consent,
html[data-theme="light"] .pairing-form-intro,
html[data-theme="light"] .pairing-number-copy,
html[data-theme="light"] .theme-option {
  color: #344b3a;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .password-control input,
html[data-theme="light"] #story-emoji-input {
  border-color: rgba(26, 43, 31, .25);
  background: #fff;
  color: #111a14;
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder,
html[data-theme="light"] #story-emoji-input::placeholder {
  color: #66736a;
}
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .theme-option {
  border-color: var(--line);
  background: #f6f7f6;
  color: #26372c;
}
html[data-theme="light"] .theme-option.is-selected {
  border-color: rgba(22, 135, 79, .55);
  background: rgba(36, 151, 82, .11);
  color: #145b34;
}
html[data-theme="light"] .profile-section h2,
html[data-theme="light"] .profile-section h3,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .pairing-form-intro strong,
html[data-theme="light"] .pairing-consent strong,
html[data-theme="light"] .pairing-number-copy strong {
  color: #111a14;
}
html[data-theme="light"] .pairing-form-intro p,
html[data-theme="light"] .pairing-field-hint,
html[data-theme="light"] .pairing-whatsapp-disclaimer,
html[data-theme="light"] .pairing-side-copy,
html[data-theme="light"] .login-history-main,
html[data-theme="light"] .profile-avatar-picker,
html[data-theme="light"] .theme-option {
  color: #46534a;
}
html[data-theme="light"] .pairing-warning {
  border-color: rgba(160, 119, 34, .25);
  background: rgba(245, 220, 152, .2);
  color: #624d20;
}
html[data-theme="light"] #auth-view .auth-art {
  border-color: rgba(44, 106, 63, .13);
  background: linear-gradient(145deg, #fff, #f4f6f4 62%, #fff);
}
html[data-theme="light"] #auth-view .auth-art,
html[data-theme="light"] #auth-view .auth-panel,
html[data-theme="light"] #auth-view .art-copy h1,
html[data-theme="light"] #auth-view .auth-heading h2 {
  color: var(--text);
}
html[data-theme="light"] #auth-view .art-copy p,
html[data-theme="light"] #auth-view .auth-heading p,
html[data-theme="light"] #auth-view .auth-legal,
html[data-theme="light"] #auth-view .auth-switch {
  color: var(--muted);
}
html[data-theme="light"] #auth-view .auth-feature-card,
html[data-theme="light"] #auth-view .public-account-stats,
html[data-theme="light"] #auth-view .auth-motivation,
html[data-theme="light"] #auth-view .auth-free-banner {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

/* High-contrast daylight fixes for elements with dark-theme hard-coded colors. */
html[data-theme="light"] .eyebrow { color: #536258 !important; }
html[data-theme="light"] .breadcrumbs span,
html[data-theme="light"] .breadcrumbs b,
html[data-theme="light"] .breadcrumbs strong { color: #34453a !important; }
html[data-theme="light"] .demo-badge { border-color: #cbd6ce; color: #46564b; }
html[data-theme="light"] .menu-toggle {
  border-color: #cbd6ce;
  background: #f5f7f5;
  color: #25352b;
}
html[data-theme="light"] .user-chip { color: #24352a; }

html[data-theme="light"] #pairing .pairing-phone-field > span:first-child {
  color: #1c2b21 !important;
}
html[data-theme="light"] #pairing .pairing-phone-field > span:first-child small {
  color: #536158 !important;
}
html[data-theme="light"] #pairing .pairing-field-hint { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-field-hint b { color: #176b3c !important; }
html[data-theme="light"] #pairing .pairing-number-feedback {
  border-color: #d0d8d2;
  background: #f4f6f4;
  color: #27382d;
}
html[data-theme="light"] #pairing .pairing-number-country { color: #17241b !important; }
html[data-theme="light"] #pairing #pairing-number-format { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-number-pill {
  border-color: #cbd6ce;
  background: #edf2ee;
  color: #35463a;
}
html[data-theme="light"] #pairing .pairing-number-feedback.is-valid {
  border-color: #80bd96;
  background: #f0f8f2;
}
html[data-theme="light"] #pairing .pairing-number-feedback.is-valid .pairing-number-pill {
  border-color: #9bc9a9;
  background: #e2f3e6;
  color: #155a32;
}
html[data-theme="light"] #pairing .pairing-number-feedback.is-invalid {
  border-color: #d8a09a;
  background: #fff7f6;
}
html[data-theme="light"] #pairing .pairing-number-feedback.is-invalid .pairing-number-pill {
  border-color: #d8a09a;
  background: #fbe9e7;
  color: #8d3028;
}
html[data-theme="light"] #pairing .pairing-consent {
  border-color: #d2dbd4;
  background: #fff;
  color: #35463a;
}
html[data-theme="light"] #pairing .pairing-consent strong { color: #17241b !important; }
html[data-theme="light"] #pairing .pairing-consent small { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-whatsapp-disclaimer { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-whatsapp-disclaimer b { color: #176b3c !important; }
html[data-theme="light"] #pairing .pairing-side-card { border-color: #d2dbd4; background: #fff; }
html[data-theme="light"] #pairing .pairing-side-card .eyebrow { color: #536258 !important; }
html[data-theme="light"] #pairing .pairing-side-title { color: #17241b !important; }
html[data-theme="light"] #pairing .pairing-side-copy { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-side-toggle {
  border-color: #a9c8b2;
  background: #f0f7f2;
  color: #185c35;
}
html[data-theme="light"] #pairing .pairing-prep-list li > span {
  border-color: #b6d2be;
  background: #edf6ef;
  color: #176b3c;
}
html[data-theme="light"] #pairing .pairing-prep-list strong { color: #17241b !important; }
html[data-theme="light"] #pairing .pairing-prep-list small { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-privacy-note {
  border-color: #d2dbd4;
  background: #f7f9f7;
}
html[data-theme="light"] #pairing .pairing-privacy-note p { color: #46534a !important; }
html[data-theme="light"] #pairing .pairing-privacy-note strong { color: #17241b !important; }

html[data-theme="light"] #admin .admin-card,
html[data-theme="light"] #admin .admin-table-wrap { border-color: #cbd5cd; background: #fff; }
html[data-theme="light"] #admin .admin-table-wrap tbody tr {
  border-color: #d2dbd4 !important;
  background: #fff !important;
}
html[data-theme="light"] #admin .admin-table-wrap tbody tr td { color: #26372c !important; }
html[data-theme="light"] #admin .admin-table-wrap tbody tr td::before { color: #536158 !important; }
html[data-theme="light"] #admin .role-pill {
  border-color: #a9c8b2;
  background: #edf6ef;
  color: #185c35;
}

html[data-theme="light"] .page-footer,
html[data-theme="light"] .page-footer .footer-brand,
html[data-theme="light"] .page-footer .footer-meta-row,
html[data-theme="light"] .page-footer .footer-utility-row,
html[data-theme="light"] .page-footer .live-clock,
html[data-theme="light"] .page-footer .footer-policy-links a,
html[data-theme="light"] .page-footer .auth-support-links a,
html[data-theme="light"] .page-footer .footer-owner-link {
  color: #46534a !important;
}
html[data-theme="light"] .footer-policy-links a,
html[data-theme="light"] .auth-support-links a {
  border-color: #bfcbc2 !important;
  background: #f1f5f2 !important;
  color: #234b32 !important;
}
html[data-theme="light"] .footer-utility-divider { background: #bdc9c0 !important; }

/* Full mobile daylight contrast audit: auth, dashboard, bot settings, and helpers. */
html[data-theme="light"] #auth-view .auth-bottom {
  border-color: #cbd6ce !important;
  background: #fff !important;
  color: #46534a !important;
}
html[data-theme="light"] #auth-view .auth-bottom .footer-meta-row,
html[data-theme="light"] #auth-view .auth-bottom .footer-owner-link,
html[data-theme="light"] #auth-view .auth-bottom .live-clock,
html[data-theme="light"] #auth-view .auth-bottom .auth-support-links,
html[data-theme="light"] #auth-view .auth-bottom .auth-support-links > span {
  color: #46534a !important;
}
html[data-theme="light"] #auth-view .auth-bottom .footer-utility-row { border-color: #d6ded8; }
html[data-theme="light"] #auth-view .register-security-note,
html[data-theme="light"] #auth-view .verification-note {
  border-color: #cbd6ce !important;
  background: #f3f7f4 !important;
}
html[data-theme="light"] #auth-view .register-security-note strong,
html[data-theme="light"] #auth-view .verification-note strong { color: #17241b !important; }
html[data-theme="light"] #auth-view .register-security-note small,
html[data-theme="light"] #auth-view .verification-note small,
html[data-theme="light"] #auth-view .password-hint,
html[data-theme="light"] #auth-view .password-minimum { color: #46534a !important; }
html[data-theme="light"] #auth-view .register-security-icon {
  border-color: #b6d2be;
  background: #eaf4ed;
  color: #176b3c;
}
html[data-theme="light"] #auth-view .verification-prompt {
  border-color: #9bc9a9;
  background: #f0f7f2;
  color: #145f38;
}
html[data-theme="light"] #auth-view .auth-switch button { color: #145f38 !important; }
html[data-theme="light"] #auth-view .notice {
  border-color: #cbd6ce;
  background: #f3f7f4;
  color: #344b3a;
}
html[data-theme="light"] #register-password-match.is-match { color: #176b3c !important; }
html[data-theme="light"] #register-password-match.is-mismatch { color: #a12b25 !important; }

html[data-theme="light"] .welcome-row p,
html[data-theme="light"] .status-card p,
html[data-theme="light"] .status-label,
html[data-theme="light"] .status-foot,
html[data-theme="light"] .whatsapp-status-description,
html[data-theme="light"] .whatsapp-status-foot,
html[data-theme="light"] .mode-summary,
html[data-theme="light"] .account-email,
html[data-theme="light"] #saved-label,
html[data-theme="light"] .section-counter,
html[data-theme="light"] .connection-copy .eyebrow,
html[data-theme="light"] .runner-description,
html[data-theme="light"] .bot-worker-description,
html[data-theme="light"] .bot-worker-detail,
html[data-theme="light"] .bot-worker-status,
html[data-theme="light"] .bot-worker-runtime,
html[data-theme="light"] .pairing-log-card > p,
html[data-theme="light"] .activity-summary-description,
html[data-theme="light"] .pairing-log-list li {
  color: #46534a !important;
}
html[data-theme="light"] #welcome-name { color: #137543 !important; }
html[data-theme="light"] .activity-summary-title { color: #26372c !important; }
html[data-theme="light"] #runner-status { color: #684f19 !important; }
html[data-theme="light"] .connection-callout {
  border-color: #cbd6ce !important;
  background: #f3f7f4 !important;
  color: #26372c !important;
}
html[data-theme="light"] .connection-callout h3 { color: #17241b !important; }
html[data-theme="light"] .connection-state {
  border-color: #cbd6ce;
  background: #edf2ee;
  color: #46534a;
}
html[data-theme="light"] .pairing-linked-card {
  border-color: #b6d2be;
  background: #edf6ef;
}
html[data-theme="light"] .pairing-linked-card p { color: #344b3a !important; }
html[data-theme="light"] .bot-worker-state { color: #344b3a; }
html[data-theme="light"] .login-current-badge {
  border-color: #b6d2be;
  background: #eaf4ed;
  color: #185c35 !important;
}

html[data-theme="light"] .plan-copy,
html[data-theme="light"] .plan-tag,
html[data-theme="light"] .plan-card ul li,
html[data-theme="light"] .story-settings-card p,
html[data-theme="light"] .story-settings-card small,
html[data-theme="light"] .story-settings-card legend,
html[data-theme="light"] .story-reaction-switch small,
html[data-theme="light"] .emoji-help,
html[data-theme="light"] .story-settings-note {
  color: #46534a !important;
}
html[data-theme="light"] .plan-card ul li span { color: #176b3c !important; }
html[data-theme="light"] .featured-ribbon {
  border-color: #b6d2be;
  background: #e8f4eb;
  color: #185c35 !important;
}
html[data-theme="light"] .story-reaction-switch strong { color: #17241b !important; }
html[data-theme="light"] .pairing-warning {
  border-color: #d7c78f;
  background: #fff8e5;
  color: #5f4a1c !important;
}
html[data-theme="light"] .pairing-warning strong { color: #5f4a1c !important; }
html[data-theme="light"] .pairing-warning > span:first-child {
  border-color: #b59a4a;
  color: #6b5218;
}
html[data-theme="light"] .page-footer .footer-brand span,
html[data-theme="light"] .page-footer .auth-support-links > span {
  color: #46534a !important;
}
html[data-theme="light"] #activity-summary-title { color: #26372c !important; }
html[data-theme="light"] #activity-summary-description,
html[data-theme="light"] #runner-description,
html[data-theme="light"] #bot-worker-description,
html[data-theme="light"] #bot-worker-detail { color: #46534a !important; }
html[data-theme="light"] #bot-worker-status { color: #344b3a !important; }

@media (max-width: 360px) {
  .topbar { gap: 8px; padding-right: 10px; padding-left: 10px; }
  .topbar-left { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .breadcrumbs { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
  .breadcrumbs span,
  .breadcrumbs b { display: none; }
  .breadcrumbs strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right { flex: 0 0 auto; min-width: 0; gap: 0; }
  .topbar-right .demo-badge { display: none; }
  .user-chip { flex: 0 0 auto; min-width: 0; gap: 0; padding: 3px; }
  .user-chip #top-user-name,
  .user-chip .chevron { display: none; }
}

/* Avatar picker: clearly named cards and a bounded vertical scroll area. */
#profile .avatar-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 540px);
  max-width: 100%;
  max-height: 296px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 4px 7px 4px 3px;
  border: 1px solid rgba(130, 190, 150, .13);
  border-radius: 14px;
  background: rgba(7, 20, 12, .36);
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 216, 145, .48) rgba(255,255,255,.04);
}
#profile .avatar-choice {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  gap: 6px;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 88px;
  aspect-ratio: auto;
  padding: 6px;
  border: 1px solid rgba(162, 197, 174, .12);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #b6c9bb;
  touch-action: manipulation;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
#profile .avatar-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 226, 153, .42);
  background: rgba(56, 145, 85, .13);
}
#profile .avatar-choice:focus-visible {
  outline: 2px solid rgba(111, 230, 157, .82);
  outline-offset: 2px;
}
#profile .avatar-choice[aria-pressed="true"] {
  border-color: #64e094;
  background: rgba(51, 190, 103, .16);
  box-shadow: 0 0 0 2px rgba(49, 213, 139, .15), 0 5px 18px rgba(35, 165, 88, .12);
}
#profile .avatar-choice img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
#profile .avatar-choice-name {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#profile .avatar-presets::-webkit-scrollbar { width: 8px; }
#profile .avatar-presets::-webkit-scrollbar-track { background: rgba(255,255,255,.035); border-radius: 99px; }
#profile .avatar-presets::-webkit-scrollbar-thumb { background: rgba(101,216,145,.42); border: 2px solid rgba(10,24,15,.7); border-radius: 99px; }
@media (max-width: 760px) {
  #profile .avatar-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-height: 264px;
    gap: 8px;
    padding: 4px 6px 4px 3px;
    border-radius: 12px;
  }
  #profile .avatar-choice {
    min-height: 82px;
    gap: 5px;
    padding: 5px;
    border-radius: 11px;
  }
  #profile .avatar-choice img { border-radius: 7px; }
  #profile .avatar-choice-name { font-size: 10px; }
}
@media (max-width: 360px) {
  #profile .avatar-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 252px; }
  #profile .avatar-choice { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  #profile .avatar-choice { transition: none; }
}


/* Gender-filtered avatar collection, tuned for touch-first mobile screens. */
#profile .avatar-picker-heading strong { display: block; font-size: 13px; }
#profile .avatar-picker-heading small { display: block; margin-top: 4px; color: #91a99a; font-size: 11px; line-height: 1.45; }
#profile .avatar-browser { width: min(100%, 540px); min-width: 0; }
#profile .avatar-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 0 0 10px; padding: 4px; border: 1px solid rgba(130,190,150,.13); border-radius: 13px; background: rgba(7,20,12,.48); }
#profile .avatar-tab { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: #a5bdac; background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
#profile .avatar-tab b { min-width: 20px; padding: 2px 5px; border-radius: 99px; color: #91a99a; background: rgba(255,255,255,.07); font-size: 9px; }
#profile .avatar-tab.is-active { color: #e7fff0; border-color: rgba(100,224,148,.3); background: linear-gradient(135deg,rgba(45,173,99,.24),rgba(39,126,77,.12)); box-shadow: inset 0 0 0 1px rgba(89,218,139,.08); }
#profile .avatar-tab.is-active b { color: #092211; background: #78e6a0; }
#profile .avatar-choice[hidden] { display: none !important; }
#profile .avatar-choice img { background: linear-gradient(145deg,#192c22,#263c31); }
@media(max-width:760px) {
  #profile .avatar-picker-row { gap: 11px; }
  #profile .avatar-browser { width: 100%; }
  #profile .avatar-tabs { position: sticky; top: 0; z-index: 2; gap: 5px; margin-bottom: 8px; border-radius: 12px; backdrop-filter: blur(12px); }
  #profile .avatar-tab { min-height: 42px; font-size: 12px; }
  #profile .avatar-presets { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; max-height: 330px; padding: 7px; }
  #profile .avatar-choice { min-height: 110px; gap: 6px; padding: 6px; border-radius: 13px; }
  #profile .avatar-choice img { border-radius: 9px; }
  #profile .avatar-choice-name { font-size: 11px; }
  #profile .avatar-upload-button { width: 100%; justify-content: center; }
}
@media(max-width:360px) {
  #profile .avatar-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #profile .avatar-choice { min-height: 132px; }
}
@media(prefers-reduced-motion: reduce) { #profile .avatar-tab { transition: none; } }


/* Self-hosted Inter, sourced from Google Fonts; readable Indonesian UI type. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.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 { font-synthesis: none; text-rendering: optimizeLegibility; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -0.006em; }
button, input, select, textarea { font-family: inherit; }
/* Labels and supporting copy retain a comfortable reading rhythm on phones. */
@media (max-width: 760px) {
  body { font-size: 14px; line-height: 1.58; }
  .field, .section-heading p, .profile-avatar-picker small, .avatar-feedback,
  .connection-copy p, .pairing-section .section-heading p { line-height: 1.6; }
  .eyebrow { letter-spacing: 1.2px; }
  .content-wrap { letter-spacing: 0; }
}


/* Mobile landing page: preserve the desktop overview instead of hiding it. */
@media (max-width: 820px) {
  #auth-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    padding: 0;
  }
  #auth-view .auth-panel {
    order: 0;
    min-height: auto;
    justify-content: flex-start;
    padding: 12px 22px 18px;
  }
  #auth-view .auth-panel > .auth-mobile-brand {
    margin: 10px 0 18px;
  }
  #auth-view .auth-form-wrap {
    margin: 4px auto 14px;
  }
  #auth-view .auth-art {
    display: flex !important;
    order: 1;
    width: auto;
    min-height: 0;
    margin: 0 18px 24px;
    padding: 23px 20px 18px;
    border-radius: 18px;
  }
  #auth-view .art-copy {
    max-width: none;
    margin: 0 0 18px;
    transform: none;
  }
  #auth-view .art-copy h1 {
    margin: 15px 0 11px;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.8px;
  }
  #auth-view .art-copy p {
    max-width: 36rem;
    font-size: 13px;
    line-height: 1.65;
  }
  #auth-view .auth-free-banner {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
  }
  #auth-view .auth-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #auth-view .auth-feature-card {
    min-height: 0;
    padding: 12px 13px;
  }
  #auth-view .auth-feature-card h2 { margin: 9px 0 4px; font-size: 13px; }
  #auth-view .auth-feature-card p { font-size: 11px; line-height: 1.55; }
  #auth-view .auth-feature-tag { font-size: 8px; }
  #auth-view .auth-feature-note { margin-top: 8px; font-size: 10px; line-height: 1.55; }
  #auth-view .public-account-stats { width: 100%; margin-top: 13px; padding: 13px; }
  #auth-view .public-account-stats-head .eyebrow,
  #auth-view .public-stats-live { font-size: 9px; }
  #auth-view .public-account-stats-grid { gap: 10px 8px; }
  #auth-view .public-account-stat span { font-size: 9px; white-space: normal; line-height: 1.3; }
  #auth-view .public-account-stats > small { font-size: 8px; }
  #auth-view .art-orbit { width: 280px; height: 280px; right: -120px; top: 12%; }
}
@media (max-width: 420px) {
  #auth-view .auth-panel { padding-inline: 18px; }
  #auth-view .auth-art { margin-inline: 12px; padding-inline: 16px; }
  #auth-view .public-account-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Mobile: place legal/support footer after the full landing-page overview. */
@media (max-width: 820px) {
  #auth-view .auth-panel { display: contents; }
  #auth-view .auth-panel > .auth-mobile-brand { order: 0; }
  #auth-view .auth-form-wrap { order: 1; }
  #auth-view .auth-art { order: 2; }
  #auth-view .auth-bottom {
    order: 3;
    width: 100%;
    margin-top: 0;
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 10px;
  }
}

/* Mobile info page: keep the login view focused and open the long overview from the top-right menu. */
.mobile-info-toggle { display: none; }
@media (max-width: 820px) {
  #auth-view .auth-mobile-brand {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  #auth-view .mobile-info-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid rgba(169, 222, 187, .14);
    border-radius: 11px;
    background: rgba(19, 43, 29, .48);
    color: #b9d8c2;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
  }
  #auth-view .mobile-info-toggle:hover,
  #auth-view .mobile-info-toggle[aria-expanded="true"] {
    border-color: rgba(82, 226, 146, .48);
    background: rgba(46, 127, 73, .2);
    color: #73e3a0;
  }
  #auth-view .auth-art { display: none !important; }
  #auth-view.show-mobile-info .auth-art { display: flex !important; }
  #auth-view.show-mobile-info .auth-form-wrap,
  #auth-view.show-mobile-info .auth-bottom { display: none; }
  #auth-view.show-mobile-info .auth-art {
    order: 1;
    margin-top: 8px;
  }
}

/* Mobile auth polish: center the login/register copy while keeping fields easy to scan and fill. */
@media (max-width: 820px) {
  #auth-view:not(.show-mobile-info) .auth-form-wrap {
    width: min(100%, 430px);
    margin-inline: auto;
  }
  #auth-view:not(.show-mobile-info) .auth-heading {
    text-align: center;
  }
  #auth-view:not(.show-mobile-info) .auth-heading .eyebrow {
    display: block;
  }
  #auth-view:not(.show-mobile-info) .auth-heading h2 {
    margin-inline: auto;
  }
  #auth-view:not(.show-mobile-info) .auth-heading p {
    max-width: 30rem;
    margin-inline: auto;
  }
  #auth-view:not(.show-mobile-info) .auth-switch,
  #auth-view:not(.show-mobile-info) .auth-legal {
    text-align: center;
  }
}

/* Mobile info tabs: three compact pages inside the top-right info view. */
.mobile-info-pages { display: none; }
@media (max-width: 820px) {
  #auth-view .mobile-info-pages {
    display: block;
    order: 2;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(191, 230, 208, .1);
  }
  #mobile-info-page[data-mobile-info-view="developer"] > :not(.brand):not(.mobile-info-pages):not(.art-orbit),
  #mobile-info-page[data-mobile-info-view="server"] > :not(.brand):not(.mobile-info-pages):not(.art-orbit) {
    display: none;
  }
  .mobile-info-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .mobile-info-tab { min-height: 36px; padding: 7px 6px; border: 1px solid rgba(169, 222, 187, .12); border-radius: 9px; background: rgba(19, 43, 29, .4); color: #8fa99a; font-size: 10px; font-weight: 700; cursor: pointer; }
  .mobile-info-tab.is-active { border-color: rgba(82, 226, 146, .45); background: rgba(46, 127, 73, .2); color: #a9f0bf; }
  .mobile-info-panel { padding: 15px; border: 1px solid rgba(169, 222, 187, .12); border-radius: 13px; background: rgba(7, 26, 16, .56); }
  .mobile-info-panel h2 { margin: 6px 0 8px; color: #e4f5e9; font-size: 18px; line-height: 1.25; }
  .mobile-info-panel p { margin: 0; color: #9db4a5; font-size: 11px; line-height: 1.65; }
  .mobile-info-panel small { display: block; margin-top: 13px; color: #728b7c; font-size: 9px; line-height: 1.55; }
  .mobile-info-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
  .mobile-info-facts span { padding: 5px 7px; border: 1px solid rgba(82, 226, 146, .18); border-radius: 7px; color: #82dca1; font-size: 9px; }
  .mobile-server-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .mobile-server-heading h2 { margin-bottom: 0; }
  .mobile-server-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgba(82, 226, 146, .2); border-radius: 20px; color: #77e3a0; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
  .mobile-server-live i { width: 5px; height: 5px; border-radius: 50%; background: #4de394; box-shadow: 0 0 8px rgba(77, 227, 148, .55); }
  .mobile-server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
  .mobile-server-grid > div { display: grid; gap: 3px; min-width: 0; padding: 9px; border: 1px solid rgba(169, 222, 187, .09); border-radius: 9px; background: rgba(19, 43, 29, .28); }
  .mobile-server-grid span { color: #789384; font-size: 8px; }
  .mobile-server-grid strong { overflow-wrap: anywhere; color: #d5eadd; font-size: 10px; }
  .mobile-server-detail { margin-top: 12px !important; font-size: 9px !important; }
  .mobile-server-panel > small { margin-top: 7px; }
}

/* Mobile auth polish: center the login/register copy while keeping fields easy to scan and fill. */
@media (max-width: 820px) {
  #auth-view:not(.show-mobile-info) .auth-form-wrap { width: min(100%, 430px); margin-inline: auto; }
  #auth-view:not(.show-mobile-info) .auth-heading { text-align: center; }
  #auth-view:not(.show-mobile-info) .auth-heading .eyebrow { display: block; }
  #auth-view:not(.show-mobile-info) .auth-heading h2 { margin-inline: auto; }
  #auth-view:not(.show-mobile-info) .auth-heading p { max-width: 30rem; margin-inline: auto; }
  #auth-view:not(.show-mobile-info) .auth-switch,
  #auth-view:not(.show-mobile-info) .auth-legal { text-align: center; }
}

/* Mobile List Bot page. */
@media (max-width: 820px) {
  .mobile-info-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-bot-list-intro { margin-bottom: 12px !important; }
  .mobile-bot-list { display: grid; gap: 7px; margin-top: 12px; }
  .mobile-bot-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 10px; border: 1px solid rgba(169, 222, 187, .1); border-radius: 10px; background: rgba(19, 43, 29, .28); }
  .mobile-bot-item.is-featured { border-color: rgba(82, 226, 146, .25); background: rgba(46, 127, 73, .12); }
  .mobile-bot-item.is-limited { border-color: rgba(213, 167, 87, .18); }
  .mobile-bot-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(82, 226, 146, .12); color: #79e5a5; font-size: 15px; }
  .mobile-bot-item.is-limited .mobile-bot-icon { background: rgba(213, 167, 87, .1); color: #d4ad6b; }
  .mobile-bot-item strong, .mobile-bot-item small { display: block; }
  .mobile-bot-item strong { color: #d9ece0; font-size: 10px; }
  .mobile-bot-item small { margin-top: 3px; color: #819b8b; font-size: 9px; line-height: 1.45; }
  .mobile-bot-item > b { padding-top: 2px; color: #72dfa0; font-size: 8px; white-space: nowrap; }
  .mobile-bot-item.is-limited > b { color: #d4ad6b; }
  .mobile-bot-live-summary { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(169, 222, 187, .09); border-radius: 9px; color: #839b8d; font-size: 9px; }
  .mobile-bot-live-summary strong { color: #9beab4; font-size: 12px; }
}

/* Mobile info chooser: show four page cards before opening a detail page. */
@media (max-width: 820px) {
  #mobile-info-page[data-mobile-info-view="menu"] > :not(.brand):not(.mobile-info-pages):not(.art-orbit),
  #mobile-info-page[data-mobile-info-view="bots"] > :not(.brand):not(.mobile-info-pages):not(.art-orbit) {
    display: none;
  }
  .mobile-info-menu { padding: 15px; border: 1px solid rgba(169, 222, 187, .12); border-radius: 13px; background: rgba(7, 26, 16, .56); }
  .mobile-info-menu h2 { margin: 6px 0 5px; color: #e4f5e9; font-size: 19px; line-height: 1.25; }
  .mobile-info-menu > p { margin: 0; color: #9db4a5; font-size: 11px; }
  .mobile-info-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .mobile-info-menu-card { display: grid; gap: 4px; min-height: 92px; padding: 11px; border: 1px solid rgba(169, 222, 187, .12); border-radius: 11px; background: rgba(19, 43, 29, .38); color: #d5eadd; text-align: left; cursor: pointer; }
  .mobile-info-menu-card:hover, .mobile-info-menu-card:focus-visible { border-color: rgba(82, 226, 146, .48); background: rgba(46, 127, 73, .18); outline: none; }
  .mobile-info-menu-card > span { color: #77e3a0; font-size: 18px; line-height: 1; }
  .mobile-info-menu-card strong { font-size: 11px; }
  .mobile-info-menu-card small { color: #819b8b; font-size: 9px; line-height: 1.35; }
  .mobile-info-back { grid-column: 1 / -1; min-height: 29px; padding: 4px 8px; border: 0; background: transparent; color: #87dca2; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
}

/* Registration CAPTCHA: clear, compact, and comfortable on mobile screens. */
.verification-help{display:block;margin:-2px 2px 1px;color:#81998a;font-size:10px;line-height:1.45;text-align:center}.verification-prompt{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:clamp(22px,5vw,30px);letter-spacing:.28em;text-indent:.28em;user-select:none;text-shadow:0 0 18px rgba(103,218,147,.18)}#verification-code{text-align:center;letter-spacing:.2em;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-weight:700}html[data-theme="light"] #auth-view .verification-help{color:#46534a !important}@media(max-width:560px){.verification-help{font-size:9px;padding-inline:4px}.verification-prompt{padding:12px 10px;font-size:24px;letter-spacing:.2em}.verification-prompt + .verification-help{margin-top:-1px}#verification-code{height:46px;font-size:16px;letter-spacing:.18em}}

/* Auth submit feedback: one-tap friendly loading states for mobile. */
#login-form .button[type="submit"],#register-form .button[type="submit"],#verification-form .button[type="submit"]{position:relative;min-height:48px;overflow:hidden;touch-action:manipulation}.auth-button-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid rgba(6,33,21,.28);border-top-color:#062115;border-radius:50%;animation:authButtonSpin .72s linear infinite}.is-loading{cursor:progress!important;transform:none!important;gap:10px}.is-loading::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;transform-origin:left center;animation:authButtonProgress 2.2s ease-out infinite}.is-loading-login::after{background:#7db8ff}.is-loading-register::after{background:#f6ce75}.is-loading-verification::after{background:#c3a5ff}.is-loading-register .auth-button-spinner{animation:authButtonSpin .72s linear infinite,authButtonPulse 1.4s ease-in-out infinite}.is-loading-verification .auth-button-spinner{animation:authButtonSpin .72s linear infinite,authButtonPulse 1.1s ease-in-out infinite}@keyframes authButtonSpin{to{transform:rotate(360deg)}}@keyframes authButtonProgress{0%{opacity:.35;transform:scaleX(.08)}55%{opacity:1;transform:scaleX(.68)}100%{opacity:.35;transform:scaleX(1)}}@keyframes authButtonPulse{50%{opacity:.52;box-shadow:0 0 0 5px rgba(255,255,255,.08)}}@media(max-width:560px){#login-form .button[type="submit"],#register-form .button[type="submit"],#verification-form .button[type="submit"]{min-height:50px;margin-top:4px;padding-inline:14px;font-size:12px}.auth-button-spinner{width:16px;height:16px;flex-basis:16px}.is-loading::after{height:2px}}@media(prefers-reduced-motion:reduce){.auth-button-spinner,.is-loading::after{animation:none}.is-loading::after{transform:scaleX(.72);opacity:.8}}

/* Logout animation: clear feedback and a three-second mobile-friendly transition. */
.logout-button{position:relative;overflow:hidden;touch-action:manipulation}.logout-button.is-logging-out{color:#f0c77b;background:rgba(184,130,45,.12);cursor:progress;transform:none}.logout-button.is-logging-out::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background:#e5b963;transform-origin:left;animation:logoutButtonProgress 3s ease-out forwards}.logout-button-spinner{display:inline-block;width:17px;min-width:17px;text-align:center;color:#f0c77b;font-size:18px;line-height:1;animation:logoutButtonSpin .85s linear infinite}@keyframes logoutButtonSpin{to{transform:rotate(360deg)}}@keyframes logoutButtonProgress{0%{transform:scaleX(.04);opacity:.35}75%{transform:scaleX(.8);opacity:1}100%{transform:scaleX(1);opacity:.75}}@media(max-width:760px){.logout-button{min-height:46px}.logout-button-spinner{width:16px;min-width:16px;font-size:17px}}@media(prefers-reduced-motion:reduce){.logout-button-spinner,.logout-button.is-logging-out::after{animation:none}.logout-button.is-logging-out::after{transform:scaleX(1);opacity:.8}}

/* Startup shell: keep the page intentional while the saved panel session is checked. */
.boot-screen{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:24px;background:var(--bg);color:var(--text)}
.boot-screen.hidden{display:none!important}
.boot-screen-content{display:grid;justify-items:center;gap:16px;text-align:center}
.boot-screen-brand{font-size:15px}
.boot-screen-spinner{width:24px;height:24px;border:2px solid rgba(130,240,183,.18);border-top-color:var(--green);border-radius:50%;animation:readswBootSpin .8s linear infinite}
.boot-screen-content p{margin:0;color:var(--muted);font-size:12px;letter-spacing:.01em}
@keyframes readswBootSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.boot-screen-spinner{animation:none}}

/* Admin member account accordion: compact summaries with one focused detail panel. */
#admin .admin-card{margin:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
#admin .member-accordion-list{display:grid;gap:21px;min-width:0}
#admin .member-account-group{display:grid;gap:9px;min-width:0}
#admin .member-account-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}
#admin .member-account-group-heading h3{margin:0;color:var(--text);font:700 14px/1.3 'Inter',system-ui,sans-serif;letter-spacing:-.2px}
#admin .member-account-group-heading>span{color:var(--muted);font-size:10px;white-space:nowrap}
#admin .member-account-item{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(16,33,26,.94),rgba(12,25,20,.92));box-shadow:0 7px 20px rgba(0,0,0,.08);transition:border-color .18s ease,box-shadow .18s ease}
#admin .member-account-item:hover,#admin .member-account-item.is-open{border-color:rgba(70,211,137,.36);box-shadow:0 9px 25px rgba(0,0,0,.13)}
#admin .member-account-toggle{display:grid;width:100%;gap:12px;padding:15px 16px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
#admin .member-account-toggle:hover{background:rgba(63,177,111,.055)}
#admin .member-account-toggle:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:14px}
#admin .member-account-top-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#admin .member-account-identity{display:grid;gap:3px;min-width:0}
#admin .member-account-identity strong{overflow-wrap:anywhere;color:var(--text);font-size:13px;font-weight:700;line-height:1.35}
#admin .member-account-identity small{overflow-wrap:anywhere;color:var(--muted);font-size:10px;line-height:1.35}
#admin .member-account-control{display:inline-flex;flex:none;align-items:center;gap:7px;color:var(--green2);font-size:10px;font-weight:700;white-space:nowrap}
#admin .member-account-chevron{display:inline-block;font-size:17px;line-height:1;transition:transform .18s ease}
#admin .member-account-toggle[aria-expanded="true"] .member-account-chevron{transform:rotate(180deg)}
#admin .member-account-statuses{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#admin .member-account-chip{display:inline-flex;align-items:center;min-height:24px;max-width:100%;padding:4px 8px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);color:var(--soft);font-size:9px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
#admin .member-account-chip.is-role{border-color:rgba(151,178,160,.18);background:rgba(133,161,143,.09);color:var(--soft)}
#admin .member-account-chip.is-role.is-admin{border-color:rgba(167,139,250,.28);background:rgba(167,139,250,.1);color:#c4b3ff}
#admin .member-account-chip.is-positive{border-color:rgba(61,214,132,.2);background:rgba(49,213,139,.09);color:#76e7a5}
#admin .member-account-chip.is-muted{color:var(--muted)}
#admin .member-account-chip.is-warning{border-color:rgba(226,173,92,.24);background:rgba(226,173,92,.09);color:#e3ba75}
#admin .member-account-details{padding:14px 15px 15px;border-top:1px solid var(--line)}
#admin .member-account-details[hidden]{display:none!important}
#admin .member-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
#admin .member-detail-item{min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025)}
#admin .member-detail-item dt{display:flex;align-items:center;gap:6px;margin:0;color:var(--muted);font-size:8px;font-weight:750;letter-spacing:.65px;line-height:1.4;text-transform:uppercase}
#admin .member-detail-icon{display:block;flex:0 0 15px;width:15px;height:15px;color:var(--green2)}
#admin .member-detail-item dd{margin:5px 0 0;color:var(--text);font-size:10px;font-weight:550;line-height:1.5;overflow-wrap:anywhere;word-break:break-word}
#admin .member-detail-item dd:has(.member-detail-note){display:grid;gap:3px}
#admin .member-detail-note{display:block;color:var(--muted);font-size:8px;font-weight:450;line-height:1.45}
#admin .member-list-loading,#admin .member-list-empty{margin:0;padding:20px 14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:11px;text-align:center}
#admin .member-feature-section{display:grid;gap:9px;margin-top:13px}
#admin .member-feature-heading{margin:0;color:var(--soft);font-size:10px;font-weight:750;letter-spacing:.45px;text-transform:uppercase}
#admin .member-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#admin .member-feature-card{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025)}
#admin .member-feature-card.is-enabled{border-color:rgba(61,214,132,.2);background:linear-gradient(140deg,rgba(49,213,139,.08),rgba(255,255,255,.02))}
#admin .member-feature-icon,#admin .member-stat-icon{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:rgba(255,255,255,.035)}
#admin .member-feature-card.is-enabled .member-feature-icon,#admin .member-stat-icon{border-color:rgba(61,214,132,.2);color:var(--green2);background:rgba(49,213,139,.08)}
#admin .member-feature-icon .member-detail-icon,#admin .member-stat-icon .member-detail-icon{width:17px;height:17px}
#admin .member-feature-copy{display:grid;gap:3px;min-width:0}
#admin .member-feature-copy strong{color:var(--text);font-size:10px;font-weight:750;line-height:1.35}
#admin .member-feature-state{color:var(--muted);font-size:8px;font-weight:700;line-height:1.3}
#admin .member-feature-card.is-enabled .member-feature-state{color:var(--green2)}
#admin .member-feature-note{color:var(--muted);font-size:8px;line-height:1.45}
#admin .member-story-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
#admin .member-story-stat{display:flex;align-items:center;gap:9px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025)}
#admin .member-stat-copy{display:grid;gap:3px;min-width:0}
#admin .member-stat-copy small{color:var(--muted);font-size:8px;font-weight:650;line-height:1.35}
#admin .member-stat-copy strong{color:var(--text);font-size:15px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
html[data-theme="light"] #admin .member-account-item{border-color:#d7e2da;background:#fff;box-shadow:0 7px 20px rgba(25,61,37,.055)}
html[data-theme="light"] #admin .member-account-item:hover,html[data-theme="light"] #admin .member-account-item.is-open{border-color:#75c894;box-shadow:0 8px 24px rgba(25,61,37,.1)}
html[data-theme="light"] #admin .member-account-chip.is-role.is-admin{border-color:#d9ceff;background:#f3efff;color:#583fa0}
html[data-theme="light"] #admin .member-account-chip.is-positive{border-color:#c6e8d0;background:#edf8f0;color:#1b7040}
html[data-theme="light"] #admin .member-account-chip.is-warning{border-color:#eed6a9;background:#fff8e9;color:#805515}
html[data-theme="light"] #admin .member-detail-item{border-color:#e1e8e3;background:#f8faf8}
html[data-theme="light"] #admin .member-feature-card{border-color:#e1e8e3;background:#f8faf8}
html[data-theme="light"] #admin .member-feature-card.is-enabled{border-color:#c6e8d0;background:linear-gradient(140deg,#edf8f0,#fff)}
html[data-theme="light"] #admin .member-feature-icon,html[data-theme="light"] #admin .member-stat-icon{border-color:#dfe7e1;background:#fff}
html[data-theme="light"] #admin .member-feature-card.is-enabled .member-feature-icon,html[data-theme="light"] #admin .member-stat-icon{border-color:#c6e8d0;background:#edf8f0;color:#27804c}
html[data-theme="light"] #admin .member-story-stat{border-color:#e1e8e3;background:#f8faf8}
@media(max-width:900px){#admin .member-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#admin .member-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#admin .member-account-toggle{gap:10px;padding:13px 12px}#admin .member-account-top-row{align-items:flex-start}#admin .member-account-identity strong{font-size:12px}#admin .member-account-control{gap:4px;font-size:9px;padding-top:2px}#admin .member-account-statuses{gap:5px}#admin .member-account-chip{min-height:23px;padding:4px 7px;font-size:8px}#admin .member-account-details{padding:11px 10px 12px}#admin .member-detail-grid{grid-template-columns:minmax(0,1fr);gap:7px}#admin .member-detail-item{padding:9px 10px}#admin .member-detail-item dd{font-size:10px}}
@media(max-width:560px){#admin .member-feature-grid{grid-template-columns:minmax(0,1fr);gap:7px}#admin .member-feature-card,#admin .member-story-stat{padding:9px}#admin .member-story-stats{gap:7px}}
@media(prefers-reduced-motion:reduce){#admin .member-account-item,#admin .member-account-chevron{transition:none}}

/* Center the Member page headings and role labels on phone-sized screens only. */
@media(max-width:560px){
  #admin .section-heading.compact{justify-items:center;text-align:center}
  #admin .section-heading.compact>div{width:100%;text-align:center}
  #admin .section-heading.compact .eyebrow,
  #admin .section-heading.compact h2,
  #admin .section-heading.compact p{text-align:center}
  #admin .section-heading.compact p{max-width:38rem;margin-inline:auto}
  #admin .section-counter{justify-self:center;text-align:center}
  #admin .member-account-group-heading{justify-content:center;text-align:center}
  #admin .member-account-group-heading h3,
  #admin .member-account-group-heading>span{text-align:center}
}

/* Center account summaries and every detail value for a balanced phone layout. */
@media(max-width:560px){
  #admin .member-account-top-row{flex-direction:column;justify-content:center;gap:8px;text-align:center}
  #admin .member-account-identity{justify-items:center;text-align:center}
  #admin .member-account-control{justify-content:center;text-align:center}
  #admin .member-account-statuses{justify-content:center}
  #admin .member-account-details{text-align:center}
  #admin .member-detail-item,
  #admin .member-detail-item dt,
  #admin .member-detail-item dd{text-align:center}
}

/* Ensure the identity and disclosure control stretch/center inside the phone card. */
@media(max-width:560px){
  #admin .member-account-top-row{align-items:center}
  #admin .member-account-identity{width:100%}
  #admin .member-account-control{align-self:center}
}

/* Account avatars in the admin member list. */
#admin .member-account-identity{display:flex;align-items:center;gap:10px;min-width:0;text-align:left}
#admin .member-account-identity-text{display:grid;gap:3px;min-width:0}
#admin .member-account-avatar{display:block;flex:0 0 44px;width:44px;height:44px;object-fit:cover;border:1px solid rgba(90,208,131,.28);border-radius:50%;background:rgba(255,255,255,.06)}
@media(max-width:560px){
  #admin .member-account-identity{width:auto;justify-items:unset;justify-content:center;text-align:left}
  #admin .member-account-identity-text{justify-items:start;text-align:left}
  #admin .member-account-avatar{flex-basis:42px;width:42px;height:42px}
}

/* Center the WhatsApp pairing flow on narrow mobile screens. */
@media (max-width: 560px) {
  #pairing .section-heading {
    width: 100%;
    text-align: center;
  }

  #pairing .section-heading > div {
    width: 100%;
  }

  #pairing .section-heading p {
    margin-inline: auto;
    max-width: 32rem;
  }

  #pairing .pairing-layout {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    justify-items: stretch;
  }

  #pairing .pairing-card,
  #pairing .pairing-side-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    box-sizing: border-box;
  }
}

/* Center the panel footer copy on narrow mobile screens. */
@media (max-width: 560px) {
  .page-footer {
    text-align: center;
  }

  .page-footer .footer-brand {
    display: grid;
    justify-content: center;
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .page-footer .footer-brand span {
    width: 100%;
  }
}

/* Realtime footer presence counters */
.footer-presence-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:-3px}
.footer-presence-pill{display:inline-flex;align-items:center;gap:6px;min-width:88px;padding:6px 9px;border:1px solid rgba(169,222,187,.1);border-radius:8px;background:rgba(19,43,29,.34);color:#8fa397;font-size:8px;line-height:1.2}
.footer-presence-pill i{display:block;width:6px;height:6px;border-radius:50%;background:#72e2a0;box-shadow:0 0 0 3px rgba(114,226,160,.1)}
.footer-presence-pill.is-stalker i{background:#d9b66f;box-shadow:0 0 0 3px rgba(217,182,111,.1)}
.footer-presence-pill.is-visit i{background:#78b9e8;box-shadow:0 0 0 3px rgba(120,185,232,.1)}
.footer-presence-pill b{margin-left:auto;color:#dcefe1;font-size:10px;font-variant-numeric:tabular-nums}
html[data-theme="light"] .footer-presence-pill{border-color:#d3ded6;background:#f4f8f5;color:#6e8175}
html[data-theme="light"] .footer-presence-pill b{color:#315741}
@media(max-width:560px){.footer-presence-row{justify-content:center;width:100%;gap:6px}.footer-presence-pill{flex:1;min-width:0;max-width:138px;justify-content:center}.footer-presence-pill b{margin-left:2px}}

/* Profile mobile refinement: centered copy and balanced avatar gallery */
@media (max-width: 760px) {
  #profile > .section-heading.compact {
    display: block;
    text-align: center;
    margin-bottom: 14px;
  }
  #profile > .section-heading.compact > div {
    width: 100%;
  }
  #profile > .section-heading.compact h2 {
    margin-top: 7px;
  }
  #profile > .section-heading.compact p {
    max-width: 34rem;
    margin-inline: auto;
    text-wrap: balance;
  }
  #profile .profile-identity {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 9px;
  }
  #profile .profile-identity > div {
    display: grid;
    justify-items: center;
    gap: 2px;
  }
  #profile .profile-avatar-picker {
    text-align: center;
  }
  #profile .avatar-picker-heading {
    display: grid;
    justify-items: center;
    gap: 2px;
  }
  #profile .avatar-picker-heading small {
    max-width: 28rem;
    text-wrap: balance;
  }
  #profile .avatar-picker-row,
  #profile .avatar-browser {
    width: 100%;
  }
  #profile .avatar-tabs {
    max-width: 34rem;
    margin-inline: auto;
  }
  #profile .avatar-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 34rem;
    margin-inline: auto;
  }
  #profile .avatar-upload-button,
  #profile .avatar-feedback {
    text-align: center;
  }
  #profile .profile-fields {
    text-align: left;
  }
  #profile .profile-card-actions {
    justify-content: center;
  }
}
@media (max-width: 360px) {
  #profile .avatar-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Profile polish: active avatar status and quick random selection */
#profile .avatar-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#profile .avatar-picker-heading>div{min-width:0}
#profile .avatar-random-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:32px;padding:6px 10px;border:1px solid rgba(100,224,148,.2);border-radius:9px;background:rgba(45,173,99,.1);color:#8ee9ae;font-size:9px;font-weight:700;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
#profile .avatar-random-button:hover{border-color:rgba(100,224,148,.45);background:rgba(45,173,99,.19);transform:translateY(-1px)}
#profile .avatar-random-button span{font-size:14px;line-height:1}
#profile .avatar-selection-note{color:#7f9888;font-size:9px;line-height:1.5}
@media(max-width:760px){
  #profile .avatar-picker-heading{align-items:center;flex-direction:column;gap:8px}
  #profile .avatar-picker-heading>div{display:grid;justify-items:center}
  #profile .avatar-random-button{width:100%;max-width:220px;min-height:38px;font-size:10px}
  #profile .avatar-selection-note{max-width:30rem;margin-inline:auto;text-align:center}
}
@media(prefers-reduced-motion:reduce){#profile .avatar-random-button{transition:none}}

/* Password strength meter */
.password-strength{display:flex;align-items:center;gap:8px;min-height:15px;margin-top:-1px}
.password-strength-bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;flex:1;max-width:150px}
.password-strength-bars i{display:block;height:4px;border-radius:999px;background:rgba(122,151,132,.2);transition:background .18s ease,transform .18s ease}
.password-strength-bars i.is-filled{background:#6b7e73}
.password-strength[data-score="1"] .password-strength-bars i.is-filled{background:#ed7777}
.password-strength[data-score="2"] .password-strength-bars i.is-filled{background:#e8b25f}
.password-strength[data-score="3"] .password-strength-bars i.is-filled{background:#83c96e}
.password-strength[data-score="4"] .password-strength-bars i.is-filled{background:#58db91}
.password-strength-label{color:#7f9587;font-size:9px;font-weight:600;white-space:nowrap}
.password-strength[data-score="1"] .password-strength-label{color:#f19a9a}
.password-strength[data-score="2"] .password-strength-label{color:#edc27a}
.password-strength[data-score="3"] .password-strength-label{color:#9bd883}
.password-strength[data-score="4"] .password-strength-label{color:#72e3a2}
html[data-theme="light"] .password-strength-bars i{background:#dbe5dd}
html[data-theme="light"] .password-strength-bars i.is-filled{background:#778b7d}
html[data-theme="light"] .password-strength[data-score="1"] .password-strength-bars i.is-filled{background:#d65d5d}
html[data-theme="light"] .password-strength[data-score="2"] .password-strength-bars i.is-filled{background:#c48624}
html[data-theme="light"] .password-strength[data-score="3"] .password-strength-bars i.is-filled{background:#4a9b35}
html[data-theme="light"] .password-strength[data-score="4"] .password-strength-bars i.is-filled{background:#16854b}
html[data-theme="light"] .password-strength-label{color:#46534a}
html[data-theme="light"] .password-strength[data-score="1"] .password-strength-label{color:#a12b25}
html[data-theme="light"] .password-strength[data-score="2"] .password-strength-label{color:#8b5b0a}
html[data-theme="light"] .password-strength[data-score="3"] .password-strength-label{color:#367528}
html[data-theme="light"] .password-strength[data-score="4"] .password-strength-label{color:#176b3c}
@media(prefers-reduced-motion:reduce){.password-strength-bars i{transition:none}}
@media(max-width:560px){.password-strength-label{font-size:8px}.password-strength-bars{max-width:135px}}

/* Mobile: pin the compact footer to the viewport bottom when the page content is short. */
@media (max-width: 820px) {
  #auth-view .auth-bottom { margin-top: auto; }
}

/* Mobile: footer follows the content naturally; do not create a large spacer above it. */
@media (max-width: 820px) {
  #auth-view .auth-bottom { margin-top: 0; }
}

/* Desktop only: center the authentication form in the right column while keeping the footer at the bottom. */
@media (min-width: 821px) {
  #auth-view .auth-form-wrap { margin-block: auto; }
}

/* Desktop profile alignment: center the identity and avatar controls in their card context. */
@media (min-width: 821px) {
  #profile > .section-heading.compact,
  #logins > .section-heading.compact {
    display: block;
    text-align: center;
  }
  #profile > .section-heading.compact > div,
  #logins > .section-heading.compact > div {
    width: 100%;
  }
  #profile > .section-heading.compact p,
  #logins > .section-heading.compact p {
    max-width: 760px;
    margin-inline: auto;
  }
  #profile .appearance-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
  #profile .profile-identity {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  #profile .profile-identity > div {
    display: grid;
    justify-items: center;
    gap: 2px;
  }
  #profile .profile-avatar-picker {
    text-align: center;
  }
  #profile .avatar-picker-heading {
    display: grid;
    justify-items: center;
    gap: 3px;
  }
  #profile .avatar-picker-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #profile .avatar-browser {
    width: min(100%, 600px);
  }
  #profile .avatar-tabs {
    max-width: 540px;
    margin-inline: auto;
  }
  #profile .avatar-presets {
    justify-content: center;
  }
  #profile .avatar-upload-button {
    align-self: center;
  }
  #profile .avatar-selection-note,
  #profile .avatar-feedback {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }
  #profile .profile-fields {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
  }
  #profile .profile-card-actions {
    justify-content: center;
  }
}

@media (min-width: 821px) {
  #profile .avatar-picker-heading {
    width: 100%;
    justify-items: center;
    text-align: center;
  }
  #profile .avatar-picker-heading > div {
    display: grid;
    justify-items: center;
    text-align: center;
  }
  #profile .avatar-picker-heading .avatar-random-button {
    justify-self: center;
  }
}

@media (min-width: 821px) {
  #profile .profile-avatar-picker .avatar-picker-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  #profile .profile-avatar-picker .avatar-picker-heading > div {
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
  }
}

/* Desktop member alignment: center the monitoring context and account summaries. */
@media (min-width: 821px) {
  #admin > .section-heading.compact {
    display: block;
    text-align: center;
  }
  #admin > .section-heading.compact > div {
    width: 100%;
  }
  #admin > .section-heading.compact p {
    max-width: 980px;
    margin-inline: auto;
  }
  #admin > .section-heading.compact .section-counter {
    display: block;
    margin-top: 10px;
    text-align: center;
  }
  #admin .member-account-group-heading {
    justify-content: center;
    text-align: center;
  }
  #admin .member-account-group-heading h3,
  #admin .member-account-group-heading > span {
    text-align: center;
  }
  #admin .member-account-toggle {
    text-align: center;
  }
  #admin .member-account-top-row {
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    text-align: center;
  }
  #admin .member-account-identity {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  #admin .member-account-identity-text {
    justify-items: center;
    text-align: center;
  }
  #admin .member-account-control {
    justify-content: center;
    text-align: center;
  }
  #admin .member-account-statuses {
    justify-content: center;
  }
  #admin .member-account-details {
    text-align: center;
  }
  #admin .member-detail-grid {
    max-width: 1000px;
    margin-inline: auto;
  }
  #admin .member-detail-item,
  #admin .member-detail-item dt,
  #admin .member-detail-item dd {
    text-align: center;
  }
}

/* Desktop footer alignment: one balanced centered composition across all workspace pages. */
@media (min-width: 821px) {
  .page-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    text-align: center;
  }
  .page-footer .footer-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    width: 100%;
    text-align: center;
  }
  .page-footer .footer-meta-row {
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    text-align: center;
  }
  .page-footer .footer-presence-row {
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }
  .page-footer .footer-utility-row {
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(191, 230, 208, .08);
  }
  .page-footer .footer-policy-links,
  .page-footer .auth-support-links {
    justify-content: center;
  }
}

/* Hero headline sizing for the Auto ReadSW + ReactionSW copy */
#auth-view .art-copy h1 {
  max-width: 100%;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -3px;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  #auth-view .art-copy h1 {
    font-size: clamp(34px, 9vw, 42px);
    letter-spacing: -1.8px;
  }
}

/* Accessible feature explainer disclosure */
.feature-explainer {
  width: 100%;
  margin: 12px 0 8px;
  border: 1px solid rgba(130, 216, 157, .2);
  border-radius: 13px;
  background: rgba(6, 19, 12, .48);
  overflow: hidden;
}
.feature-explainer > summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.feature-explainer > summary::-webkit-details-marker { display: none; }
.feature-explainer > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
  border-radius: 12px;
}
.feature-explainer-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(80, 221, 142, .24);
  border-radius: 9px;
  background: rgba(49, 213, 139, .1);
  color: #7ce9a7;
  font-size: 18px;
  line-height: 1;
}
.feature-explainer-heading { min-width: 0; }
.feature-explainer-heading strong,
.feature-explainer-heading small { display: block; }
.feature-explainer-heading strong { color: #e2f2e7; font-size: 11px; }
.feature-explainer-heading small { margin-top: 2px; color: #82988a; font-size: 9px; line-height: 1.4; }
.feature-explainer-chevron {
  color: #8ba293;
  font-size: 17px;
  text-align: center;
  transition: transform .18s ease;
}
.feature-explainer[open] .feature-explainer-chevron { transform: rotate(180deg); }
.feature-explainer[open] .feature-explainer-icon { font-size: 0; }
.feature-explainer[open] .feature-explainer-icon::before { content: '−'; font-size: 18px; }
.feature-explainer-content {
  display: grid;
  gap: 9px;
  padding: 0 12px 13px;
}
.feature-explainer-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(152, 199, 165, .12);
  border-radius: 10px;
  background: rgba(235, 255, 240, .025);
}
.feature-explainer-item.is-featured {
  border-color: rgba(82, 226, 146, .2);
  background: rgba(46, 127, 73, .09);
}
.feature-explainer-item.is-limited {
  border-color: rgba(213, 167, 87, .18);
  background: rgba(133, 94, 37, .07);
}
.feature-explainer-label {
  color: #7c9b87;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .85px;
}
.feature-explainer-item.is-limited .feature-explainer-label { color: #c6a56d; }
.feature-explainer-item h3,
.feature-explainer-connection h3 {
  margin: 4px 0;
  color: #dcebe0;
  font-size: 11px;
  line-height: 1.4;
}
.feature-explainer-item p,
.feature-explainer-connection p {
  margin: 0;
  color: #91a497;
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.feature-explainer-connection {
  display: grid;
  gap: 7px;
  padding: 11px;
  border-left: 2px solid rgba(85, 199, 132, .55);
  border-radius: 0 9px 9px 0;
  background: rgba(40, 117, 73, .07);
}
.feature-explainer-connection h3 { margin: 0; }
.feature-explainer-connection a,
.feature-explainer-caution a {
  color: #9ce7b5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.feature-explainer-caution {
  margin: 0;
  color: #b9a982;
  font-size: 8px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .feature-explainer { margin: 10px 0 7px; }
  .feature-explainer > summary { min-height: 54px; padding: 9px 10px; }
  .feature-explainer-heading strong { font-size: 10px; }
  .feature-explainer-content { gap: 8px; padding: 0 9px 10px; }
  .feature-explainer-item,
  .feature-explainer-connection { padding: 10px; }
  .feature-explainer-item p,
  .feature-explainer-connection p { font-size: 9px; line-height: 1.55; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-explainer-chevron { transition: none; }
}

/* CAPTCHA cooldown feedback */
.verification-cooldown {
  display: block;
  margin: -3px 2px 0;
  color: #d9b96f;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}
.verification-cooldown.is-ready { color: #79d99d; }
#verification-form button:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}
@media (max-width: 560px) {
  .verification-cooldown { font-size: 9px; }
}

/* Preserve the CAPTCHA's original upper/lowercase while keeping the input compact. */
#verification-code {
  text-transform: none;
  font-size: 14px;
  letter-spacing: .08em;
}
@media (max-width: 560px) {
  #verification-code { font-size: 16px; }
}


/* Admin Member: safe monitoring controls, account moderation, and mobile layout. */
#admin .member-account-chip.is-danger{border-color:rgba(238,101,101,.32);background:rgba(238,101,101,.1);color:#ff9a9a}
#admin .member-admin-panel{display:grid;gap:10px;min-width:0;margin-top:13px;padding:13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}
#admin .member-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#admin .member-admin-heading>strong{color:var(--text);font-size:11px;font-weight:750}
#admin .member-admin-status{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border:1px solid rgba(61,214,132,.2);border-radius:999px;background:rgba(49,213,139,.09);color:#76e7a5;font-size:9px;font-weight:750}
#admin .member-admin-status.is-banned,#admin .member-admin-account-state.is-banned{border-color:rgba(238,101,101,.3);background:rgba(238,101,101,.08);color:#ff9a9a}
#admin .member-admin-note,#admin .member-admin-account-state{margin:0;color:var(--muted);font-size:10px;line-height:1.55;overflow-wrap:anywhere}
#admin .member-admin-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#admin .member-admin-button{flex:1 1 135px;min-width:0;min-height:40px;padding:9px 12px;font-size:10px;white-space:normal}
#admin .member-admin-button:disabled{cursor:not-allowed;opacity:.46}
#admin .member-admin-hint{color:var(--muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}
#admin .member-admin-reason-label{display:grid;gap:6px;color:var(--soft);font-size:9px;font-weight:650}
#admin .member-admin-reason-label textarea{width:100%;min-height:64px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:rgba(0,0,0,.16);color:var(--text);font:500 11px/1.45 'Inter',system-ui,sans-serif;resize:vertical}
#admin .member-admin-reason-label textarea:focus{outline:2px solid rgba(76,211,135,.45);outline-offset:1px}
#admin .member-admin-reason-label textarea::placeholder{color:var(--muted)}
#auth-message.is-banned{border-color:rgba(238,101,101,.36);background:rgba(238,101,101,.1);color:#ffaaaa}
html[data-theme="light"] #admin .member-account-chip.is-danger{border-color:#edcaca;background:#fff0f0;color:#9a3131}
html[data-theme="light"] #admin .member-admin-panel{border-color:#dfe7e1;background:#f7faf8}
html[data-theme="light"] #admin .member-admin-status{border-color:#c6e8d0;background:#edf8f0;color:#1b7040}
html[data-theme="light"] #admin .member-admin-status.is-banned,html[data-theme="light"] #admin .member-admin-account-state.is-banned{border-color:#edcaca;background:#fff0f0;color:#9a3131}
html[data-theme="light"] #admin .member-admin-reason-label textarea{border-color:#d5ded8;background:#fff;color:#203329}
html[data-theme="light"] #auth-message.is-banned{border-color:#edcaca;background:#fff0f0;color:#9a3131}
@media(max-width:560px){
  #admin .member-admin-panel{padding:11px;text-align:left}
  #admin .member-admin-heading{align-items:flex-start;flex-direction:column}
  #admin .member-admin-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  #admin .member-admin-button{width:100%;min-height:44px}
  #admin .member-admin-reason-label textarea{font-size:16px}
}

/* Mobile member details: use two columns to keep the open account compact without horizontal overflow. */
@media (max-width: 560px) {
  #admin .member-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  #admin .member-detail-item {
    min-width: 0;
    padding-inline: 8px;
  }
}
@media (max-width: 360px) {
  #admin .member-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #admin .member-detail-item {
    padding-inline: 10px;
  }
}

/* Touch-device fallback: Android Desktop site can expose a wide CSS viewport even on a phone. */
@media (max-width: 1100px) and (hover: none) {
  #admin .member-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #admin .member-detail-item { min-width: 0; padding-inline: 10px; }
}
@media (max-width: 560px), (max-width: 1100px) and (hover: none) {
  #admin .member-account-toggle { gap: 10px; }
  #admin .member-account-statuses { justify-content: center; }
}

/* Mobile admin control alignment: center the monitoring title and account state. */
@media (max-width: 560px), (max-width: 1100px) and (hover: none) {
  #admin .member-admin-heading { align-items: center; justify-content: center; flex-direction: column; gap: 7px; text-align: center; }
  #admin .member-admin-heading > strong, #admin .member-admin-status { text-align: center; }
  #admin .member-admin-status { justify-self: center; }
}

/* Mobile member group headings: stack role title and account count in the center. */
@media (max-width: 560px), (max-width: 1100px) and (hover: none) {
  #admin .member-account-group-heading { flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; }
  #admin .member-account-group-heading h3, #admin .member-account-group-heading > span { text-align: center; }
}


/* Developer workspace: compact contact hub with mobile-first cards. */
.developer-section{display:grid;gap:14px}
.developer-hero-heading{align-items:center!important}
.developer-live-badge{display:inline-flex!important;align-items:center;gap:6px;color:#79e8a5!important;border-color:rgba(82,226,146,.22)!important;background:rgba(46,127,73,.12)!important;white-space:nowrap}
.developer-live-badge i{width:6px;height:6px;border-radius:50%;background:#51e394;box-shadow:0 0 9px rgba(81,227,148,.65)}
.developer-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:13px;align-items:stretch}
.developer-card,.developer-roadmap{min-width:0;padding:18px;border:1px solid rgba(169,222,187,.12);border-radius:17px;background:linear-gradient(145deg,rgba(16,38,25,.82),rgba(8,22,14,.72));box-shadow:0 15px 40px rgba(0,0,0,.08)}
.developer-card-intro{position:relative;overflow:hidden;background:radial-gradient(circle at 90% 5%,rgba(72,216,133,.14),transparent 38%),linear-gradient(145deg,rgba(16,48,28,.9),rgba(8,22,14,.76))}
.developer-card-intro:after{content:"";position:absolute;right:-35px;bottom:-50px;width:150px;height:150px;border:1px solid rgba(101,226,153,.12);border-radius:50%;pointer-events:none}
.developer-card-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:16px;border:1px solid rgba(100,226,153,.2);border-radius:12px;background:linear-gradient(145deg,rgba(58,179,99,.2),rgba(37,99,67,.12));color:#78e8a5;font-size:20px;box-shadow:0 10px 24px rgba(33,176,101,.08)}
.developer-card h3{margin:7px 0 7px;color:#e8f4eb;font-size:18px;letter-spacing:-.3px}
.developer-card p{margin:0;color:#99b0a1;font-size:11px;line-height:1.7}.developer-card-lead{max-width:38rem}
.developer-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.developer-tags span{padding:6px 8px;border:1px solid rgba(104,221,149,.16);border-radius:8px;background:rgba(52,149,82,.1);color:#86dca2;font-size:9px;font-weight:700}
.developer-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.developer-card-top h3{margin-top:7px}
.developer-card-spark{color:#7de8a7;font-size:22px;line-height:1}
.developer-card-description{margin-bottom:13px!important}
.developer-contact-actions{display:grid;gap:8px}
.developer-contact-button{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:54px!important;padding:9px 11px!important;border:1px solid rgba(169,222,187,.13)!important;border-radius:11px!important;background:rgba(11,31,19,.58)!important;color:#dceee1!important;text-align:left!important;box-shadow:none!important}
.developer-contact-button:hover{transform:translateY(-1px);border-color:rgba(99,225,148,.42)!important;background:rgba(31,78,46,.4)!important}
.developer-contact-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;font-size:9px;font-weight:850;letter-spacing:.3px}.developer-contact-mark svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:0}.developer-contact-whatsapp .developer-contact-mark svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.developer-contact-whatsapp .developer-contact-mark svg path:last-child{fill:none}.developer-contact-facebook .developer-contact-mark{background:rgba(72,125,232,.15);color:#91baff}
.developer-contact-whatsapp .developer-contact-mark{background:rgba(44,199,103,.16);color:#78e9a4}
.developer-contact-telegram .developer-contact-mark{background:rgba(71,162,224,.15);color:#8fc9f1}
.developer-contact-button span:nth-child(2){display:grid;gap:2px;min-width:0}
.developer-contact-button strong{font-size:11px;color:#e4f5e8}
.developer-contact-button small{color:#819a8a;font-size:9px}
.developer-arrow{color:#75dfa0;font-size:17px}
.developer-spoiler{margin-top:15px;border:1px solid rgba(169,222,187,.12);border-radius:12px;background:rgba(8,24,15,.34);overflow:hidden}.developer-spoiler summary{display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:9px;min-height:48px;padding:8px 10px;cursor:pointer;list-style:none}.developer-spoiler summary::-webkit-details-marker{display:none}.developer-spoiler summary:focus-visible{outline:2px solid rgba(82,226,146,.65);outline-offset:-2px}.developer-spoiler-icon{display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(109,220,153,.23);border-radius:8px;background:rgba(46,127,73,.14);color:#8de0a9;font-size:11px;font-weight:800}.developer-spoiler summary strong,.developer-spoiler summary small{display:block;text-align:left}.developer-spoiler summary strong{color:#dceee1;font-size:10px}.developer-spoiler summary small{margin-top:2px;color:#80998a;font-size:8px}.developer-spoiler-chevron{color:#83dca0;font-size:16px;text-align:center;transition:transform .18s ease}.developer-spoiler[open] .developer-spoiler-chevron{transform:rotate(180deg)}.developer-spoiler-content{padding:0 11px 11px;border-top:1px solid rgba(169,222,187,.08)}.developer-spoiler-content p{padding-top:10px;color:#91a99a;font-size:10px;line-height:1.6}.developer-spoiler-content .developer-tags{margin-top:9px}
.developer-roadmap{padding:16px}
.developer-roadmap-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}
.developer-roadmap-heading h3{margin:5px 0 0;color:#e2f1e5;font-size:15px}
.developer-roadmap-heading>span{padding:5px 7px;border:1px solid rgba(169,222,187,.12);border-radius:7px;color:#839b8c;font-size:9px}
.developer-roadmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.developer-roadmap-grid>div{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:10px;border:1px solid rgba(169,222,187,.08);border-radius:10px;background:rgba(19,43,29,.3)}
.developer-roadmap-grid>div>div{display:grid;gap:3px;min-width:0}
.developer-roadmap-icon{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:7px;background:rgba(55,193,111,.13);color:#79e4a2;font-size:13px}
.developer-roadmap-grid strong{color:#d5e9da;font-size:10px}
.developer-roadmap-grid small{color:#82988a;font-size:8px;line-height:1.45}
.developer-note{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border:1px dashed rgba(197,168,111,.2);border-radius:11px;background:rgba(75,58,29,.1);color:#b9a679}
.developer-note>span{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border:1px solid rgba(197,168,111,.3);border-radius:50%;font-size:10px;font-weight:800}
.developer-note p{margin:0;color:#a99b7b;font-size:9px;line-height:1.55}
@media (max-width: 760px), (max-width: 1100px) and (hover: none){
  .developer-grid{grid-template-columns:minmax(0,1fr)}
  .developer-roadmap-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 560px), (max-width: 1100px) and (hover: none){
  .developer-section{gap:10px}
  .developer-hero-heading{align-items:center!important;text-align:center}
  .developer-hero-heading>div{width:100%}
  .developer-hero-heading .section-counter{margin-top:4px}
  .developer-grid{justify-items:center}
  .developer-card,.developer-roadmap{width:100%;max-width:38rem;margin-inline:auto;padding:14px;border-radius:14px;text-align:center}
  .developer-card h3{font-size:16px}
  .developer-card p{font-size:10px;line-height:1.6}
  .developer-card-icon{width:36px;height:36px;margin:0 auto 12px}
  .developer-card-lead{margin-inline:auto!important}
  .developer-card-top{align-items:center;justify-content:center;text-align:center}
  .developer-card-top>div{width:100%}
  .developer-card-spark{display:none}
  .developer-card-description{max-width:28rem;margin-inline:auto!important}
  .developer-contact-actions{width:100%;max-width:28rem;margin-inline:auto;text-align:left}
  .developer-tags{justify-content:center;margin-top:12px}
  .developer-spoiler{width:100%;max-width:28rem;margin-inline:auto;text-align:left}
  .developer-spoiler-content .developer-tags{justify-content:flex-start}
  .developer-roadmap-grid>div{padding:9px}
  .developer-roadmap-heading{align-items:center;flex-direction:column;text-align:center}
  .developer-roadmap-heading>div{width:100%}
  .developer-note{width:100%;max-width:38rem;margin-inline:auto;text-align:left}
}


/* Mobile bot feature layout: center copy and keep every control inside the viewport. */
@media (max-width: 560px), (max-width: 1100px) and (hover: none) {
  #mode.section-heading,
  .plan-grid[data-page-view="mode"],
  .story-settings-card[data-page-view="mode"] {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    text-align: center;
  }
  #mode.section-heading {
    display: block;
    padding-inline: 4px;
  }
  #mode.section-heading > div { width: 100%; }
  #mode.section-heading h2 { max-width: 20rem; margin-inline: auto; font-size: clamp(23px, 7vw, 30px); line-height: 1.08; }
  #mode.section-heading p { max-width: 31rem; margin-inline: auto; font-size: 11px; line-height: 1.6; }
  #mode.section-heading .section-counter { display: block; margin-top: 10px; }
  .plan-grid[data-page-view="mode"] { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .plan-grid[data-page-view="mode"] .plan-card { width: 100%; max-width: 42rem; min-width: 0; margin-inline: auto; box-sizing: border-box; padding: 16px 14px; text-align: center; }
  .plan-grid[data-page-view="mode"] .plan-card-head { justify-content: center; }
  .plan-grid[data-page-view="mode"] .plan-card h3 { font-size: 17px; }
  .plan-grid[data-page-view="mode"] .plan-copy { max-width: 25rem; margin-inline: auto; font-size: 10px; line-height: 1.6; }
  .plan-grid[data-page-view="mode"] .plan-card ul { width: min(100%, 18rem); margin: 13px auto 16px; text-align: left; }
  .plan-grid[data-page-view="mode"] .plan-card .button { width: 100%; min-height: 45px; }
  .story-settings-card[data-page-view="mode"] { padding: 14px; margin-inline: auto; }
  .story-settings-heading { display: block; text-align: center; }
  .story-settings-heading > div { width: 100%; }
  .story-settings-heading h2 { font-size: 19px; }
  .story-settings-heading p { max-width: 30rem; margin-inline: auto; font-size: 10px; line-height: 1.6; }
  .story-settings-heading .log-lock { display: grid; place-items: center; width: 32px; height: 32px; margin: 11px auto 0; }
  .story-settings-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .story-settings-grid .field { text-align: center; }
  .story-settings-grid select { width: 100%; text-align: center; text-align-last: center; }
  .story-reaction-switch { justify-content: center; align-items: flex-start; text-align: left; }
  .emoji-pool-field { text-align: center; }
  .emoji-pool-field legend { max-width: 100%; margin-inline: auto; line-height: 1.5; }
  .emoji-pool { justify-content: center; }
  .emoji-add-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .emoji-add-row textarea { width: 100%; min-height: 72px; box-sizing: border-box; text-align: center; }
  .emoji-add-row .button { width: 100%; min-height: 44px; }
  .emoji-help { display: block; max-width: 30rem; margin-inline: auto; line-height: 1.5; }
  .story-settings-footer { display: grid; gap: 8px; }
  .story-settings-footer .button { width: 100%; min-height: 45px; }
  .story-settings-note { text-align: center; line-height: 1.55; }
}


/* Strong mobile/touch override for Story Preferences, including Android Desktop site mode. */
@media (max-width: 1100px) and (pointer: coarse), (max-width: 560px) {
  .story-settings-card[data-page-view="mode"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading > div {
    width: 100%;
    min-width: 0;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading h2,
  .story-settings-card[data-page-view="mode"] .story-settings-heading p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading h2 {
    max-width: 100%;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.15;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading p {
    max-width: 34rem;
    font-size: 10px;
    line-height: 1.6;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-heading .log-lock {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-grid .field {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-grid .field > span {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.4;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-grid .field > span small {
    display: inline;
    margin-left: 3px;
  }
  .story-settings-card[data-page-view="mode"] .story-settings-grid select {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    text-align-last: center;
  }
}
/* Encrypted admin backup and restore */
#admin .admin-backup-card{display:grid;gap:14px;margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));min-width:0}
#admin .admin-backup-heading,#admin .admin-backup-snapshot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#admin .admin-backup-heading h3{margin:4px 0 0;font-size:19px}
#admin .admin-backup-badge{padding:6px 9px;border:1px solid rgba(109,220,153,.26);border-radius:999px;color:#8de0a9;background:rgba(46,127,73,.12);font-size:10px;font-weight:700;white-space:nowrap}
#admin .admin-backup-warning{margin:0;padding:12px 13px;border:1px solid rgba(255,190,86,.22);border-radius:11px;background:rgba(131,86,25,.12);color:var(--muted);font-size:12px;line-height:1.65}
#admin .admin-backup-form{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(0,0,0,.12)}
#admin .admin-backup-form>label:not(.admin-backup-confirm){display:flex;justify-content:space-between;gap:10px;color:var(--text);font-size:12px;font-weight:650}
#admin .admin-backup-form>label span{color:var(--muted);font-size:10px;font-weight:450}
#admin .admin-backup-form input[type=password],#admin .admin-backup-form input[type=file]{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;font-size:12px}
#admin .admin-backup-form input[type=file]{padding:8px}
#admin .admin-backup-confirm{display:flex;align-items:flex-start;gap:10px;margin:3px 0;color:var(--muted);font-size:11px;line-height:1.55}
#admin .admin-backup-confirm input{flex:0 0 auto;margin-top:2px;accent-color:#58c982}
#admin .admin-backup-form button{justify-self:start;min-height:40px}
#admin .admin-backup-form button:disabled{opacity:.58;cursor:wait}
#admin .admin-backup-restore-form{border-color:rgba(255,120,120,.2)}
#admin .admin-backup-spoiler{border:1px solid rgba(255,190,86,.22);border-radius:12px;background:rgba(131,86,25,.09);overflow:hidden}
#admin .admin-backup-spoiler summary{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:58px;padding:10px 12px;cursor:pointer;list-style:none}
#admin .admin-backup-spoiler summary::-webkit-details-marker{display:none}
#admin .admin-backup-spoiler summary:focus-visible{outline:2px solid rgba(103,218,147,.7);outline-offset:-2px}
#admin .admin-backup-spoiler-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(255,203,105,.3);border-radius:9px;color:#e6bd70;background:rgba(182,126,37,.14);font-size:12px;font-weight:800}
#admin .admin-backup-spoiler summary strong,#admin .admin-backup-spoiler summary small{display:block;text-align:left}
#admin .admin-backup-spoiler summary strong{color:#f0d49d;font-size:11px}
#admin .admin-backup-spoiler summary small{margin-top:2px;color:#b49b70;font-size:9px;line-height:1.4}
#admin .admin-backup-spoiler-chevron{color:#e0b969;font-size:17px;text-align:center;transition:transform .18s ease}
#admin .admin-backup-spoiler[open] .admin-backup-spoiler-chevron{transform:rotate(180deg)}
#admin .admin-backup-spoiler .admin-backup-warning{margin:0 10px 10px;border-color:rgba(255,190,86,.16)}
#admin .admin-backup-snapshots{display:grid;gap:8px;padding-top:4px}
#admin .admin-backup-snapshot-heading strong{font-size:12px}
#admin .admin-backup-snapshots ul{display:grid;gap:7px;margin:0;padding-left:18px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
#admin .admin-backup-snapshots a{color:var(--green2);font-weight:650}
#admin .admin-backup-status{min-height:18px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}
#admin .admin-backup-status.is-error{color:#ff9696}
html[data-theme="light"] #admin .admin-backup-card{background:#fff}
html[data-theme="light"] #admin .admin-backup-form{background:#f8faf8}
html[data-theme="light"] #admin .admin-backup-warning{color:#694b1f;background:#fff9ec;border-color:#eadbb9}
html[data-theme="light"] #admin .admin-backup-spoiler{background:#fffaf0;border-color:#eadbb9}
html[data-theme="light"] #admin .admin-backup-spoiler summary strong{color:#694b1f}
html[data-theme="light"] #admin .admin-backup-spoiler summary small{color:#876d42}
@media(max-width:560px){#admin .admin-backup-card{padding:13px;text-align:center}#admin .admin-backup-heading{align-items:center;flex-direction:column;gap:8px;text-align:center}#admin .admin-backup-heading>div{width:100%}#admin .admin-backup-heading h3{font-size:18px}#admin .admin-backup-form{padding:11px;text-align:center}#admin .admin-backup-form>label:not(.admin-backup-confirm){justify-content:center;flex-direction:column;gap:3px;text-align:center}#admin .admin-backup-form input[type=password],#admin .admin-backup-form input[type=file]{text-align:center}#admin .admin-backup-form button{justify-self:stretch;width:100%;min-height:44px}#admin .admin-backup-spoiler summary{grid-template-columns:28px minmax(0,1fr) 18px;padding:9px 10px;text-align:left}#admin .admin-backup-spoiler .admin-backup-warning{margin:0 8px 8px;text-align:center;font-size:11px;line-height:1.6}#admin .admin-backup-confirm{justify-content:center;text-align:left}#admin .admin-backup-snapshot-heading{align-items:center;flex-direction:column;text-align:center}#admin .admin-backup-snapshots ul{padding-left:0;list-style-position:inside;text-align:center}#admin .admin-backup-status{text-align:center}}
@media(max-width:760px){.page-footer{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;margin:22px auto 0;padding:16px 8px 26px;gap:11px;justify-items:center;text-align:center;overflow:visible}.page-footer .footer-brand{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:5px;width:100%;text-align:center}.page-footer .footer-brand span{display:block;width:100%;overflow-wrap:anywhere}.page-footer .footer-meta-row{display:flex;justify-content:center;align-items:center;width:100%;padding-top:10px;text-align:center;flex-wrap:wrap}.page-footer .footer-presence-row{justify-content:center;width:100%;flex-wrap:wrap}.page-footer .footer-utility-row{display:flex;justify-content:center;align-items:center;width:100%;padding-top:10px;border-top:1px solid rgba(191,230,208,.08);flex-wrap:wrap}.page-footer .footer-policy-links,.page-footer .auth-support-links{justify-content:center;flex-wrap:wrap}.admin-backup-spoiler summary strong,.admin-backup-spoiler summary small{text-align:center}}

/* Mobile admin backup: keep each operation isolated inside its own spoiler. */
#admin .admin-backup-action-spoiler[open] > summary{border-bottom:1px solid rgba(191,230,208,.1)}
#admin .admin-backup-action-spoiler > .admin-backup-form,
#admin .admin-backup-action-spoiler > .admin-backup-snapshots{border:0;border-radius:0;background:transparent}
#admin .admin-backup-action-spoiler > .admin-backup-form{margin:0}
#admin .admin-backup-action-spoiler > .admin-backup-snapshots{padding:12px}
@media(max-width:560px){
  #admin .admin-backup-action-spoiler summary{min-height:62px}
  #admin .admin-backup-action-spoiler > .admin-backup-form{padding:13px 12px 14px;text-align:left}
  #admin .admin-backup-action-spoiler > .admin-backup-form>label:not(.admin-backup-confirm){align-items:flex-start;justify-content:flex-start;text-align:left}
  #admin .admin-backup-action-spoiler > .admin-backup-form input[type=password],
  #admin .admin-backup-action-spoiler > .admin-backup-form input[type=file]{text-align:left}
  #admin .admin-backup-action-spoiler > .admin-backup-snapshots{padding:13px 12px 14px;text-align:left}
  #admin .admin-backup-action-spoiler .admin-backup-snapshot-heading{align-items:stretch;text-align:left}
  #admin .admin-backup-action-spoiler .admin-backup-snapshot-heading button{width:100%;min-height:42px}
}

/* Private activity log: compact dashboard preview with a dedicated detail page. */
.private-log-preview{display:grid;gap:12px;min-height:0;padding:17px 18px;background:radial-gradient(ellipse at 92% -10%,rgba(76,212,139,.12),transparent 52%),linear-gradient(145deg,rgba(16,36,25,.94),rgba(10,23,16,.96))}.private-log-preview>p{margin:0;color:#85998c;font-size:10px;line-height:1.55}.private-log-preview .pairing-log-list{display:none}.private-log-preview-body{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid rgba(109,143,121,.18);border-radius:12px;background:rgba(237,255,243,.025)}.private-log-preview-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border:1px solid rgba(74,216,139,.22);border-radius:11px;background:rgba(49,213,139,.11);color:#74e6a4;font-size:17px}.private-log-preview-body>div:last-child{display:grid;gap:2px;min-width:0}.private-log-preview-body strong{color:#d8eade;font-size:11px}.private-log-preview-body small{overflow-wrap:anywhere;color:#82998a;font-size:9px;line-height:1.45}.private-log-open{width:100%;justify-content:space-between;min-height:42px;margin:0}.private-log-page{margin-top:35px}.private-log-page-heading{align-items:flex-end}.private-log-page-heading h2{margin-bottom:5px}.private-log-notice{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px;padding:14px;border:1px solid rgba(76,214,139,.2);border-radius:14px;background:linear-gradient(110deg,rgba(37,117,70,.13),rgba(11,29,19,.62))}.private-log-notice .log-lock{flex:none}.private-log-notice strong{display:block;color:#cfeedd;font-size:11px}.private-log-notice p{max-width:760px;margin:3px 0 0;color:#8ea598;font-size:10px;line-height:1.55}.private-log-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(13,29,20,.72)}.private-log-toolbar>div{display:grid;gap:2px;min-width:0}.private-log-toolbar strong{color:#d3e5d8;font-size:11px}.private-log-toolbar small{color:#7f9687;font-size:9px}.private-log-toolbar .button{flex:none;min-height:38px;padding:8px 12px;font-size:10px}.private-log-list{display:grid;gap:10px;max-height:none;overflow:visible}.private-log-list>li{min-width:0}.private-log-list .activity-log-entry{padding:11px 12px}.private-log-list .activity-log-message{font-size:11px}.private-log-list .activity-log-meta{padding-bottom:1px}.private-log-list .story-log-card{box-shadow:0 8px 25px rgba(0,0,0,.08)}
@media(max-width:700px){.private-log-page{margin-top:25px}.private-log-page-heading{align-items:flex-start}.private-log-notice{padding:12px}.private-log-toolbar{align-items:stretch;flex-direction:column}.private-log-toolbar .button{width:100%;min-height:44px}.private-log-list{gap:8px}.private-log-list .activity-log-entry{padding:10px}.private-log-list .activity-log-meta{align-items:flex-start;flex-direction:column-reverse;gap:4px}.private-log-list .activity-kind{align-self:flex-start}}
@media(max-width:420px){.private-log-preview{padding:14px}.private-log-preview-body{padding:10px}.private-log-preview-body strong{font-size:10px}.private-log-preview-body small{font-size:8px}.private-log-notice{gap:9px}.private-log-notice p{font-size:9px}.private-log-page-heading h2{font-size:18px}.private-log-page-heading p{max-width:270px}.private-log-list .activity-log-message{font-size:10px}}

/* Refined private-log preview: show a few latest entries beside the full-log action. */
.private-log-preview-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,170px);align-items:stretch;gap:10px;min-width:0}.private-log-preview .pairing-log-list{display:grid;align-content:start;gap:6px;max-height:178px;overflow:hidden}.private-log-preview .pairing-log-list>li:nth-child(n+4){display:none}.private-log-preview .pairing-log-list .activity-log-entry{padding:7px 9px}.private-log-preview .pairing-log-list .activity-log-meta{gap:6px}.private-log-preview .pairing-log-list .activity-log-message{font-size:9px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.private-log-preview .pairing-log-list .activity-kind{font-size:6px;min-height:15px;padding:1px 6px}.private-log-preview .pairing-log-list time{font-size:7px}.private-log-preview .private-log-open{height:100%;min-height:0;margin:0;align-self:stretch}.private-log-preview .activity-log-story{display:none}
@media(max-width:560px){.private-log-preview-content{grid-template-columns:1fr;gap:8px}.private-log-preview .pairing-log-list{max-height:174px}.private-log-preview .private-log-open{width:100%;min-height:44px}.private-log-preview .pairing-log-list .activity-log-entry{padding:8px}.private-log-preview .pairing-log-list .activity-log-meta{align-items:flex-start;flex-direction:column-reverse;gap:3px}}
/* Pairing method chooser and QR card: touch-first, stable on narrow screens. */
.pairing-method-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:2px}
.pairing-method-option{display:flex;align-items:center;gap:9px;min-width:0;min-height:62px;padding:10px 11px;border:1px solid rgba(191,230,208,.14);border-radius:12px;background:rgba(231,250,238,.035);color:#b9cfc0;font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.pairing-method-option:hover{border-color:rgba(82,226,146,.42);background:rgba(55,186,115,.08)}
.pairing-method-option.is-selected{border-color:rgba(82,226,146,.72);background:linear-gradient(135deg,rgba(55,186,115,.18),rgba(55,186,115,.06));box-shadow:0 0 0 2px rgba(82,226,146,.08)}
.pairing-method-option:focus-visible{outline:2px solid rgba(82,226,146,.75);outline-offset:2px}
.pairing-method-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border:1px solid rgba(82,226,146,.2);border-radius:9px;color:#79e5a5;font-size:19px;line-height:1}
.pairing-method-option strong,.pairing-method-option small{display:block;min-width:0;overflow-wrap:anywhere}
.pairing-method-option strong{color:#d8ebde;font-size:10px;line-height:1.3}
.pairing-method-option small{margin-top:3px;color:#819b8b;font-size:8.5px;line-height:1.35}
.pairing-method-option em{color:#79e5a5;font-size:7px;font-style:normal;letter-spacing:.35px;text-transform:uppercase;white-space:nowrap}
.pairing-method-hint{margin:-2px 0 0;color:#819b8b;font-size:9px;line-height:1.5}
.pairing-qr-card{display:grid;gap:12px;padding:18px;border:1px solid rgba(82,226,146,.24);border-radius:16px;background:linear-gradient(145deg,rgba(25,83,47,.28),rgba(5,24,13,.56));text-align:center}
.pairing-qr-card .pairing-code-heading{text-align:left}
.pairing-qr-frame{display:grid;place-items:center;width:min(100%,304px);aspect-ratio:1;margin:0 auto;padding:12px;border-radius:16px;background:#fff;box-shadow:0 16px 34px rgba(0,0,0,.28)}
.pairing-qr-frame img{display:block;width:100%;height:100%;max-width:280px;max-height:280px;object-fit:contain;border-radius:5px}
.pairing-qr-card .pairing-expiry{margin:0;font-size:10px;line-height:1.55}
@media(max-width:560px){
  .pairing-method-picker{gap:7px}
  .pairing-method-option{min-height:60px;padding:9px 8px;gap:7px;border-radius:10px}
  .pairing-method-icon{width:28px;height:28px;font-size:17px}
  .pairing-method-option strong{font-size:9px}
  .pairing-method-option small{font-size:8px}
  .pairing-method-option em{display:block;width:max-content;margin-top:2px;font-size:6.5px}
  .pairing-qr-card{padding:13px;border-radius:14px}
  .pairing-qr-frame{width:min(100%,278px);padding:10px;border-radius:13px}
}
@media(max-width:360px){
  .pairing-method-option{min-height:58px;padding-inline:6px}
  .pairing-method-icon{width:25px;height:25px;font-size:15px}
  .pairing-method-option strong{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){.pairing-method-option{transition:none}}

/* QR scan tutorial spoiler */
.pairing-qr-tutorial{border:1px solid rgba(169,222,187,.14);border-radius:12px;background:rgba(5,24,13,.38);text-align:left;overflow:hidden}
.pairing-qr-tutorial summary{display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:center;gap:8px;padding:10px 11px;color:#cce5d2;cursor:pointer;list-style:none}
.pairing-qr-tutorial summary::-webkit-details-marker{display:none}
.pairing-qr-tutorial summary>span:first-child{display:grid;place-items:center;width:21px;height:21px;border:1px solid rgba(103,218,147,.24);border-radius:7px;color:#83dfa3;font-weight:800}
.pairing-qr-tutorial summary strong{font-size:9px;line-height:1.35}
.pairing-qr-tutorial summary>span:last-child{color:#83dfa3;text-align:center;transition:transform .18s ease}
.pairing-qr-tutorial[open] summary>span:last-child{transform:rotate(180deg)}
.pairing-qr-tutorial-body{padding:0 11px 11px;border-top:1px solid rgba(169,222,187,.08);color:#91a99a;font-size:9px;line-height:1.55}
.pairing-qr-tutorial-body ol{display:grid;gap:6px;margin:10px 0 8px;padding-left:18px}
.pairing-qr-tutorial-body li::marker{color:#74dfa0;font-weight:700}
.pairing-qr-tutorial-body p{margin:8px 0 0;padding:8px 9px;border:1px solid rgba(103,218,147,.14);border-radius:8px;background:rgba(36,116,69,.08);color:#a9c5b0}
.pairing-qr-tutorial-body strong{color:#cbe9d4}
@media(max-width:560px){.pairing-qr-tutorial summary{padding:9px}.pairing-qr-tutorial-body{font-size:8.5px}}

#pairing .pairing-consent.is-required-error{border-color:rgba(255,150,120,.72);background:rgba(135,48,39,.16);box-shadow:0 0 0 2px rgba(255,126,99,.1)}
#pairing .pairing-consent.is-required-error strong{color:#ffc1ad}
#pairing .pairing-consent.is-required-error input{accent-color:#ff9479}

#pairing .pairing-consent.is-required-ok{border-color:rgba(82,226,146,.62);background:rgba(35,129,76,.14);box-shadow:0 0 0 2px rgba(82,226,146,.08)}
#pairing .pairing-consent.is-required-ok strong{color:#9af0b9}
#pairing .pairing-consent.consent-nudge{animation:pairing-consent-nudge .8s ease both}
@keyframes pairing-consent-nudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}

/* Private logs: compact scrollable preview and newest-at-bottom detail view. */
.private-log-preview{gap:10px;padding:14px 15px}
.private-log-preview .pairing-log-heading{align-items:center;margin:0}
.private-log-icon-button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid rgba(90,220,146,.24);border-radius:11px;background:rgba(49,157,88,.12);color:#83e4a8;font-size:19px;font-weight:700;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.private-log-icon-button:hover{transform:translateY(-1px);border-color:rgba(90,220,146,.5);background:rgba(49,157,88,.22)}
.private-log-icon-button:focus-visible{outline:2px solid rgba(103,218,147,.7);outline-offset:2px}
.private-log-preview>p{font-size:9px}
.private-log-preview-body{padding:9px 10px}
.private-log-preview-content{display:block;min-width:0;padding:8px;border:1px solid rgba(109,143,121,.14);border-radius:12px;background:rgba(1,12,6,.18)}
.private-log-preview .pairing-log-list{display:grid;align-content:start;gap:6px;max-height:166px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 1px 0;scrollbar-width:thin;scrollbar-color:rgba(104,190,132,.38) transparent}
.private-log-preview .pairing-log-list>li:nth-child(n+4){display:list-item}
.private-log-preview .pairing-log-list .activity-log-entry{padding:7px 8px}
.private-log-preview .pairing-log-list .activity-log-message{font-size:9px;line-height:1.4}
.private-log-preview .activity-log-story{display:list-item}
.private-log-list{max-height:min(68vh,720px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:2px 7px 12px 1px;scrollbar-width:thin;scrollbar-color:rgba(104,190,132,.42) transparent}
.private-log-list::-webkit-scrollbar,.private-log-preview .pairing-log-list::-webkit-scrollbar{width:7px}
.private-log-list::-webkit-scrollbar-thumb,.private-log-preview .pairing-log-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:rgba(104,190,132,.4);background-clip:padding-box}
.private-log-page .private-log-page-heading p{max-width:560px}
@media(max-width:560px){
  .private-log-preview{gap:8px;padding:12px}
  .private-log-icon-button{width:40px;height:40px}
  .private-log-preview-content{padding:6px}
  .private-log-preview .pairing-log-list{max-height:150px}
  .private-log-list{max-height:62vh;padding-right:4px}
  .private-log-list .activity-log-story{overflow-wrap:anywhere}
}

/* Final member-card alignment: desktop uses a calm horizontal header; mobile uses compact label/value rows. */
@media (min-width: 821px) {
  #admin .member-account-group-heading{justify-content:space-between;text-align:left}
  #admin .member-account-group-heading h3,#admin .member-account-group-heading>span{text-align:left}
  #admin .member-account-toggle{text-align:left}
  #admin .member-account-top-row{flex-direction:row;justify-content:space-between;gap:14px;text-align:left}
  #admin .member-account-identity{justify-content:flex-start;width:auto;text-align:left}
  #admin .member-account-identity-text{justify-items:start;text-align:left}
  #admin .member-account-control{justify-content:flex-end;text-align:right}
  #admin .member-account-statuses{justify-content:flex-start}
  #admin .member-account-details{text-align:left}
  #admin .member-detail-grid{width:100%;max-width:none;margin:0}
  #admin .member-detail-item,#admin .member-detail-item dt,#admin .member-detail-item dd{text-align:left}
  #admin .member-detail-note{text-align:left}
  #admin .member-feature-section{text-align:left}
}
@media (max-width: 560px), (max-width: 1100px) and (hover: none) {
  #admin .member-account-toggle{text-align:left}
  #admin .member-account-top-row{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;text-align:left}
  #admin .member-account-identity{justify-content:flex-start;width:auto;text-align:left}
  #admin .member-account-identity-text{justify-items:start;text-align:left}
  #admin .member-account-control{justify-content:flex-end;text-align:right}
  #admin .member-account-statuses{justify-content:flex-start}
  #admin .member-account-details{text-align:left}
  #admin .member-detail-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:none;margin:0}
  #admin .member-detail-item{display:grid;grid-template-columns:minmax(105px,.78fr) minmax(0,1fr);align-items:start;gap:8px;padding:10px}
  #admin .member-detail-item dt{text-align:left}
  #admin .member-detail-item dd{margin:0;text-align:right}
  #admin .member-detail-item dd:has(.member-detail-note){justify-items:end}
  #admin .member-detail-note{text-align:right}
  #admin .member-feature-section{text-align:left}
  #admin .member-feature-grid{grid-template-columns:minmax(0,1fr)}
  #admin .member-feature-card{align-items:center}
  #admin .member-feature-copy{text-align:left}
  #admin .member-story-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Private Log console refresh, inspired by focused log viewers and responsive admin dashboards. */
#activity.private-log-page{display:grid;gap:14px;width:min(100%,1120px);margin:24px auto 0;padding:18px;border:1px solid rgba(107,145,119,.22);border-radius:20px;background:radial-gradient(ellipse at 96% -8%,rgba(56,181,103,.1),transparent 35%),linear-gradient(155deg,rgba(10,23,16,.98),rgba(7,16,11,.98));box-shadow:0 22px 56px rgba(0,0,0,.18)}
#activity .private-log-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:4px 2px 5px}
#activity .private-log-hero-copy{min-width:0}
#activity .private-log-hero-copy .eyebrow{color:#72d99b;font-size:9px;font-weight:800;letter-spacing:1.35px}
#activity .private-log-hero-copy h2{margin:6px 0 5px;color:#e7f1e9;font-size:25px;font-weight:780;letter-spacing:-.65px;line-height:1.15}
#activity .private-log-hero-copy p{max-width:680px;margin:0;color:#91a698;font-size:11px;line-height:1.55}
#activity .private-log-private-badge{display:inline-flex;align-items:center;gap:8px;flex:none;margin-top:3px;padding:8px 10px;border:1px solid rgba(81,215,135,.2);border-radius:999px;background:rgba(42,138,75,.1);color:#9be9b5;font-size:8px;font-weight:800;letter-spacing:.5px;white-space:nowrap}
#activity .private-log-status-dot{width:7px;height:7px;border-radius:50%;background:#56df8e;box-shadow:0 0 0 4px rgba(86,223,142,.1)}
#activity .private-log-notice{align-items:center;margin:0;padding:11px 13px;border-color:rgba(83,188,122,.17);border-radius:13px;background:rgba(26,79,47,.13)}
#activity .private-log-notice .log-lock{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(99,217,144,.19);border-radius:9px;background:rgba(54,164,94,.1);color:#81dda1}
#activity .private-log-notice .log-lock svg,#activity .private-log-toolbar-icon svg,#activity .private-log-refresh svg,#activity .private-log-search svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#activity .private-log-notice strong{color:#cce8d4;font-size:10px}
#activity .private-log-notice p{margin-top:2px;color:#879e8e;font-size:9px;line-height:1.5}
#activity .private-log-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:12px 13px;border:1px solid rgba(105,143,117,.17);border-radius:14px;background:linear-gradient(100deg,rgba(19,37,27,.84),rgba(11,25,17,.9))}
#activity .private-log-toolbar-main{display:flex;align-items:center;gap:11px;min-width:0}
#activity .private-log-toolbar-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid rgba(81,215,135,.2);border-radius:11px;background:rgba(42,138,75,.12);color:#78dfa0}
#activity .private-log-toolbar-copy{display:grid;gap:2px;min-width:0}
#activity .private-log-toolbar-label{color:#6f987d;font-size:7px;font-weight:850;letter-spacing:1px}
#activity .private-log-toolbar-copy strong{color:#dcebe0;font-size:11px;font-weight:750}
#activity .private-log-toolbar-copy>small:last-child{color:#809587;font-size:8px;line-height:1.4}
#activity .private-log-refresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:38px;padding:8px 12px;border-color:rgba(101,151,116,.23);border-radius:10px;background:rgba(255,255,255,.035);color:#c9dfcf;font-size:9px;font-weight:700}
#activity .private-log-refresh svg{width:14px;height:14px;color:#7de1a2}
#activity .private-log-refresh:hover{border-color:rgba(84,214,135,.42);background:rgba(52,150,87,.12)}
#activity .private-log-controls{display:grid;gap:11px;padding:12px;border:1px solid rgba(105,143,117,.15);border-radius:14px;background:rgba(7,19,12,.52)}
#activity .private-log-search{display:flex;align-items:center;gap:9px;min-height:42px;padding:0 11px;border:1px solid rgba(111,152,124,.2);border-radius:10px;background:rgba(232,248,237,.035);color:#7cc997}
#activity .private-log-search:focus-within{border-color:rgba(81,215,135,.6);box-shadow:0 0 0 3px rgba(81,215,135,.08)}
#activity .private-log-search svg{flex:none;width:15px;height:15px;color:#78c993}
#activity .private-log-search input{width:100%;min-width:0;min-height:40px;padding:0;border:0;outline:0;background:transparent;color:#e2efe5;font:500 10px/1.4 'Inter',system-ui,sans-serif}
#activity .private-log-search input::placeholder{color:#6e8475}
#activity .private-log-search-hint{flex:none;color:#718879;font-size:8px}
#activity .private-log-filter-row{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:8px}
#activity .private-log-filter-label{color:#859b8b;font-size:8px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
#activity .private-log-filters{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#activity .private-log-filter{display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:5px 9px;border:1px solid rgba(109,143,121,.17);border-radius:999px;background:rgba(255,255,255,.025);color:#9cafA2;font:650 8px/1 'Inter',system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease}
#activity .private-log-filter:hover{border-color:rgba(80,206,128,.34);color:#d4e8d9}
#activity .private-log-filter.is-active{border-color:rgba(76,215,132,.34);background:rgba(43,151,83,.14);color:#a8efbd}
#activity .private-log-filter small{display:grid;min-width:18px;height:18px;place-items:center;padding:0 4px;border-radius:999px;background:rgba(255,255,255,.055);color:#8ca091;font-size:7px;font-weight:800;font-variant-numeric:tabular-nums}
#activity .private-log-filter.is-active small{background:rgba(75,208,126,.16);color:#a7eabb}
#activity .private-log-filter:focus-visible,#activity .private-log-refresh:focus-visible{outline:2px solid rgba(91,220,141,.72);outline-offset:2px}
#activity .private-log-stream-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:1px 2px 0}
#activity .private-log-stream-heading h3{margin:0;color:#dcebe0;font-size:12px;font-weight:760;letter-spacing:-.15px}
#activity .private-log-stream-heading p{margin:3px 0 0;color:#73887a;font-size:8px;line-height:1.45}
#activity #private-log-filter-summary{flex:none;color:#8ea292;font-size:8px;font-weight:650;text-align:right}
#activity .private-log-stream{min-width:0}
#activity .private-log-list{display:grid;gap:8px;max-height:none;margin:0;padding:0;overflow:visible;list-style:none}
#activity .private-log-list>li{min-width:0}
#activity .private-log-list .activity-log-entry{display:grid;grid-template-columns:minmax(130px,160px) minmax(0,1fr);align-items:start;gap:14px;min-width:0;padding:12px 13px;border:1px solid rgba(103,141,115,.16);border-radius:13px;background:linear-gradient(120deg,rgba(15,31,21,.8),rgba(10,22,15,.78));transition:border-color .16s ease,background .16s ease,transform .16s ease}
#activity .private-log-list .activity-log-entry:hover{border-color:rgba(87,195,127,.28);background:linear-gradient(120deg,rgba(19,39,27,.88),rgba(11,25,17,.86));transform:translateY(-1px)}
#activity .private-log-list .activity-log-entry[hidden]{display:none!important}
#activity .private-log-list .activity-log-meta{display:grid;align-content:start;justify-content:start;gap:8px;min-width:0;padding:1px 0 0}
#activity .private-log-list .activity-kind{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;min-height:23px;padding:4px 8px;border:1px solid rgba(150,170,156,.13);border-radius:999px;background:rgba(150,170,156,.07);color:#a9b9ad;font-size:7px;font-weight:850;letter-spacing:.65px}
#activity .private-log-event-icon{display:block;flex:none;width:12px;height:12px}
#activity .private-log-list .activity-kind.story{border-color:rgba(174,114,212,.21);background:rgba(146,74,174,.1);color:#d9b5eb}
#activity .private-log-list .activity-kind.alert{border-color:rgba(232,142,92,.25);background:rgba(195,103,58,.11);color:#f0bd91}
#activity .private-log-list .activity-kind.bot{border-color:rgba(111,148,229,.2);background:rgba(79,116,203,.11);color:#b3c3fb}
#activity .private-log-list .activity-kind.whatsapp{border-color:rgba(73,202,135,.19);background:rgba(49,160,91,.11);color:#91e6ad}
#activity .private-log-list time{color:#829689;font-size:8px;font-weight:600;line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#activity .private-log-list .activity-log-message{min-width:0;margin:1px 0 0;padding:1px 0 1px 13px;border-left:1px solid rgba(107,145,119,.2);color:#c3d2c7;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
#activity .private-log-list .story-log-card{grid-column:2;min-width:0;margin:0;padding:11px 12px;border-color:rgba(106,149,119,.17);border-radius:11px;background:rgba(4,15,9,.32);box-shadow:none}
#activity .private-log-list .story-log-heading{align-items:flex-start;flex-wrap:wrap;gap:8px;padding-bottom:8px}
#activity .private-log-list .story-log-heading strong{color:#d4e7d9;font-size:10px}
#activity .private-log-list .story-log-outcome{max-width:100%;font-size:8px}
#activity .private-log-list .story-log-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding-top:9px}
#activity .private-log-list .story-log-field{min-width:0;padding:7px 8px;border:1px solid rgba(111,150,123,.1);border-radius:8px;background:rgba(255,255,255,.018)}
#activity .private-log-list .story-log-field dt{color:#718779;font-size:7px;font-weight:800;letter-spacing:.35px}
#activity .private-log-list .story-log-field dd{margin:3px 0 0;color:#b9cbbd;font-size:8px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
#activity .private-log-empty{margin:0;padding:20px;border:1px dashed rgba(111,150,123,.2);border-radius:12px;color:#8ea292;font-size:10px;text-align:center}
#activity .private-log-empty[hidden]{display:none!important}
html[data-theme="light"] #activity.private-log-page{border-color:#d8e3da;background:radial-gradient(ellipse at 96% -8%,rgba(63,171,101,.08),transparent 35%),linear-gradient(155deg,#fff,#f7faf8);box-shadow:0 18px 44px rgba(35,70,45,.08)}
html[data-theme="light"] #activity .private-log-hero-copy h2,html[data-theme="light"] #activity .private-log-stream-heading h3{color:#203329}
html[data-theme="light"] #activity .private-log-hero-copy p,html[data-theme="light"] #activity .private-log-stream-heading p,html[data-theme="light"] #activity #private-log-filter-summary{color:#6b7f70}
html[data-theme="light"] #activity .private-log-notice{border-color:#cfe5d5;background:#f0f8f2}
html[data-theme="light"] #activity .private-log-notice strong{color:#284b34}
html[data-theme="light"] #activity .private-log-notice p{color:#64796a}
html[data-theme="light"] #activity .private-log-toolbar,html[data-theme="light"] #activity .private-log-controls{border-color:#dfe8e1;background:#f8faf8}
html[data-theme="light"] #activity .private-log-toolbar-copy strong{color:#203329}
html[data-theme="light"] #activity .private-log-toolbar-copy>small:last-child,html[data-theme="light"] #activity .private-log-toolbar-label{color:#6d8172}
html[data-theme="light"] #activity .private-log-search{border-color:#d9e4dc;background:#fff}
html[data-theme="light"] #activity .private-log-search input{color:#263a2c}
html[data-theme="light"] #activity .private-log-search input::placeholder,html[data-theme="light"] #activity .private-log-search-hint{color:#7c8d80}
html[data-theme="light"] #activity .private-log-filter{border-color:#dce6de;background:#fff;color:#556a5c}
html[data-theme="light"] #activity .private-log-filter.is-active{border-color:#add8b9;background:#edf8f0;color:#237545}
html[data-theme="light"] #activity .private-log-list .activity-log-entry{border-color:#dfe8e1;background:linear-gradient(120deg,#fff,#f8faf8)}
html[data-theme="light"] #activity .private-log-list .activity-log-entry:hover{border-color:#b6ddc1;background:#fbfefc}
html[data-theme="light"] #activity .private-log-list time{color:#637769}
html[data-theme="light"] #activity .private-log-list .activity-log-message{border-color:#d6e2d9;color:#344a3a}
html[data-theme="light"] #activity .private-log-list .story-log-card{border-color:#e0e9e2;background:#f7faf8}
html[data-theme="light"] #activity .private-log-list .story-log-heading strong{color:#314938}
html[data-theme="light"] #activity .private-log-list .story-log-field{border-color:#e4ebe5;background:#fff}
html[data-theme="light"] #activity .private-log-list .story-log-field dt{color:#748779}
html[data-theme="light"] #activity .private-log-list .story-log-field dd{color:#354b3b}
@media(max-width:760px){
  #activity.private-log-page{gap:11px;margin-top:16px;padding:13px;border-radius:16px}
  #activity .private-log-hero{align-items:flex-start;flex-direction:column;gap:9px}
  #activity .private-log-hero-copy h2{font-size:22px}
  #activity .private-log-private-badge{margin:0}
  #activity .private-log-toolbar{align-items:stretch;flex-direction:column;gap:10px;padding:11px}
  #activity .private-log-refresh{width:100%;min-height:42px}
  #activity .private-log-controls{gap:10px;padding:10px}
  #activity .private-log-filter-row{grid-template-columns:minmax(0,1fr);gap:6px}
  #activity .private-log-filters{flex-wrap:wrap;overflow:visible;padding:1px 0}
  #activity .private-log-filter{flex:none;min-height:31px}
  #activity .private-log-stream-heading{align-items:flex-start;flex-direction:column;gap:5px}
  #activity #private-log-filter-summary{text-align:left}
  #activity .private-log-list{gap:7px}
  #activity .private-log-list .activity-log-entry{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px}
  #activity .private-log-list .activity-log-meta{display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:8px;padding:0}
  #activity .private-log-list .activity-log-message,#activity .private-log-list .story-log-card{grid-column:1}
  #activity .private-log-list .activity-log-message{padding:0;border:0;font-size:10px}
  #activity .private-log-list .story-log-card{padding:9px}
  #activity .private-log-list .story-log-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
}
@media(max-width:420px){
  #activity.private-log-page{padding:11px}
  #activity .private-log-hero-copy h2{font-size:20px}
  #activity .private-log-notice{align-items:flex-start;gap:8px;padding:10px}
  #activity .private-log-notice .log-lock{width:27px;height:27px}
  #activity .private-log-search-hint{display:none}
  #activity .private-log-list .story-log-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){#activity .private-log-list .activity-log-entry,#activity .private-log-filter,#activity .private-log-refresh{transition:none}}

/* Shared event icons also appear in the dashboard's compact private-log preview. */
.private-log-event-icon{display:block;flex:none;width:12px;height:12px}
.private-log-preview .activity-kind{gap:4px}
.private-log-preview .private-log-event-icon{width:9px;height:9px}

/* Login role badge at the top of the hamburger sidebar. */
.sidebar-account-status{display:flex;align-items:center;gap:10px;margin:0 1px 14px;padding:10px 10px;border:1px solid rgba(82,226,146,.2);border-radius:12px;background:linear-gradient(135deg,rgba(55,186,115,.14),rgba(231,250,238,.035));}
.sidebar-account-status-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(125,240,174,.35);border-radius:9px;color:#7df0ae;font-size:19px;line-height:1;}
.sidebar-account-status-copy{display:grid;min-width:0;gap:2px;line-height:1.05;}
.sidebar-account-status-copy small{color:#7f9a89;font-size:8px;font-weight:700;letter-spacing:.12em;}
.sidebar-account-status-copy strong{color:#e7f9ec;font-size:12px;letter-spacing:.08em;}
.sidebar-account-status-copy em{overflow:hidden;color:#9ab2a1;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap;}
html[data-theme="light"] .sidebar-account-status{border-color:rgba(39,137,78,.2);background:rgba(55,186,115,.08);}
html[data-theme="light"] .sidebar-account-status-copy strong{color:#173a26;}
html[data-theme="light"] .sidebar-account-status-copy em{color:#557060;}
@media(max-width:560px){.sidebar-account-status{margin-bottom:12px;padding:9px 10px;}.sidebar-account-status-icon{width:29px;height:29px;font-size:18px;}.sidebar-account-status-copy strong{font-size:11px;}}
