:root{font-family:'IBM Plex Sans','PingFang SC','Microsoft YaHei',sans-serif;color:#233444;background:#f3f6f9;font-size:14px;--blue:#176fbb;--line:#dde5ed}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:white;padding:9px 14px;color:inherit}button:hover{border-color:var(--blue);color:var(--blue)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{color:white;background:#125c9b}h1{font-size:28px;letter-spacing:-.6px;margin:5px 0}h2{font-size:20px}p{line-height:1.7}.muted,small{color:#718397}aside{position:fixed;inset:0 auto 0 0;width:224px;background:#173b57;color:#dce9f3;padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:18px;margin-bottom:44px}.mark{background:#2c87c5;color:white;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;font-weight:800}nav{display:grid;gap:8px}nav button{text-align:left;background:transparent;border:0;color:#c0d1df;padding:13px 16px}nav button.active{background:#2c526f;color:white}nav button:hover{color:white}.sidefoot{margin-top:auto;display:grid;gap:16px;font-size:12px}.sidefoot button{background:transparent;color:#dce9f3;border-color:#547087}main{margin-left:224px;padding:34px 40px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}header p{margin:0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:24px 0 16px}.toolbar input{max-width:300px;margin-right:auto}.stats{display:flex;gap:0;background:white;border:1px solid var(--line);border-radius:9px}.stat{flex:1;padding:20px 24px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat b{display:block;font-size:30px;margin-top:8px;font-weight:600}.tableWrap{background:white;border:1px solid var(--line);border-radius:8px;overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{font-size:12px;color:#6d8091;font-weight:500;background:#f8fafc}th,td{padding:15px 18px;border-bottom:1px solid #eaf0f5}td{font-size:13px}td button{padding:5px 9px;margin-right:6px}tr:last-child td{border-bottom:0}.status{display:inline-block;background:#edf2f7;border-radius:4px;padding:4px 8px;font-size:12px}.status.ready,.status.done,.status.joined{color:#24704b;background:#e6f4ed}.status.failed,.status.review,.status.login_required{color:#aa4c37;background:#fff0e9}.status.approval,.status.pending_approval{color:#8a6820;background:#fbf2dc}.empty{text-align:center;padding:80px 24px;white-space:normal;color:#718397}.empty h2{color:#334c60}.panel{background:white;padding:26px;border:1px solid var(--line);border-radius:8px;max-width:800px}.panel p{color:#6d8091}.panel label{max-width:500px}.banner{padding:13px 18px;background:#e5eff8;border-left:3px solid #2c87c5;margin-bottom:20px;line-height:1.6}label{display:block;margin:15px 0;color:#51677a}input,textarea,select{display:block;width:100%;padding:11px;border:1px solid #cbd6e0;border-radius:5px;background:white;color:#233444;margin-top:7px}input[type=checkbox]{width:16px;height:16px;display:inline-block;margin:0;vertical-align:middle}textarea{min-height:100px;resize:vertical}dialog{border:1px solid var(--line);border-radius:12px;width:560px;max-width:calc(100vw - 24px);max-height:90vh;padding:26px}dialog::backdrop{background:#173b5780}.dialogHead{display:flex;justify-content:space-between;align-items:center}#formError,#loginError{color:#aa4c37;white-space:pre-wrap}#toast{position:fixed;bottom:26px;right:26px;background:#173b57;color:white;padding:14px 22px;border-radius:6px;display:none;z-index:5}.login{min-height:100vh;display:grid;place-items:center;background:#e7eff5}.login form{background:white;width:420px;max-width:90vw;padding:40px;border:1px solid var(--line);border-radius:14px}.login h1{font-size:25px;margin-top:24px}.login p{color:#718397}.login button{width:100%;margin:15px 0}[hidden]{display:none!important}:focus-visible{outline:3px solid #71b2e6;outline-offset:3px}.detail{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.8;background:#f3f6f9;padding:16px}.checkline{display:flex;gap:8px;align-items:center}@media(max-width:760px){aside{position:relative;width:auto;padding:15px}.brand{margin-bottom:15px}nav{display:flex;overflow:auto;gap:4px}nav button{white-space:nowrap;padding:10px}.sidefoot{display:none}main{margin:0;padding:22px 15px}h1{font-size:24px}.stats{flex-wrap:wrap}.stat{min-width:50%;padding:14px}.stat b{font-size:25px}header{gap:10px}.toolbar input{max-width:none}.toolbar{gap:7px}th,td{padding:12px}.panel{padding:18px}}

#fbKind{width:145px;margin:0}#fbQuery{min-width:220px}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.day{background:white;border:1px solid var(--line);border-radius:5px;min-height:110px;padding:12px;overflow-wrap:anywhere}.day p{font-size:12px;padding:6px;background:#edf3f8}.day strong{color:#536a7d}@media(max-width:900px){.calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){.calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep the expanded navigation and sign-out reachable at every height. */
aside{overflow-y:auto}.brand{flex-shrink:0}.sidefoot{padding-top:20px}
@media(max-width:760px){.sidefoot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:12px;padding-top:0}.sidefoot button{padding:7px 12px}}

.personalNote{white-space:normal;min-width:220px;max-width:640px;line-height:1.7}#personalFilter,#personalTaskFilter{width:auto;max-width:100%;margin:0}

/* Embedded account browser uses the same authenticated proxy as standalone windows. */
dialog:has(.fb-login-frame){width:min(1280px,94vw);max-width:94vw;max-height:94vh;overflow:auto}
.fb-login-frame{display:block;width:100%;height:65vh;min-height:360px;border:1px solid #dce3ec;border-radius:8px;background:#161616}
@media(max-width:640px){.fb-login-frame{height:60vh;min-height:280px}}

/* Account Operations: compact workspace, one navigation for desktop and mobile. */
:root{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:#243c4b;background:#f1f4f6;--blue:#087f83;--line:#dbe4e8;font-size:14px}
body{overflow-wrap:anywhere}h1{font-size:24px;letter-spacing:0;font-weight:650}h2{font-size:17px;margin:18px 0 12px}p{line-height:1.65}button{min-height:38px;padding:8px 12px;border-radius:7px;font-weight:500}button:disabled{cursor:not-allowed}.primary:hover{background:#07696c}.mark{background:#087f83;border-radius:10px;width:36px;height:36px;font-size:20px}
aside{width:208px;background:#fff;color:#243c4b;border-right:1px solid var(--line);padding:24px 14px}.brand{gap:10px;margin-bottom:32px;font-size:16px}.brand strong{line-height:1.4}.brand small{display:block;font-size:11px;font-weight:400;color:#74848e;margin-top:5px}nav{gap:6px}nav button{display:flex;align-items:center;gap:12px;color:#526571;padding:12px;background:transparent}nav button.active{background:#e6f3f2;color:#066b70;font-weight:650}nav button:hover{color:#087f83;background:#f0f7f7}.navIcon{font-size:11px;font-weight:750;width:27px;height:27px;display:grid;place-items:center;border:1px solid currentColor;border-radius:7px;flex-shrink:0}.sidefoot{color:#687c88;gap:10px}.sidefoot button{color:#526571;border-color:var(--line)}main{margin-left:208px;padding:26px 28px;max-width:1600px;min-width:0}header{margin-bottom:20px;gap:12px}header p{font-size:12px}header h1{margin:4px 0 0}#refresh{font-size:13px;flex-shrink:0}.banner{background:#eaf3f4;border-left:3px solid #087f83;padding:10px 14px;margin-bottom:16px;color:#47616e;font-size:13px;line-height:1.65}.toolbar{margin:14px 0;gap:8px}.toolbar input{margin-top:0;flex:1;min-width:180px}.toolbar label{margin:0}.stats{border-radius:9px}.stat{padding:14px 18px;font-size:12px;color:#5e7480}.stat b{font-size:25px;margin-top:4px;color:#243c4b}.tableWrap{border-radius:9px}table{white-space:normal}th,td{padding:12px 14px;vertical-align:top}td{overflow-wrap:anywhere;max-width:420px;line-height:1.55}th{white-space:nowrap;font-weight:550;color:#627581}td button{margin:2px 4px 2px 0;white-space:nowrap;min-height:32px}td small{font-size:12px}tbody tr:hover{background:#fafcfc}.empty{padding:40px 20px}.empty h2{font-size:16px;margin:0;color:#617681}.empty p{font-size:13px;margin-bottom:0}.panel{padding:20px}.panel h2{margin-top:0}label{margin:12px 0}input,select,textarea{padding:10px;min-width:0}dialog{padding:22px;border-radius:12px}dialog h2{margin:0;font-size:18px}.dialogHead{gap:16px;margin-bottom:18px}#submit{margin-top:12px}.sectionTabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 18px;padding-bottom:8px;overflow-x:auto}.sectionTabs button{border:0;background:transparent;white-space:nowrap;flex-shrink:0;color:#637782}.sectionTabs .active{background:#dff0ee;color:#086d70}.actionMore{position:relative}.actionMore summary{cursor:pointer;list-style:none;background:white;border:1px solid var(--line);border-radius:7px;padding:9px 12px}.actionMore summary:after{content:' ▾';font-size:11px}.actionMore[open]>div{position:absolute;top:44px;right:0;min-width:160px;z-index:3;display:grid;gap:5px;background:white;padding:8px;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #23344418}.moreGroup{margin-bottom:24px}.moreGroup h2{font-size:14px;color:#607580}.moreGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.moreItem{text-align:left;display:flex;flex-direction:column;gap:7px;padding:17px;background:white;min-width:0}.moreItem strong{font-size:14px;font-weight:600}.moreItem span{font-size:12px;font-weight:400;color:#71838e;line-height:1.55}.login{background:#f1f4f6}.login form{padding:30px}.login h1{font-size:23px}.login p{font-size:13px}#toast{max-width:calc(100vw - 32px);overflow-wrap:anywhere;z-index:20}.personalNote{min-width:0}.calendar{gap:6px}.day{min-height:90px;padding:9px}:focus-visible{outline:3px solid #34a6ab;outline-offset:3px}
@media(min-width:761px) and (max-width:1100px){aside{width:184px}main{margin-left:184px;padding:24px 20px}.brand{font-size:14px}.moreGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 aside{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:0 8px env(safe-area-inset-bottom,0px);border:0;border-top:1px solid var(--line);background:#fff;z-index:10;overflow:visible}.brand,.sidefoot{display:none}nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;overflow:visible}nav button{flex-direction:column;gap:4px;justify-content:center;font-size:11px;padding:9px 2px 7px;min-width:0;border-radius:0;min-height:62px}nav button.active{background:transparent;color:#05777a}.navIcon{width:23px;height:23px;font-size:10px;border-radius:6px}nav button.active .navIcon{background:#087f83;color:white;border-color:#087f83}main{margin:0;padding:16px 12px calc(88px + env(safe-area-inset-bottom,0px));width:100%}header{margin-bottom:16px}h1{font-size:21px}header p{font-size:11px}#refresh{font-size:12px;min-height:36px;padding:7px 10px}.banner{padding:9px 11px;font-size:12px;margin-bottom:12px}.stats{flex-wrap:nowrap}.stat{min-width:0;padding:11px 9px;font-size:11px}.stat b{font-size:22px}.toolbar{gap:7px;margin:12px 0}.toolbar>input{flex-basis:100%;max-width:none}.toolbar button,.toolbar summary{font-size:12px;min-height:38px;padding:8px 10px}.toolbar>label{flex:1;min-width:140px}.toolbar select{max-width:100%}#fbQuery{min-width:0}#fbKind{width:100%;flex-basis:100%}.sectionTabs{gap:0;margin-bottom:14px;padding-bottom:7px}.sectionTabs button{font-size:12px;padding:8px 9px;min-height:38px}.tableWrap{overflow:visible;background:transparent;border:0;border-radius:0}table,tbody{display:block;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody tr{display:block;background:white;border:1px solid var(--line);border-radius:9px;padding:8px 12px;margin-bottom:10px}tbody tr:hover{background:white}td{display:grid;grid-template-columns:82px minmax(0,1fr);gap:6px;width:100%;max-width:none;padding:7px 0;border:0;white-space:normal;min-height:30px;font-size:13px;line-height:1.6}td:before{content:attr(data-label);color:#788995;font-size:12px}td>br{display:none}td small{grid-column:2;font-size:11px}td>button{grid-column:2;justify-self:start;min-height:36px;margin:0 0 4px;max-width:100%;white-space:normal}td>input[type=checkbox]{align-self:center}td>span.status{justify-self:start}.selectCell{border-bottom:1px solid #edf1f3;margin-bottom:4px;padding:5px 0 9px}.empty{display:block;padding:24px 8px;text-align:center}.empty:before{display:none}.empty h2{font-size:15px}.empty p{font-size:12px}.personalNote{max-width:none}.moreGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.moreGroup{margin-bottom:20px}.moreItem{padding:13px 12px;min-height:90px}.moreItem strong{font-size:13px}.moreItem span{font-size:11px}.panel{padding:16px}.panel label{max-width:none}input,textarea,select{font-size:16px}dialog{width:calc(100vw - 20px);max-width:none;max-height:calc(100dvh - 24px);padding:18px;margin:auto;overflow:auto}dialog h2{font-size:17px}#submit{width:100%;min-height:44px}.dialogHead button{min-height:38px}.detail{padding:12px;font-size:12px}#toast{left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:12px 15px}.login form{padding:26px}.calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.actionMore[open]>div{right:0;min-width:160px}.day{min-height:80px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.cellActions{display:flex;flex-wrap:wrap;gap:5px}.cellValue{min-width:0;overflow-wrap:anywhere}.moreStatus{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px;font-size:12px;color:#58727c}.moreStatus button{font-size:12px}.cellActions button{margin:0}
@media(max-width:760px){.cellValue{grid-column:2}.cellActions{gap:6px}.cellActions button{min-height:36px;padding:7px 10px;font-size:12px}.cellValue small{display:inline}.cellValue .status{white-space:normal}.cellValue a{overflow-wrap:anywhere}}
/* Mobile navigation follows the supplied reference: left drawer and dimmed content. */
.mobileTop,#menuClose,#navShade{display:none}.navGroup>p{font-size:11px;font-weight:400;color:#84908c;margin:18px 12px 8px}.navGroup:first-child>p{margin-top:0}.navGroup{display:grid;gap:4px}.navGlyph{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}nav button{gap:12px}.brand{margin-bottom:25px}
@media(max-width:760px){
 .mobileTop{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:8;background:#fff;border-bottom:1px solid #e7e9e5;min-height:56px;padding:8px 14px;padding-top:calc(8px + env(safe-area-inset-top,0px))}.mobileTop strong{font-size:15px;font-weight:600;color:#303b36}.mobileTop button{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:8px;border:0;background:transparent}.mobileTop svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}main{padding:16px 12px calc(24px + env(safe-area-inset-bottom,0px))}aside{display:flex;position:fixed;inset:0 auto 0 0;width:min(82vw,320px);height:100dvh;padding:22px 16px calc(18px + env(safe-area-inset-bottom,0px));padding-top:calc(22px + env(safe-area-inset-top,0px));background:#fdfdfb;border:0;border-right:1px solid #eceee8;z-index:31;transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility .2s;overflow-y:auto;overscroll-behavior:contain}.drawerOpen aside{transform:translateX(0);visibility:visible}.drawerOpen{overflow:hidden}.brand{display:flex;gap:10px;margin-bottom:28px;flex-shrink:0;font-size:15px;align-items:center}.brand strong{flex:1;min-width:0;color:#303b36}.brand small{font-size:10px;color:#8b9187}.brand .mark{width:31px;height:31px;border-radius:8px;font-size:18px;background:#4b5140}#menuClose{display:grid;place-items:center;flex-shrink:0;width:32px;height:36px;min-height:36px;border:0;background:transparent;font-size:25px;font-weight:400;color:#687065;padding:0}nav{display:block;overflow:visible}nav button{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;min-height:46px;padding:12px 14px;text-align:left;border-radius:6px;width:100%;font-size:14px;color:#62685f;font-weight:450;background:transparent;white-space:normal}nav button.active{background:#eeefe5;color:#353d2d;font-weight:600}nav button:hover{background:#f0f1eb;color:#353d2d}.navGlyph{width:20px;height:20px}.navGroup{gap:4px;margin-bottom:18px}.navGroup>p{margin:0 14px 7px;font-size:11px;color:#93988d}.sidefoot{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid #e3e6dd;font-size:11px;color:#7d8771}.sidefoot button{border:0;background:transparent;color:#525b4a;text-align:left;padding:6px 0;min-height:36px;font-size:12px}#navShade{display:block;position:fixed;inset:0;z-index:30;border:0;border-radius:0;background:#27302a35;backdrop-filter:blur(2px);padding:0;width:100%;height:100dvh;cursor:default}#navShade[hidden]{display:none}.moreStatus{display:none}#toast{bottom:20px}
}
/* Approved charcoal / yellow direction, shared by desktop and mobile. */
:root{color-scheme:dark;color:#f1f1f1;background:#171717;--blue:#ffd22e;--line:#373737}body,.login{background:#171717}aside{background:#1d1d1d;border-color:#333;color:#eee}.brand strong{color:#f5f5f5}.brand .mark,.mark{background:transparent;color:#ffd22e;font-size:28px;font-weight:900;font-style:italic;letter-spacing:-7px;transform:skew(-12deg)}.brand small,.muted,small{color:#999}button{background:#252525;border-color:#414141;color:#eaeaea}button:hover{background:#303030;color:#fff;border-color:#777}.primary,.primary:hover,button[data-action=add-account],button[data-action=fbp-add],button[data-action=fb-add],button[data-action=gm-add]{background:#ffd22e;color:#24200d;border-color:#ffd22e;font-weight:650}.primary:hover,button[data-action=add-account]:hover{background:#ffe16c}nav button{color:#d2d2d2;background:transparent}nav button.active,nav button:hover{background:#343434;color:#fff}.navGroup>p{color:#8c8c8c}.sidefoot{color:#a8b79c;border-color:#3b3b3b}.sidefoot button{color:#aaa;border-color:#444}.stats{background:transparent;border:0;border-radius:0;gap:16px}.stat{padding:0 16px 0 0;border-right:1px solid #383838;color:#aaa;display:flex;gap:8px;align-items:center;flex:initial}.stat b{display:inline;font-size:16px;font-weight:600;color:#eee;margin:0}.tableWrap,.panel{background:#202020;border-color:#373737}th{background:#252525;color:#a9a9a9}td{border-color:#363636;color:#e4e4e4}tbody tr:hover{background:#292929}.empty,.empty h2{color:#aaa}.empty p{color:#888}.panel p{color:#aaa}input,textarea,select{background:#242424;color:#eee;border-color:#444}input::placeholder{color:#8f8f8f}input[type=checkbox]{accent-color:#ffd22e}label{color:#bbb}a{color:#e8cb6a}.banner{background:#25251f;border-color:#b9a33b;color:#bdb9a6}.sectionTabs{border-color:#393939}.sectionTabs button{color:#aaa}.sectionTabs button.active{background:#303030;color:#f5df8d}.status{background:#303030;color:#bbb}.status.ready,.status.done,.status.joined{background:#283328;color:#a1da91}.status.failed,.status.review,.status.login_required{background:#3a2c25;color:#efb596}.status.approval,.status.pending_approval{background:#3b3522;color:#e0c46a}.actionMore summary,.actionMore[open]>div{background:#252525;border-color:#414141;color:#ddd}.moreItem{background:#232323}.moreItem span,.moreGroup h2{color:#aaa}.moreItem:hover{background:#2b2b2b}.day{background:#222;border-color:#393939}.day p,.detail{background:#2b2b2b;color:#ddd}.day strong{color:#bbb}dialog{background:#222;color:#eee;border-color:#444;box-shadow:0 24px 80px #0008}dialog::backdrop{background:#0009}#toast{background:#36342a;color:#fff;border:1px solid #72673f}.login form{background:#222;border-color:#393939}.login p{color:#aaa}.selectCell{border-color:#393939}.accountIdentity{display:flex;align-items:center;gap:14px;margin:12px 0 22px}.accountIdentity h2{margin:0 0 8px}.accountAvatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#3d3d3d;color:#eee;font-size:22px}.accountFacts{display:grid;grid-template-columns:90px 1fr;gap:14px;font-size:13px}.accountFacts dt{color:#999}.accountFacts dd{margin:0;overflow-wrap:anywhere}#detailCheck{background:#ffd22e;color:#24200d;border-color:#ffd22e}:focus-visible{outline:2px solid #e7c847;outline-offset:3px}
@media(max-width:760px){
 .mobileTop{background:#1c1c1c;border-color:#343434}.mobileTop strong{color:#f1f1f1}.mobileTop button{color:#eee}aside{width:50vw;max-width:none;min-width:0;background:#202020;border-color:#3b3b3b;padding:16px 10px calc(12px + env(safe-area-inset-bottom,0px));padding-top:calc(16px + env(safe-area-inset-top,0px))}.brand{gap:5px;margin-bottom:22px;flex-wrap:wrap;position:relative;padding-top:30px}.brand strong{font-size:12px;line-height:1.5;color:#eee}.brand .mark{width:22px;height:26px;font-size:24px;background:transparent;color:#ffd22e}.brand small{display:none}#menuClose{position:absolute;top:-4px;right:0;color:#bbb;width:32px;height:32px;min-height:32px}nav button{gap:8px;font-size:12px;min-height:44px;padding:10px 7px;color:#e3e3e3;white-space:normal;overflow-wrap:anywhere}nav button.active,nav button:hover{background:#343434;color:#fff}.navGlyph{width:17px;height:17px}.navGroup{margin-bottom:16px}.navGroup>p{margin:0 7px 6px;font-size:10px;color:#939393}.sidefoot{font-size:10px;gap:6px;border-color:#414141;color:#a7b49f}.sidefoot button{color:#bbb;font-size:11px}#navShade{background:#0007;backdrop-filter:blur(2px)}tbody tr,tbody tr:hover{background:#222;border-color:#393939}td:before{color:#929292}.stats{gap:0;flex-wrap:wrap;row-gap:7px}.stat{min-width:0;padding:0 10px;flex:initial;font-size:11px}.stat:first-child{padding-left:0}.stat b{font-size:14px}.tableWrap{background:transparent}.cellActions button{min-height:38px}.moreGrid{grid-template-columns:1fr}#toast{background:#36342a}
}
/* Layout reference: grouped rail, compact workspace bar, responsive account cards. */
.workspaceBar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #343434;margin:-26px -28px 24px;padding:18px 28px;font-size:13px;color:#aaa;background:#1b1b1b}.workspaceBar strong{font-weight:550;color:#ddd}th{border-bottom-color:#3b3b3b}.accountCards{background:transparent;border:0;overflow:visible}.accountCards table,.accountCards tbody{display:block;width:100%}.accountCards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.accountCards tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.accountCards tr{display:flex;flex-direction:column;position:relative;padding:18px;background:#222;border:1px solid #393939;border-radius:10px;min-width:0}.accountCards tr:hover{background:#262626}.accountCards td{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;max-width:none;width:100%;padding:5px 0;border:0;font-size:12px}.accountCards td:before{content:attr(data-label);font-size:12px;color:#999}.accountCards .cellValue{min-width:0;overflow-wrap:anywhere;grid-column:2}.accountCards .selectCell{position:absolute;top:19px;right:18px;width:20px;padding:0;display:block}.accountCards .selectCell:before{display:none}.accountCards .cardIdentity{display:block;order:-1;padding:0 30px 12px 0;font-size:18px;font-weight:600;letter-spacing:-.2px}.accountCards .cardIdentity:before{display:none}.accountCards .cardIdentity small{font-size:11px;font-weight:400;letter-spacing:0}.accountCards .cardControls{margin-top:auto;padding-top:14px;display:block}.accountCards .cardControls:before{display:none}.accountCards .cellActions{justify-content:flex-end}.accountCards .empty{display:block;text-align:center;padding:25px}.accountCards .empty:before{display:none}.accountCards .empty h2{margin:0}.accountCards tr:has(.empty){grid-column:1/-1}.accountCards td button{min-height:36px}.accountCards td[data-label="最后更新"]{color:#a8a8a8}
@media(min-width:761px) and (max-width:1100px){.workspaceBar{margin:-24px -20px 22px;padding:17px 20px}.accountCards tbody{grid-template-columns:1fr}}
@media(max-width:760px){.workspaceBar{display:none}.accountCards tbody{grid-template-columns:1fr;gap:10px}.accountCards tr{margin:0;padding:15px}.accountCards .selectCell{top:17px;right:15px}.accountCards .cardIdentity{font-size:16px;padding-bottom:10px}.accountCards td{grid-template-columns:78px minmax(0,1fr);font-size:12px;padding:4px 0}.accountCards .cardControls{padding-top:12px}.accountCards .cellActions{justify-content:flex-start}.accountCards td button{font-size:12px;min-height:38px}.accountCards .empty{padding:24px 8px}}
/* Account inventory density: bounded pages and compact rows rather than cards. */
.denseAccounts{background:#202020;border:1px solid #373737;border-radius:8px;overflow:auto}.denseAccounts table{display:table;width:100%;border-collapse:collapse}.denseAccounts thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}.denseAccounts tbody{display:table-row-group}.denseAccounts tr{display:table-row;background:transparent}.denseAccounts th{padding:9px 12px;font-size:11px}.denseAccounts td{display:table-cell;padding:8px 12px;vertical-align:middle;border-bottom:1px solid #333;font-size:12px;line-height:1.4;max-width:320px}.denseAccounts td:before{display:none}.denseAccounts .cellValue{display:block}.denseAccounts .cellActions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.denseAccounts .selectCell{width:34px}.denseAccounts .cardIdentity{font-size:13px;font-weight:550}.denseAccounts .cardIdentity small{font-size:11px;font-weight:400}.denseAccounts td button{min-height:30px;padding:5px 8px;font-size:11px}.denseAccounts .status{padding:3px 6px;font-size:11px}.denseAccounts small{font-size:11px}.rowActions{position:relative;display:inline-block;font-size:11px}.rowActions summary{cursor:pointer;list-style:none;border:1px solid #414141;border-radius:6px;padding:6px 8px;min-height:30px;background:#252525;white-space:nowrap}.rowActions summary:after{content:' ▾';color:#999}.rowActions[open]>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;padding:7px;border:1px solid #444;background:#282828;border-radius:6px;max-width:320px}.pager{font-size:12px;color:#aaa}
@media(max-width:760px){
 .denseAccounts{background:transparent;border:0;overflow:visible}.denseAccounts table,.denseAccounts tbody{display:block;width:100%}.denseAccounts thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.denseAccounts tr{display:grid;grid-template-columns:22px minmax(0,1fr);gap:3px 8px;padding:10px 11px;margin-bottom:6px;border:1px solid #383838;border-radius:7px;background:#222;align-items:start}.denseAccounts td{display:block;grid-column:2;max-width:none;width:100%;padding:0;border:0;font-size:11px;min-height:0}.denseAccounts .selectCell{grid-column:1;grid-row:1 / span 4;width:20px;margin:0;padding-top:3px}.denseAccounts .cardIdentity{grid-row:1;font-size:13px;line-height:1.5;font-weight:550;padding:0}.denseAccounts .cardIdentity small{font-size:10px}.denseAccounts td[data-label="名称 / 分组"]{font-size:11px;color:#bbb}.denseAccounts td[data-label="分组"],.denseAccounts td[data-label="分组 / 负责人"],.denseAccounts td[data-label="最后更新"],.denseAccounts td[data-label="最近检查"],.denseAccounts td[data-label="类型"]{display:none}.denseAccounts td[data-label="状态"],.denseAccounts td[data-label="连接状态"]{font-size:11px;color:#bbb}.denseAccounts td[data-label="人工检查记录"] small,.denseAccounts td[data-label="人工检查记录"] br{display:none}.denseAccounts .cardControls{padding-top:4px}.denseAccounts .cellActions{display:flex;align-items:center;gap:5px}.denseAccounts td button,.denseAccounts .rowActions summary{font-size:11px;min-height:34px;padding:6px 8px}.denseAccounts .empty{grid-column:1/-1;padding:22px 8px;text-align:center}.denseAccounts .empty h2{font-size:14px}.denseAccounts td[data-label="名称 / 分组"] br{display:none}.denseAccounts td[data-label="名称 / 分组"] small{margin-left:8px}.denseAccounts .rowActions[open]>div{max-width:100%;margin-top:5px}.denseAccounts tr:has(.empty){display:block}
}

/* Semantic color hierarchy: charcoal, gold actions, blue reading, green health. */
:root{--action-gold:#ffd22e;--info-blue:#8ccaff;--healthy-green:#48f58a;--alert-coral:#ff9a89}
#nav button[data-page="accounts"] .navGlyph{color:#68c7ff}
#nav button[data-page="fbpersonal"] .navGlyph{color:#8aaeff}
#nav button[data-page="gmail"] .navGlyph{color:#ffab82}
#nav button[data-page="targets"] .navGlyph{color:#61d9ba}
#nav button[data-page="jobs"] .navGlyph{color:#d0b1ff}
#nav button[data-page="toolbox"] .navGlyph{color:#e9c676}
#nav button[data-page="system"] .navGlyph{color:#a3b6cc}
#nav button.active{background:#39331e;color:#ffe38a;box-shadow:inset 3px 0 #ffd22e}
#nav button:hover{background:#30343a}
button[data-action="add-account"],button[data-action="gm-import"],button[data-action="fbp-add"],button[data-action="fb-add"],button[data-action="add-target"]{background:#ffd22e;border-color:#ffd22e;color:#29230d;font-weight:650}
button[data-action="gm-inbox"],button[data-action="account-detail"],button[data-action="fbp-open"],button[data-action="fb-detail"],button[data-action="detail"]{background:#20364b;border-color:#385c7c;color:#acd9ff}
button[data-action="gm-compose"],button[data-action="fb-draft"]{background:#3d351c;border-color:#756332;color:#ffe08b}
button[data-action="gm-disconnect"],button[data-action="fb-disconnect"]{color:#ffb3a6;border-color:#78483f;background:#3d2725}
button[data-action]:hover{filter:brightness(1.15)}
.status.ready,.status.done,.status.joined{background:#163e2d;color:#76f3af;border:1px solid #2c7652}
.status.failed,.status.login_required{background:#452924;color:#ffb3a6;border:1px solid #805047}
.status.pending,.status.review,.status.approval,.status.pending_approval{background:#42371d;color:#f5d385;border:1px solid #766234}
.status.running,.status.queued,.status.code_sent{background:#203a53;color:#addbff;border:1px solid #3a6489}
#worker[data-state="online"]{color:#48f58a;font-weight:600}
#worker[data-state="offline"]{color:#ff9a89;font-weight:600}
.stat:nth-child(2) b{color:#76f3af}.stat:nth-child(3) b{color:#f5d385}.stat:nth-child(4) b{color:#8ccaff}
.sectionTabs button.active{background:#283c50;color:#addbff;border-color:#44698a}
.denseAccounts th{background:#282c32;color:#b8c5d4}
.denseAccounts tbody tr:hover{background:#272d34}
.denseAccounts tr:has(input:checked){background:#33321f}
.rowActions summary{color:#c4cbd5;border-color:#4a505b;background:#292d34}
@media(max-width:760px){#nav button.active{background:#39331e;color:#ffe38a}.denseAccounts tr{background:#22262b;border-color:#3a424b}}

/* Phone workspace: compact header, search-first tools, readable account rows. */
.pageHelp{display:contents}.pageHelp>summary{display:none}.pageHelp:not([open])>#notice{display:block}
.phoneUtilities,.phoneUtilities>div{display:contents}.phoneUtilities>summary{display:none}.phoneUtilities:not([open])>div{display:contents}
.gmailHelp{margin:12px 0;color:#aab3bf;font-size:12px}.gmailHelp summary{cursor:pointer;color:#adbfd3}.gmailHelp p{line-height:1.6}
@media(max-width:760px){
 main{padding:12px 12px 24px;min-width:0}.mobileTop{min-height:50px;padding:3px 12px;gap:8px}.mobileTop strong{font-size:14px}.mobileTop button{width:44px;height:44px;min-height:44px}
 header{margin:0 0 10px;gap:10px;align-items:center}header h1{font-size:21px;line-height:1.3;margin:0}#pageHint{display:none}#refresh{min-height:38px;font-size:12px;padding:7px 10px}
 .pageHelp{display:block;margin:0 0 10px;font-size:12px;color:#aab6c5}.pageHelp>summary{display:block;cursor:pointer;color:#aab6c5}.pageHelp>summary:after,.gmailHelp>summary:after{content:' ▾'}.pageHelp:not([open])>#notice{display:none}#notice{padding:8px 0;font-size:12px;line-height:1.6}.gmailHelp{margin:8px 0 12px;font-size:11px}.gmailHelp p{margin:8px 0}
 #content>.toolbar{display:flex;gap:7px;margin:8px 0 10px;align-items:center}#content>.toolbar>input{flex:1 1 65%;width:0;max-width:none;margin:0;min-height:42px;padding:9px 10px;font-size:16px}#content>.toolbar>button{font-size:12px;min-height:42px;padding:8px 11px;margin:0}#content>.toolbar>select{width:100%;min-width:0;margin:0}
 .phoneUtilities{display:block;flex:1 0 100%;border-top:1px solid #343b44;padding-top:7px;font-size:12px}.phoneUtilities>summary{display:block;cursor:pointer;padding:5px 0;color:#b6c7db}.phoneUtilities>summary:after{content:' ▾'}.phoneUtilities:not([open])>div{display:none}.phoneUtilities[open]>div{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}.phoneUtilities button{min-height:42px;font-size:12px}.phoneUtilities a{padding:10px 0;font-size:12px}
 .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0 12px;padding:10px 0;border-block:1px solid #343b44}.stat,.stat:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:0 9px;font-size:10px;white-space:nowrap}.stat b{font-size:18px}
 .denseAccounts tr{border-radius:8px;padding:10px;gap:3px 8px;margin-bottom:7px;grid-template-columns:24px minmax(0,1fr)}.denseAccounts .cardIdentity{font-size:13px;overflow-wrap:anywhere;white-space:normal}.denseAccounts .selectCell{padding-top:3px}.denseAccounts input[type=checkbox]{width:20px;height:20px}.denseAccounts .cellActions{gap:6px}.denseAccounts td button,.denseAccounts .rowActions summary{min-height:40px;font-size:12px;padding:9px 10px;margin:0}.denseAccounts .cardControls{padding-top:5px}.denseAccounts .status{font-size:10px;padding:2px 6px}.denseAccounts td[data-label="连接状态"]{line-height:1.6}.pager{font-size:11px}
 .sectionTabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding-bottom:6px}.sectionTabs button{flex-shrink:0;min-height:40px;white-space:nowrap}
 #content>h2{font-size:16px;margin:20px 0 10px}dialog{border-radius:14px;padding:16px;max-height:calc(100dvh - 20px)}.dialogHead{position:sticky;top:-16px;background:#222;padding:10px 0;z-index:1}.dialogHead h2{margin:0}#fields .toolbar{gap:7px}#fields .toolbar button{min-height:44px}#toast{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 aside{width:50vw}.sidefoot{padding-top:12px}.sidefoot #worker{font-size:10px}
}

/* Dense phone inventory: two-line records, single-line metrics. */
@media(max-width:760px){
 .mobileTop{min-height:42px;padding:0 8px;gap:6px}.mobileTop button{height:40px;min-height:40px;width:36px;padding:7px}.mobileTop strong{font-size:13px}
 main{padding:8px 10px 16px}header{margin:0 0 5px}header h1{font-size:18px}#refresh{min-height:30px;padding:4px 8px;font-size:11px}
 .pageHelp{margin:0;font-size:11px}.pageHelp>summary{padding:2px 0}.pageHelp:has(#notice:empty){display:none}
 .stats{display:flex;flex-wrap:nowrap;justify-content:space-between;padding:7px 0;margin:6px 0;border:0;gap:5px}.stat,.stat:first-child{display:flex;flex-direction:row;align-items:center;padding:0 6px 0 0;font-size:10px;gap:4px;min-width:0;flex:initial}.stat b{font-size:13px;margin:0}.stat:last-child{padding-right:0}
 #content>.toolbar{gap:5px;margin:5px 0 7px}#content>.toolbar>input{min-height:34px;padding:6px 8px;font-size:14px}#content>.toolbar>button,.toolbar .actionMore summary{min-height:32px;padding:6px 8px;font-size:11px}
 .phoneUtilities{flex:0 1 auto;border:0;padding:0;margin-left:auto}.phoneUtilities>summary{padding:7px 4px;font-size:11px}.phoneUtilities[open]{flex-basis:100%;margin:0}.phoneUtilities[open]>div{padding:5px 0}.gmailHelp{margin:4px 0 7px;font-size:10px}
 .denseAccounts tr{position:relative;grid-template-columns:20px minmax(0,1fr) auto;gap:3px 6px;padding:8px;margin:0;border-radius:0;border:0;border-bottom:1px solid #39414a;background:#202429;align-items:center;min-height:62px}
 .denseAccounts tr:first-child{border-radius:6px 6px 0 0}.denseAccounts tr:last-child{border-radius:0 0 6px 6px}.denseAccounts .selectCell{grid-column:1;grid-row:1 / span 2;padding:0;align-self:center;width:18px}.denseAccounts input[type=checkbox]{width:17px;height:17px}
 .denseAccounts .cardIdentity{grid-column:2;grid-row:1;font-size:12px;line-height:1.4}.denseAccounts td[data-label="状态"],.denseAccounts td[data-label="连接状态"]{grid-column:3;grid-row:1;width:auto;justify-self:end}.denseAccounts .status{font-size:9px;padding:1px 4px;white-space:nowrap}
 .denseAccounts td[data-label="名称 / 分组"]{grid-column:2;grid-row:2;font-size:10px;color:#a9b3bf}.denseAccounts td[data-label="名称 / 分组"] small{font-size:10px;margin-left:5px}
 .denseAccounts .cardControls{grid-column:3;grid-row:2;padding:0;width:auto;justify-self:end}.denseAccounts .cardControls .cellActions{gap:4px;justify-content:flex-end}.denseAccounts td button,.denseAccounts .rowActions summary{min-height:28px;font-size:10px;padding:4px 6px;line-height:1.5;border-radius:4px}
 .denseAccounts tr:has(td[data-label="邮箱"]) .cardControls,.denseAccounts tr:has(td[data-label="名称 / ID"]) .cardControls{grid-column:2 / -1;grid-row:2;justify-self:stretch}.denseAccounts tr:has(td[data-label="邮箱"]) .cellActions,.denseAccounts tr:has(td[data-label="名称 / ID"]) .cellActions{justify-content:flex-start}.denseAccounts td[data-label="人工检查记录"]{grid-column:2;grid-row:3;font-size:10px}
 .denseAccounts .rowActions[open]>div{position:relative;max-width:100%}.pager,#content>.toolbar.pager{font-size:10px;margin:6px 0}.sectionTabs{margin:4px 0 7px;padding-bottom:3px}.sectionTabs button{font-size:11px;min-height:32px;padding:6px 8px}
}

.phoneBack{display:none}@media(max-width:760px){html,body{overscroll-behavior-x:none;touch-action:pan-y}.mobileTop .phoneBack{display:block;margin-left:auto;width:auto;min-height:32px;height:32px;font-size:11px;padding:5px 9px;color:#c3d5e6;border:1px solid #3e4853;border-radius:5px}input,textarea,select,#content>.toolbar>input{font-size:16px}button,a,summary{touch-action:manipulation}}

@media(max-width:760px){.drawerOpen,.drawerOpen #sidebar,.drawerOpen #navShade{overscroll-behavior-x:none;touch-action:pan-y}.drawerOpen #navShade{touch-action:none}}

@media(display-mode:standalone) and (max-width:760px){.mobileTop{padding-top:env(safe-area-inset-top,0px)}main{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}}

.boot{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#171717;color:#b8c5d4;font-size:14px}.boot button{font-size:13px;padding:10px 16px}

.taskEntry{color:#acd9ff;border-color:#385c7c;background:#20364b}.taskGuide{font-size:12px;color:#b6c7db;margin:8px 0;line-height:1.6}.taskGuide button{font-size:11px;padding:5px 8px;margin-left:6px}@media(max-width:760px){.taskGuide{font-size:11px}.taskGuide button{margin:4px 0;min-height:30px}}

/* Gmail compose: compact controls, explicit action colors. */
#gmScheduleField[hidden]{display:none!important}
#gmFiles{max-width:100%;font-size:12px}
button[data-action="gm-single"],button[data-action="gm-bulk"]{background:#3d351c;border-color:#756332;color:#ffe08b}
button[data-action="gm-templates"],button[data-action="gm-schedules"],button[data-action="gm-auto"]{background:#20364b;border-color:#385c7c;color:#acd9ff}

#fbxTextFields[hidden],#fbxFileFields[hidden]{display:none!important}
button[data-action="fbx-send"],button[data-action="fbx-bulk"],button[data-action="fb-single-post"]{background:#3d351c;border-color:#756332;color:#ffe08b}
#fbxFile{max-width:100%}
