@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#132238;--ink:#182439;--muted:#758195;--bg:#f4f7fb;--line:#e5eaf1;--blue:#2764eb;--green:#1ba877;--amber:#e49a20;--red:#e55252;--white:#fff;--shadow:0 12px 34px rgba(20,37,63,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans",sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--navy);color:#fff;padding:28px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font:800 21px Manrope;margin:0 10px 42px}.brand-mark{width:36px;height:36px;border-radius:11px;background:var(--blue);display:grid;place-items:center;box-shadow:0 8px 20px #0d1730}.sidebar nav{display:grid;gap:7px}.nav-item{border:0;background:transparent;color:#98a6ba;text-align:left;padding:13px 15px;border-radius:10px;font:600 14px "DM Sans";cursor:pointer;display:flex;gap:13px;align-items:center}.nav-item span{font-size:20px;width:20px;text-align:center}.nav-item:hover,.nav-item.active{background:#20334e;color:#fff}.sidebar-foot{margin-top:auto}.system-card{display:flex;align-items:center;gap:11px;background:#1c3049;border:1px solid #2b405c;border-radius:12px;padding:13px}.system-card strong{font-size:12px;display:block}.system-card small{font-size:10px;color:#91a0b5}.sidebar-foot>p{font-size:10px;color:#5f7088;margin:18px 8px 0}.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#21ca8d;box-shadow:0 0 0 5px rgba(33,202,141,.12)}main{margin-left:240px;min-height:100vh}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between}.topbar h1{font:700 20px Manrope;margin:3px 0}.eyebrow{font-size:10px;letter-spacing:1.4px;color:#8b96a7;font-weight:700;margin:0}.topbar-actions,.sync-state{display:flex;align-items:center;gap:12px}.sync-state{font-size:12px;color:#738096}.avatar{border:0;width:38px;height:38px;border-radius:50%;background:#dfe8fb;color:#2157c6;font-weight:700}.icon-button{border:0;background:none;font-size:20px}.menu-button{display:none}.view{display:none;padding:34px 38px 50px}.view.active{display:block}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.hero h2,.section-head h2{font:800 27px Manrope;margin:7px 0}.hero>div>p:last-child,.section-head>div>p:last-child{color:var(--muted);margin:0;font-size:14px}.primary,.secondary,.danger{border:0;border-radius:9px;padding:12px 17px;font-weight:700;cursor:pointer;font-family:inherit}.primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(39,100,235,.23)}.primary:hover{background:#1f56d2}.secondary{background:#edf2fa;color:#33445b}.danger{background:#feeaea;color:#c93838}.full{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat-card,.panel,.action-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat-card{padding:20px;position:relative}.stat-icon,.action-icon{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;font-weight:800}.blue{background:#e8efff;color:#2862e5}.amber{background:#fff3dc;color:#d7890b}.green{background:#e2f7ef;color:#13966a}.red{background:#feeaea;color:#d84444}.trend{position:absolute;right:17px;top:19px;font-size:10px;background:#edf3ff;color:#3d68c8;padding:4px 7px;border-radius:5px}.amber-text{color:#c48114;background:#fff4e0}.green-text{color:#16845f;background:#e8f7f1}.red-text{color:#c74848;background:#fff0f0}.stat-card p{font-size:12px;color:#748095;margin:19px 0 4px}.stat-card strong{font:800 29px Manrope}.stat-card small{display:block;color:#a0a8b5;margin-top:6px;font-size:10px}.content-grid{display:grid;grid-template-columns:1.55fr .85fr;gap:18px;margin-top:18px}.panel{padding:21px}.panel-head,.section-head{display:flex;align-items:center;justify-content:space-between}.panel-head h3{font:700 16px Manrope;margin:4px 0 0}.text-button{border:0;background:none;color:var(--blue);font-weight:700;cursor:pointer}.table-wrap{overflow:auto;margin-top:16px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;color:#98a2b1;text-transform:uppercase;letter-spacing:.7px;padding:11px;border-bottom:1px solid var(--line)}td{font-size:12px;padding:14px 11px;border-bottom:1px solid #eef1f5}.email-cell{font-weight:700}.source-cell{color:#788496}.badge{display:inline-flex;padding:5px 8px;border-radius:6px;font-size:9px;font-weight:800}.badge.pending{background:#fff4df;color:#b6750b}.badge.completed{background:#e4f8ef;color:#13855f}.badge.recovery{background:#e7efff;color:#2b5ec7}.badge.locked{background:#ffeded;color:#c74343}.live-badge{font-size:8px;letter-spacing:1px;background:#e4f8ef;color:#14966b;padding:5px 7px;border-radius:5px}.operation-panel{text-align:center}.operation-panel .panel-head{text-align:left}.task-visual{margin:24px auto 14px}.task-ring{width:68px;height:68px;border:7px solid #eaf7f1;border-top-color:var(--green);border-radius:50%;display:grid;place-items:center;margin:auto;color:var(--green);font-size:20px}.task-visual.running .task-ring{animation:spin 1s linear infinite}.task-visual.running .task-ring span{visibility:hidden}@keyframes spin{to{transform:rotate(360deg)}}.operation-panel h4{margin:0;font:700 15px Manrope}.operation-panel>p{font-size:11px;color:var(--muted)}.task-actions{display:flex;justify-content:center;gap:8px;margin-top:19px}.section-head{margin-bottom:24px}.operation-grid{display:grid;grid-template-columns:repeat(2,minmax(250px,420px));gap:20px}.action-card{padding:28px}.action-card h3{font:700 18px Manrope;margin:19px 0 8px}.action-card p{color:var(--muted);font-size:13px;line-height:1.7;min-height:66px}.toolbar{display:flex;gap:12px;justify-content:space-between}.search-box{border:1px solid var(--line);border-radius:9px;padding:9px 13px;width:320px;color:#8c98a8}.search-box input{border:0;outline:0;width:88%;font:inherit}.toolbar select{border:1px solid var(--line);border-radius:9px;padding:0 12px;background:white;color:#59677a}.terminal-panel{background:#101b2a;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.terminal-head{height:44px;background:#192638;display:flex;align-items:center;gap:7px;padding:0 16px}.terminal-head span{width:10px;height:10px;border-radius:50%;background:#ee665e}.terminal-head span:nth-child(2){background:#e7b94d}.terminal-head span:nth-child(3){background:#54bd70}.terminal-head strong{color:#8594a9;font-size:11px;margin-left:8px}pre{margin:0;padding:20px;height:480px;overflow:auto;color:#d3e1ef;font:12px/1.7 Consolas,monospace;white-space:pre-wrap}.log-error{color:#ff8c8c}.muted{color:#65758a}.empty{text-align:center;padding:45px;color:var(--muted)}.hidden{display:none!important}.toast{position:fixed;right:24px;bottom:24px;background:#17263a;color:white;padding:13px 18px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.2);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:50;font-size:13px}.toast.show{opacity:1;transform:none}
.modal-backdrop{position:fixed;inset:0;background:rgba(12,25,43,.55);backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px;z-index:40}.modal{width:min(540px,100%);background:#fff;border-radius:16px;padding:25px;box-shadow:0 24px 70px rgba(8,20,39,.3)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h3{font:800 20px Manrope;margin:5px 0}.modal-close{border:0;background:#f0f3f7;color:#6d7889;width:34px;height:34px;border-radius:9px;font-size:22px;cursor:pointer}.modal-copy{color:var(--muted);font-size:13px;margin:18px 0 7px}.modal code{display:inline-block;background:#eff4fb;color:#36506f;border-radius:6px;padding:6px 9px;font-size:12px}.modal textarea{display:block;width:100%;resize:vertical;margin:15px 0 10px;border:1px solid var(--line);border-radius:10px;padding:13px;outline:none;font:13px/1.6 Consolas,monospace}.modal textarea:focus{border-color:#7ba1f5;box-shadow:0 0 0 3px rgba(39,100,235,.1)}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.form-message{font-size:12px;color:#c43e3e;background:#fff0f0;border-radius:7px;padding:9px 11px}
.selection-summary{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7b8798;font-size:11px;padding:0 5px}.selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.batch-button{border:1px solid #dbe5f5;background:#edf3ff;color:#2858bd;border-radius:7px;padding:7px 9px;font:700 10px "DM Sans";cursor:pointer}.batch-button:hover{background:#dfeaff}.batch-button:disabled{opacity:.45;cursor:not-allowed}.selectable-table tbody tr{cursor:pointer;user-select:none;transition:background .12s}.selectable-table tbody tr:hover{background:#f5f8fd}.selectable-table tbody tr.selected{background:#e7efff}.selectable-table tbody tr.selected:hover{background:#dce8ff}.selectable-table input[type=checkbox]{width:15px;height:15px;accent-color:var(--blue);cursor:pointer}.check-column{width:38px}.number-column{width:48px}.row-number{color:#97a1b0;font-variant-numeric:tabular-nums}.selectable-table .badge{white-space:normal;line-height:1.35;max-width:230px}
.context-menu{position:fixed;z-index:60;width:320px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:7px;box-shadow:0 18px 45px rgba(18,34,56,.2)}.context-title{font-size:10px;color:#8b96a7;font-weight:700;padding:8px 10px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #eef1f5;margin-bottom:5px}.context-menu button{width:100%;border:0;background:transparent;border-radius:7px;padding:10px;text-align:left;color:#33445b;font:600 12px "DM Sans";cursor:pointer;white-space:nowrap}.context-menu button span{display:inline-block;width:23px;color:var(--blue)}.context-menu button:hover{background:#edf3ff;color:#2456bc}.context-menu button:disabled{color:#abb3bf;background:transparent;cursor:not-allowed}.context-menu button:disabled span{color:#abb3bf}
.context-section-label{padding:7px 10px 4px;color:#a0a8b6;font-size:8px;font-weight:800;letter-spacing:1px;text-transform:uppercase}.context-divider{height:1px;background:#edf0f4;margin:6px 5px}
.copy-menu-toggle b{margin-left:auto;font-size:17px;line-height:10px;color:#929caf;transition:transform .18s ease}.copy-menu-toggle.open{background:#f0f0ff!important;color:#5557cc!important}.copy-menu-toggle.open b{transform:rotate(90deg);color:#6264d5}.copy-submenu{margin:3px 0 4px 16px;padding-left:7px;border-left:2px solid #e6e6fa}.copy-submenu button{font-size:11px!important;padding:9px!important}
.accounts-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.accounts-panel{min-width:0}.account-task-panel{position:sticky;top:22px;min-height:360px}.account-task-meta{margin:13px auto 0;padding:8px 10px;background:#f3f6fa;border-radius:7px;color:#647187;font-size:10px;line-height:1.5;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.operation-panel{min-height:260px}}
@media(max-width:1250px){.accounts-layout{grid-template-columns:1fr}.account-task-panel{position:static;min-height:280px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.menu-button{display:block}.topbar{padding:0 18px;justify-content:flex-start;gap:15px}.topbar-actions{margin-left:auto}.sync-state span:last-child{display:none}main{margin-left:0}.view{padding:25px 18px}.hero{align-items:flex-start;gap:18px}.hero .primary{white-space:nowrap}.stats-grid,.operation-grid{grid-template-columns:1fr}.toolbar{flex-direction:column}.search-box,.toolbar select{width:100%;height:42px}.content-grid{grid-template-columns:1fr}.section-head{align-items:flex-start}.topbar .eyebrow{display:none}}

/* MailPilot visual refresh — 2026 */
:root{
  --navy:#10172a;
  --ink:#172033;
  --muted:#738097;
  --bg:#f5f7fb;
  --line:#e7eaf1;
  --blue:#5b5ce2;
  --green:#15a578;
  --amber:#e59a24;
  --red:#e45361;
  --white:#fff;
  --shadow:0 1px 2px rgba(20,28,45,.03),0 12px 32px rgba(36,43,68,.055);
}

html{scrollbar-color:#cbd2df transparent;scrollbar-width:thin}
body{
  min-width:320px;
  background:
    radial-gradient(circle at 78% 0,rgba(91,92,226,.07),transparent 28rem),
    var(--bg);
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
button{transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
button:not(:disabled):active{transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(91,92,226,.18);
  outline-offset:2px;
}

.sidebar{
  width:224px;
  padding:24px 16px 20px;
  background:
    radial-gradient(circle at 0 0,rgba(113,115,255,.24),transparent 15rem),
    linear-gradient(180deg,#151d34 0%,#0d1425 100%);
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:14px 0 40px rgba(17,24,39,.06);
}
.brand{margin:2px 10px 44px;gap:11px;font-size:20px;letter-spacing:-.4px}
.brand-mark{
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(145deg,#7778f4,#4e50d6);
  box-shadow:0 9px 24px rgba(72,73,202,.42),inset 0 1px rgba(255,255,255,.3);
}
.sidebar nav{gap:6px}
.nav-item{
  min-height:46px;padding:0 14px;border-radius:12px;
  color:#8f9bb2;font-size:13px;letter-spacing:.05px;
}
.nav-item span{
  width:24px;height:24px;display:grid;place-items:center;
  color:#8795b0;font-size:17px;
}
.nav-item:hover{background:rgba(255,255,255,.055);color:#eef1ff}
.nav-item.active{
  color:#fff;
  background:linear-gradient(90deg,rgba(103,105,238,.28),rgba(103,105,238,.09));
  box-shadow:inset 3px 0 #8183ff;
}
.nav-item.active span{color:#aaaaff}
.system-card{
  padding:13px 12px;border-radius:13px;
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.08);
}
.system-card strong{font-size:11px;color:#e6eafd}
.system-card small{margin-top:3px;color:#7f8ba3}
.sidebar-foot>p{color:#505d75}

main{margin-left:224px}
.topbar{
  height:76px;padding:0 34px;
  background:rgba(255,255,255,.82);
  border-color:rgba(226,230,239,.9);
  backdrop-filter:blur(16px);
  position:sticky;top:0;z-index:10;
}
.topbar h1{font-size:18px;letter-spacing:-.35px}
.eyebrow{color:#929caf;font-size:9px;letter-spacing:1.55px}
.sync-state{
  padding:7px 10px;border:1px solid #e8ebf1;border-radius:999px;
  background:#fff;color:#69758b;font-size:11px;
}
.pulse{width:7px;height:7px;box-shadow:0 0 0 4px rgba(21,165,120,.1)}
.avatar{
  width:39px;height:39px;border:1px solid #dfe3f9;
  background:linear-gradient(145deg,#f1f2ff,#e3e5ff);
  color:#5557cc;cursor:pointer;
}
.view{padding:32px 34px 54px;max-width:1680px;margin:0 auto}
.hero,.section-head{margin-bottom:25px}
.hero h2,.section-head h2{
  margin:6px 0;font-size:26px;letter-spacing:-.75px;color:#151d2f;
}
.hero>div>p:last-child,.section-head>div>p:last-child{font-size:13px}

.primary,.secondary,.danger{
  min-height:42px;border-radius:11px;padding:0 17px;font-size:12px;
}
.primary{
  background:linear-gradient(135deg,#6668e8,#5153d4);
  box-shadow:0 8px 18px rgba(81,83,212,.22),inset 0 1px rgba(255,255,255,.2);
}
.primary:hover{background:linear-gradient(135deg,#5b5de2,#4749c7);box-shadow:0 10px 24px rgba(81,83,212,.28)}
.secondary{background:#f0f2f7;color:#414c62}
.secondary:hover{background:#e8ebf2}
.danger{background:#fff0f1;color:#ca4050}

.stat-card,.panel,.action-card{
  border-color:rgba(225,229,237,.9);
  border-radius:17px;box-shadow:var(--shadow);
}
.stat-card{padding:21px;overflow:hidden}
.stat-card::after{
  content:"";position:absolute;right:-18px;bottom:-25px;width:75px;height:75px;
  border-radius:50%;background:rgba(91,92,226,.035);
}
.stat-icon,.action-icon{width:42px;height:42px;border-radius:12px}
.trend{right:18px;top:19px;border-radius:999px;padding:5px 9px}
.stat-card p{margin:19px 0 3px;font-size:11px}
.stat-card strong{font-size:30px;letter-spacing:-1px}
.stat-card small{font-size:10px}
.stats-grid,.content-grid{gap:16px}
.content-grid{margin-top:16px}
.panel{padding:20px}
.panel-head h3{font-size:15px}

.toolbar{
  margin:-2px -2px 2px;padding-bottom:17px;
  border-bottom:1px solid #eef0f5;
}
.search-box{
  width:340px;height:43px;padding:0 14px;display:flex;align-items:center;gap:7px;
  border-color:#e1e5ed;border-radius:11px;background:#fafbfc;color:#9ca5b4;
}
.search-box:focus-within{background:#fff;border-color:#a8a9f3;box-shadow:0 0 0 3px rgba(91,92,226,.09)}
.search-box input{background:transparent;color:var(--ink);font-size:12px}
.toolbar select{
  min-width:210px;height:43px;padding:0 13px;border-color:#e1e5ed;
  border-radius:11px;background:#fafbfc;color:#5b667a;font-size:12px;
}
.table-wrap{margin-top:8px}
.selection-summary{min-height:46px;padding:0 7px}
table{border-spacing:0}
th{
  padding:12px 10px;color:#9ba4b4;font-size:8px;letter-spacing:1px;
  background:#fbfcfd;border-bottom-color:#e9ecf2;
}
th:first-child{border-radius:9px 0 0}
th:last-child{border-radius:0 9px 0 0}
td{padding:15px 10px;border-bottom-color:#edf0f4;font-size:11px}
tbody tr:last-child td{border-bottom:0}
.email-cell{font-weight:700;color:#222b3d}
.source-cell{color:#838ea1}
.selectable-table tbody tr{position:relative}
.selectable-table tbody tr:hover{background:#f8f8fe}
.selectable-table tbody tr.selected{background:#f0f0ff;box-shadow:inset 3px 0 #6769e6}
.selectable-table tbody tr.selected:hover{background:#ececff}
.selectable-table input[type=checkbox]{width:14px;height:14px;accent-color:#5b5ce2}
.badge{padding:5px 9px;border-radius:999px;font-size:8px;letter-spacing:.1px}
.badge.completed{background:#e8f7f2;color:#107b5b}
.badge.recovery{background:#ececff;color:#5355ca}
.badge.pending{background:#fff4df;color:#a86b09}
.badge.locked{background:#fff0f1;color:#c63c4c}
.batch-button{border-color:#dedff5;background:#f2f2ff;color:#5456c6;border-radius:8px}
.batch-button:hover{background:#e8e8ff}
.message-cell{min-width:190px;max-width:300px}
.message-empty{color:#a0a9b8;font-size:10px}
.message-state{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600}
.message-state.checking{color:#6264d5}
.message-state.checking i{
  width:10px;height:10px;border:2px solid #dadafa;border-top-color:#6264d5;
  border-radius:50%;animation:spin .75s linear infinite;
}
.message-state.error{color:#cf4353;background:#fff0f1;padding:4px 7px;border-radius:999px}
.message-state.dead{color:#cf4353;background:#fff0f1;padding:4px 7px;border-radius:999px;font-weight:800}
.message-state.empty{color:#788498}
.message-preview{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;padding:0;border:0;background:transparent;font:inherit;font-size:10px;text-align:left;cursor:pointer}
.message-preview:hover>span{color:#5557d0;text-decoration:underline}
.message-preview>b:first-child{flex:none;color:#168260;background:#e8f7f2;padding:4px 7px;border-radius:999px}
.message-preview>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#58657a}
.message-code{flex:none;color:#5658cd;background:#eeeeff;padding:4px 6px;border-radius:6px;letter-spacing:.4px}
.message-modal{width:min(760px,100%);max-height:min(820px,90vh);display:flex;flex-direction:column}
.message-modal-meta{margin:4px 0 16px;color:#8a95a7;font-size:11px}
.message-list{display:grid;gap:9px;overflow:auto;padding-right:4px}
.message-detail{border:1px solid #e5e8ef;border-radius:12px;overflow:hidden;background:#fbfcfe}
.message-detail-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:0;background:#fff;color:#273247;text-align:left;cursor:pointer}
.message-detail-head>span{min-width:0;display:flex;flex-direction:column;gap:5px}
.message-detail-head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.message-detail-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8792a5;font-size:10px}
.message-detail-head i{font-style:normal;color:#686ae0;transition:transform .2s}
.message-detail-head[aria-expanded="true"] i{transform:rotate(180deg)}
.message-detail-body{padding:15px 16px;border-top:1px solid #eceef3;background:#fafbfc}
.message-detail-body pre{margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#3d485b;font:11px/1.65 "DM Sans",sans-serif}
.message-detail-code{display:inline-block;color:#5658cd;background:#eeeeff;padding:5px 8px;border-radius:7px;font-size:10px}
.sort-button{
  display:inline-flex;align-items:center;gap:6px;margin:-7px -8px;padding:7px 8px;
  border:0;border-radius:7px;background:transparent;color:inherit;
  font-size:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit;
  cursor:pointer;
}
.sort-button:hover{background:#eeeff8;color:#6264d5}
.sort-button.active{color:#5557d0;background:#ededff}
.sort-arrow{font-size:11px;line-height:1;color:#7d7fe0}

.accounts-layout{grid-template-columns:minmax(0,1fr) 282px;gap:16px}
.account-task-panel{top:98px;min-height:350px}
.operation-panel{background:linear-gradient(180deg,#fff 0%,#fcfcff 100%)}
.live-badge{border-radius:999px;padding:5px 8px;background:#e7f8f2}
.task-visual{margin:29px auto 17px}
.task-ring{
  width:72px;height:72px;border-width:6px;border-color:#e6f5f0;border-top-color:var(--green);
  box-shadow:inset 0 0 0 6px #f8fbfa;
}
.operation-panel h4{font-size:14px}
.operation-panel>p{line-height:1.6}
.action-card{padding:25px;transition:transform .2s ease,box-shadow .2s ease}
.action-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(36,43,68,.09)}
.action-card h3{font-size:17px}

.terminal-panel{border:1px solid #26334a;border-radius:17px;box-shadow:0 16px 40px rgba(15,23,42,.13)}
.terminal-head{background:#172136}
.modal-backdrop{background:rgba(14,20,35,.58);backdrop-filter:blur(8px)}
.modal{border-radius:19px;border:1px solid rgba(255,255,255,.5)}
.context-menu{border-radius:14px;box-shadow:0 22px 55px rgba(23,31,50,.18)}
.toast{border-radius:12px;background:#171f32}

@media(max-width:1250px){
  .accounts-layout{grid-template-columns:1fr}
  .account-task-panel{position:static;min-height:260px}
}
@media(max-width:1050px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .sidebar{width:224px}
  main{margin-left:0}
  .topbar{height:68px;padding:0 16px}
  .view{padding:23px 16px 44px}
  .hero,.section-head{align-items:flex-start;gap:16px}
  .hero h2,.section-head h2{font-size:23px}
  .stats-grid,.operation-grid{grid-template-columns:1fr}
  .toolbar{flex-direction:column}
  .search-box,.toolbar select{width:100%}
}

/* Dark marketplace layout — inspired by the supplied reference */
:root{
  --navy:#071925;
  --ink:#edf7ff;
  --muted:#9bb1c2;
  --bg:#071b28;
  --line:#274b61;
  --blue:#21a4d8;
  --green:#19c273;
  --amber:#ffb52e;
  --red:#ff5d59;
  --white:#102f42;
  --shadow:0 15px 35px rgba(0,8,14,.22);
}
html{background:#061722;scrollbar-color:#3e6b83 #071b28}
body{
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 4%,rgba(31,127,174,.20),transparent 28rem),
    linear-gradient(180deg,#102f43 0,#071a26 42rem,#061722 100%);
}
.app-shell{padding-top:132px}
.sidebar{
  inset:0 0 auto 0;width:100%;height:132px;padding:0;
  display:block;background:#071925;border:0;
  box-shadow:0 8px 24px rgba(0,8,14,.25);
}
.brand{
  position:absolute;left:max(24px,calc((100vw - 1420px)/2));top:17px;
  height:62px;margin:0;color:#fff;font:900 24px Manrope;
  font-style:italic;letter-spacing:-1px;
}
.brand-mark{
  width:49px;height:49px;border-radius:50% 50% 50% 12px;
  background:linear-gradient(145deg,#39d47e,#119aba);
  box-shadow:0 0 0 5px rgba(38,190,153,.1),0 10px 22px rgba(0,0,0,.25);
  font-style:normal;
}
.quick-tools{
  position:absolute;left:50%;top:25px;transform:translateX(-50%);
  display:flex;align-items:center;white-space:nowrap;
}
.quick-tools button{
  min-height:31px;padding:0 14px;border:0;border-right:1px solid #4f7182;
  background:transparent;color:#fff;font:800 12px "DM Sans",sans-serif;
  cursor:pointer;
}
.quick-tools button:last-child{border-right:0}
.quick-tools button:hover{color:#48dc94;text-shadow:0 0 12px rgba(72,220,148,.3)}
.sidebar nav{
  position:absolute;left:0;right:0;bottom:0;height:52px;
  padding:0 max(24px,calc((100vw - 1420px)/2));
  display:flex;align-items:center;justify-content:space-between;gap:7px;
  background:#061722;border-top:1px solid rgba(98,166,196,.13);
}
.nav-item{
  width:auto;min-height:36px;padding:0 15px;border-radius:5px;
  color:#e8f4fb;font-size:13px;font-weight:800;
}
.nav-item span{width:auto;height:auto;color:#dff4ff;font-size:18px}
.nav-item:hover{background:#17384d;color:#fff}
.nav-item.active{
  color:#fff;background:#24485f;box-shadow:inset 0 -3px #27c77b;
}
.nav-item.active span{color:#45dc94}
.sidebar-foot{position:absolute;right:max(24px,calc((100vw - 1420px)/2));top:20px;margin:0}
.system-card{
  min-width:210px;padding:10px 14px;background:#102d3f;
  border:1px solid #23485d;border-radius:6px;
}
.system-card strong{color:#fff}.system-card small{color:#8fb1c4}
.sidebar-foot>p{display:none}
main{margin-left:0}
.topbar{
  height:54px;padding:0 max(24px,calc((100vw - 1420px)/2));
  position:relative;top:auto;background:#12344a;border-color:#265168;
}
.topbar h1{color:#fff;font-size:16px}.topbar .eyebrow{color:#70b9d6}
.sync-state{background:#092231;border-color:#27536a;color:#c8e1ec}
.avatar{background:#19b970;border-color:#4cdd99;color:#fff}
.view{max-width:1480px;padding:28px 30px 60px}
.hero{
  min-height:205px;margin:0 0 20px;padding:34px 38px;
  align-items:center;border:1px solid #28546c;border-radius:6px;
  background:
    linear-gradient(115deg,rgba(20,76,103,.96),rgba(13,51,72,.94)),
    repeating-linear-gradient(135deg,transparent 0 13px,rgba(61,156,194,.08) 14px 15px);
  box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.hero::after{
  content:"✉";position:absolute;right:7%;top:17px;
  color:rgba(80,214,193,.18);font-size:154px;transform:rotate(-10deg);
}
.hero h2,.section-head h2{color:#fff;font-size:27px;text-shadow:0 2px 8px rgba(0,0,0,.2)}
.hero>div>p:last-child,.section-head>div>p:last-child{color:#b5ccda}
.eyebrow{color:#63d4ae}
.primary{
  background:linear-gradient(135deg,#20c878,#0ea663);
  box-shadow:0 8px 20px rgba(10,157,91,.26);
}
.primary:hover{background:linear-gradient(135deg,#2bd986,#12b66d)}
.secondary{background:#173f56;color:#e4f3fa;border:1px solid #315d73}
.secondary:hover{background:#20516b}
.danger{background:#6a2630;color:#ffd8d8}
.stats-grid{gap:16px}
.stat-card{
  min-height:135px;border:0;color:#fff;box-shadow:0 14px 26px rgba(0,7,12,.22);
}
.stat-card:nth-child(1){background:linear-gradient(135deg,#159a56,#0d828c)}
.stat-card:nth-child(2){background:linear-gradient(135deg,#387fd6,#1e9cad)}
.stat-card:nth-child(3){background:linear-gradient(135deg,#9c55dc,#7147b0)}
.stat-card:nth-child(4){background:linear-gradient(135deg,#dc781a,#a4a400)}
.stat-card::after{width:150px;height:95px;right:-25px;bottom:-42px;background:rgba(255,255,255,.13)}
.stat-card p,.stat-card small{color:#e9f8ff}.stat-card strong{color:#fff}
.stat-icon{background:#fff!important;color:#1389b2!important;box-shadow:0 7px 15px rgba(0,0,0,.2)}
.trend{background:rgba(4,36,52,.3)!important;color:#fff!important}
.panel,.action-card{
  color:#eaf6fc;background:#103149;border-color:#28516a;
  border-radius:7px;box-shadow:var(--shadow);
}
.panel-head h3,.operation-panel h4,.action-card h3{color:#fff}
.content-grid{grid-template-columns:minmax(0,1fr) 340px}
th{color:#d8edf6;background:#173f58;border-color:#315c73}
td{color:#d6e6ee;border-color:#285066}
tbody tr:hover{background:#163b51}
.email-cell{color:#fff}.source-cell,.message-empty{color:#83a4b5}
.badge.completed{background:#0f6d52;color:#a9f4d4}
.badge.recovery{background:#315b9b;color:#d5e3ff}
.badge.pending{background:#72551a;color:#ffe3a4}
.badge.locked{background:#702e37;color:#ffd1d5}
.accounts-layout{grid-template-columns:minmax(0,1fr) 300px}
.toolbar{border-color:#2a5268}
.search-box,.toolbar select{
  color:#dcecf4;background:#0a2535;border-color:#31566b;
}
.search-box input{color:#fff}.search-box input::placeholder{color:#7895a6}
.selectable-table tbody tr.selected{background:#174b5c;box-shadow:inset 3px 0 #25d17f}
.selectable-table tbody tr.selected:hover{background:#1b5264}
.batch-button{background:#17465e;border-color:#32647d;color:#dff5ff}
.message-preview>span{color:#bdd3df}.message-preview:hover>span{color:#52db9b}
.message-preview>b:first-child{background:#0d6e51;color:#baf5da}
.operation-grid{grid-template-columns:repeat(3,1fr)}
.action-card{position:relative;overflow:hidden}
.action-card:nth-child(1){background:linear-gradient(145deg,#0f9360,#0f5361)}
.action-card:nth-child(2){background:linear-gradient(145deg,#2b78c5,#225d91)}
.action-card:nth-child(3){background:linear-gradient(145deg,#9550d3,#61449a)}
.action-card p{color:#d3e7f0}
.terminal-panel{border-color:#2c586e;background:#04141d}
.settings-heading{border-color:#2b5268}
.settings-heading h3,.setting-field{color:#f2f9fc}.settings-heading p,.setting-field small{color:#91adbc}
.setting-field input,.setting-field select,.setting-field textarea{
  color:#eef8fc;background:#082433;border-color:#31586d;
}
.switch-row{background:#0b293a}.switch-row>span:last-child{color:#e9f5fa}.switch-row small{color:#88a6b6}
.modal{color:#eaf5fa;background:#103149;border-color:#376078}
.modal-close{background:#082333;color:#b7d0dc}.modal-copy{color:#9db6c3}
.modal textarea{color:#fff;background:#082333;border-color:#376078}
.context-menu{background:#103149;border-color:#315d74}.context-title{color:#9cb5c2;border-color:#294f65}
.context-menu button{color:#e4f2f8}.context-menu button:hover{background:#19465e;color:#fff}
.message-detail{background:#0a2636;border-color:#315970}
.message-detail-head{background:#11364c;color:#edf8fc}.message-detail-head small{color:#9ab5c3}
.message-detail-body{background:#0a2636;border-color:#315970}.message-detail-body pre{color:#d9e8ef}
.message-modal-meta{color:#91acba}
.settings-actions{padding-bottom:20px}
@media(max-width:900px){
  .app-shell{padding-top:76px}.sidebar{height:76px}.sidebar nav{position:fixed;inset:76px auto 0 0;width:230px;height:auto;padding:18px;display:none;align-items:stretch}
  .sidebar.open nav{display:flex;flex-direction:column}.brand{left:18px;top:13px}.sidebar-foot,.quick-tools{display:none}
  .menu-button{display:block;color:#fff}.topbar{padding:0 18px}.view{padding:22px 16px 45px}
  .stats-grid,.operation-grid{grid-template-columns:1fr 1fr}.content-grid{grid-template-columns:1fr}
}

/* 2026 visual polish: cleaner customer workspace and denser account console. */
.customer-mode[data-time-theme="day"]{
  background:
    radial-gradient(circle at 12% 5%,rgba(66,133,244,.10),transparent 29rem),
    radial-gradient(circle at 88% 18%,rgba(46,196,182,.055),transparent 24rem),
    #f4f7fc;
}
.customer-mode .sidebar{
  height:76px;border-bottom:1px solid rgba(135,153,178,.18);
  box-shadow:0 7px 24px rgba(21,40,72,.06);
}
.customer-mode .app-shell{padding-top:76px}
.customer-mode .brand{top:9px}
.customer-mode .brand-mark{
  width:44px;height:44px;border-radius:14px;
  box-shadow:0 8px 22px rgba(59,130,246,.25);
}
.customer-mode .quick-tools{top:22px;gap:0}
.customer-mode .quick-tools button{
  padding:0 17px;font-weight:750;letter-spacing:-.1px;transition:color .18s,background .18s;
}
.customer-mode .quick-tools button:hover{background:rgba(59,130,246,.055)}
.customer-mode .topbar{
  height:52px;padding-inline:max(26px,calc((100vw - 1340px)/2));
  box-shadow:0 1px 0 rgba(135,153,178,.09);
}
.customer-mode .view{
  width:min(1640px,calc(100vw - 56px));max-width:none;
  margin:0 auto;padding:32px 0 64px;
}
.customer-mode .section-head{margin-bottom:20px}
.customer-mode .section-head h2{
  margin:6px 0 4px;font-size:29px;line-height:1.14;letter-spacing:-1px;
}
.customer-mode .section-head .eyebrow{font-size:9px;letter-spacing:1.8px}
.customer-mode .primary{
  min-height:42px;padding:0 18px;border-radius:11px;
  transition:transform .15s,box-shadow .15s,background .15s;
}
.customer-mode .primary:hover{transform:translateY(-1px)}
.customer-mode .accounts-layout{
  grid-template-columns:minmax(0,1fr) 306px;gap:18px;align-items:start;
}
.customer-mode .accounts-panel{
  padding:18px;border-radius:16px;
  box-shadow:0 14px 42px rgba(28,54,91,.075)!important;
}
.customer-mode .toolbar{align-items:center;padding-bottom:16px}
.customer-mode .search-box{
  width:min(380px,42%);height:44px;border-radius:11px;padding-inline:14px;
  background:#fbfdff!important;transition:border .18s,box-shadow .18s;
}
.customer-mode .search-box:focus-within{
  border-color:#8ab5f7;box-shadow:0 0 0 4px rgba(59,130,246,.09);
}
.customer-mode .toolbar select{min-width:245px;height:44px;border-radius:11px;padding-inline:14px}
.customer-mode .table-fullscreen-button{width:44px;height:44px;border-radius:11px}
.customer-mode .accounts-panel .table-wrap{
  height:clamp(470px,calc(100vh - 310px),730px);
  margin-top:0;border-radius:12px;box-shadow:inset 0 0 0 1px rgba(123,145,173,.035);
}
.customer-mode .accounts-panel .selection-summary{
  min-height:48px;padding:0 14px;backdrop-filter:blur(12px);
}
.customer-mode .selection-actions{gap:7px}
.customer-mode .batch-button{min-height:32px;border-radius:8px}
.customer-mode .table-top-scroll{height:11px;top:48px}
.customer-mode .table-top-scroll::-webkit-scrollbar{height:10px}
.customer-mode .accounts-panel thead th{
  top:59px;height:44px;padding:10px 12px;
  background:#f3f6fb!important;color:#68758a!important;
}
.customer-mode .selectable-table tbody tr{transition:background .13s,box-shadow .13s}
.customer-mode td{height:49px;padding:11px 12px}
.customer-mode .email-cell{letter-spacing:-.15px}
.customer-mode .badge{border-radius:999px;padding:5px 10px;font-weight:800}
.customer-mode .account-task-panel{
  position:sticky;top:70px;min-height:350px;padding:20px;border-radius:16px;
  box-shadow:0 14px 42px rgba(28,54,91,.07);
}
.customer-mode .account-task-panel .panel-head{padding-bottom:12px;border-bottom:1px solid var(--line)}
.customer-mode .account-task-panel .task-visual{margin:28px auto 18px}
.customer-mode .account-task-panel .task-ring{
  width:72px;height:72px;border-width:6px;
  filter:drop-shadow(0 7px 13px rgba(27,168,119,.12));
}
.customer-mode .account-task-panel .account-task-meta{
  margin-top:12px;padding:9px 10px;border-radius:9px;background:#f4f7fb;
  color:#718096;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.customer-mode .account-task-panel .task-actions{margin-top:17px}
.customer-mode .account-task-panel .task-actions button{min-height:40px;border-radius:10px}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr:nth-child(even):not(.selected){background:#fbfcfe}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr:hover:not(.selected){background:#f1f6ff}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected{
  background:linear-gradient(90deg,#e5f0ff,#edf5ff);
}
.customer-mode[data-time-theme="day"] .account-task-panel .account-task-meta{background:#f3f6fa}
.customer-mode[data-time-theme="night"] .account-task-panel .account-task-meta{background:#0b2636;color:#9eb5c4}
@media(max-width:1200px){
  .customer-mode .view{width:min(1120px,calc(100vw - 34px))}
  .customer-mode .accounts-layout{grid-template-columns:minmax(0,1fr) 270px}
  .customer-mode .toolbar select{min-width:210px}
}
@media(max-width:1000px){
  .customer-mode .view{width:calc(100vw - 28px);padding:24px 0 50px}
  .customer-mode .accounts-layout{grid-template-columns:1fr}
  .customer-mode .account-task-panel{position:static;min-height:280px}
}

/* Customer desktop shell matching the supplied three-column reference. */
@media(min-width:1101px){
  .customer-mode .sidebar{
    position:fixed;inset:0 0 auto 0;width:100%;height:76px;z-index:30;
    background:rgba(255,255,255,.97);border-bottom:1px solid #e2e8f2;
  }
  .customer-mode .sidebar nav{
    position:fixed;left:0;top:76px;bottom:0;right:auto;
    width:240px;height:auto;padding:28px 20px;display:flex!important;
    flex-direction:column;justify-content:flex-start;align-items:stretch;gap:9px;
    background:rgba(255,255,255,.92);border:0;border-right:1px solid #e2e8f2;
    box-shadow:8px 0 30px rgba(37,60,98,.035);
  }
  .customer-mode .nav-item{
    display:flex!important;width:100%;height:48px;padding:0 17px;border-radius:11px;
    color:#667085;font-size:13px;font-weight:700;
  }
  .customer-mode .nav-item span{width:23px;color:#718096;font-size:18px}
  .customer-mode .nav-item:hover{background:#f2f6fd;color:#2875e6}
  .customer-mode .nav-item.active{
    color:#286fe8;background:linear-gradient(90deg,#eaf2ff,#f2f6ff);
    box-shadow:none;
  }
  .customer-mode .nav-item.active span{color:#347cf0}
  .customer-mode .sidebar-foot{display:block;position:fixed;left:20px;right:auto;top:auto;bottom:22px;width:200px}
  .customer-mode .sidebar-foot .system-card{
    min-width:0;padding:13px;background:linear-gradient(145deg,#f2f6ff,#e8efff);
    border-color:#dce6fb;border-radius:12px;
  }
  .customer-mode .sidebar-foot .system-card strong{color:#334a70}
  .customer-mode .sidebar-foot .system-card small{color:#8290a7}
  .customer-mode main{margin-left:240px}
  .customer-mode .topbar{
    position:fixed;left:240px;right:0;top:0;z-index:31;height:76px;
    padding-right:32px;background:transparent!important;border:0;box-shadow:none;
    pointer-events:none;
  }
  .customer-mode .topbar>div:first-of-type{display:none}
  .customer-mode .topbar-actions{margin-left:auto;pointer-events:auto}
  .customer-mode .brand{left:29px}
  .customer-mode .quick-tools{left:55%;transform:translateX(-50%)}
  .customer-mode .view{width:calc(100vw - 296px);padding-top:34px}
}
.account-right-rail{display:grid;gap:18px;align-content:start}
.account-right-rail .account-task-panel{position:static}
.account-summary-panel{padding:20px;border-radius:16px}
.account-summary-panel .panel-head{padding-bottom:13px;margin-bottom:7px;border-bottom:1px solid var(--line)}
.account-summary-panel .panel-head h3{margin:0;font:800 15px Manrope}
.summary-row{min-height:52px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px}
.summary-row>span:nth-child(2){color:var(--muted);font-size:12px;font-weight:650}
.summary-row>b{font:800 17px Manrope}
.summary-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;font-weight:900}
.summary-icon.blue{background:#eaf1ff;color:#3478ed}
.summary-icon.green{background:#e6f8ef;color:#16a06e}
.summary-icon.amber{background:#fff4df;color:#e18a09}
.summary-icon.red{background:#fbe9ef;color:#d84a67}
@media(max-width:1100px){.account-right-rail{grid-template-columns:1fr 1fr}.account-summary-panel{min-height:280px}}
@media(max-width:700px){.account-right-rail{grid-template-columns:1fr}}

/* Pixel-oriented desktop proportions from the latest 1680×944 reference. */
@media(min-width:1280px){
  .customer-mode .sidebar nav{width:298px;padding:30px 25px}
  .customer-mode .nav-item{height:52px;padding-inline:20px;font-size:14px}
  .customer-mode .sidebar-foot{left:30px;width:238px}
  .customer-mode main{margin-left:298px}
  .customer-mode .topbar{left:298px}
  .customer-mode .brand{left:30px;font-size:25px}
  .customer-mode .quick-tools{left:57%;gap:11px}
  .customer-mode .quick-tools button{
    min-height:38px;padding:0 14px;border:0;border-radius:9px;
    color:#3e4b63!important;font-size:13px;
  }
  .customer-mode .quick-tools button::first-letter{color:#3278ef}
  .customer-mode .view{
    width:calc(100vw - 346px);max-width:1380px;margin-left:40px;margin-right:auto;
    padding-top:36px;
  }
  .customer-mode .section-head{height:70px;margin:0 0 18px;align-items:flex-start}
  .customer-mode .section-head h2{font-size:30px}
  .customer-mode .section-head .eyebrow{display:none}
  .customer-mode .section-head>div>p:last-child{font-size:14px}
  .customer-mode #openAddAccount{margin-top:0;min-width:166px;height:45px}
  .customer-mode .accounts-layout{
    grid-template-columns:minmax(720px,948px) 320px;gap:30px;
  }
  .customer-mode .accounts-panel{
    padding:0;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  .customer-mode .accounts-panel .toolbar{
    height:84px;margin:0 0 18px;padding:18px 20px;
    background:#fff;border:1px solid #e4eaf3;border-radius:13px;
    box-shadow:0 9px 25px rgba(30,55,90,.055);
  }
  .customer-mode .search-box{width:358px;height:45px}
  .customer-mode .toolbar select{width:300px}
  .customer-mode .accounts-panel .table-wrap{
    height:616px;border-radius:13px;border:1px solid #e4eaf3;
    box-shadow:0 9px 25px rgba(30,55,90,.055);
  }
  .customer-mode .accounts-panel .selection-summary{min-height:44px}
  .customer-mode .accounts-panel thead th{height:50px}
  .customer-mode td{height:50px}
  .customer-mode .account-right-rail{gap:24px}
  .customer-mode .account-task-panel{
    min-height:414px;padding:22px;border-radius:14px;
  }
  .customer-mode .account-summary-panel{min-height:310px;padding:22px;border-radius:14px}
  .customer-mode .account-task-panel .task-ring{width:102px;height:102px;border-width:8px}
  .customer-mode .account-task-panel .task-visual{margin:24px auto 18px}
  .customer-mode .account-task-panel h4{font-size:15px}
  .customer-mode .summary-row{min-height:58px}
}

/* Full-screen account workspace. */
@media(min-width:1101px){
  .customer-mode main{min-height:100vh}
  .customer-mode #accounts.view{
    width:calc(100vw - 330px);max-width:none;margin:0 24px 0 32px;
    padding:20px 0 22px;
  }
  .customer-mode #accounts .section-head{
    height:auto;min-height:62px;margin-bottom:8px;align-items:flex-start;
  }
  .customer-mode #accounts .accounts-layout{
    width:100%;grid-template-columns:minmax(0,1fr) 296px;gap:20px;
  }
  .customer-mode #accounts .accounts-panel .table-wrap{
    height:calc(100vh - 302px);min-height:520px;max-height:none;
  }
  .customer-mode #accounts .account-right-rail{grid-template-columns:1fr}
  .customer-mode #accounts .account-task-panel{min-height:350px}
  .customer-mode #accounts .account-summary-panel{min-height:280px}
}
@media(min-width:1600px){
  .customer-mode #accounts.view{width:calc(100vw - 354px);margin-left:34px}
  .customer-mode #accounts .accounts-layout{grid-template-columns:minmax(0,1fr) 310px;gap:22px}
}
.account-mini-logs{
  max-height:104px;margin-top:12px;padding:8px 10px;overflow:hidden;
  border:1px solid #e6ecf4;border-radius:10px;background:#f8fafd;
  color:#68778e;font:10px/1.45 Consolas,monospace;text-align:left;
}
.account-mini-logs>span{display:block;padding:5px 2px;text-align:center;color:#97a3b4}
.account-mini-logs div{display:grid;grid-template-columns:43px minmax(0,1fr);gap:6px;padding:3px 0}
.account-mini-logs time{color:#8ea0b5}
.account-mini-logs div span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-mini-logs div.error span{color:#d64a57}
.customer-mode #accounts .account-task-panel{min-height:0!important;padding:18px}
.customer-mode #accounts .account-task-panel .panel-head{padding-bottom:10px}
.customer-mode #accounts .account-task-panel .task-visual{margin:16px auto 10px}
.customer-mode #accounts .account-task-panel .task-ring{width:68px;height:68px;border-width:6px}
.customer-mode #accounts .account-task-panel>p{margin:6px 0}
.customer-mode #accounts .account-task-panel .task-actions{margin-top:10px}
.customer-mode #accounts .account-task-panel .task-actions{display:grid;grid-template-columns:1fr 1fr}
.customer-mode #accounts #accountViewChrome{grid-column:1/-1}
.customer-mode #accounts .account-task-panel .task-actions{gap:10px}
.customer-mode #accounts .account-task-panel .task-actions button{
  height:48px;border-radius:10px;font-size:13px;font-weight:800;
  transition:transform .15s,box-shadow .15s,background .15s;
}
.customer-mode #accounts .account-task-panel .task-actions button:hover{transform:translateY(-1px)}
.customer-mode #accounts #accountViewChrome{
  color:#3174df;background:#fff;border:1.5px solid #76a4f5;
  box-shadow:0 6px 15px rgba(49,116,223,.10);
}
.customer-mode #accounts #accountViewChrome::before{
  content:"◉";display:inline-grid;place-items:center;margin-right:8px;
  color:#3174df;font-size:20px;vertical-align:-2px;
}
.customer-mode #accounts #accountViewChrome:hover{background:#f5f9ff;box-shadow:0 9px 20px rgba(49,116,223,.16)}
.customer-mode #accounts #accountViewLogs{
  color:#3174df;background:#fff;border:1px solid #d9e2ed;
  box-shadow:0 6px 14px rgba(37,60,91,.09);
}
.customer-mode #accounts #accountViewLogs::before{
  content:"▤";margin-right:8px;color:#347bf0;font-size:19px;vertical-align:-2px;
}
.customer-mode #accounts #accountViewLogs:hover{border-color:#afc8ee;background:#f8fbff}
.customer-mode #accounts #accountStopTask{
  color:#fff;border:1px solid #d92537;
  background:linear-gradient(135deg,#f04c5b,#dd2637);
  box-shadow:0 8px 18px rgba(221,38,55,.23);
}
.customer-mode #accounts #accountStopTask::before{
  content:"■";margin-right:8px;color:#fff;font-size:14px;
}
.customer-mode #accounts #accountStopTask:hover{
  background:linear-gradient(135deg,#f65a67,#d91f31);
  box-shadow:0 10px 22px rgba(221,38,55,.30);
}
.customer-mode[data-time-theme="night"] #accountViewChrome,
.customer-mode[data-time-theme="night"] #accountViewLogs{background:#102d3f;border-color:#365f78;color:#8dbaff}
.customer-mode[data-time-theme="night"] .account-mini-logs{
  background:#0b2636;border-color:#294c60;color:#9db2c0;
}
.account-progress-ring{
  position:relative;border:0!important;background:conic-gradient(#19bf75 var(--task-progress,0deg),#e8f6f0 0);
}
.account-progress-ring::after{
  content:"";position:absolute;inset:7px;border-radius:50%;background:#fff;
  box-shadow:0 5px 16px rgba(27,168,119,.08);
}
.account-progress-ring b{position:relative;z-index:1;color:#132238;font:800 16px Manrope}
.task-visual.running .account-progress-ring{animation:none}
.task-visual.running .account-progress-ring b{visibility:visible}
.worker-progress-list{display:grid;gap:7px;margin-top:10px}
.worker-progress{
  padding:8px 9px;border:1px solid #e5ebf3;border-radius:9px;background:#f9fbfd;
}
.worker-progress>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;font-size:9px}
.worker-progress b{color:#3e536c}.worker-progress span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8493a6}.worker-progress strong{color:#167d58}
.worker-progress>i{height:5px;display:block;margin-top:6px;overflow:hidden;border-radius:99px;background:#e5edf4}
.worker-progress>i span{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#22ba76,#34d58d);transition:width .35s}
.customer-mode[data-time-theme="night"] .account-progress-ring::after{background:#102d3f}
.customer-mode[data-time-theme="night"] .account-progress-ring b{color:#eaf6fb}
.customer-mode[data-time-theme="night"] .worker-progress{background:#0b2636;border-color:#294c60}
.task-log-modal{width:min(920px,calc(100vw - 36px));max-height:82vh;padding:0;overflow:hidden}
.task-log-modal .modal-head{cursor:grab;user-select:none;touch-action:none}
.task-log-modal .modal-head.dragging{cursor:grabbing}
.window-controls{display:flex;align-items:center;gap:5px;margin-left:auto}
.window-controls button{
  width:34px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;
  background:#edf2f8;color:#506079;font-size:17px;line-height:1;cursor:pointer;
}
.window-controls button:hover{background:#dfe8f5;color:#236be2}
.window-controls .modal-close:hover{background:#fee8eb;color:#d93649}
.task-log-modal.minimized{
  width:410px;height:58px!important;border:1px solid rgba(114,151,179,.45);
  border-radius:15px;background:linear-gradient(135deg,#123c56,#0e3047);
  box-shadow:0 16px 42px rgba(5,23,36,.28);
}
.task-log-modal.minimized .task-log-popup{display:none}
.task-log-modal.minimized .modal-head{
  height:58px;padding:0 10px 0 17px;border-bottom:0;background:transparent;
}
.task-log-modal.minimized .modal-head>div:first-child{min-width:0}
.task-log-modal.minimized .modal-head .eyebrow{display:none}
.task-log-modal.minimized .modal-head h3{
  margin:0;color:#f3f8fc;font-size:15px;line-height:1;white-space:nowrap;
}
.task-log-modal.minimized .window-controls{gap:6px}
.task-log-modal.minimized .window-controls button{
  width:31px;height:31px;border:1px solid rgba(255,255,255,.12);
  border-radius:9px;background:rgba(238,246,252,.94);color:#50677c;
  font-size:15px;box-shadow:0 3px 9px rgba(0,0,0,.10);
}
.task-log-modal.minimized .window-controls button:hover{
  transform:translateY(-1px);background:#fff;color:#1769d2;
}
.task-log-modal.minimized .window-controls .modal-close:hover{
  background:#ffeaed;color:#d63246;
}
#taskLogModal.window-minimized{
  background:transparent;backdrop-filter:none;pointer-events:none;
}
#taskLogModal.window-minimized .task-log-modal{pointer-events:auto}
#browserMonitorModal.window-minimized{background:transparent;backdrop-filter:none;pointer-events:none}
#browserMonitorModal.window-minimized .browser-monitor-modal{pointer-events:auto}
.browser-monitor-modal{width:min(1100px,calc(100vw - 36px));max-height:88vh;padding:0;overflow:hidden}
.browser-monitor-modal .modal-head{cursor:grab;user-select:none;touch-action:none}
.browser-popup-body{height:min(700px,74vh);padding:16px;overflow:auto;background:#f4f7fb}
.browser-monitor-modal.minimized{
  width:410px;height:58px!important;border-radius:15px;background:linear-gradient(135deg,#123c56,#0e3047);
  box-shadow:0 16px 42px rgba(5,23,36,.28);
}
.browser-monitor-modal.minimized .browser-popup-body{display:none}
.browser-monitor-modal.minimized .modal-head{height:58px;padding:0 10px 0 17px;border:0;background:transparent}
.browser-monitor-modal.minimized .modal-head .eyebrow{display:none}
.browser-monitor-modal.minimized .modal-head h3{margin:0;color:#fff;font-size:15px}
.browser-monitor-modal.maximized{position:fixed!important;inset:8px!important;width:auto!important;max-width:none!important;max-height:none!important;margin:0!important}
.browser-monitor-modal.maximized .browser-popup-body{height:calc(100vh - 75px)}
.customer-mode[data-time-theme="night"] .browser-popup-body{background:#081d2a}

/* Browser monitor window — responsive layout based on the supplied reference. */
.browser-monitor-modal{
  width:min(1120px,calc(100vw - 36px));border:1px solid #9db0c4;border-radius:15px;
  background:#eef3f8;box-shadow:0 22px 64px rgba(18,42,64,.27);
}
.browser-monitor-modal>.modal-head{
  min-height:62px;padding:9px 14px 8px 18px;border:0;
  background:linear-gradient(135deg,#0b2b43,#0c2135);color:#fff;
}
.browser-monitor-modal>.modal-head .eyebrow{
  margin:0 0 3px;color:#55a9ff;font-size:8px;letter-spacing:1.4px;
}
.browser-monitor-modal>.modal-head h3{margin:0;color:#f5f9fc;font-size:17px}
.browser-monitor-modal>.modal-head .window-controls button{
  width:32px;height:32px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.08);color:#dce8f2;box-shadow:0 4px 12px rgba(0,0,0,.13);
}
.browser-monitor-modal>.modal-head .window-controls .modal-close{color:#f0c4c9}
.browser-popup-body{
  height:min(720px,78vh);padding:12px 15px 15px;overflow:auto;background:#f3f6f9;
}
.browser-popup-body .browser-grid{display:grid;grid-template-columns:1fr;gap:12px}
.browser-popup-body .browser-card{
  border:1px solid #d3dde8;border-radius:10px;background:#fff;
  box-shadow:0 7px 18px rgba(34,57,82,.08);
}
.browser-popup-body .browser-card header{
  height:42px;padding:0 10px;border-bottom:1px solid #d9e1ea;background:#fff;
}
.browser-popup-body .browser-card header b{
  padding:4px 8px;border-radius:5px;background:#edf6ff;color:#2382d8;font-size:10px;
}
.browser-popup-body .browser-card header small{font-size:11px;color:#63758a}
.browser-popup-body .browser-card header button{
  height:29px;padding:0 10px;border:1px solid #d7e0ea;background:#f9fbfd;color:#40566d;
}
.browser-popup-body .browser-live{
  width:9px;height:9px;background:#27c93f;box-shadow:0 0 0 3px rgba(39,201,63,.12);
}
.browser-popup-body .browser-screen{
  height:min(590px,calc(78vh - 112px));min-height:300px;aspect-ratio:auto;background:#071b2b;
}
.browser-popup-body .browser-screen img{object-fit:contain}
.browser-popup-body .browser-card footer{
  height:31px;padding:7px 10px;border-top:1px solid #dbe3eb;background:#f8fafc;color:#8291a3;
}
.browser-monitor-modal.maximized .browser-popup-body{height:calc(100vh - 72px)}
.browser-monitor-modal.maximized .browser-popup-body .browser-screen{height:calc(100vh - 165px)}
@media(max-width:1023px){
  .browser-monitor-modal{width:min(760px,calc(100vw - 24px))}
  .browser-popup-body{padding:9px}
  .browser-popup-body .browser-screen{height:min(560px,calc(78vh - 105px));min-height:260px}
}
@media(max-width:767px){
  .browser-monitor-modal{width:calc(100vw - 12px);border-radius:10px}
  .browser-monitor-modal>.modal-head{min-height:50px;padding:7px 8px}
  .browser-monitor-modal>.modal-head .eyebrow{display:none}
  .browser-monitor-modal>.modal-head h3{font-size:13px}
  .browser-monitor-modal>.modal-head .window-controls button{width:27px;height:27px}
  .browser-popup-body{height:calc(100vh - 70px);padding:6px}
  .browser-popup-body .browser-card header{height:36px;padding-inline:6px}
  .browser-popup-body .browser-card header small{max-width:105px}
  .browser-popup-body .browser-screen{height:calc(100vh - 155px);min-height:210px}
  .browser-popup-body .browser-card footer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.sidebar-browser-dock{display:none}
@media(min-width:1101px){
  .customer-mode .sidebar-browser-dock{
    position:fixed;display:flex;flex-direction:column;left:14px;top:430px;bottom:16px;width:270px;
    max-height:none;padding:9px;border:1px solid #dce5ef;border-radius:13px;
    background:#fff;box-shadow:0 12px 30px rgba(29,52,82,.10);z-index:31;
  }
  .customer-mode .sidebar-browser-head{
    height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 3px 7px;
    color:#394c65;font-size:11px;font-weight:800;
  }
  .customer-mode .sidebar-browser-head span{display:flex;align-items:center;gap:7px}
  .customer-mode .sidebar-browser-head i{
    width:7px;height:7px;border-radius:50%;background:#27c93f;box-shadow:0 0 0 3px rgba(39,201,63,.12);
  }
  .customer-mode .sidebar-browser-head button{
    width:28px;height:27px;border:1px solid #d7e1ec;border-radius:7px;background:#f7faff;color:#47729f;cursor:pointer;
  }
  .customer-mode .sidebar-browser-dock .browser-grid{display:block;flex:1;min-height:0;overflow:auto}
  .customer-mode .sidebar-browser-dock .browser-card{height:100%;display:flex;flex-direction:column;border-radius:9px;box-shadow:none}
  .customer-mode .sidebar-browser-dock .browser-card header{
    height:33px;padding:0 6px;gap:5px;
  }
  .customer-mode .sidebar-browser-dock .browser-card header b{font-size:9px}
  .customer-mode .sidebar-browser-dock .browser-card header small{max-width:90px;font-size:8px}
  .customer-mode .sidebar-browser-dock .browser-card header button{display:none}
  .customer-mode .sidebar-browser-dock .browser-screen{height:auto;min-height:260px;flex:1;aspect-ratio:auto}
  .customer-mode .sidebar-browser-dock .browser-card footer{
    height:27px;padding:6px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .customer-mode .sidebar-browser-empty{
    flex:1;min-height:260px;display:grid;place-items:center;border:1px dashed #cad6e2;border-radius:9px;
    color:#91a0b1;background:#f8fafc;font-size:10px;text-align:center;
  }
  .customer-mode .sidebar-browser-empty.hidden{display:none}
  .customer-mode .sidebar-foot{display:none}
}
@media(min-width:1101px) and (max-height:760px){
  .customer-mode .sidebar-browser-dock{top:360px}
  .customer-mode .sidebar-browser-dock .browser-screen{min-height:190px}
}
.task-log-modal.maximized{
  position:fixed!important;inset:8px!important;width:auto!important;max-width:none!important;
  max-height:none!important;margin:0!important;
}
.task-log-modal.maximized .task-log-popup{height:calc(100vh - 82px)}
.task-log-popup{
  width:100%;height:min(620px,68vh);margin:0;padding:18px 20px;overflow:auto;
  border:0;border-radius:0;background:#0e1b2a;color:#d5e4f1;
  font:12px/1.65 Consolas,monospace;white-space:pre-wrap;
}
.task-log-popup .log-error{color:#ff929a}
.task-log-modal{
  width:min(980px,calc(100vw - 34px));border:1px solid #243a63;border-radius:15px;
  background:radial-gradient(circle at 82% 8%,rgba(40,84,156,.20),transparent 33%),#071329;
  box-shadow:0 28px 80px rgba(0,10,30,.48);color:#dce8fb;
}
.task-log-modal .modal-head{min-height:70px;padding:12px 16px;border-color:#213452;background:rgba(8,22,45,.76)}
.log-window-title{display:flex;align-items:center;gap:13px;min-width:0}
.terminal-logo{
  width:43px;height:43px;display:grid;place-items:center;flex:none;border:1px solid #627fff;
  border-radius:9px;color:#e8eeff;background:#142852;box-shadow:0 0 20px rgba(84,111,255,.18);
  font:700 19px Consolas,monospace;
}
.log-window-title h3{margin:0 0 5px;font-size:18px;color:#f3f7ff}
.log-window-title p{display:flex;align-items:center;gap:7px;margin:0;color:#aab9d1;font-size:10px}
.log-window-title p i{width:6px;height:6px;border-radius:50%;background:#27d98a;box-shadow:0 0 8px #27d98a}
.log-window-title p b{padding:3px 7px;border-radius:5px;background:#172844;color:#91a4c0;font-weight:600}
.task-log-table-head{
  height:35px;display:grid;grid-template-columns:142px 74px 1fr;align-items:center;
  padding:0 18px;border-bottom:1px solid #1d3150;color:#8292ab;background:#0a1830;
  font:9px/1 Consolas,monospace;letter-spacing:.6px;
}
.task-log-popup{
  height:min(560px,62vh);padding:8px 18px 14px;overflow:auto;background:rgba(4,15,33,.76);
  color:#c9d6e9;font:11px/1.55 Consolas,monospace;white-space:normal;
  scrollbar-width:thin;scrollbar-color:#386ed0 #0b1930;
}
.task-log-row{min-height:25px;display:grid;grid-template-columns:142px 74px minmax(0,1fr);align-items:start;padding:4px 0}
.task-log-row time{color:#8392aa}.task-log-row b{color:#4d9cff;font-size:10px}.task-log-row span{white-space:pre-wrap;overflow-wrap:anywhere}
.task-log-row.success b,.task-log-row.success span{color:#39d98a}
.task-log-row.error b,.task-log-row.error span{color:#ff6677}
.task-log-footer{
  min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:9px 18px;
  border-top:1px solid #213452;background:#08152b;color:#62dda1;font-size:11px;
}
.task-log-footer button{
  height:34px;padding:0 13px;border:1px solid #3973d5;border-radius:8px;
  background:#10274e;color:#8ec3ff;font-size:11px;font-weight:700;cursor:pointer;
}
.task-log-footer button:hover{background:#173664;color:#fff}
.task-log-modal .window-controls button{background:#14233d;border:1px solid #2b3d5d;color:#9fb0ca}
.task-log-modal .window-controls .modal-close{color:#ff6b78;background:#321b2d;border-color:#52253b}
.task-log-modal.minimized .task-log-table-head,.task-log-modal.minimized .task-log-footer{display:none}
.task-log-modal.maximized .task-log-popup{height:calc(100vh - 162px)}
@media(max-width:650px){
  .task-log-table-head,.task-log-row{grid-template-columns:74px 55px minmax(0,1fr)}
  .task-log-popup{padding-inline:10px}.task-log-table-head{padding-inline:10px}
}

/* Refined draggable scrollbars: compact, neutral and visible on hover. */
.customer-mode .accounts-panel .table-wrap{
  scrollbar-width:thin;
  scrollbar-color:#bdc9d8 transparent;
}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar{width:8px;height:8px}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar-track{
  background:transparent;border:0;
}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar-thumb{
  min-height:42px;background:#c4cfdd;border:2px solid transparent;
  border-radius:999px;background-clip:padding-box;
}
.customer-mode .accounts-panel .table-wrap:hover::-webkit-scrollbar-thumb{background:#93a5ba;background-clip:padding-box}
.customer-mode .table-top-scroll{
  top:48px;height:9px;background:#f8fafd;border:0;border-bottom:1px solid #edf1f6;
  scrollbar-width:thin;scrollbar-color:#bdc9d8 transparent;
}
.customer-mode .table-top-scroll::-webkit-scrollbar{height:8px}
.customer-mode .table-top-scroll::-webkit-scrollbar-track{background:transparent}
.customer-mode .table-top-scroll::-webkit-scrollbar-thumb{
  background:#c4cfdd;border:2px solid transparent;border-radius:999px;background-clip:padding-box;
}
.customer-mode .table-top-scroll:hover::-webkit-scrollbar-thumb{background:#8fa3ba;background-clip:padding-box}
.customer-mode[data-time-theme="night"] .accounts-panel .table-wrap{
  scrollbar-color:#537286 transparent;
}
.customer-mode[data-time-theme="night"] .accounts-panel .table-wrap::-webkit-scrollbar-thumb,
.customer-mode[data-time-theme="night"] .table-top-scroll::-webkit-scrollbar-thumb{
  background:#49697d;border-color:transparent;background-clip:padding-box;
}
.customer-mode[data-time-theme="night"] .table-top-scroll{
  background:#0d2838;border-bottom-color:#24495d;
}
@media(max-width:600px){.stats-grid,.operation-grid{grid-template-columns:1fr}.hero{padding:27px 23px}.hero::after{display:none}}

.settings-form{max-width:980px;display:grid;gap:16px}
.settings-panel{padding:0;overflow:hidden}
.settings-heading{display:flex;align-items:center;gap:13px;padding:21px 23px;border-bottom:1px solid #edf0f5}
.settings-heading h3{margin:0 0 4px;font:700 15px Manrope;color:var(--ink)}
.settings-heading p{margin:0;color:var(--muted);font-size:11px}
.settings-icon{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:11px;background:#eeeeff;color:#5b5ce2;font-weight:800}
.settings-icon.proxy{background:#e7f8f2;color:#15966e;font-size:19px}
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;padding:22px 23px}
.setting-field{display:flex;flex-direction:column;gap:7px;color:#303b4e;font-size:12px;font-weight:700}
.setting-field small{margin-top:-3px;min-height:16px;color:#929caf;font-size:9px;font-weight:500}
.setting-field input,.setting-field select,.setting-field textarea{width:100%;border:1px solid #dfe4ec;border-radius:10px;background:#fafbfc;color:#263246;padding:11px 12px;outline:0;font-size:12px}
.setting-field input,.setting-field select{height:43px}
.setting-field textarea{resize:vertical;line-height:1.55}
.setting-field input:focus,.setting-field select:focus,.setting-field textarea:focus{background:#fff;border-color:#9b9cf0;box-shadow:0 0 0 3px rgba(91,92,226,.09)}
.setting-field.wide{grid-column:1/-1}
.switch-row{display:flex;align-items:center;gap:11px;margin:0 23px 22px;padding:15px;border-radius:11px;background:#f8f9fc;cursor:pointer}
.switch-row input{position:absolute;opacity:0;pointer-events:none}
.switch{width:39px;height:22px;padding:3px;flex:none;border-radius:999px;background:#ccd3df;transition:.2s}
.switch::after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(20,30,50,.2);transition:.2s}
.switch-row input:checked+.switch{background:#5b5ce2}
.switch-row input:checked+.switch::after{transform:translateX(17px)}
.switch-row input:disabled+.switch{opacity:.45}
.switch-row>span:last-child{display:flex;flex-direction:column;gap:3px;color:#334056;font-size:11px}
.switch-row small{color:#919bad;font-size:9px}
.switches-line{display:flex;align-items:center;gap:18px;padding:18px 23px 0}
.switch-row.compact{margin:0;padding:0;background:transparent}
.proxy-settings{grid-template-columns:repeat(2,1fr);transition:opacity .2s}
.proxy-settings.disabled{opacity:.48}
.settings-actions{position:sticky;bottom:12px;z-index:12;display:flex;justify-content:flex-end;gap:9px;padding:12px 14px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(24,36,57,.14);backdrop-filter:blur(10px)}
.customer-mode[data-time-theme="night"] .settings-actions{background:rgba(10,34,49,.94);border-color:#28516a}
@media(max-width:760px){
  .settings-grid,.proxy-settings{grid-template-columns:1fr;padding:18px}
  .setting-field.wide{grid-column:auto}
  .settings-heading{padding:18px}
  .switch-row{margin:0 18px 18px}
  .switches-line{align-items:flex-start;flex-direction:column;padding:18px}
  .switches-line .switch-row{margin:0}
}

/* Keep the settings screen in the dark marketplace theme. */
.settings-heading{border-color:#2b5268}
.settings-heading h3,.setting-field{color:#f2f9fc}
.settings-heading p,.setting-field small{color:#91adbc}
.settings-icon{background:#17445b;color:#55dba0}
.settings-icon.proxy{background:#164d43;color:#65e4ad}
.setting-field input,.setting-field select,.setting-field textarea{
  color:#eef8fc;background:#082433;border-color:#31586d;
}
.setting-field input:focus,.setting-field select:focus,.setting-field textarea:focus{
  background:#0a293b;border-color:#38ba94;box-shadow:0 0 0 3px rgba(42,205,143,.12);
}
.switch-row{background:#0b293a}
.switch-row>span:last-child{color:#e9f5fa}
.switch-row small{color:#88a6b6}
.switch-row input:checked+.switch{background:#20bd73}
.tool-title{display:inline-block;margin:10px 0;padding:7px 10px;border-radius:5px;background:#112b3e;color:#fff;font-weight:800}
.code-tool-panel{padding:14px 12px 20px;background:#123b54;border:1px solid #28566e}
.code-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.code-options>strong{min-width:112px;color:#fff}
.code-options>strong b{padding:1px 6px;border:1px solid #d6e8f1;background:#092333}
.code-options label{display:flex;align-items:center;gap:7px;color:#fff;font-weight:700;cursor:pointer}
.code-options input{width:21px;height:21px;accent-color:#19bd72}
.code-options label span{padding:7px 10px;border-radius:4px;background:#07849d}
.code-options input:checked+span{background:#0a9e78}
.code-input{width:100%;min-height:350px;resize:vertical;padding:14px;color:#dcecf4;background:#082330;border:1px solid #638096;border-radius:6px;font:13px/1.6 Consolas,monospace;outline:0}
.code-input:focus{border-color:#39d596;box-shadow:0 0 0 3px rgba(57,213,150,.12)}
.code-tool-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:10px;color:#fff;font-weight:700}
.code-tool-actions label{display:flex;align-items:center;gap:7px}
.code-results{margin-top:18px;overflow:auto;border:1px solid #315d74}
.copy-code-button{
  padding:5px 9px;border:0;border-radius:6px;background:#e9e7ff;color:#4c42c7;
  font-weight:900;letter-spacing:.4px;cursor:pointer;
}
.copy-code-button:hover{background:#fff;color:#2f27a7;box-shadow:0 0 0 3px rgba(116,104,238,.2)}
.copy-code-button.copied{background:#23c77a;color:#fff;transform:scale(1.06)}
.live-input{min-height:350px}
.live-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:12px}
.live-result-grid section{min-width:0}
.live-result-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-weight:800}
.live-result-head b{padding:2px 7px;border:1px solid currentColor}
.live-result-head button{padding:6px 18px;border:0;border-radius:5px;color:#fff;font-weight:800;cursor:pointer}
.live-result-head.live{color:#20d477}.live-result-head.live button{background:#16b960}
.live-result-head.die{color:#ff4b52}.live-result-head.die button{background:#ef252c}
.live-result-head.unknown{color:#12bfe4}.live-result-head.unknown button{background:#ef252c}
.live-result-grid textarea{width:100%;height:205px;resize:vertical;padding:11px;color:#dcecf4;background:#082330;border:1px solid #638096;border-radius:6px;font:11px/1.5 Consolas,monospace}
@media(max-width:900px){.live-result-grid{grid-template-columns:1fr;gap:16px}}
.mail-reader-results{display:grid;gap:12px;margin-top:18px}
.reader-account{padding:14px;background:#0a293a;border:1px solid #315970;border-radius:6px}
.reader-account h4{margin:0 0 10px;color:#fff}.reader-account h4 b{margin-left:7px;color:#35da8e}
.reader-account details{margin-top:8px;border:1px solid #315970;background:#082330}
.reader-account summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer}
.reader-account summary>span{display:flex;min-width:0;flex-direction:column;gap:4px}
.reader-account summary small{color:#91adbc}
.reader-account pre{height:auto;max-height:340px;border-top:1px solid #315970;background:#061d29;color:#dbeaf1}
.reader-error,.die-text{color:#ff6b70}.live-text{color:#36dc8c;font-weight:800}
.oauth-title-line{display:flex;align-items:center;gap:12px}.oauth-title-line>strong{color:#ff5b45}
.oauth-key-row{display:flex;justify-content:flex-end;margin-bottom:12px}
.oauth-key-row label{display:flex;align-items:center;gap:10px;color:#dcecf4;font-weight:700}
.oauth-key-row input{width:280px;padding:9px 11px;color:#fff;background:#082330;border:1px solid #4b7084;border-radius:5px}
.oauth-copy{padding:6px 9px;border:0;border-radius:5px;background:#168e69;color:#fff;font-weight:800;cursor:pointer}
@media(max-width:700px){.oauth-title-line{align-items:flex-start;flex-direction:column}.oauth-key-row{justify-content:stretch}.oauth-key-row label,.oauth-key-row input{width:100%}}
.customer-account-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 2px 18px}
.customer-account-toolbar h3{margin:0 0 5px;color:#fff}.customer-account-toolbar p{margin:0;color:#91adbc;font-size:11px}
.customer-account-list{margin-top:0;min-height:190px}
.customer-account-list tbody tr{cursor:pointer}
.customer-empty{text-align:center;padding:50px 15px}
@media(max-width:600px){.customer-account-toolbar{align-items:flex-start;flex-direction:column}.customer-account-toolbar .primary{width:100%}}
.auth-screen{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 20%,#16435c,#061722 65%)}
.auth-card{width:min(410px,100%);padding:29px;border:1px solid #315d74;border-radius:12px;background:#0d2d40;box-shadow:0 28px 80px rgba(0,0,0,.45)}
.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:24px}
.auth-brand>span{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#20bd83;color:#fff;font-size:22px}
.auth-brand b{display:block;color:#fff;font:900 20px Manrope}.auth-brand small{color:#8eabba}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:20px;border-bottom:1px solid #31546a}
.auth-tabs button{padding:11px;border:0;background:transparent;color:#87a4b4;font-weight:800;cursor:pointer}
.auth-tabs button.active{color:#43dc99;border-bottom:2px solid #35d08f}
.auth-card form{display:grid;gap:15px}.auth-card label{display:grid;gap:7px;color:#dcecf4;font-size:12px;font-weight:700}
.auth-card input{height:44px;padding:0 12px;color:#fff;background:#071f2c;border:1px solid #365d71;border-radius:7px;outline:0}
.auth-card input:focus{border-color:#36d093;box-shadow:0 0 0 3px rgba(54,208,147,.12)}

/* Light customer authentication screen */
.auth-screen{background:radial-gradient(circle at 50% 35%,#fff 0,#f5f7fa 66%,#eef2f6 100%);font-family:"DM Sans",sans-serif}
.auth-card{width:min(430px,100%);padding:30px 32px 28px;border:1px solid #e8ebf0;border-radius:14px;background:#fff;color:#172033;box-shadow:0 12px 30px rgba(21,30,45,.13)}
.auth-icon{width:44px;height:44px;display:grid;place-items:center;margin:0 auto 14px;border-radius:10px;background:#4387f7;color:#fff;font-size:20px;font-weight:900;box-shadow:0 7px 14px rgba(54,124,238,.25)}
.auth-card h2{margin:0;text-align:center;color:#161d2b;font:800 25px Manrope;letter-spacing:-.5px}
.auth-subtitle{max-width:320px;margin:8px auto 24px;text-align:center;color:#7c8798;font-size:12px;line-height:1.5}
.auth-card form{gap:13px}
.auth-card form>label{gap:6px;color:#4c5668;font-size:11px}
.auth-card label small{color:#a0a8b5;font-weight:500}
.auth-input{height:42px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #dce1e9;border-radius:9px;background:#fafbfc;transition:.2s}
.auth-input:focus-within{border-color:#6b9ef2;background:#eaf2ff;box-shadow:0 0 0 3px rgba(64,130,239,.09)}
.auth-input>span{width:16px;color:#a3adbb;text-align:center}
.auth-card .auth-input input{min-width:0;flex:1;height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#253044;box-shadow:none}
.auth-card .auth-input input:focus{border:0;box-shadow:none}
.password-toggle{padding:4px;border:0;background:transparent;color:#9ba6b6;cursor:pointer}
.auth-login-options{display:flex;align-items:center;justify-content:space-between;margin:1px 0 4px;font-size:10px}
.auth-login-options label,.auth-terms{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:7px!important;color:#697488!important;font-weight:500!important}
.auth-card .auth-login-options input,.auth-card .auth-terms input{width:13px;height:13px;margin:1px 0 0;padding:0;accent-color:#4387f7;box-shadow:none}
.auth-login-options button,.auth-switch button{padding:0;border:0;background:none;color:#377ff1;font-size:10px;font-weight:700;cursor:pointer}
.auth-terms b{color:#377ff1}
.auth-card .primary{height:43px;margin-top:3px;background:#4387f7;border-radius:9px;box-shadow:0 8px 15px rgba(55,126,241,.22);text-transform:capitalize}
.auth-divider{display:flex;align-items:center;gap:13px;margin:22px 0 17px;color:#a3abb7;font-size:9px;font-weight:800}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#e0e4ea}
.auth-google{width:100%;height:41px;border:1px solid #dce1e8;border-radius:9px;background:#fff;color:#4c5668;font-size:11px;font-weight:700;cursor:pointer}
.auth-google b{margin-right:8px;color:#4285f4;font-size:17px}
.auth-switch{margin:24px 0 0;text-align:center;color:#7d8797;font-size:10px}
.auth-switch button{font-size:10px}
.auth-card .form-message{font-size:10px}
@media(max-width:480px){.auth-card{padding:25px 22px}.auth-card h2{font-size:22px}}

/* Automatic customer day/night theme */
.customer-mode{font-family:Inter,"DM Sans",sans-serif;transition:background .35s,color .35s}
.theme-indicator{width:36px;height:36px;border:1px solid #31566b;border-radius:9px;background:#092231;color:#dcecf4;font-size:18px;cursor:default}
.customer-mode[data-time-theme="day"]{
  --ink:#111827;--muted:#697386;--bg:#f6f9ff;--line:#e3e9f2;--white:#fff;
  color:#111827;
  background:
    radial-gradient(circle at 18% 15%,rgba(59,130,246,.08),transparent 25rem),
    linear-gradient(180deg,#f7faff,#f1f6fd);
}
.customer-mode[data-time-theme="day"] .sidebar{
  background:rgba(255,255,255,.96);border-bottom:1px solid #e5eaf2;
  box-shadow:0 5px 18px rgba(24,39,75,.07);
}
.customer-mode[data-time-theme="day"] .brand{color:#111827}
.customer-mode[data-time-theme="day"] .brand-mark{background:linear-gradient(145deg,#4387f7,#3678e6)}
.customer-mode[data-time-theme="day"] .quick-tools button{color:#4d586a;border-color:#d8dee8}
.customer-mode[data-time-theme="day"] .quick-tools button:hover{color:#3b82f6;text-shadow:none}
.customer-mode[data-time-theme="day"] .topbar{background:rgba(255,255,255,.88);border-color:#e3e9f2;backdrop-filter:blur(14px)}
.customer-mode[data-time-theme="day"] .topbar h1{color:#172033}
.customer-mode[data-time-theme="day"] .topbar .eyebrow{color:#3b82f6}
.customer-mode[data-time-theme="day"] .sync-state{background:#fff;border-color:#e0e6ef;color:#637085}
.customer-mode[data-time-theme="day"] .theme-indicator{background:#fff;border-color:#e0e6ef;color:#596579}
.customer-mode[data-time-theme="day"] .view{color:#172033}
.customer-mode[data-time-theme="day"] .hero{
  border-color:#e1e8f2;background:
    radial-gradient(circle at 83% 25%,rgba(59,130,246,.14),transparent 17rem),
    linear-gradient(135deg,#fff,#f4f8ff);
}
.customer-mode[data-time-theme="day"] .hero h2,.customer-mode[data-time-theme="day"] .section-head h2{color:#111827;text-shadow:none}
.customer-mode[data-time-theme="day"] .hero>div>p:last-child,.customer-mode[data-time-theme="day"] .section-head>div>p:last-child{color:#687386}
.customer-mode[data-time-theme="day"] .eyebrow{color:#3b82f6}
.customer-mode[data-time-theme="day"] .panel,
.customer-mode[data-time-theme="day"] .action-card,
.customer-mode[data-time-theme="day"] .code-tool-panel{
  color:#172033;background:#fff;border-color:#e1e7f0;box-shadow:0 10px 28px rgba(31,48,79,.07);
}
.customer-mode[data-time-theme="day"] .panel-head h3,
.customer-mode[data-time-theme="day"] .operation-panel h4,
.customer-mode[data-time-theme="day"] .customer-account-toolbar h3{color:#172033}
.customer-mode[data-time-theme="day"] .customer-account-toolbar p{color:#7a8597}
.customer-mode[data-time-theme="day"] th{color:#596579;background:#f2f6fc;border-color:#e0e7f0}
.customer-mode[data-time-theme="day"] td{color:#374151;border-color:#e7ecf3}
.customer-mode[data-time-theme="day"] tbody tr:hover{background:#f4f8ff}
.customer-mode[data-time-theme="day"] .email-cell{color:#172033}
.customer-mode[data-time-theme="day"] .search-box,
.customer-mode[data-time-theme="day"] .toolbar select,
.customer-mode[data-time-theme="day"] .setting-field input,
.customer-mode[data-time-theme="day"] .setting-field select,
.customer-mode[data-time-theme="day"] .setting-field textarea,
.customer-mode[data-time-theme="day"] .code-input,
.customer-mode[data-time-theme="day"] .live-result-grid textarea{
  color:#263247;background:#fbfcfe;border-color:#dbe3ed;
}
.customer-mode[data-time-theme="day"] .search-box input{color:#172033}
.customer-mode[data-time-theme="day"] .tool-title{background:#eef4ff;color:#3478e5}
.customer-mode[data-time-theme="day"] .code-options>strong,
.customer-mode[data-time-theme="day"] .code-options label{color:#253044}
.customer-mode[data-time-theme="day"] .code-options label span{background:#e9f1ff;color:#3979df}
.customer-mode[data-time-theme="day"] .code-options input:checked+span{background:#3b82f6;color:#fff}
.customer-mode[data-time-theme="day"] .switch-row{background:#f4f7fb}
.customer-mode[data-time-theme="day"] .switch-row>span:last-child,
.customer-mode[data-time-theme="day"] .setting-field,
.customer-mode[data-time-theme="day"] .settings-heading h3{color:#273247}
.customer-mode[data-time-theme="day"] .settings-heading p,.customer-mode[data-time-theme="day"] .setting-field small{color:#8792a3}
.customer-mode[data-time-theme="day"] .context-menu{background:#fff;border-color:#dfe6ef}
.customer-mode[data-time-theme="day"] .context-menu button{color:#344054}
.customer-mode[data-time-theme="day"] .context-menu button:hover{background:#eff5ff;color:#3277e5}
.customer-mode[data-time-theme="day"] .context-title{color:#7d8797;border-color:#e6ebf2}
.customer-mode[data-time-theme="day"] .message-detail,
.customer-mode[data-time-theme="day"] .reader-account{background:#f8faff;border-color:#dfe6ef}
.customer-mode[data-time-theme="day"] .message-detail-head{background:#fff;color:#263247}
.customer-mode[data-time-theme="day"] .message-detail-body{background:#f8faff;border-color:#dfe6ef}
.customer-mode[data-time-theme="day"] .message-detail-body pre{color:#3d4859}
.customer-mode[data-time-theme="day"] .primary{background:#3b82f6;box-shadow:0 7px 16px rgba(59,130,246,.22)}
.customer-mode[data-time-theme="day"] .primary:hover{background:#2875eb}
.customer-mode[data-time-theme="day"] .secondary{background:#eef3fa;color:#435168;border-color:#dbe3ed}
.customer-mode[data-time-theme="day"] .oauth-title-line>strong{color:#ff4b32}
.account-menu-wrap{position:relative}
.account-trigger{height:40px;display:flex;align-items:center;gap:8px;padding:3px 10px 3px 3px;border:1px solid #31566b;border-radius:9px;background:#092231;color:#e6f3f9;cursor:pointer}
.account-trigger .avatar{width:33px;height:33px;display:grid;place-items:center;flex:none;border:0}
.account-label{display:grid;gap:1px;text-align:left;line-height:1.1}
.account-trigger b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.account-trigger small{color:#8ea8b7;font-size:8px;font-weight:700;letter-spacing:.3px}
.account-trigger i{font-style:normal;color:#8ea8b7}
.account-dropdown{position:absolute;right:0;top:47px;z-index:80;width:225px;padding:9px 0;border:1px solid #31566b;border-radius:11px;background:#103149;box-shadow:0 18px 42px rgba(0,0,0,.28)}
.account-dropdown button{width:100%;height:40px;display:flex;align-items:center;gap:11px;padding:0 15px;border:0;background:transparent;color:#d9e9f0;text-align:left;font-size:12px;cursor:pointer}
.account-dropdown button:hover{background:#17435a;color:#fff}
.account-dropdown button span{width:17px;color:#92abba;text-align:center}
.account-dropdown>div{height:1px;margin:7px 0;background:#315267}
.account-dropdown .account-logout{color:#ff6568}.account-dropdown .account-logout span{color:#ff6568}
.customer-mode[data-time-theme="day"] .account-trigger{background:#fff;border-color:#e1e7ef;color:#4b5668}
.customer-mode[data-time-theme="day"] .account-dropdown{background:#fff;border-color:#e2e7ee;box-shadow:0 18px 42px rgba(29,42,68,.16)}
.customer-mode[data-time-theme="day"] .account-dropdown button{color:#4d5869}
.customer-mode[data-time-theme="day"] .account-dropdown button:hover{background:#f3f7fd;color:#2875e6}
.customer-mode[data-time-theme="day"] .account-dropdown button span{color:#8a96a7}
.customer-mode[data-time-theme="day"] .account-dropdown>div{background:#e8ecf1}
.customer-mode[data-time-theme="day"] .account-dropdown .account-logout,.customer-mode[data-time-theme="day"] .account-dropdown .account-logout span{color:#ef4444}
@media(max-width:650px){.account-trigger b,.account-trigger i{display:none}.account-trigger{padding-right:3px}.account-dropdown{right:0}}

/* Customer readability pass */
.customer-mode .view{max-width:1560px;padding:38px 42px 70px}
.customer-mode .section-head h2{font-size:30px;letter-spacing:-.8px}
.customer-mode .section-head>div>p:last-child{font-size:14px}
.customer-mode .accounts-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
.customer-mode .accounts-panel{padding:24px}
.customer-mode .toolbar{padding-bottom:20px}
.customer-mode .search-box{width:360px;height:46px}
.customer-mode .toolbar select{height:46px;font-size:13px}
.customer-mode .selection-summary{min-height:54px;font-size:12px}
.customer-mode .batch-button{min-height:34px;padding:0 12px;font-size:11px}
.customer-mode th{padding:14px 12px;font-size:10px;letter-spacing:.8px}
.customer-mode td{height:54px;padding:14px 12px;font-size:13px}
.customer-mode .email-cell{font-size:13px;font-weight:800}
.customer-mode .badge{padding:6px 10px;font-size:10px;line-height:1.25}
.customer-mode .message-empty,.customer-mode .message-state,.customer-mode .message-preview{font-size:11px}
.customer-mode .account-task-panel{min-height:390px;padding:24px}
.customer-mode .operation-panel h4{font-size:16px}
.customer-mode .operation-panel>p{font-size:12px;line-height:1.6}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected{
  background:#e8f2ff;box-shadow:inset 4px 0 #3b82f6;
}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected:hover{background:#dcecff}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected td{color:#243248;border-color:#cadcf2}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected .email-cell{color:#12233d}
.customer-mode[data-time-theme="day"] .selectable-table tbody tr.selected .source-cell{color:#52657d}
.customer-mode[data-time-theme="day"] .batch-button{
  color:#2866c7;background:#e8f1ff;border-color:#bfd4f3;
}
.customer-mode[data-time-theme="day"] .batch-button:hover{color:#fff;background:#3b82f6;border-color:#3b82f6}
.customer-mode[data-time-theme="day"] .batch-button:disabled{color:#8b99aa;background:#eef1f5;border-color:#e0e5eb}
.customer-mode[data-time-theme="day"] .text-button{color:#2875e6}
.customer-mode[data-time-theme="day"] .accounts-panel{box-shadow:0 12px 34px rgba(30,55,90,.09)}
.customer-mode[data-time-theme="day"] .badge.pending{background:#fff0c7;color:#8a5a00}
.badge.waiting{background:#fff0c7;color:#8a5a00}
.badge.processing{background:#e2edff;color:#1f61d4}
.badge.stopped{background:#ffe8e8;color:#b52f3d}
.customer-mode[data-time-theme="night"] .badge.waiting{background:#72551a;color:#ffe3a4}
.customer-mode[data-time-theme="night"] .badge.processing{background:#173f78;color:#a9ccff}
.customer-mode[data-time-theme="night"] .badge.stopped{background:#6b2933;color:#ffd1d7}
.customer-mode[data-time-theme="day"] .badge.completed{background:#dff7eb;color:#087654}
.customer-mode[data-time-theme="day"] .badge.recovery{background:#e2edff;color:#245fbd}
.customer-mode[data-time-theme="day"] .account-task-panel{background:#fff}
@media(max-width:1000px){
  .customer-mode .accounts-layout{grid-template-columns:1fr}
  .customer-mode .view{padding:28px 22px 55px}
}

/* Keep long account lists inside their own scrollable table area. */
.customer-mode .accounts-panel .table-wrap{
  height:clamp(420px,calc(100vh - 350px),680px);
  min-height:0;margin-top:12px;overflow-x:auto;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-gutter:stable;
  border:1px solid rgba(118,145,166,.22);border-radius:10px;
}
.customer-mode .accounts-panel .selection-summary{
  position:sticky;top:0;z-index:5;padding:0 12px;
  background:#103149;border-bottom:1px solid #31566b;
}
.customer-mode .accounts-panel thead th{
  position:sticky;top:70px;z-index:4;
  box-shadow:0 1px 0 rgba(118,145,166,.25);
}
.customer-mode .accounts-panel table{margin:0}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar{width:13px;height:13px}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar-track{background:rgba(90,119,139,.12)}
.customer-mode .accounts-panel .table-wrap::-webkit-scrollbar-thumb{background:#527287;border:2px solid transparent;border-radius:999px;background-clip:padding-box}
.customer-mode[data-time-theme="day"] .accounts-panel .selection-summary{
  background:#fff;border-color:#e1e7ef;
}
.customer-mode[data-time-theme="day"] .accounts-panel .table-wrap{
  border-color:#dfe6ef;background:#fff;
}
.customer-mode[data-time-theme="day"] .accounts-panel .table-wrap::-webkit-scrollbar-track{background:#f1f4f8}
.customer-mode[data-time-theme="day"] .accounts-panel .table-wrap::-webkit-scrollbar-thumb{background:#aebdcd;border-color:#f1f4f8}
.table-top-scroll{
  position:sticky;top:54px;z-index:5;width:100%;height:16px;
  overflow-x:scroll;overflow-y:hidden;background:#0b293a;
  border-bottom:1px solid #31566b;
}
.table-top-scroll>div{height:1px}
.table-top-scroll::-webkit-scrollbar{height:14px}
.table-top-scroll::-webkit-scrollbar-track{background:#17384a}
.table-top-scroll::-webkit-scrollbar-thumb{background:#648499;border:3px solid #17384a;border-radius:999px}
.customer-mode[data-time-theme="day"] .table-top-scroll{background:#f5f8fc;border-color:#dfe6ef}
.customer-mode[data-time-theme="day"] .table-top-scroll::-webkit-scrollbar-track{background:#eef2f7}
.customer-mode[data-time-theme="day"] .table-top-scroll::-webkit-scrollbar-thumb{background:#9fb1c3;border-color:#eef2f7}
@media(max-height:700px){
  .customer-mode .accounts-panel .table-wrap{height:380px}
}

/* Slightly larger customer typography. */
.customer-mode{font-size:15px}
.customer-mode .quick-tools button{font-size:13px}
.customer-mode .topbar h1{font-size:18px}
.customer-mode .section-head>div>p:last-child{font-size:15px}
.customer-mode .search-box input,.customer-mode .toolbar select{font-size:14px}
.customer-mode .selection-summary{font-size:13px}
.customer-mode .batch-button{font-size:12px}
.customer-mode th{font-size:11px}
.customer-mode td,.customer-mode .email-cell{font-size:14px}
.customer-mode .badge{font-size:11px}
.customer-mode .message-empty,.customer-mode .message-state,.customer-mode .message-preview{font-size:12px}
.customer-mode .account-trigger b{font-size:12px}
.customer-mode .account-dropdown button{font-size:13px}
.customer-mode .primary,.customer-mode .secondary,.customer-mode .danger{font-size:13px}
.toolbar-right{display:flex;align-items:center;gap:9px}
.table-fullscreen-button{width:46px;height:46px;flex:none;border:1px solid #31566b;border-radius:9px;background:#0a293a;color:#dcecf4;font-size:21px;cursor:pointer}
.table-fullscreen-button:hover{background:#17445b;color:#43dc99}
.customer-mode[data-time-theme="day"] .table-fullscreen-button{background:#fff;border-color:#dbe3ed;color:#536176}
.customer-mode[data-time-theme="day"] .table-fullscreen-button:hover{background:#edf4ff;color:#347bed}
.accounts-panel.table-fullscreen{
  position:fixed;inset:12px;z-index:55;margin:0;padding:22px;
  width:auto;max-width:none;height:auto;border-radius:12px;
}
.accounts-panel.table-fullscreen .table-wrap{
  height:calc(100vh - 112px);max-height:none;
}
.account-table-expanded{overflow:hidden}
.accounts-panel.table-fullscreen .toolbar{margin:0}
.accounts-panel:not(.table-fullscreen) .selectable-table{width:100%;min-width:760px}
@media(max-width:760px){
  .toolbar-right{width:100%}
  .toolbar-right select{flex:1;min-width:0}
  .accounts-panel.table-fullscreen{inset:5px;padding:12px}
  .accounts-panel.table-fullscreen .table-wrap{height:calc(100vh - 96px)}
}

/* Drag handles for resizable account-table columns. */
.customer-mode .selectable-table{table-layout:fixed;min-width:900px}
.customer-mode .selectable-table thead th{position:sticky}
.customer-mode .selectable-table th,.customer-mode .selectable-table td{
  overflow-wrap:anywhere;word-break:normal;white-space:normal;
}
.customer-mode .selectable-table .email-cell{overflow-wrap:anywhere}
.customer-mode .selectable-table .badge{max-width:100%;white-space:normal}
.customer-mode .selectable-table th:not(:last-child),
.customer-mode .selectable-table td:not(:last-child){
  border-right:1px solid rgba(126,154,174,.26);
}
.customer-mode[data-time-theme="day"] .selectable-table th:not(:last-child),
.customer-mode[data-time-theme="day"] .selectable-table td:not(:last-child){
  border-right-color:#dce5ef;
}
.customer-mode[data-time-theme="night"] .selectable-table th:not(:last-child),
.customer-mode[data-time-theme="night"] .selectable-table td:not(:last-child){
  border-right-color:#31576d;
}
.column-resizer{
  position:absolute;top:0;right:-4px;width:9px;height:100%;
  z-index:8;cursor:col-resize;touch-action:none;
}
.column-resizer::after{
  content:"";position:absolute;top:18%;bottom:18%;left:4px;width:1px;
  background:#bed0df;opacity:.65;transition:.15s;
}
.column-resizer:hover::after,.resizing-column .column-resizer::after{
  width:2px;background:#3b82f6;opacity:1;
}
.resizing-column,.resizing-column *{cursor:col-resize!important;user-select:none!important}
.selectable-table.column-edge-active,
.selectable-table.column-edge-active td{cursor:col-resize}
.customer-mode[data-time-theme="night"] .column-resizer::after{background:#51768b}
.customer-mode[data-time-theme="night"] .column-resizer:hover::after,
.customer-mode[data-time-theme="night"].resizing-column .column-resizer::after{background:#43d89a}
.customer-mode .sidebar nav,.customer-mode .sidebar-foot{display:none}
.customer-mode .sidebar{height:80px}
.customer-mode .app-shell{padding-top:80px}
.customer-mode .brand{top:10px}
.customer-mode .quick-tools{top:24px}
.customer-mode .topbar{height:48px}
.customer-mode .nav-item{display:none}

.browser-monitor-help{margin:-10px 0 18px;padding:11px 14px;border:1px solid #cfe0f3;border-radius:10px;background:#eef6ff;color:#486078;font-size:13px}
.browser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}
.browser-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow);outline:0}
.browser-card:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.18),var(--shadow)}
.browser-card header{height:47px;padding:0 12px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line)}
.browser-card header b{font-size:13px}.browser-card header small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browser-card header button{margin-left:auto;border:0;background:#edf3fb;border-radius:7px;padding:6px 9px;cursor:pointer;color:#36516e}
.browser-card header button+button{margin-left:0}
.browser-monitor-actions{display:flex;gap:8px;flex-wrap:wrap}
.browser-live{width:8px;height:8px;border-radius:50%;background:#20c987;box-shadow:0 0 0 4px rgba(32,201,135,.13)}
.browser-screen{position:relative;aspect-ratio:16/9;background:#0a1722;overflow:hidden;cursor:crosshair}
.browser-screen img{display:block;width:100%;height:100%;object-fit:contain;user-select:none}
.browser-loading{position:absolute;inset:0;display:grid;place-items:center;color:#9eb0bf;font-size:13px;pointer-events:none}
.browser-screen.has-image .browser-loading{display:none}
.browser-card footer{padding:8px 12px;background:#f7f9fc;color:#718096;font-size:11px}
.browser-card.expanded{position:fixed;inset:14px;z-index:1000;border-radius:12px}
.browser-card.expanded .browser-screen{height:calc(100vh - 103px);aspect-ratio:auto}
.browser-empty{display:grid;place-items:center;min-height:270px;border:1px dashed #c8d4e1;border-radius:13px;color:var(--muted);background:rgba(255,255,255,.55)}
.customer-mode[data-time-theme="night"] .browser-monitor-help{background:#102c3e;border-color:#28516a;color:#b8cad8}
.customer-mode[data-time-theme="night"] .browser-card{background:#102c3e;border-color:#28516a}
.customer-mode[data-time-theme="night"] .browser-card header button,.customer-mode[data-time-theme="night"] .browser-card footer{background:#0b2231;color:#acc3d3}
.customer-mode[data-time-theme="night"] .browser-empty{background:#0b2231;border-color:#28516a}
@media(max-width:700px){.browser-grid{grid-template-columns:1fr}.browser-card.expanded{inset:4px}}
@media(max-width:900px){
  .customer-mode .quick-tools{display:flex;left:auto;right:12px;transform:none;overflow-x:auto;max-width:calc(100vw - 210px)}
  .customer-mode .quick-tools button{padding:0 9px;font-size:10px}
}

/* Refined login and registration experience */
.auth-screen{overflow:auto;padding:32px 18px;background:radial-gradient(circle at 12% 16%,rgba(59,130,246,.10),transparent 27%),radial-gradient(circle at 88% 82%,rgba(37,199,149,.09),transparent 25%),linear-gradient(145deg,#f8fbff 0%,#f3f6fb 52%,#eef3fa 100%)}
.auth-card{position:relative;width:min(460px,100%);padding:24px 38px 32px;overflow:hidden;border:1px solid rgba(210,220,234,.92);border-radius:22px;box-shadow:0 28px 75px rgba(29,52,84,.15),0 3px 10px rgba(29,52,84,.05);transition:width .25s ease,transform .25s ease}
.auth-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#3478f6,#5a8eff 50%,#21c997)}
.auth-brandline{display:flex;align-items:center;gap:9px;margin-bottom:18px;color:#15213a}
.auth-brandmark{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#4388fb,#2869e8);color:#fff;box-shadow:0 7px 16px rgba(52,120,246,.25)}
.auth-brandline strong{font:800 15px Manrope;letter-spacing:.3px}
.auth-brandline em{margin-left:auto;padding:4px 7px;border-radius:999px;background:#edf4ff;color:#3d78dc;font-size:8px;font-style:normal;font-weight:800;letter-spacing:.8px}
.auth-icon{width:48px;height:48px;margin-bottom:16px;border-radius:14px;background:linear-gradient(145deg,#5595ff,#3479ef);box-shadow:0 10px 22px rgba(52,121,239,.28)}
.auth-card h2{font-size:27px;letter-spacing:-.8px}
.auth-subtitle{margin:8px auto 20px;font-size:12.5px}
.auth-member-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:-7px 0 18px;color:#487097;font-size:10px;font-weight:600}
.auth-member-note span{width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:#e2f8ef;color:#13956b;font-size:9px}
.auth-card form{gap:14px}
.auth-card form>label{font-size:12px;color:#3f4b60}
.auth-input{height:46px;padding:0 12px;border-color:#d7e0ec;border-radius:11px;background:#f9fbfe}
.auth-input:hover{border-color:#bfcde0;background:#fff}
.auth-input:focus-within{border-color:#4a87ef;background:#fff;box-shadow:0 0 0 4px rgba(66,132,239,.10)}
.auth-card .auth-input input{font-size:13px}
.password-toggle{width:30px;height:30px;border-radius:8px}
.password-toggle:hover{background:#eaf1fb;color:#3d79df}
.auth-login-options{margin-top:2px;font-size:11px}
.auth-card .auth-login-options input,.auth-card .auth-terms input{width:15px;height:15px}
.auth-card .auth-terms.hidden{display:none!important}
.auth-card .primary{height:47px;margin-top:4px;border-radius:11px;font-size:12px;background:linear-gradient(135deg,#4388f7,#3477ed);box-shadow:0 10px 22px rgba(52,119,237,.25)}
.auth-card .primary:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(52,119,237,.30)}
.auth-card .primary:disabled{opacity:.65;transform:none;cursor:wait}
.auth-divider{margin:22px 0 17px}
.auth-google{height:45px;border-radius:11px;font-size:12px;transition:.18s}
.auth-google:hover{border-color:#bdcce0;background:#f8fbff;transform:translateY(-1px)}
.google-signin-wrap{min-height:45px;display:flex;align-items:center;justify-content:center}
.google-signin-wrap:empty{display:none}
.google-signin-wrap>div{max-width:100%!important}
.auth-google:disabled{opacity:.72;cursor:not-allowed;transform:none}
.auth-switch{margin-top:22px;font-size:11px}
.auth-switch button,.auth-login-options button{font-size:11px}
.auth-card .form-message{padding:9px 11px;border:1px solid #ffd1d5;border-radius:9px;background:#fff2f3;color:#b73543;font-size:11px;line-height:1.45}
@media(max-width:520px){.auth-screen{align-items:start;padding:14px 10px}.auth-card{padding:20px 20px 25px;border-radius:17px}.auth-brandline{margin-bottom:15px}.auth-card h2{font-size:23px}.auth-input{height:44px}}
