
@media (min-width:1024px){
  :root{
    --dc-navy:#3b1d72;
    --dc-navy-txt:#35146b;
    --dc-bg:#f6f5fa;
    --dc-surface:#ffffff;
    --dc-surface2:#faf9fc;
    --dc-border:#e8e4ef;
    --dc-text:#171229;
    --dc-text2:#6d667d;
    --dc-text3:#9a93a8;
    --dc-accent:#6d28d9;
    --dc-accent-soft:#f1eafe;
    --dc-gold:#d99a28;
  }

  /* The selfie bar remains in the DOM as the attendance engine, but the
     desktop dashboard exposes that same action through its compact header. */
  body.dt17-admin-desktop-active #dt17SimpleTopAtt,
  body.dt17-admin-desktop-active #adminScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att,
  #adminScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    position:absolute!important;
    pointer-events:none!important;
  }

  body.dt17-admin-desktop-active,
  body.dt17-admin-desktop-active #adminScreen{
    background:var(--dc-bg)!important;
  }

  #adminScreen .dt17c-header{
    z-index:80!important;
    background:rgba(255,255,255,.97)!important;
    border-bottom:1px solid rgba(232,228,239,.95)!important;
    box-shadow:0 4px 18px rgba(48,33,72,.045)!important;
    backdrop-filter:blur(14px);
  }
  #adminScreen .dt17c-header-top{
    height:58px!important;
    padding:0 24px!important;
  }
  #adminScreen .dt17c-header-left{gap:11px!important;}
  #adminScreen .dt17c-header-logo{
    width:34px!important;height:34px!important;border-radius:11px!important;
    background:linear-gradient(145deg,#4c1d95,#7c3aed)!important;
    box-shadow:0 8px 20px rgba(109,40,217,.22)!important;
  }
  #adminScreen .dt17c-header-logo svg{width:17px!important;height:17px!important;}
  #adminScreen .dt17c-header-title{
    font-size:16.5px!important;font-weight:850!important;letter-spacing:-.02em!important;
  }
  #adminScreen .dt17c-header-right{gap:8px!important;}
  #adminScreen .dt17c-hbtn{
    width:34px!important;height:34px!important;border-radius:10px!important;
    background:#fbfafe!important;border-color:#ebe7f1!important;
    transition:background .16s ease,border-color .16s ease,color .16s ease!important;
  }
  #adminScreen .dt17c-hbtn:hover{
    background:var(--dc-accent-soft)!important;border-color:#d9c7fb!important;color:var(--dc-accent)!important;
  }
  #adminScreen .dt17c-header-av{
    width:34px!important;height:34px!important;
    background:linear-gradient(145deg,#f6c45c,#d99a28)!important;
    color:#3f2903!important;box-shadow:0 0 0 1px #e7d39f,0 7px 16px rgba(108,75,16,.12)!important;
  }

  #adminScreen .dt17c-header-status{
    height:44px!important;padding:0 24px!important;
    background:linear-gradient(90deg,#fbf9ff 0%,#fff 54%,#fffbf3 100%)!important;
    border-top:1px solid #f0edf4!important;border-bottom:0!important;
  }
  #adminScreen .dt17c-status-left{gap:10px!important;font-size:13px!important;color:#4f485e!important;}
  #adminScreen .dt17c-status-dot{
    width:8px!important;height:8px!important;flex-basis:8px!important;
    background:#16b981!important;box-shadow:0 0 0 4px rgba(16,185,129,.12)!important;
  }
  #adminScreen .dt17c-status-txt{font-weight:600!important;}
  #adminScreen .dt17c-status-btn{
    min-width:72px!important;height:32px!important;padding:0 16px!important;border-radius:10px!important;
    background:linear-gradient(135deg,#f5a623,#e87913)!important;
    box-shadow:0 6px 15px rgba(232,121,19,.18)!important;
    font-size:12px!important;letter-spacing:.02em!important;
    transition:transform .16s ease,box-shadow .16s ease!important;
  }
  #adminScreen .dt17c-status-btn.go{
    background:linear-gradient(135deg,#12b981,#079669)!important;
    box-shadow:0 6px 15px rgba(5,150,105,.18)!important;
  }
  #adminScreen .dt17c-status-btn:hover{transform:translateY(-1px);}

  #adminScreen .dt17c-shell{
    min-height:calc(100vh - 102px)!important;
    background:var(--dc-bg)!important;
  }
  #adminScreen .dt17c-sidebar{
    width:248px!important;flex-basis:248px!important;
    top:102px!important;height:calc(100vh - 102px)!important;
    border-right-color:#e7e3ec!important;
    box-shadow:7px 0 22px rgba(55,38,79,.025)!important;
  }
  #adminScreen .dt17c-sidebar-scroll{padding:16px 12px 10px!important;scrollbar-color:#d7d0e0 transparent!important;}
  #adminScreen .dt17c-sidebar-scroll::-webkit-scrollbar{width:5px!important;}
  #adminScreen .dt17c-sidebar-scroll::-webkit-scrollbar-thumb{background:#d7d0e0!important;}
  #adminScreen .dt17c-nav-group{margin-bottom:18px!important;}
  #adminScreen .dt17c-nav-title{
    padding:0 12px 8px!important;font-size:9.5px!important;font-weight:750!important;
    letter-spacing:.16em!important;color:#a39bad!important;
  }
  #adminScreen .dt17c-nav-item{
    height:40px!important;padding:0 11px!important;border-radius:10px!important;gap:11px!important;
    transition:background .14s ease,color .14s ease,box-shadow .14s ease!important;
  }
  #adminScreen .dt17c-nav-item:hover{background:#f7f4fb!important;color:#2c2438!important;}
  #adminScreen .dt17c-nav-item.active{
    background:linear-gradient(90deg,#eee6fd,#f6f1ff)!important;color:var(--dc-accent)!important;
    box-shadow:inset 0 0 0 1px rgba(109,40,217,.07)!important;
  }
  #adminScreen .dt17c-nav-item .dt17c-nav-bar{
    left:-12px!important;top:9px!important;bottom:9px!important;width:3px!important;background:var(--dc-accent)!important;
  }
  #adminScreen .dt17c-nav-item > svg{width:17px!important;height:17px!important;flex-basis:17px!important;}
  #adminScreen .dt17c-nav-item > span:not(.dt17c-badge):not(.dt17c-nav-bar){font-size:13px!important;}
  #adminScreen .dt17c-badge{background:#f5f1fa!important;border-color:#e8e1ef!important;}
  #adminScreen .dt17c-sidebar-foot{padding:10px 12px 14px!important;}
  #adminScreen .dt17c-foot-card{
    padding:11px!important;border-radius:14px!important;background:linear-gradient(135deg,#faf8fd,#fffaf0)!important;
  }
  #adminScreen .dt17c-foot-av{width:34px!important;height:34px!important;flex-basis:34px!important;background:linear-gradient(145deg,#f6c45c,#d99a28)!important;}

  #adminScreen .dt17c-main main.page{
    width:100%!important;max-width:1580px!important;margin:0 auto!important;
    padding:20px 24px 34px!important;
  }
  #adminScreen .dt17c-hero{
    border-radius:20px!important;
    background:linear-gradient(125deg,#f5f0ff 0%,#faf8ff 54%,#fff8ec 100%)!important;
    border-color:#e5dcf2!important;
    box-shadow:0 12px 34px rgba(58,35,88,.065)!important;
  }
  #adminScreen .dt17c-hero-glow{
    top:-105px!important;right:-70px!important;width:315px!important;height:315px!important;
    background:radial-gradient(circle at center,rgba(217,154,40,.17),transparent 62%)!important;
  }
  #adminScreen .dt17c-hero-inner{padding:25px 28px!important;}
  #adminScreen .dt17c-hero-top{gap:20px!important;}
  #adminScreen .dt17c-eyebrow{
    margin-bottom:13px!important;padding:4px 10px!important;
    border-color:#e6dff0!important;color:#4d2b7c!important;background:rgba(255,255,255,.84)!important;
  }
  #adminScreen .dt17c-eyebrow span{background:var(--dc-gold)!important;}
  #adminScreen .dt17c-hero h1{font-size:29px!important;letter-spacing:-.025em!important;}
  #adminScreen .dt17c-hero-top>div>p{margin-top:7px!important;font-size:13.5px!important;}
  #adminScreen .dt17c-gauge{
    width:82px!important;height:82px!important;flex-basis:82px!important;
    border-color:var(--dc-gold)!important;
    box-shadow:0 0 0 5px rgba(217,154,40,.11),0 8px 22px rgba(73,43,20,.09)!important;
  }
  #adminScreen .dt17c-gauge-pct{font-size:20px!important;color:var(--dc-gold)!important;}
  #adminScreen .dt17c-gauge-lbl{font-size:7.5px!important;}
  #adminScreen .dt17c-hero-stats{margin-top:20px!important;gap:12px!important;max-width:650px!important;}
  #adminScreen .dt17c-hero-stat{
    min-height:78px!important;padding:12px 15px!important;border-radius:14px!important;
    border-color:#e7e1ee!important;box-shadow:0 3px 10px rgba(47,32,67,.025)!important;
  }
  #adminScreen .dt17c-hero-stat b{font-size:25px!important;}
  #adminScreen .dt17c-hero-stat span{margin-top:5px!important;font-size:10.5px!important;}
  #adminScreen .dt17c-hero-chips{margin-top:15px!important;gap:7px!important;}
  #adminScreen .dt17c-chip{height:27px!important;padding:0 11px!important;}

  #adminScreen .dt17c-panels{margin-top:16px!important;gap:14px!important;}
  #adminScreen .dt17c-card{
    border-radius:18px!important;padding:18px!important;border-color:#e8e4ee!important;
    box-shadow:0 7px 22px rgba(49,33,69,.045)!important;
  }
  #adminScreen .dt17c-focus-list,
  #adminScreen .dt17c-summary-grid,
  #adminScreen .dt17c-activity-list{margin-top:16px!important;}
  #adminScreen .dt17c-focus-row{padding:10px!important;}
  #adminScreen .dt17c-sbox{padding:14px!important;}
  #adminScreen .dt17c-stats4{margin-top:16px!important;gap:14px!important;}
  #adminScreen .dt17c-stat4{padding:15px!important;border-radius:16px!important;border-color:#e8e4ee!important;}
  #adminScreen .dt17c-stat4-num{margin-top:13px!important;}
  #adminScreen .dt17c-tiles{margin-top:16px!important;gap:14px!important;}
  #adminScreen .dt17c-tile{padding:17px!important;border-radius:17px!important;border-color:#e8e4ee!important;}
  #adminScreen .dt17c-tile.hi{background:#f2ebfe!important;border-color:#dac8f7!important;}
  #adminScreen .dt17c-tile-title{margin-top:16px!important;}
  #adminScreen .dt17c-tile-link{margin-top:13px!important;}

  #adminScreen button:focus-visible,
  #adminScreen [onclick]:focus-visible{
    outline:3px solid rgba(109,40,217,.22)!important;
    outline-offset:2px!important;
  }
}

@media (min-width:1024px) and (max-width:1279px){
  #adminScreen .dt17c-header-top,
  #adminScreen .dt17c-header-status{padding-left:18px!important;padding-right:18px!important;}
  #adminScreen .dt17c-sidebar{width:212px!important;flex-basis:212px!important;}
  #adminScreen .dt17c-main main.page{padding:16px 18px 30px!important;}
  #adminScreen .dt17c-hero-inner{padding:22px!important;}
  #adminScreen .dt17c-hero h1{font-size:27px!important;}
}

@media (prefers-reduced-motion:reduce){
  #adminScreen .dt17c-hbtn,
  #adminScreen .dt17c-status-btn,
  #adminScreen .dt17c-nav-item{transition:none!important;}
}
