
@media screen {
  :root{
    --ui-bg:#f4f7f6;
    --ui-surface:#ffffff;
    --ui-surface-soft:#f8fbfa;
    --ui-text:#1f312e;
    --ui-muted:#667b76;
    --ui-line:#dce6e3;
    --ui-primary:#0f625b;
    --ui-primary-2:#174e49;
    --ui-primary-soft:#e8f4f1;
    --ui-shadow:0 12px 34px rgba(24,55,50,.08);
    --ui-shadow-sm:0 5px 18px rgba(24,55,50,.06);
  }

  html,body{background:var(--ui-bg)!important;color:var(--ui-text)!important}
  body{
    background:
      radial-gradient(circle at 90% 0%,rgba(34,119,107,.07),transparent 31rem),
      linear-gradient(180deg,#f8faf9 0%,#f3f6f5 100%)!important;
  }

  .app{background:transparent!important}
  .content{padding:30px 34px!important}
  .content>header{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(220,230,227,.9);
    border-radius:20px;
    padding:15px 18px;
    box-shadow:0 8px 28px rgba(24,55,50,.05);
    backdrop-filter:blur(10px);
  }
  header h2{color:#1b2f2b!important;font-size:28px!important;letter-spacing:-.2px}
  header p,.card p,.panel p{color:var(--ui-muted)}

  aside{
    background:linear-gradient(180deg,#123d38 0%,#0e332f 62%,#0b2d2a 100%)!important;
    border-left:1px solid rgba(255,255,255,.08);
    box-shadow:-12px 0 38px rgba(9,34,31,.08);
    padding:22px 16px!important;
  }
  .side-brand{
    margin-bottom:20px!important;
    padding:4px 6px 18px;
    border-bottom:1px solid rgba(255,255,255,.10);
  }
  .side-brand span{color:#b6d1cc!important}
  .side-brand b{font-size:14.5px!important;letter-spacing:.1px}
  .logo{
    background:linear-gradient(145deg,#178579,#0e6159)!important;
    box-shadow:0 12px 28px rgba(5,30,27,.25)!important;
    border:1px solid rgba(255,255,255,.18);
  }
  nav{gap:7px!important}
  nav button{
    min-height:46px;
    color:#e4f0ed!important;
    border:1px solid transparent!important;
    border-radius:14px!important;
    padding:11px 13px!important;
    font-weight:700;
    transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease!important;
  }
  nav button:hover{
    background:rgba(255,255,255,.09)!important;
    border-color:rgba(255,255,255,.08)!important;
    transform:translateX(-1px);
  }
  nav button.active{
    color:#0d5049!important;
    background:#fff!important;
    border-color:#fff!important;
    box-shadow:0 8px 22px rgba(4,26,23,.18)!important;
  }
  .side-foot{color:#aec8c3!important;border-color:rgba(255,255,255,.11)!important}

  .hero,.vivid-hero,.teacher-welcome{
    background:linear-gradient(135deg,#0f655d 0%,#15544e 54%,#173f3b 100%)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:0 18px 42px rgba(15,74,68,.17)!important;
  }
  .hero{border-radius:24px!important}
  .hero-stat,.teacher-welcome-stats>div{
    background:rgba(255,255,255,.10)!important;
    border-color:rgba(255,255,255,.19)!important;
    box-shadow:none!important;
  }

  .panel,.card,.task-card,.timeline-item,.request-list article,
  .teacher-command-grid button,.today-lesson-grid article,
  .global-quick-dock,.global-quick-dock .dock-btn{
    background:var(--ui-surface)!important;
    border-color:var(--ui-line)!important;
    box-shadow:var(--ui-shadow-sm)!important;
  }
  .panel{
    border-radius:20px!important;
    box-shadow:var(--ui-shadow)!important;
  }
  .card{
    border-radius:18px!important;
    box-shadow:var(--ui-shadow-sm)!important;
  }
  .card:hover,.teacher-command-grid button:hover{
    border-color:#bdd4cf!important;
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(24,55,50,.10)!important;
  }
  .card .ic{
    color:var(--ui-primary)!important;
    background:var(--ui-primary-soft)!important;
    border-radius:14px!important;
  }
  .section-title{color:#354945!important}
  .section-title span{color:#84938f!important}

  .today-hero{
    background:linear-gradient(135deg,#fbfdfc,#eef6f4)!important;
    border-color:#dce8e5!important;
    border-radius:20px!important;
    box-shadow:0 8px 24px rgba(24,55,50,.05);
  }
  .today-role{
    background:var(--ui-primary)!important;
    box-shadow:0 6px 16px rgba(15,98,91,.18);
  }
  .student-banner{
    background:linear-gradient(135deg,#203d39,#2d4b47)!important;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 28px rgba(20,44,40,.12);
  }

  .quick-stat{
    background:#fff!important;
    border:1px solid var(--ui-line)!important;
    box-shadow:var(--ui-shadow-sm)!important;
    color:#29413d!important;
  }
  .quick-stat.q1{border-top:3px solid #2f8b72!important}
  .quick-stat.q2{border-top:3px solid #557d77!important}
  .quick-stat.q3{border-top:3px solid #b98358!important}
  .quick-stat.q4{border-top:3px solid #806f91!important}
  .colorful-grid .card:before{width:4px!important}
  .colorful-grid .color-1:before,.colorful-grid .color-5:before{background:#2d8c79!important}
  .colorful-grid .color-2:before,.colorful-grid .color-6:before{background:#678c84!important}
  .colorful-grid .color-3:before{background:#b9865e!important}
  .colorful-grid .color-4:before{background:#7f728e!important}

  .teacher-work-tabs button,
  .announcement-templates button,
  .register-tabs button{
    background:#fff!important;
    color:#425954!important;
    border-color:var(--ui-line)!important;
    box-shadow:0 2px 9px rgba(24,55,50,.04);
  }
  .teacher-work-tabs button.active,.register-tabs button.active{
    color:#fff!important;
    background:var(--ui-primary)!important;
    border-color:var(--ui-primary)!important;
    box-shadow:0 7px 18px rgba(15,98,91,.18)!important;
  }
  .professional-compose{border-top-color:#3b8176!important}

  .primary,.login-card button,.approve-btn{
    background:linear-gradient(135deg,#116c63,#0e5b54)!important;
    color:#fff!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:0 7px 17px rgba(15,98,91,.16);
  }
  .primary:hover,.login-card button:hover,.approve-btn:hover{filter:brightness(.97)}
  .ghost,.menu-btn{
    background:#fff!important;
    color:#38524d!important;
    border-color:var(--ui-line)!important;
    box-shadow:0 3px 12px rgba(24,55,50,.04);
  }
  .danger{color:#a33e3e!important}

  input,select,textarea{
    background:#fff!important;
    color:var(--ui-text)!important;
    border-color:#d6e2df!important;
    border-radius:12px!important;
  }
  input:focus,select:focus,textarea:focus{
    border-color:#3c8a7e!important;
    box-shadow:0 0 0 3px rgba(60,138,126,.13)!important;
  }

  .table-wrap{
    border-color:var(--ui-line)!important;
    border-radius:15px!important;
    background:#fff;
  }
  table{background:#fff}
  th{
    color:#526863!important;
    background:#f5f9f8!important;
    border-bottom-color:#dce6e3!important;
    font-weight:800!important;
  }
  td{border-bottom-color:#edf2f0!important}
  tbody tr:hover td{background:#fbfdfc}

  .count,.badge{
    color:#17675c!important;
    background:#eaf5f2!important;
  }
  .badge.bad{color:#993e3e!important;background:#fff1f1!important}
  .success{color:#236847!important;background:#eff9f3!important;border:1px solid #d5ebdc}
  .error{color:#9a3a3a!important;background:#fff3f3!important;border:1px solid #f0d5d5}
  .loading-line{color:#745c2d!important;background:#fffaf0!important;border-color:#eadfca!important}

  .global-quick-dock{
    border-radius:18px!important;
    padding:9px!important;
    background:rgba(255,255,255,.88)!important;
  }
  .global-quick-dock .dock-btn{
    border-radius:14px!important;
    color:#36514c!important;
  }
  .global-quick-dock .dock-btn.books,
  .global-quick-dock .dock-btn.visitors,
  .global-quick-dock .dock-btn.settings{
    color:#285e56!important;
    background:#fbfdfc!important;
    border-color:#d7e5e1!important;
  }

  .login-wrap{max-width:1160px!important}
  .brand-panel{border-radius:28px}
  .brand-panel h1{color:#173832!important;letter-spacing:-.5px}
  .eyebrow{color:var(--ui-primary)!important}
  .sub{color:#5f736f!important}
  .login-card{
    background:rgba(255,255,255,.93)!important;
    border-color:#dce7e4!important;
    border-radius:26px!important;
    box-shadow:0 24px 70px rgba(27,65,58,.12)!important;
    backdrop-filter:blur(10px);
  }

  @media (max-width:900px){
    .content{padding:20px!important}
    .content>header{border-radius:17px;padding:13px 14px}
    aside{box-shadow:-18px 0 45px rgba(7,30,27,.23)!important}
    .app aside .side-brand{background:#123d38!important}
  }
  @media (max-width:620px){
    .content{padding:13px!important}
    .content>header{margin-bottom:16px!important}
    header h2{font-size:23px!important}
    .hero,.teacher-welcome{border-radius:19px!important}
    .panel{border-radius:16px!important;padding:15px!important}
    .card{border-radius:15px!important}
    .global-quick-dock{border-radius:15px!important}
    .login-card{border-radius:20px!important}
  }
}
