@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:300;font-display:swap;src:url("/fonts/source-sans-3-latin-ext-300-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:300;font-display:swap;src:url("/fonts/source-sans-3-latin-300-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/source-sans-3-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/source-sans-3-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ProTuLox internal admin shell v2 — admin-only. Never loaded by /app. */
:root{
  --admin-bg:#111315;--admin-bg-soft:#171a1d;--admin-panel:#1d2125;--admin-panel-2:#252a2f;
  --admin-line:rgba(255,255,255,.11);--admin-text:#f5f7f8;--admin-muted:#aeb7bd;
  --admin-accent:#ead84d;--admin-accent-hover:#e1f65f;--admin-chrome:#111315;
  --admin-shadow:0 16px 42px rgba(0,0,0,.18);
}
body.adminUi, body.crmPage{
  background:
    radial-gradient(circle at 78% 8%,rgba(234,216,77,.055),transparent 25%),
    linear-gradient(180deg,#15181b 0,#111315 28rem);
  color:var(--admin-text);font-family:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.adminUi .topbar, body.crmPage .topbar{
  background:rgba(17,19,21,.94);color:var(--admin-text);border-bottom:1px solid var(--admin-line);
  box-shadow:none;backdrop-filter:blur(14px);
}
body.adminUi .topbar__login, body.crmPage .topbar__login{color:#d7dde1;border-radius:7px}
body.adminUi .topbar__login:hover, body.crmPage .topbar__login:hover{color:#fff;background:rgba(255,255,255,.055)}
body.adminUi .adminPage, body.crmPage .adminPage{padding-top:22px}
body.adminUi .adminCard, body.crmPage .adminCard,
body.adminUi .adminStatsCard, body.crmPage .crmAgentPanel{
  background:var(--admin-panel);border-color:var(--admin-line);box-shadow:var(--admin-shadow);
}
body.adminUi .adminCard__title, body.crmPage .adminCard__title{color:var(--admin-text)}
body.adminUi .adminIntro, body.adminUi .adminMaintenanceHint, body.adminUi .adminOnlineHint,
body.crmPage .crmHint, body.crmPage .crmTableStatus{color:var(--admin-muted)}
body.adminUi .adminTableWrap, body.crmPage .adminTableWrap{background:var(--admin-panel);border-color:var(--admin-line)}
body.adminUi .adminTable thead th, body.crmPage .adminTable thead th{
  background:var(--admin-panel-2);color:#c4ccd1;font-size:.76rem;text-transform:uppercase;letter-spacing:.025em
}
body.adminUi .adminTable tbody tr, body.crmPage .adminTable tbody tr{border-color:var(--admin-line)}
body.adminUi .adminTable tbody tr:hover, body.crmPage .adminTable tbody tr:hover{background:rgba(234,216,77,.045)}
body.adminUi .btn--primary, body.crmPage .btn--primary{background:var(--admin-accent);border-color:var(--admin-accent);color:#161a05}
body.adminUi .input, body.adminUi select, body.adminUi input,
body.crmPage .input, body.crmPage select, body.crmPage input{
  border-color:var(--admin-line);background:var(--admin-panel-2);color:var(--admin-text)
}
.adminMobileNav{display:none}

/* Desktop: cleaner density, not fewer data. */
@media (min-width:761px){
  body.adminUi .adminTable td,body.adminUi .adminTable th,
  body.crmPage .adminTable td,body.crmPage .adminTable th{padding-top:9px;padding-bottom:9px}
}

/* Tablet/mobile: navigation becomes an app-like bottom bar. */
@media (max-width:760px){
  body.adminUi,body.crmPage{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body.adminUi .topbar,body.crmPage .topbar{padding:10px 12px}
  body.adminUi .topbar__right,body.crmPage .topbar__right{display:none!important}
  body.adminUi .appTitle__main,body.crmPage .appTitle__main{font-size:1rem}
  body.adminUi .appTitle__sub,body.crmPage .appTitle__sub{font-size:.74rem}
  .adminMobileNav{
    position:fixed;z-index:1000;display:grid;grid-template-columns:repeat(4,1fr);
    left:0;right:0;bottom:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    background:rgba(17,19,21,.96);border-top:1px solid var(--admin-line);backdrop-filter:blur(14px)
  }
  .adminMobileNav a{
    min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;
    color:var(--admin-muted);text-decoration:none;font-size:.75rem;font-weight:650;border-radius:9px
  }
  .adminMobileNav a[aria-current="page"]{color:var(--admin-accent);background:rgba(234,216,77,.10)}
  body.adminUi .adminPage,body.crmPage .adminPage{padding:12px 10px 20px;gap:12px}
  body.adminUi .adminCard,body.crmPage .adminCard{padding:12px;border-radius:12px}
  body.adminUi .adminCard__header,body.crmPage .adminCard__header{align-items:flex-start}
  body.adminUi .adminCard__title,body.crmPage .adminCard__title{font-size:1rem}
  body.adminUi .adminIntro{font-size:.86rem;line-height:1.4}
  body.adminUi .adminTableWrap,body.crmPage .adminTableWrap{
    max-height:none;overflow:visible;border-radius:10px
  }
  body.adminUi .adminTable,body.crmPage .adminTable{min-width:0!important;width:100%;table-layout:auto}
  body.adminUi .adminTable th,body.adminUi .adminTable td,
  body.crmPage .adminTable th,body.crmPage .adminTable td{
    padding:10px 8px;font-size:.82rem;overflow-wrap:anywhere
  }
  body.adminUi .adminToolbar,body.crmPage .crmFilters{gap:8px}
  body.adminUi .adminFilterLabel__text,body.crmPage .adminFilterLabel__text{font-size:.72rem}
  body.adminUi .adminActions,body.crmLeadsPage .adminActions{width:100%}
  body.adminUi .adminActions .btn,body.crmLeadsPage .adminActions .btn{flex:1 1 auto}

  /* Admin > online: identity, device, last activity. */
  .adminTable--online th:nth-child(2),.adminTable--online td:nth-child(2),
  .adminTable--online th:nth-child(3),.adminTable--online td:nth-child(3),
  .adminTable--online th:nth-child(6),.adminTable--online td:nth-child(6){display:none}

  /* Admin > tenants: identity + tariff + billing + email. Row opens full detail. */
  .adminTable--tenants th:nth-child(4),.adminTable--tenants td:nth-child(4),
  .adminTable--tenants th:nth-child(5),.adminTable--tenants td:nth-child(5),
  .adminTable--tenants th:nth-child(6),.adminTable--tenants td:nth-child(6),
  .adminTable--tenants th:nth-child(7),.adminTable--tenants td:nth-child(7),
  .adminTable--tenants th:nth-child(9),.adminTable--tenants td:nth-child(9),
  .adminTable--tenants th:nth-child(10),.adminTable--tenants td:nth-child(10),
  .adminTable--tenants th:nth-child(11),.adminTable--tenants td:nth-child(11),
  .adminTable--tenants th:nth-child(12),.adminTable--tenants td:nth-child(12),
  .adminTable--tenants th:nth-child(13),.adminTable--tenants td:nth-child(13){display:none}

  /* Tenant users: email, plan, billing, action. */
  .adminTable--users th:nth-child(2),.adminTable--users td:nth-child(2),
  .adminTable--users th:nth-child(4),.adminTable--users td:nth-child(4),
  .adminTable--users th:nth-child(5),.adminTable--users td:nth-child(5),
  .adminTable--users th:nth-child(7),.adminTable--users td:nth-child(7),
  .adminTable--users th:nth-child(8),.adminTable--users td:nth-child(8),
  .adminTable--users th:nth-child(9),.adminTable--users td:nth-child(9),
  .adminTable--users th:nth-child(10),.adminTable--users td:nth-child(10),
  .adminTable--users th:nth-child(11),.adminTable--users td:nth-child(11){display:none}

  /* CRM leads: firm, score, state, next step, contact action. */
  .crmTable--leads th:nth-child(2),.crmTable--leads td:nth-child(2),
  .crmTable--leads th:nth-child(5),.crmTable--leads td:nth-child(5),
  .crmTable--leads th:nth-child(6),.crmTable--leads td:nth-child(6),
  .crmTable--leads th:nth-child(8),.crmTable--leads td:nth-child(8),
  .crmTable--leads th:nth-child(9),.crmTable--leads td:nth-child(9){display:none}
  .crmTable--drafts th:nth-child(2),.crmTable--drafts td:nth-child(2),
  .crmTable--drafts th:nth-child(3),.crmTable--drafts td:nth-child(3),
  .crmTable--drafts th:nth-child(5),.crmTable--drafts td:nth-child(5){display:none}

  /* Agent history: time, agent, state, attention. Detail is tap/click. */
  .crmAgentRunsTable th:nth-child(4),.crmAgentRunsTable td:nth-child(4),
  .crmAgentRunsTable th:nth-child(5),.crmAgentRunsTable td:nth-child(5),
  .crmAgentRunsTable th:nth-child(6),.crmAgentRunsTable td:nth-child(6),
  .crmAgentRunsTable th:nth-child(7),.crmAgentRunsTable td:nth-child(7){display:none}
  .crmAgentRunsTable{min-width:0!important}

  /* Promo tables: keep operational columns only. */
  .adminPromoGroupsTable th:nth-child(2),.adminPromoGroupsTable td:nth-child(2),
  .adminPromoGroupsTable th:nth-child(4),.adminPromoGroupsTable td:nth-child(4),
  .adminPromoGroupsTable th:nth-child(5),.adminPromoGroupsTable td:nth-child(5){display:none}
  .adminPromoCodesTable th:nth-child(3),.adminPromoCodesTable td:nth-child(3),
  .adminPromoCodesTable th:nth-child(5),.adminPromoCodesTable td:nth-child(5){display:none}

  body.crmPage .crmDash{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  body.crmPage .crmDash__card{min-width:0}
  body.crmPage .crmDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
}
@media (max-width:480px){
  .adminTable--tenants th:nth-child(1),.adminTable--tenants td:nth-child(1){display:none}
  .adminTable--tenants th:nth-child(8),.adminTable--tenants td:nth-child(8){max-width:11rem}
  .crmTable--leads th:nth-child(7),.crmTable--leads td:nth-child(7){display:none}
  body.crmPage .crmAgentStats{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* CRM mobile work cockpit */
.crmMobileCockpit,
.crmMobileLeadList,
.crmMobileDraftList{display:none}

@media (max-width:760px){
  .crmMobileCockpit{
    display:grid!important;
    gap:16px;
    padding:14px!important;
    border-radius:12px!important;
    background:
      radial-gradient(circle at 92% 0,rgba(234,216,77,.09),transparent 28%),
      var(--admin-panel)!important;
  }
  .crmMobileCockpit__head{
    display:flex;align-items:flex-start;justify-content:space-between;gap:12px
  }
  .crmMobileEyebrow{
    margin:0 0 3px;color:var(--admin-accent);font-size:.72rem;font-weight:700;
    letter-spacing:.11em;text-transform:uppercase
  }
  .crmMobileSectionTitle{
    margin:0 0 8px;font-size:.82rem;font-weight:600;color:#cbd2d6;
    letter-spacing:.04em;text-transform:uppercase
  }
  .crmMobileDailySummary{
    display:grid;gap:8px;padding:12px;border:1px solid var(--admin-line);
    border-radius:10px;background:var(--admin-bg-soft)
  }
  .crmMobileDailySummary__headline{display:grid;gap:2px}
  .crmMobileDailySummary__headline strong{font-size:1rem}
  .crmMobileDailySummary__headline span{color:var(--admin-muted);font-size:.84rem}
  .crmMobileDailySummary__attention{
    padding:7px 9px;border-radius:7px;background:rgba(234,216,77,.10);
    color:var(--admin-accent);font-size:.82rem;font-weight:600
  }
  .crmMobileDailySummary__list{
    margin:2px 0 0;padding-left:1.05rem;color:#c2c9cd;font-size:.8rem;line-height:1.4
  }
  .crmMobileWork{display:grid;gap:8px}
  .crmMobileWorkItem{
    width:100%;display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;
    min-height:58px;padding:9px 10px;border:1px solid var(--admin-line);border-radius:9px;
    background:var(--admin-bg-soft);color:var(--admin-text);text-align:left
  }
  .crmMobileWorkItem__count{
    display:grid;place-items:center;width:36px;height:36px;border-radius:8px;
    background:rgba(234,216,77,.09);color:var(--admin-accent);font-weight:700
  }
  .crmMobileWorkItem__copy{display:grid;gap:1px}
  .crmMobileWorkItem__copy strong{font-size:.9rem}
  .crmMobileWorkItem__copy small{color:var(--admin-muted);font-size:.75rem}
  .crmMobilePriorityLeads{display:grid;gap:8px}
  .crmMobilePriorityCard{
    display:grid;gap:5px;width:100%;padding:11px 12px;border:1px solid var(--admin-line);
    border-radius:9px;background:linear-gradient(145deg,var(--admin-panel-2),#1a1e21);
    color:var(--admin-text);text-align:left
  }
  .crmMobilePriorityCard__row,.crmMobileLeadCard__top{
    display:flex;justify-content:space-between;align-items:flex-start;gap:10px
  }
  .crmMobilePriorityCard__meta,.crmMobileLeadCard__meta{
    color:var(--admin-muted);font-size:.78rem
  }
  .crmMobilePriorityCard__next,.crmMobileLeadCard__next{
    color:#d8dee1;font-size:.82rem;line-height:1.35
  }
  .crmMobileScore{
    flex:0 0 auto;min-width:34px;padding:3px 7px;border:1px solid rgba(234,216,77,.25);
    border-radius:999px;color:var(--admin-accent);font-size:.75rem;font-weight:700;text-align:center
  }
  .crmMobileLeadList,.crmMobileDraftList{display:grid;gap:9px}
  .crmMobileLeadCard{
    width:100%;display:grid;gap:6px;padding:12px;border:1px solid var(--admin-line);
    border-radius:10px;background:var(--admin-panel);color:var(--admin-text);text-align:left;
    box-shadow:0 8px 22px rgba(0,0,0,.10)
  }
  .crmMobileLeadCard__company{font-size:.95rem}
  .crmMobileLeadCard__flags{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
  .crmMobileBadge{
    padding:3px 7px;border:1px solid var(--admin-line);border-radius:999px;
    color:#c5ccd1;font-size:.68rem;font-weight:600
  }
  .crmMobileBadge--hot{
    border-color:rgba(234,216,77,.32);color:var(--admin-accent);background:rgba(234,216,77,.06)
  }
  .crmMobileBadge--blocked{color:#ffaaaa;border-color:rgba(255,90,90,.24)}
  .crmMobileEmpty{
    margin:0;padding:10px 0;color:var(--admin-muted);font-size:.84rem
  }

  /* The phone uses work cards, not desktop tables. */
  .crmLeadsPage .crmDesktopDashboard{display:none!important}
  .crmLeadsPage .crmTableWrap{display:none!important}
  .crmLeadsPage #crmDraftsTitle ~ .adminTableWrap{display:none!important}

  /* Filters are secondary on phone. Keep search first, collapse density. */
  .crmLeadsPage #crmFilters{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important
  }
  .crmLeadsPage #crmFilters .adminFilterLabel:first-child{grid-column:1/-1}
  .crmLeadsPage #crmFilters .adminFilterLabel:first-child input{min-height:44px}
  .crmLeadsPage #crmFilters .adminFilterLabel{min-width:0!important}
  .crmLeadsPage #crmFilters select{width:100%!important;min-width:0!important}

  /* Mail maintenance actions are not primary mobile work. */
  .crmLeadsPage #crmMailboxStatus{font-size:.76rem!important}
  .crmLeadsPage .adminActions{
    display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important
  }
  .crmLeadsPage #crmMailboxPurgeUnlinked{grid-column:1/-1}

  /* Lead detail behaves like a dedicated mobile screen. */
  .crmLeadsPage .crmDialog__bar{
    position:sticky;top:0;z-index:4;background:var(--admin-bg-soft);
    border-bottom:1px solid var(--admin-line);padding:10px 12px!important
  }
  .crmLeadsPage .crmDialog__body{padding:12px!important}
  .crmLeadsPage .crmWorkboard{grid-template-columns:1fr!important}
  .crmLeadsPage .crmFacts{grid-template-columns:1fr!important}
  .crmLeadsPage .crmEditGrid{grid-template-columns:1fr!important}
}
@media (max-width:420px){
  .crmLeadsPage #crmFilters{grid-template-columns:1fr!important}
  .crmLeadsPage #crmFilters .adminFilterLabel:first-child{grid-column:auto}
  .crmLeadsPage .adminActions{grid-template-columns:1fr!important}
  .crmLeadsPage #crmMailboxPurgeUnlinked{grid-column:auto}
}

@media (max-width:760px){
  .crmMobileDraftCard{
    width:100%;display:grid;gap:5px;padding:11px 12px;border:1px solid var(--admin-line);
    border-radius:10px;background:var(--admin-panel);color:var(--admin-text);text-align:left
  }
  .crmMobileDraftCard__top{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .crmMobileDraftCard__recipient{color:var(--admin-muted);font-size:.76rem}
  .crmMobileDraftCard__subject{
    color:#d9dee1;font-size:.82rem;line-height:1.35;display:-webkit-box;
    -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
  }
  .crmMobileLeadCard,.crmMobilePriorityCard,.crmMobileDraftCard,.crmMobileWorkItem{
    -webkit-tap-highlight-color:transparent;cursor:pointer
  }
  .crmMobileLeadCard:active,.crmMobilePriorityCard:active,.crmMobileDraftCard:active,.crmMobileWorkItem:active{
    border-color:rgba(234,216,77,.35);background:var(--admin-panel-2)
  }
  .crmLeadsPage #crmLeadsSection > .adminCard__header{
    position:sticky;top:0;z-index:3;padding:4px 0 8px;
    background:linear-gradient(180deg,var(--admin-bg) 78%,rgba(17,19,21,0))
  }
}


/* Mobile admin tables: readable card rows with optional expansion. */
@media (max-width:760px){
  .adminResponsiveTable{
    display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important
  }
  .adminResponsiveTable thead{display:none!important}
  .adminResponsiveTable tbody{display:grid!important;gap:10px!important;width:100%!important}
  .adminResponsiveTable tbody tr.adminMobileCardRow{
    display:grid!important;grid-template-columns:1fr!important;gap:0!important;
    width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
    border:1px solid var(--admin-line)!important;border-radius:10px!important;
    background:linear-gradient(145deg,var(--admin-panel),#191d20)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.12)!important
  }
  .adminResponsiveTable tbody tr.adminMobileCardRow td{
    display:grid!important;grid-template-columns:minmax(6.6rem,38%) minmax(0,1fr)!important;
    gap:10px!important;align-items:start!important;width:auto!important;max-width:none!important;
    padding:8px 12px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.065)!important;
    box-shadow:none!important;text-align:left!important;white-space:normal!important;overflow:visible!important;
    text-overflow:clip!important;word-break:break-word!important
  }
  .adminResponsiveTable tbody tr.adminMobileCardRow td::before{
    content:attr(data-mobile-label);color:#89939a;font-size:.69rem;font-weight:600;
    letter-spacing:.04em;text-transform:uppercase;line-height:1.35
  }
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobilePrimary{
    display:block!important;padding:12px!important;color:var(--admin-text)!important;
    font-size:.97rem!important;font-weight:600!important;background:rgba(255,255,255,.018)!important
  }
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobilePrimary::before{display:none!important}
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobileSecondary{display:none!important}
  .adminResponsiveTable tbody tr.adminMobileCardRow.is-mobile-expanded td.adminMobileSecondary{display:grid!important}
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobileLast{display:grid!important;border-bottom:0!important}
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobileToggleCell{
    display:flex!important;justify-content:flex-end!important;padding:6px 10px!important;
    border-top:1px solid rgba(255,255,255,.045)!important;border-bottom:0!important
  }
  .adminResponsiveTable tbody tr.adminMobileCardRow td.adminMobileToggleCell::before{display:none!important}
  .adminMobileMoreBtn{
    min-height:34px;padding:5px 10px;border:1px solid var(--admin-line);border-radius:7px;
    background:transparent;color:var(--admin-accent);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer
  }
  .adminMobileCardRow--empty td{
    display:block!important;padding:16px!important;text-align:center!important;color:var(--admin-muted)!important
  }
  .adminMobileCardRow--empty td::before{display:none!important}
}


.crmMobileFilterToggle{display:none}
@media (max-width:760px){
  .crmMobileFilterToggle{
    display:inline-flex;align-items:center;justify-content:center;min-height:40px;
    margin:0 0 8px;padding:7px 11px;border:1px solid var(--admin-line);border-radius:8px;
    background:var(--admin-panel-2);color:var(--admin-text);font:inherit;font-size:.82rem;font-weight:600
  }
  .crmLeadsPage #crmFilters .adminFilterLabel:not(:first-child){display:none}
  .crmLeadsPage #crmFilters.is-mobile-open .adminFilterLabel{display:flex}
  .crmLeadsPage #crmFilters:not(.is-mobile-open){grid-template-columns:1fr!important}
  .adminMobileTenantTitle{font-size:.98rem;font-weight:600;color:var(--admin-text)}
  .adminMobileTenantMeta{margin-top:2px;color:var(--admin-muted);font-size:.72rem;font-weight:400}
}

@media (max-width:760px){
  .crmMobileDailySummary__attention{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .crmMobileDailySummary__attention a{color:var(--admin-accent);font-size:.78rem;font-weight:600;text-decoration:none;white-space:nowrap}
}

/* Admin shell v3: Agent Center is a mobile cockpit, not a desktop table. */
@media (max-width:760px){
  body.crmPage:not(.crmLeadsPage) .crmAgentHero{padding:14px!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentHero__actions{width:100%;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentModeBadge{font-size:.7rem!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentStats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentStat{min-height:76px!important;padding:10px!important;border:1px solid var(--admin-line)!important;border-radius:10px!important;background:var(--admin-bg-soft)!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentStat strong{font-size:1.35rem!important;color:var(--admin-text)!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentStat span{font-size:.7rem!important;color:var(--admin-muted)!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentCards{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentCard{border:1px solid var(--admin-line)!important;border-radius:11px!important;background:linear-gradient(145deg,var(--admin-panel),#191d20)!important;box-shadow:0 8px 22px rgba(0,0,0,.12)!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentCardSettings>summary{min-height:42px!important}
  body.crmPage:not(.crmLeadsPage) .crmLegacy{margin-bottom:8px!important}
  body.crmPage:not(.crmLeadsPage) .crmLegacy:not([open]){opacity:.82}
  body.crmPage:not(.crmLeadsPage) .crmAgentRunsTable{min-width:0!important}
  body.crmPage:not(.crmLeadsPage) .adminTableWrap{overflow:visible!important}
  body.crmPage:not(.crmLeadsPage) .crmAgentRunDetail{position:fixed!important;inset:0!important;z-index:50!important;margin:0!important;padding:14px!important;overflow:auto!important;border:0!important;border-radius:0!important;background:var(--admin-bg)!important}
}

/* Keep the visual language aligned with the current dark landing-v2. */
.adminUi .topbar{
  background:rgba(17,19,21,.92)!important;
  border-bottom:1px solid var(--admin-line)!important;
  backdrop-filter:blur(14px);
}
.adminUi .appTitle__main{font-weight:600!important;letter-spacing:-.015em}
.adminUi .adminCard{
  border:1px solid var(--admin-line)!important;
  background:linear-gradient(145deg,var(--admin-panel),#191d20)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.12)!important;
}
