/* MDC SCHOOL PORTAL / design refresh 2026-11-11
   Layered, non-destructive theme. Preserve forms, IDs, survey data and games. */
:root{
  --mdc26-navy:#092d4d;--mdc26-mid:#126184;--mdc26-teal:#0b968c;
  --mdc26-bg:#f3f7fc;--mdc26-text:#17354d;--mdc26-muted:#577289;
  --mdc26-stroke:#dce9f1;--mdc26-shadow:0 12px 34px rgba(11,53,85,.08);
}
html{scroll-behavior:smooth}
html body,html body .app-shell{background:#f3f7fc!important;background-image:none!important;color:var(--mdc26-text)}
/* Remove old page-wide backdrop that obscured survey content. */
html body .app-shell,html body .app-shell .main{background:#f3f7fc!important;min-width:0}
html body .app-shell .content{background:linear-gradient(155deg,#f2f8fc 0%,#f7faff 55%,#eef5fa 100%)!important;min-height:calc(100vh - 76px);padding:30px clamp(18px,3.3vw,48px) 50px!important}
html body .app-shell #pageContent,html body .app-shell .footer-note{max-width:1390px;margin-left:auto;margin-right:auto}
/* Modern, familiar Vietnamese system UI typography without network fonts. */
html body .app-shell,html body .app-shell button,html body .app-shell input,html body .app-shell textarea,html body .app-shell select,
html body .app-shell h1,html body .app-shell h2,html body .app-shell h3,html body .app-shell h4,html body .app-shell p,
html body .app-shell .nav-link,html body .app-shell .card *,html body .app-shell .topbar *{font-family:'Segoe UI',Arial,sans-serif!important;letter-spacing:normal}
html body .app-shell .nav-link,html body .app-shell .btn{font-size:13px!important}
/* Sidebar: stable navigation and restrained accent. */
html body .app-shell{grid-template-columns:260px minmax(0,1fr)}
html body .sidebar{background:linear-gradient(168deg,#082b49 0%,#0b3654 57%,#08243d 100%)!important;color:#e6f5fc!important;border-right:1px solid rgba(210,239,255,.09);box-shadow:9px 0 28px rgba(10,44,76,.08);padding:24px 17px!important;gap:21px!important}
html body .sidebar:before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#21c8bb,#40a3e2 65%,#ecbf70)}
html body .sidebar .logo{padding:4px 4px 19px!important;gap:12px;border-bottom:1px solid rgba(220,241,255,.14)}
html body .sidebar .logo .mdc-brand-logo{width:57px;height:57px;flex:0 0 57px;object-fit:contain;background:#fff;padding:3px;border-radius:50%;box-shadow:0 5px 18px rgba(0,0,0,.13)}
html body .sidebar .mdc-school-title{color:#a2e0ee!important;font-size:10px!important;line-height:1.6;letter-spacing:.8px!important}
html body .sidebar .logo b{color:#fff!important;font-size:17px;line-height:1.3;letter-spacing:-.2px}
html body .sidebar .logo small{color:#afcfdb!important;font-size:10px!important;letter-spacing:.9px!important}
html body .sidebar .side-label{font-size:10px;letter-spacing:1.8px;color:#87b4ca;margin:7px 10px 11px}
html body .sidebar .nav{display:flex;flex-direction:column;gap:5px}
html body .sidebar .nav-link{position:relative;min-height:45px;padding:11px 13px!important;border:1px solid transparent!important;border-radius:12px!important;color:#dceefa!important;background:transparent!important;font-weight:600!important;transition:background .16s,border-color .16s,transform .16s}
html body .sidebar .nav-link:hover{background:rgba(31,147,182,.20)!important;border-color:rgba(135,209,231,.19)!important;transform:translateX(2px)}
html body .sidebar .nav-link.active{color:#fff!important;background:linear-gradient(110deg,rgba(22,157,183,.9),rgba(19,111,167,.92))!important;border-color:rgba(180,238,251,.3)!important;box-shadow:0 8px 16px rgba(1,18,40,.15);font-weight:800!important}
html body .sidebar .nav-link.active:before{content:'';width:3px;position:absolute;top:10px;bottom:10px;left:-8px;background:#6cebd5;border-radius:4px}
html body .sidebar .nav-ico{color:#bde8ed;font-size:16px;min-width:22px}
html body .sidebar .side-promo{background:linear-gradient(145deg,rgba(24,114,148,.53),rgba(8,68,106,.71))!important;border:1px solid rgba(159,223,239,.25)!important;border-radius:17px;padding:17px!important;box-shadow:none!important}
html body .sidebar .side-promo p{color:#c0dfe8!important;line-height:1.55}
html body .sidebar .mdc-side-link{border-radius:10px;background:rgba(250,255,255,.13)!important;color:white!important}
html body .sidebar .user-strip{border-top:1px solid rgba(220,241,255,.15);padding:15px 7px 0!important}
/* Compact, coherent page toolbar. */
html body .app-shell .topbar{height:76px!important;padding:0 clamp(18px,3.2vw,46px)!important;background:rgba(255,255,255,.96)!important;border-bottom:1px solid #e0eaf2!important;box-shadow:0 2px 15px rgba(17,63,99,.025);backdrop-filter:blur(12px);position:sticky;top:0;z-index:8}
html body .app-shell .topbar h1{font-size:18px!important;font-weight:750!important;color:#183d56!important;letter-spacing:-.4px!important}
html body .app-shell .topbar .breadcrumb{color:#668399!important;font-size:11px!important}
html body .app-shell .icon-btn{background:#f2f8fc!important;border:1px solid #e0edf5!important;min-width:39px;min-height:39px;border-radius:11px!important;color:#286582!important;box-shadow:none!important}
html body .app-shell .icon-btn:hover{background:#e4f4fa!important;border-color:#8fcfd6!important}
html body .app-shell .top-tools .tag.green{background:#e9f8f6!important;border:1px solid #b7e4de!important;color:#087a72!important;border-radius:999px;font-size:10px;font-weight:850;letter-spacing:.4px}
/* Campus image is now a contained heading hero instead of the entire page. */
html body .app-shell #pageContent > .page-heading,
html body .app-shell .page-heading{
  min-height:163px!important;display:flex!important;align-items:center!important;
  padding:26px 31px!important;margin:0 0 25px!important;
  border:1px solid #c8e2ec!important;border-radius:24px!important;
  background:linear-gradient(102deg,rgba(4,45,78,.96) 0%,rgba(6,67,100,.88) 60%,rgba(11,90,123,.56) 100%),url('mdc-campus.webp') center 46%/cover no-repeat!important;
  box-shadow:0 16px 34px rgba(13,62,90,.13)!important;isolation:isolate!important;
  backdrop-filter:none!important;overflow:hidden;
}
html body .app-shell .page-heading:before{content:'';width:220px;height:220px;position:absolute;right:19px;top:-120px;border:1px solid rgba(199,251,250,.20);border-radius:50%;box-shadow:0 0 0 41px rgba(190,247,247,.055),0 0 0 88px rgba(190,247,247,.04);pointer-events:none}
html body .app-shell .page-heading .eyebrow{color:#a8f2e7!important;text-shadow:none!important;font-size:11px!important;letter-spacing:1.1px!important;font-weight:800!important;margin-bottom:9px}
html body .app-shell .page-heading h2{font-family:'Segoe UI',Arial,sans-serif!important;color:#fff!important;font-size:clamp(23px,2.4vw,32px)!important;line-height:1.22!important;font-weight:800!important;letter-spacing:-.8px!important;text-shadow:0 2px 10px #00243a55!important;-webkit-text-stroke:0!important;margin:0 0 7px!important}
html body .app-shell .page-heading p{font-family:'Segoe UI',Arial,sans-serif!important;color:#d9f2fa!important;text-shadow:none!important;font-size:13px!important;line-height:1.55!important;font-weight:450!important;max-width:790px}
/* Cards and all dashboard surfaces get one shared visual grammar. */
html body .app-shell .card,html body .app-shell .stat,html body .app-shell .tile,
html body .app-shell .mdc-section-card,html body .app-shell .mdc-social-post,
html body .app-shell .mdc-social-panel,html body .app-shell .mdc-social-composer,
html body .app-shell .docs-view,html body .app-shell .mdc-home-overlap .mdc-value-ribbon{
  background:#fff!important;border:1px solid var(--mdc26-stroke)!important;border-radius:19px!important;
  box-shadow:var(--mdc26-shadow)!important;backdrop-filter:none!important;
}
html body .app-shell .card,html body .app-shell .tile{transition:box-shadow .16s,border-color .16s,transform .16s}
html body .app-shell .card:hover,html body .app-shell .tile:hover{border-color:#b4d9e6!important;box-shadow:0 17px 34px rgba(11,62,97,.12)!important}
html body .app-shell .stat{padding:20px!important;min-height:96px}
html body .app-shell .stat h3{font-size:23px!important;color:#0a3e5c!important}
html body .app-shell .stat p{font-size:12px!important;color:#567187!important}
html body .app-shell .card h3,html body .app-shell .section-head h3,html body .app-shell .tile-body h4{color:#143c56!important;font-weight:750!important}
html body .app-shell .card .muted,html body .app-shell .card .fineprint,html body .app-shell .tile-body p{color:#55748b!important;font-size:12px!important;line-height:1.65!important}
html body .app-shell .btn-primary,html body .app-shell button.btn-primary{background:linear-gradient(120deg,#087e98,#0a6486)!important;border:1px solid #11788d!important;color:#fff!important;box-shadow:0 5px 13px rgba(8,99,133,.18)!important;border-radius:11px!important;font-weight:750!important}
html body .app-shell .btn-primary:hover{background:linear-gradient(120deg,#006e85,#0b5070)!important}
html body .app-shell .notice{background:#edf8fc!important;color:#204d65!important;border:1px solid #c4e5ef!important;border-left:4px solid #16a4b4!important;border-radius:12px!important;padding:14px 18px!important}
html body .app-shell .tabbar .tab.active,html body .app-shell .tab.active{background:#def6f2!important;border-color:#8dd6ce!important;color:#086f68!important}
html body .app-shell input,html body .app-shell select,html body .app-shell textarea{border-radius:10px!important}
/* Survey cards are designed as a two-step, whole-card entry. */
html body .app-shell #pageContent > .three-col{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;max-width:1090px!important;margin:0 auto 16px 0!important}
html body .app-shell #pageContent .three-col .card[data-mdc3-card]{padding:25px 27px 22px!important;border-radius:22px!important;min-height:275px;background:#fff!important;border:1px solid #cbdfe9!important;position:relative;cursor:pointer!important;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
html body .app-shell .card[data-mdc3-card]:before{content:'';position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#088b9e,#37c3ab 65%,#e8ba66);border-radius:22px 22px 0 0}
html body .app-shell .card[data-mdc3-card]:hover{transform:translateY(-3px);border-color:#70cbbf!important;box-shadow:0 16px 35px rgba(6,75,102,.17)!important}
html body .app-shell .card[data-mdc3-card]:focus-visible{outline:3px solid #069bba!important;outline-offset:4px!important}
html body .app-shell .card[data-mdc3-card][aria-disabled="true"]{cursor:not-allowed!important;opacity:.77}
html body .app-shell .card[data-mdc3-card] > div[style*="font-size:34px"]{display:none!important}
html body .app-shell .card[data-mdc3-card] .mdc26-survey-symbol{width:53px;height:53px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(140deg,#e2f8f7,#d8edfd);color:#12617d;font-size:25px;box-shadow:inset 0 0 0 1px #c8e9ef;margin:1px 0 11px}
html body .app-shell .card[data-mdc3-card] .tag{border-radius:99px!important;padding:6px 12px!important;font-weight:750!important;letter-spacing:.1px!important;font-size:11px!important}
html body .app-shell .card[data-mdc3-card] h3{font-size:20px!important;line-height:1.35!important;margin:10px 0 5px!important;color:#123e59!important}
html body .app-shell .card[data-mdc3-card] .small.muted{font-size:13px!important;color:#58768c!important;line-height:1.55!important;margin:1px 0!important}
html body .app-shell .card[data-mdc3-card] .fineprint{font-size:11px!important;font-weight:700!important;color:#637e8f!important;margin:5px 0 13px!important}
html body .app-shell .card[data-mdc3-card] .mdc3-choose{width:100%;margin-top:auto!important;border-top:1px solid #e3eef4!important;padding:15px 0 0!important}
html body .app-shell .card[data-mdc3-card] .mdc3-choose>b{font:750 12px 'Segoe UI',Arial,sans-serif!important;color:#087985!important;line-height:1.55!important;margin:0!important}
html body .app-shell .card[data-mdc3-card] .mdc26-tap-hint{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding:13px 15px;background:linear-gradient(105deg,#ecf9fa,#f2f7fc);color:#086d83;font:750 13px 'Segoe UI',Arial,sans-serif;border:1px solid #d0e9ea;border-radius:12px}
html body .app-shell .card[data-mdc3-card] .mdc26-tap-hint .mdc26-arrow{font-size:18px;font-weight:800;transition:transform .16s}
html body .app-shell .card[data-mdc3-card]:hover .mdc26-arrow{transform:translateX(4px)}
/* General layouts and the home hero. */
html body .app-shell .hero.mdc-home-hero{border-radius:23px!important;min-height:340px!important;box-shadow:0 15px 33px rgba(5,53,84,.14)!important}
html body .app-shell .mdc-home-overlap .mdc-value-ribbon{padding:14px!important;gap:10px}
html body .app-shell .mdc-home-overlap .mdc-value-ribbon>div{background:#f3f9fc!important;border-radius:13px!important}
html body .app-shell .mission-row{border-radius:13px!important;background:#f8fbfd!important;border-color:#dceaf1!important}
html body .app-shell .mdc-drive-guide{background:#fff!important;border:1px solid #d9eaf1!important;border-radius:18px!important}
html body .app-shell .footer-note.mdc-footer{background:#e8f3fa!important;border:1px solid #d0e3ee!important;border-radius:16px!important;margin-top:28px!important;box-shadow:none!important;backdrop-filter:none!important;padding:17px 20px!important}
html body .app-shell .footer-note.mdc-footer *,html body .app-shell .footer-note.mdc-footer span{color:#3a6077!important;text-shadow:none!important;font-size:11px!important}
html body .app-shell .footer-note.mdc-footer strong{color:#143e59!important}
/* Game choice modal: accessible full-size interaction, not tiny buttons on card. */
.mdc26-picker[hidden]{display:none!important}
.mdc26-picker{position:fixed;inset:0;z-index:2147481500;display:grid;place-items:center;padding:20px;isolation:isolate}
.mdc26-picker-backdrop{position:absolute;inset:0;background:rgba(4,26,44,.68);backdrop-filter:blur(7px)}
.mdc26-picker-dialog{position:relative;width:min(740px,100%);max-height:min(92vh,870px);overflow:auto;background:#fff;border:1px solid #d5eef2;border-radius:24px;box-shadow:0 24px 90px rgba(0,20,45,.32);padding:29px;outline:none;color:#173c56;font-family:'Segoe UI',Arial,sans-serif}
.mdc26-picker-close{position:absolute;right:19px;top:18px;width:40px;height:40px;border:1px solid #dce9ee;background:#f0f6fa;color:#36566c;border-radius:12px;font-size:22px;display:grid;place-items:center;cursor:pointer}
.mdc26-picker-kicker{display:block;margin:0 42px 9px 0;color:#079e90;font:800 11px 'Segoe UI',Arial,sans-serif;letter-spacing:1.3px;text-transform:uppercase}
.mdc26-picker-dialog h2{font:800 clamp(23px,3.4vw,31px) 'Segoe UI',Arial,sans-serif;color:#0b3656;line-height:1.2;margin:0 42px 12px 0}
.mdc26-picker-lead{font:450 14px/1.65 'Segoe UI',Arial,sans-serif;color:#59768c;max-width:580px;margin:0 0 23px}
.mdc26-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mdc26-game{width:100%;min-height:215px;text-align:left;display:flex;flex-direction:column;gap:10px;border-radius:19px;padding:22px;border:1px solid #bfdee9;background:linear-gradient(145deg,#f2fbfc,#e9f4fa);color:#143b57;cursor:pointer;transition:transform .17s,box-shadow .17s,border-color .17s}
.mdc26-game:hover:not(:disabled),.mdc26-game:focus-visible{transform:translateY(-3px);border-color:#18aaad;box-shadow:0 13px 28px #0b6e9930;outline:none}
.mdc26-game--racer{background:linear-gradient(145deg,#eaf7fa,#e9f1fc)}
.mdc26-game-icon{display:grid;place-items:center;width:57px;height:57px;font-size:28px;border-radius:16px;background:#fff;box-shadow:0 4px 13px rgba(0,55,82,.10)}
.mdc26-game strong{font:800 20px 'Segoe UI',Arial,sans-serif;color:#0b4361}
.mdc26-game small{font:450 12.5px/1.6 'Segoe UI',Arial,sans-serif;color:#557489}
.mdc26-game .mdc26-game-open{display:flex;align-items:center;justify-content:space-between;margin-top:auto;color:#087e87;font-weight:800;font-size:13px}
.mdc26-game:disabled{cursor:not-allowed;opacity:.5}
.mdc26-picker-foot{margin:18px 0 0;padding:13px 15px;border-radius:12px;background:#f2f8fb;color:#4c697e;font:500 12px/1.5 'Segoe UI',Arial,sans-serif}
/* Login and forum polish while keeping their existing forms and security. */
html body .login-page.mdc-login-page .login-box{background:#fff!important;border:1px solid #d1e5ee!important;box-shadow:0 24px 70px rgba(5,39,69,.22)!important;border-radius:24px!important}
html body .login-page.mdc-login-page .login-box h2{color:#123c58!important}
html body #mdchRoot .mdch-post,html body #mdchRoot .mdch-compose,html body #mdchRoot .mdch-page-tile{border-radius:19px!important;box-shadow:0 9px 27px #0f385114!important;border-color:#dce7ef!important;background:#fff!important}
html body .app-shell button:focus-visible,html body .app-shell [role="button"]:focus-visible,.mdc26-picker button:focus-visible{outline:3px solid #f1b452!important;outline-offset:3px!important}
@media(max-width:1150px){html body .app-shell{grid-template-columns:234px minmax(0,1fr)}html body .sidebar{padding-inline:12px!important}}
@media(max-width:900px){html body .app-shell #pageContent > .three-col{grid-template-columns:1fr!important;max-width:650px!important}}
@media(max-width:700px){
 html body .app-shell{display:block!important}
 html body .app-shell .content{padding:18px 13px 36px!important}
 html body .app-shell .topbar{height:64px!important;padding-inline:15px!important}
 html body .app-shell #pageContent>.page-heading,html body .app-shell .page-heading{padding:22px!important;min-height:154px!important;margin-bottom:17px!important;border-radius:17px!important}
 html body .app-shell .page-heading h2{font-size:23px!important}
 html body .app-shell .page-heading .eyebrow{font-size:10px!important}
 html body .app-shell #pageContent .three-col .card[data-mdc3-card]{padding:21px!important;min-height:240px}
 html body .app-shell .hero.mdc-home-hero{min-height:360px!important}
 html body .app-shell .footer-note.mdc-footer{margin-top:24px!important}
 .mdc26-picker{padding:12px}.mdc26-picker-dialog{border-radius:18px;padding:23px 18px}
 .mdc26-picker-grid{grid-template-columns:1fr}.mdc26-game{min-height:150px;padding:17px;gap:8px}
 .mdc26-game-icon{width:43px;height:43px;font-size:23px}
 .mdc26-game strong{font-size:18px}
}
@media(prefers-reduced-motion:reduce){html body .app-shell *,.mdc26-picker *{transition:none!important;animation:none!important}}

/* 2026-11-11 RESTORE ORIGINAL FULL-PAGE SCHOOL PHOTO
   User-owned visual asset; keep all game, survey and page functionality. */
html body {
  background-color:#dceef7!important;
  background-image:linear-gradient(180deg,rgba(230,244,252,.46) 0%,rgba(235,246,251,.58) 100%),url('mdc-campus.webp')!important;
  background-size:100% 100%,cover!important;
  background-position:center,center top!important;
  background-attachment:fixed,fixed!important;
  background-repeat:no-repeat!important;
}
html body .app-shell,
html body .app-shell .main,
html body .app-shell .content {
  background:transparent!important;
  background-image:none!important;
}
html body .app-shell #pageContent > .page-heading,
html body .app-shell .page-heading {
  min-height:0!important;
  padding:7px 0 12px!important;
  margin:0 0 23px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  overflow:visible!important;
  align-items:flex-start!important;
}
html body .app-shell .page-heading:before{display:none!important}
html body .app-shell .page-heading .eyebrow{
  color:#f3fbff!important;
  text-shadow:0 2px 8px rgba(0,19,42,.95),0 0 2px #073a58!important;
}
html body .app-shell .page-heading h2{
  color:#fff!important;
  text-shadow:0 3px 12px rgba(0,21,46,.98),0 1px 3px rgba(0,21,46,.9)!important;
}
html body .app-shell .page-heading p{
  color:#f0f9ff!important;
  text-shadow:0 2px 7px rgba(0,20,43,.95),0 0 2px #062f4c!important;
}
@media(max-width:700px){
  html body{background-attachment:scroll,scroll!important}
  html body .app-shell #pageContent > .page-heading,
  html body .app-shell .page-heading{min-height:0!important;padding:6px 0 12px!important;margin-bottom:18px!important}
}

.mdc26-game{min-height:155px!important;gap:7px!important;padding:17px!important}
.mdc26-game--direct{background:linear-gradient(145deg,#f3fcf5,#e0f5e9)!important}
.mdc26-game--block{background:linear-gradient(145deg,#fff9ee,#eef2fc)!important}

.page-heading p:empty{display:none!important}

/* Compact home banner; keep complete phrases together on desktop and balance on mobile. */
html body .app-shell .hero.mdc-home-hero{min-height:290px!important;padding:clamp(24px,2.5vw,38px)!important}
html body .app-shell .hero.mdc-home-hero .hero-copy{width:100%;max-width:930px!important;min-width:0;padding-right:0}
html body .app-shell .hero.mdc-home-hero h2{max-width:100%!important;font-size:clamp(30px,2.8vw,44px)!important;line-height:1.19!important;letter-spacing:-.65px;margin:14px 0!important}
html body .app-shell .hero.mdc-home-hero h2>span,html body .app-shell .hero.mdc-home-hero h2>em{display:block;text-wrap:balance}
html body .app-shell .hero.mdc-home-hero .mdc-home-keep{white-space:nowrap}
@media(max-width:1100px){html body .app-shell .hero.mdc-home-hero{flex-direction:column;align-items:stretch;min-height:0!important}html body .app-shell .hero.mdc-home-hero .mdc-home-facts{position:static!important;margin-top:12px!important}}
@media(max-width:640px){html body .app-shell .hero.mdc-home-hero{padding:22px 18px!important}html body .app-shell .hero.mdc-home-hero h2{font-size:clamp(25px,6.5vw,32px)!important;line-height:1.23!important;letter-spacing:-.4px}}
