
/* Desktop tightening + safe button fit */
@media (min-width:1200px){
  *,*::before,*::after{box-sizing:border-box!important;}
  html,body{max-width:100%!important;overflow-x:hidden!important;}

  #adminScreen main.page,
  #mgrScreen main.page,
  #empScreen main.page{
    width:calc(100vw - 24px)!important;
    max-width:none!important;
    margin:10px auto 0!important;
    padding:0 0 24px!important;
    overflow:visible!important;
  }

  #adminScreen .topnav,
  #mgrScreen .topnav,
  #empScreen .topnav{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    margin:8px auto 0!important;
    height:68px!important;
  }

  /* remove unnecessary vertical space */
  #adminScreen #dt07ExtraHero{
    min-height:0!important;
    padding:24px 28px 18px!important;
    margin:0 0 10px!important;
    border-radius:25px!important;
  }
  #adminScreen .dt07-extra-hero-copy h2{font-size:36px!important;margin-bottom:3px!important;}
  #adminScreen .dt07-extra-hero-copy p{font-size:12.5px!important;}
  #adminScreen .dt07-extra-kicker{margin-bottom:9px!important;}
  #adminScreen .dt07-extra-focus-ring{width:82px!important;height:82px!important;flex-basis:82px!important;}
  #adminScreen .dt07-extra-focus-ring strong{font-size:23px!important;}
  #adminScreen .dt07-extra-focus-ring span{margin-top:33px!important;font-size:7px!important;}
  #adminScreen .dt07-extra-hero-chips{margin-top:14px!important;gap:10px!important;grid-template-columns:repeat(3,minmax(150px,210px))!important;}
  #adminScreen .dt07-extra-hero-chip{padding:10px 12px!important;}
  #adminScreen .dt07-extra-hero-chip b{font-size:17px!important;}
  #adminScreen .dt07-extra-hero-meta{margin-top:12px!important;padding-top:10px!important;}

  #adminScreen #dt07ExtraSmart{
    gap:10px!important;
    margin:0 0 10px!important;
    grid-template-columns:1.12fr .86fr 1fr!important;
  }
  #adminScreen #dt07ExtraSmart > .dt07-extra-section{
    min-height:210px!important;
    border-radius:18px!important;
  }
  #adminScreen .dt07-extra-head{padding:12px 13px 8px!important;}
  #adminScreen .dt07-extra-head h3{font-size:14px!important;}
  #adminScreen .dt07-focus-grid{gap:6px!important;padding:0 10px 10px!important;}
  #adminScreen .dt07-focus-card{min-height:56px!important;padding:8px!important;}
  #adminScreen .dt07-summary-item{min-height:58px!important;}
  #adminScreen .dt07-summary-item b{font-size:18px!important;}
  #adminScreen .dt07-activity-row{padding:9px 11px!important;}

  #adminScreen #dashboard.metrics{
    gap:8px!important;
    margin:0 0 8px!important;
  }
  #adminScreen #dashboard .metric{
    min-height:82px!important;
    padding:11px 14px!important;
    border-radius:15px!important;
  }
  #adminScreen #dashboard .metric-val{font-size:27px!important;}

  #adminScreen #dt07ExtraMenuTools{margin:0 0 7px!important;}
  #adminScreen .dt07-filter-row{gap:6px!important;flex-wrap:wrap!important;overflow:visible!important;}
  #adminScreen .dt07-filter-chip{height:34px!important;padding:0 11px!important;font-size:9px!important;}
  #adminScreen .dt07-search-toggle{width:36px!important;height:34px!important;}

  /* Home menu: always stay inside desktop viewport */
  #adminScreen .dt17-social-card.dt17-home-actions-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 10px!important;
    overflow:hidden!important;
    border-radius:20px!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-social-block{
    width:100%!important;
    min-width:0!important;
    padding:10px!important;
    overflow:hidden!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-home-actions-grid,
  #adminScreen .dt17-home-actions-grid.dt07-future-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:9px!important;
    overflow:hidden!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn,
  #adminScreen .dt17-home-actions-grid.dt07-future-grid > .dt17-home-action-btn{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:106px!important;
    border-radius:17px!important;
    overflow:hidden!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn > span:not(.qnav-icon):not(.dt07-future-count):not(.dt07-future-edge):not(.dt07-future-dot),
  #adminScreen .dt17-home-actions-grid.dt07-future-grid > .dt17-home-action-btn > span:not(.qnav-icon):not(.dt07-future-count):not(.dt07-future-edge):not(.dt07-future-dot){
    left:13px!important;top:13px!important;right:45px!important;font-size:13px!important;
    max-width:calc(100% - 58px)!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn .qnav-icon,
  #adminScreen .dt17-home-actions-grid.dt07-future-grid > .dt17-home-action-btn .qnav-icon{
    width:38px!important;height:38px!important;left:12px!important;bottom:12px!important;border-radius:12px!important;
  }
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn .qnav-icon svg,
  #adminScreen .dt17-home-actions-grid.dt07-future-grid > .dt17-home-action-btn .qnav-icon svg{width:20px!important;height:20px!important;}
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn .dt07-future-dot{left:58px!important;bottom:29px!important;}
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn .dt07-future-count{right:34px!important;top:12px!important;height:19px!important;font-size:11px!important;}
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn .dt07-future-edge{right:11px!important;top:11px!important;width:26px!important;}
  #adminScreen .dt17-home-actions-card .dt17-home-action-btn::after{right:10px!important;font-size:20px!important;}

  /* regular sections — tighter spacing */
  #adminScreen .panel,
  #adminScreen .dt17-social-card:not(.dt17-home-actions-card),
  #mgrScreen .panel,
  #mgrScreen .dt17-social-card,
  #empScreen .panel,
  #empScreen .dt17-social-card{
    margin-bottom:9px!important;
  }
}

@media (min-width:1600px){
  /* keep 5 columns so cards never become too narrow/overflow */
  #adminScreen .dt17-home-actions-card .dt17-home-actions-grid,
  #adminScreen .dt17-home-actions-grid.dt07-future-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}

/* ══════════════════════════════════════════════════════════════
   DT17-CLONE-HOME — Admin Home/Dashboard desktop redesign,
   light theme polish (no dark backgrounds).
   Scoped strictly to #adminScreen, active only at desktop widths.
   Mobile (<1024px) keeps the original layout untouched.
   ══════════════════════════════════════════════════════════════ */
:root{
  --dc-navy:#1d3a72;--dc-navy-txt:#102b5e;
  --dc-bg:#f4f6fb;--dc-surface:#ffffff;--dc-surface2:#f8fafc;
  --dc-border:#e6eaf1;--dc-text:#0f172a;--dc-text2:#64748b;--dc-text3:#94a3b8;
  --dc-accent:#2563eb;--dc-accent-soft:#eaf1ff;--dc-gold:#f0a824;--dc-slate:#64748b;
  --dc-page:var(--dc-bg);
}
#adminScreen .dt17c-shell{display:none;}
#adminScreen .dt17c-header{display:none;}
@media (min-width:1024px){
  #adminScreen{background:var(--dc-bg)!important;}
  #adminScreen > .offline-bar{display:none!important;}
  #adminScreen > header.topnav,
  #adminScreen > nav.bottom-nav.admin-nav-clean{display:none!important;}
  #adminScreen #dt17SimpleTopAtt{display:none!important;}
  #adminScreen .dt17c-header{display:block!important;position:sticky;top:0;z-index:40;background:var(--dc-surface);border-bottom:1px solid var(--dc-border);}
  #adminScreen .dt17c-header-top{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;}
  #adminScreen .dt17c-header-left{display:flex;align-items:center;gap:10px;}
  #adminScreen .dt17c-header-logo{width:32px;height:32px;border-radius:10px;background:var(--dc-navy-txt);color:#fff;display:flex;align-items:center;justify-content:center;}
  #adminScreen .dt17c-header-logo svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-header-title{color:var(--dc-text);font-weight:800;font-size:17px;letter-spacing:-.01em;}
  #adminScreen .dt17c-header-right{display:flex;align-items:center;gap:10px;}
  #adminScreen .dt17c-hbtn{width:36px;height:36px;border-radius:50%;background:var(--dc-surface2);border:1px solid var(--dc-border);color:var(--dc-text2);display:flex;align-items:center;justify-content:center;cursor:pointer;}
  #adminScreen .dt17c-hbtn:hover{background:var(--dc-accent-soft);color:var(--dc-accent);}
  #adminScreen .dt17c-hbtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-header-av{position:relative;width:36px;height:36px;border-radius:50%;background:var(--dc-gold);color:#3a2400;font-weight:800;font-size:13px;border:2px solid #fff;box-shadow:0 0 0 1px var(--dc-border);display:flex;align-items:center;justify-content:center;cursor:pointer;}
  #adminScreen .dt17c-header-av .dropdown{right:0;left:auto;top:44px;}
  #adminScreen .dt17c-header-status{height:48px;background:var(--dc-surface2);display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--dc-border);}
  #adminScreen .dt17c-status-left{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#334155;min-width:0;}
  #adminScreen .dt17c-status-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.18);flex:0 0 8px;}
  #adminScreen .dt17c-status-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;}
  #adminScreen .dt17c-status-btn{height:32px;padding:0 18px;border-radius:20px;border:none;background:#ff8a1a;color:#fff;font-size:13px;font-weight:700;font-family:var(--font);cursor:pointer;}
  #adminScreen .dt17c-status-btn:hover{background:#ff7a00;}
  #adminScreen .dt17c-status-btn.go{background:#10b981;}
  #adminScreen .dt17c-status-btn.go:hover{background:#059669;}
  #adminScreen .dt17c-status-btn span{display:none;}

  #adminScreen .dt17c-shell{display:flex!important;align-items:stretch;min-height:100vh;font-family:var(--font);}

  /* Hide the app's original mobile dashboard widgets — replaced visually below,
     data/IDs are still read from them via JS, kept in DOM but invisible */
  #adminScreen .dt17c-main .dt07-extra-hero,
  #adminScreen .dt17c-main .dt07-extra-smart,
  #adminScreen .dt17c-main > .metrics:first-of-type,
  #adminScreen .dt17c-main #adminSelfAttPanel,
  #adminScreen .dt17c-main #dt17SocialHome_adminScreen,
  #adminScreen .dt17c-main .qnav-grid{display:none!important;}
  /* these two have higher-specificity !important rules elsewhere (responsive tweaks)
     that were winning and causing duplicate rendering — override them directly */
  #adminScreen #dashboard.metrics{display:none!important;}
  #adminScreen #dt07ExtraSmart{display:none!important;}

  /* ── Sidebar ── */
  #adminScreen .dt17c-sidebar{
    width:260px;flex:0 0 260px;background:var(--dc-surface);color:var(--dc-text2);
    border-right:1px solid var(--dc-border);
    display:flex;flex-direction:column;position:sticky;top:0;height:100vh;
  }
  #adminScreen .dt17c-sidebar-scroll{flex:1 1 auto;overflow-y:auto;padding:20px 16px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;}
  #adminScreen .dt17c-sidebar-scroll::-webkit-scrollbar{width:6px;}
  #adminScreen .dt17c-sidebar-scroll::-webkit-scrollbar-track{background:transparent;}
  #adminScreen .dt17c-sidebar-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:6px;}
  #adminScreen .dt17c-nav-group{margin-bottom:28px;}
  #adminScreen .dt17c-nav-title{padding:0 12px 12px;font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--dc-text3);}
  #adminScreen .dt17c-nav-item{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:36px;padding:0 12px;border-radius:12px;border:none;background:none;cursor:pointer;font-family:var(--font);transition:background .15s,color .15s;color:var(--dc-text2);}
  #adminScreen .dt17c-nav-item:hover{background:var(--dc-surface2);color:var(--dc-text);}
  #adminScreen .dt17c-nav-item.active{background:var(--dc-accent-soft);color:var(--dc-accent);}
  #adminScreen .dt17c-nav-item{display:flex;}
  #adminScreen .dt17c-nav-item .dt17c-nav-bar{position:absolute;left:-16px;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--dc-accent);display:none;}
  #adminScreen .dt17c-nav-item.active .dt17c-nav-bar{display:block;}
  #adminScreen .dt17c-nav-item > svg{width:18px;height:18px;flex:0 0 18px;stroke:var(--dc-text3);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-nav-item.active > svg{stroke:var(--dc-accent);}
  #adminScreen .dt17c-nav-item:hover > svg{stroke:var(--dc-text);}
  #adminScreen .dt17c-nav-item > span:not(.dt17c-badge):not(.dt17c-nav-bar){flex:1 1 auto;text-align:left;font-size:13.5px;font-weight:500;}
  #adminScreen .dt17c-nav-item.active > span:not(.dt17c-badge):not(.dt17c-nav-bar){font-weight:600;}
  #adminScreen .dt17c-badge{font-size:11px;background:var(--dc-surface2);border:1px solid var(--dc-border);color:var(--dc-text2);padding:1px 8px;border-radius:20px;min-width:20px;text-align:center;}
  #adminScreen .dt17c-sidebar-foot{padding:16px;}
  #adminScreen .dt17c-foot-card{display:flex;align-items:center;gap:10px;border-radius:16px;padding:14px;background:var(--dc-surface2);border:1px solid var(--dc-border);cursor:pointer;}
  #adminScreen .dt17c-foot-av{width:36px;height:36px;border-radius:50%;background:var(--dc-gold);color:#3a2400;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 36px;font-size:13px;}
  #adminScreen .dt17c-foot-txt{min-width:0;flex:1 1 auto;}
  #adminScreen .dt17c-foot-name{color:var(--dc-text);font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  #adminScreen .dt17c-foot-sub{color:var(--dc-text3);font-size:11px;margin-top:1px;}
  #adminScreen .dt17c-foot-card>svg{width:16px;height:16px;stroke:var(--dc-text3);fill:none;stroke-width:2;flex:0 0 16px;}

  /* ── Main column ── */
  #adminScreen .dt17c-main{flex:1 1 auto;min-width:0;}
  #adminScreen .dt17c-main main.page{padding:24px!important;max-width:none!important;background:transparent!important;}

  /* Hero card */
  #adminScreen .dt17c-hero{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,#eef4ff 0%,#f5f2ff 60%,#fff7ea 100%);border:1px solid var(--dc-border);box-shadow:0 8px 28px rgba(16,43,94,.06);}
  #adminScreen .dt17c-hero-glow{position:absolute;top:-80px;right:-80px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle at center,rgba(240,168,36,.14),transparent 60%);pointer-events:none;}
  #adminScreen .dt17c-hero-inner{position:relative;padding:32px;}
  #adminScreen .dt17c-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap;}
  #adminScreen .dt17c-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border-radius:20px;background:#fff;border:1px solid var(--dc-border);font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--dc-navy-txt);margin-bottom:16px;}
  #adminScreen .dt17c-eyebrow span{width:6px;height:6px;border-radius:50%;background:var(--dc-gold);}
  #adminScreen .dt17c-hero h1{margin:0;color:var(--dc-text);font-size:32px;font-weight:800;line-height:1.1;letter-spacing:-.01em;}
  #adminScreen .dt17c-hero-top>div>p{margin:8px 0 0;font-size:14px;color:var(--dc-text2);max-width:520px;line-height:1.5;}
  #adminScreen .dt17c-gauge{width:92px;height:92px;border-radius:50%;border:3px solid var(--dc-gold);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 6px rgba(240,168,36,.12),0 8px 24px rgba(16,43,94,.1);flex:0 0 92px;}
  #adminScreen .dt17c-gauge-pct{color:var(--dc-gold);font-weight:800;font-size:22px;line-height:1;}
  #adminScreen .dt17c-gauge-lbl{margin-top:4px;font-size:8px;letter-spacing:.18em;font-weight:700;color:var(--dc-text2);}
  #adminScreen .dt17c-hero-stats{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:620px;}
  #adminScreen .dt17c-hero-stat{border-radius:16px;background:#fff;border:1px solid var(--dc-border);padding:14px 16px;transition:box-shadow .15s;}
  #adminScreen .dt17c-hero-stat:hover{box-shadow:0 6px 16px rgba(16,43,94,.08);}
  #adminScreen .dt17c-hero-stat b{display:block;color:var(--dc-text);font-weight:800;font-size:27px;line-height:1;}
  #adminScreen .dt17c-hero-stat span{display:block;margin-top:6px;font-size:11px;line-height:1.2;letter-spacing:.02em;color:var(--dc-text2);font-weight:500;text-transform:uppercase;}
  #adminScreen .dt17c-hero-chips{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
  #adminScreen .dt17c-chip{height:28px;padding:0 12px;border-radius:20px;background:#fff;border:1px solid var(--dc-border);font-size:11px;color:var(--dc-text2);display:inline-flex;align-items:center;gap:6px;}
  #adminScreen .dt17c-chip.online{background:#ecfdf5;border-color:#bbf7d0;color:#059669;font-weight:600;}
  #adminScreen .dt17c-chip.online span{width:6px;height:6px;border-radius:50%;background:#34d399;}
  #adminScreen .dt17c-hero-icons{margin-left:4px;display:flex;align-items:center;gap:6px;padding-left:8px;border-left:1px solid var(--dc-border);}
  #adminScreen .dt17c-hero-icons button{width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid var(--dc-border);color:var(--dc-text2);display:flex;align-items:center;justify-content:center;cursor:pointer;}
  #adminScreen .dt17c-hero-icons button:hover{background:var(--dc-accent-soft);color:var(--dc-accent);}
  #adminScreen .dt17c-hero-icons svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;}

  /* 3-panel cards row */
  #adminScreen .dt17c-panels{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
  #adminScreen .dt17c-card{border-radius:20px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 8px 24px rgba(15,43,94,.06);padding:20px;display:flex;flex-direction:column;}
  #adminScreen .dt17c-card-head{display:flex;align-items:center;justify-content:space-between;}
  #adminScreen .dt17c-card-head h3{margin:0;font-size:12px;font-weight:800;letter-spacing:.14em;color:#1e293b;}
  #adminScreen .dt17c-dot{width:8px;height:8px;border-radius:50%;background:#fb923c;}
  #adminScreen .dt17c-card-sub{margin:4px 0 0;font-size:12px;color:#64748b;}
  #adminScreen .dt17c-card-sub-r{font-size:11px;color:#94a3b8;}
  #adminScreen .dt17c-focus-list{margin-top:20px;display:flex;flex-direction:column;gap:12px;}
  #adminScreen .dt17c-focus-row{display:flex;align-items:center;gap:12px;border-radius:12px;border:1px solid #f1f5f9;background:#fbfdff;padding:12px;transition:border-color .15s;}
  #adminScreen .dt17c-focus-row:hover{border-color:#e2e8f0;}
  #adminScreen .dt17c-focus-ico{width:36px;height:36px;border-radius:50%;flex:0 0 36px;display:flex;align-items:center;justify-content:center;}
  #adminScreen .dt17c-focus-ico svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-focus-ico.green{background:#ecfdf5;color:#059669;}
  #adminScreen .dt17c-focus-ico.orange{background:#fff7ed;color:#f97316;}
  #adminScreen .dt17c-focus-ico.blue{background:#f0f9ff;color:#0284c7;}
  #adminScreen .dt17c-focus-txt{flex:1 1 auto;min-width:0;}
  #adminScreen .dt17c-focus-txt b{display:block;font-size:13px;font-weight:600;color:#1e293b;}
  #adminScreen .dt17c-focus-txt span{display:block;font-size:11px;color:#64748b;margin-top:1px;}
  #adminScreen .dt17c-chev{width:16px;height:16px;stroke:#cbd5e1;fill:none;stroke-width:2;flex:0 0 16px;}
  #adminScreen .dt17c-summary-grid{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  #adminScreen .dt17c-sbox{border-radius:16px;background:#f6f8fc;border:1px solid #f1f5f9;padding:16px;}
  #adminScreen .dt17c-sbox.warm{background:linear-gradient(135deg,#fff7e6,#fff);border-color:#ffedd5;}
  #adminScreen .dt17c-sbox b{display:block;font-size:22px;font-weight:800;color:#1e293b;}
  #adminScreen .dt17c-sbox.warm b{font-size:18px;}
  #adminScreen .dt17c-sbox span{display:block;margin-top:4px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#64748b;text-transform:uppercase;}
  #adminScreen .dt17c-sbox.warm span{color:#ea580c;}
  #adminScreen .dt17c-sbar{margin-top:8px;height:4px;width:100%;border-radius:4px;background:#e2e8f0;overflow:hidden;}
  #adminScreen .dt17c-sbar i{display:block;height:100%;border-radius:4px;}
  #adminScreen .dt17c-sbox-foot{margin-top:8px;font-size:10px;color:#64748b;}
  #adminScreen .dt17c-updated{margin-top:16px;display:flex;align-items:center;gap:8px;font-size:11px;color:#64748b;}
  #adminScreen .dt17c-updated-ico{width:20px;height:20px;border-radius:50%;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;}
  #adminScreen .dt17c-activity-card{justify-content:space-between;}
  #adminScreen .dt17c-activity-list{margin-top:20px;display:flex;flex-direction:column;gap:16px;flex:1 1 auto;}
  #adminScreen .dt17c-activity-row{display:flex;align-items:flex-start;gap:12px;}
  #adminScreen .dt17c-av{width:36px;height:36px;border-radius:50%;color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;flex:0 0 36px;}
  #adminScreen .dt17c-av.violet{background:#8b5cf6;}
  #adminScreen .dt17c-av.emerald{background:#10b981;}
  #adminScreen .dt17c-av.orange{background:#fb923c;}
  #adminScreen .dt17c-activity-txt{flex:1 1 auto;min-width:0;}
  #adminScreen .dt17c-activity-txt>div{display:flex;align-items:center;gap:8px;}
  #adminScreen .dt17c-activity-txt b{font-size:13px;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  #adminScreen .dt17c-time{font-size:10px;color:#94a3b8;flex:0 0 auto;}
  #adminScreen .dt17c-activity-txt small{display:block;margin-top:2px;font-size:11px;color:#64748b;}
  #adminScreen .dt17c-live{width:8px;height:8px;border-radius:50%;background:#34d399;margin-top:8px;flex:0 0 8px;}
  #adminScreen .dt17c-viewall{margin-top:20px;height:36px;border-radius:20px;border:1px solid #e2e8f0;background:#f8fafc;font-size:12px;font-weight:600;color:#334155;cursor:pointer;font-family:var(--font);width:100%;}
  #adminScreen .dt17c-viewall:hover{background:#fff;}

  /* 4 stat chip cards */
  #adminScreen .dt17c-stats4{margin-top:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
  #adminScreen .dt17c-stat4{border-radius:18px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 2px rgba(0,0,0,.04);padding:16px;cursor:pointer;transition:box-shadow .15s;}
  #adminScreen .dt17c-stat4:hover{box-shadow:0 10px 30px rgba(15,43,94,.08);}
  #adminScreen .dt17c-stat4-top{display:flex;align-items:center;justify-content:space-between;}
  #adminScreen .dt17c-stat4-top>div,#adminScreen .dt17c-stat4-top{display:flex;}
  #adminScreen .dt17c-stat4-accent{width:6px;height:24px;border-radius:20px;display:inline-block;margin-right:8px;}
  #adminScreen .dt17c-stat4-lbl{font-size:14px;font-weight:800;color:#1e293b;}
  #adminScreen .dt17c-stat4-pill{margin-left:auto;font-size:11px;padding:4px 8px;border-radius:20px;background:#f1f5f9;color:#64748b;font-weight:500;}
  #adminScreen .dt17c-stat4-num{margin-top:16px;display:flex;align-items:flex-end;gap:8px;}
  #adminScreen .dt17c-stat4-num b{font-size:28px;font-weight:800;color:#0f172a;line-height:1;}
  #adminScreen .dt17c-stat4-num span{font-size:12px;color:#64748b;margin-bottom:2px;}
  #adminScreen .dt17c-stat4-bar{margin-top:12px;height:2px;width:100%;background:#f1f5f9;border-radius:4px;overflow:hidden;}
  #adminScreen .dt17c-stat4-bar i{display:block;height:100%;}

  /* Quick access tiles */
  #adminScreen .dt17c-tiles{margin-top:20px;display:grid;grid-template-columns:repeat(5,1fr);gap:16px;}
  #adminScreen .dt17c-tile{position:relative;overflow:hidden;border-radius:20px;padding:20px;cursor:pointer;background:#fff;border:1px solid var(--dc-border);box-shadow:0 4px 14px rgba(16,43,94,.05);transition:transform .15s,box-shadow .15s;}
  #adminScreen .dt17c-tile:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,43,94,.1);}
  #adminScreen .dt17c-tile.hi{background:var(--dc-accent-soft);border-color:#c7dcff;}
  #adminScreen .dt17c-tile-top{display:flex;align-items:flex-start;justify-content:space-between;}
  #adminScreen .dt17c-tile-ico{width:40px;height:40px;border-radius:12px;background:var(--dc-surface2);border:1px solid var(--dc-border);display:flex;align-items:center;justify-content:center;color:var(--dc-navy-txt);}
  #adminScreen .dt17c-tile.hi .dt17c-tile-ico{background:#fff;color:var(--dc-accent);}
  #adminScreen .dt17c-tile-ico svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-tile-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;background:var(--dc-surface2);color:var(--dc-text2);border:1px solid var(--dc-border);}
  #adminScreen .dt17c-tile.hi .dt17c-tile-badge{background:var(--dc-gold);color:#3a2400;border:none;}
  #adminScreen .dt17c-tile-title{margin-top:20px;color:var(--dc-text);font-weight:700;font-size:15px;line-height:1.2;}
  #adminScreen .dt17c-tile-sub{margin-top:4px;font-size:11px;color:var(--dc-text2);}
  #adminScreen .dt17c-tile-link{margin-top:16px;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--dc-text3);}
  #adminScreen .dt17c-tile-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  #adminScreen .dt17c-tile:hover .dt17c-tile-link{color:var(--dc-accent);}
}
@media (min-width:1024px) and (max-width:1279px){
  #adminScreen .dt17c-sidebar{width:220px;flex-basis:220px;}
  #adminScreen .dt17c-panels{grid-template-columns:1fr;}
  #adminScreen .dt17c-stats4{grid-template-columns:repeat(2,1fr);}
  #adminScreen .dt17c-tiles{grid-template-columns:repeat(3,1fr);}
}
