/* Transparent identity, framed application and a calm navigation surface. */
.pub .brand,
.admin-theme .pub-marka .brand-carousel,
.admin-theme .side-brand .ivme-logo,
.admin-theme .institution-stat img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.pub .brand { width: 164px !important; height: 86px !important; overflow: visible; }
.pub .brand img, .admin-theme .brand-carousel img { filter: none !important; }
.admin-theme .pub-marka .brand-carousel { height: 86px !important; }

/* The animation itself retains its alpha channel; there is no coloured logo tile. */
.brand-intro { background: #f7f8faf5 !important; backdrop-filter: blur(14px); }
.brand-intro .intro-stage { background: transparent !important; box-shadow: none !important; }
.brand-intro #intro-animation { background: transparent !important; filter: drop-shadow(0 1px 0 #576172) drop-shadow(0 5px 16px #26334915) !important; }
.brand-intro .intro-stage > p { color: #5e697a; font-weight: 600; }
#intro-skip { border-color: #cbd2dc; color: #344156; background: #ffffffc9; }
.intro-progress { background: #c3e4d0; }

/* Public information panel. */
.application-page .form-aside {
  background: linear-gradient(145deg, #fff 55%, #f0fcf5) !important;
  border: 1px solid #dddcd4;
  color: #243044;
  box-shadow: 0 8px 32px #24304408, 0 1px 3px #24304406;
}
.application-page .form-aside:before { display: none; }
.application-page .form-aside:after { width: 74px; height: 3px; }
.application-page .aside-brandline { color: #717b88; margin-bottom: 30px; }
.application-page .form-aside .eyebrow { color: #10833c !important; }
.application-page .form-aside h1 { color: #202c40; font-size: clamp(39px,3.5vw,50px); line-height: 1.15; }
.application-page .form-aside h1 em { color: #14a049; }
.application-page .form-aside .aside-lead { color: #6a7483; }
.application-page .form-aside .aside-date { border-color: #e8e3d5; padding: 20px 0; }
.application-page .aside-date .date-icon { background: #d3fae2; color: #129243; border: 1px solid #acf0c6; }
.application-page .form-aside .aside-date strong { color: #2a3547; }
.application-page .form-aside .aside-date div > span { color: #6f7886; font-weight: 500; }
.application-page .eligible-grades h2 { color: #394354; }
.application-page .eligible-grades li { background: #fff !important; border-color: #e6e1d4 !important; box-shadow: 0 2px 5px #27344604; }
.application-page .eligible-grades li strong { color: #27354a !important; }
.application-page .eligible-grades li span { color: #7b8491 !important; }
.application-page .form-aside .grade-branch-note { color: #727c89 !important; }
.application-page .aside-assurance { border-color: #e7e4db; }
.application-page .aside-assurance > span { color: #139645; }
.application-page .aside-assurance p { color: #78818e; }
.application-page .aside-assurance strong { color: #465162; }
.application-page .aside-branches { border-color: #e7e4db; gap: 12px; }
.application-page .aside-branches a { padding: 14px 15px; border: 1px solid #e8e5db; border-radius: 10px; background: #ffffffb8; }
.application-page .aside-branches strong { color: #344156; }
.application-page .aside-branches span { color: #7a8491; }
.application-page .aside-branches b { color: #10823c; font-size: 14px; }
.application-page .aside-branches a:hover { border-color: #83d3a2; }
.application-page .aside-branches a:hover b { color: #0d652f; }
.application-page .aside-footer { color: #949ca7; }

/* A visible outer frame, with separately framed form sections. */
.application-page .form-card.mascot-framed {
  position: relative;
  border: 1px solid #bdc8d6 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 0 0 5px #ffffffb8, 0 0 0 6px #e3e7ee, 0 18px 48px #25354e0c !important;
  padding: 32px !important;
}
.application-page .form-card.mascot-framed:before { display: none; }
.application-page .form-card.mascot-framed:after { content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg,#4de186,#81efab,#4de186); pointer-events: none; }
.application-page .application-card-heading { margin-bottom: 22px !important; padding-bottom: 24px !important; }
.application-page .application-seal { border-left: 0; padding: 10px 14px; background: #f3fcf6; border: 1px solid #c2eed3; border-radius: 10px; }
.application-page .application-seal span { color: #139a47; font-size: 22px; }
.application-page .application-seal small { color: #9c8c66; }
.application-page #reference-form { counter-reset: application-step; }
.application-page .form-section { position: relative; padding: 22px; margin-top: 22px; border: 1px solid #dce2eb; border-radius: 13px; background: linear-gradient(180deg,#fafbfd 0,#fff 110px); }
.application-page .form-section:first-of-type { margin-top: 0; }
.application-page .form-section h3 { display: flex; align-items: center; gap: 11px; font-size: 16px; margin: 0 0 22px; padding: 0 0 17px; border-color: #e5e9f0; }
.application-page .form-section h3:before { counter-increment: application-step; content: counter(application-step,decimal-leading-zero); display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 1px solid #aee8c4; border-radius: 8px; background: #e0fbea; color: #1c9249; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.application-page .form-grid { gap: 20px 16px; }
.application-page .form-section input,
.application-page .form-section select { border-color: #cbd4e0 !important; box-shadow: 0 1px 2px #26364a05; }
.application-page .form-section input:focus,
.application-page .form-section select:focus { border-color: #42b46e !important; box-shadow: 0 0 0 3px #47c67818 !important; }
.application-page .registration-notice { border-color: #9ee8ba; background: #f1fdf6; border-left: 3px solid #42d77b; padding: 14px 17px; }
.application-page .venue-notice { border-color: #e3e6ec !important; background: #fff !important; }
.application-page .exam-selection-summary { background: #fff !important; border: 1px dashed #c5cfdd !important; }
.application-page .privacy-box { padding: 16px 18px !important; border: 1px solid #e2e7ee !important; border-radius: 10px; background: #fafbfd !important; }
.application-page .privacy-box label { line-height: 1.9; color: #677588 !important; }
.application-page #reference-form > .form-submit { min-height: 54px !important; background: #3fe77f !important; color: #2e2c22 !important; border: 1px solid #2dd96f !important; box-shadow: 0 5px 13px #25be5f1c !important; border-radius: 10px !important; }
.application-page #reference-form > .form-submit:hover { background: #2be371 !important; }
.application-page .form-status { text-align: center; }

/* Desktop management navigation. */
.admin-theme .portal-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 26px; max-width: 1510px; align-items: start; padding: 30px 28px; }
.admin-theme .sidebar { position: sticky; top: 24px; width: auto; height: auto; padding: 18px 12px; border: 1px solid #dde2e9 !important; border-radius: 16px; background: #fff !important; box-shadow: 0 8px 25px #25354b05; }
.admin-theme .side-brand { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; min-height: 124px; padding: 6px 10px 20px; margin-bottom: 18px; border-bottom: 1px solid #eceef2; text-decoration: none; }
.admin-theme .side-brand .ivme-logo { width: 150px; min-height: 78px; height: 78px; }
.admin-theme .side-brand > span { color: #9199a4; letter-spacing: .13em; font-size: 9px; }
.admin-theme .nav-caption { display: block; color: #9a9075; padding: 0 13px 12px; font-size: 9px; }
.admin-theme .sidebar nav { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: transparent !important; }
.admin-theme .nav-item { display: flex; justify-content: flex-start; align-items: center; gap: 11px; flex: none; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid transparent; border-radius: 9px; color: #697487 !important; font-size: 12px !important; font-weight: 550; white-space: normal; text-align: left; box-shadow: none !important; }
.admin-theme .nav-item:hover { color: #354157 !important; background: #f7f8fa !important; }
.admin-theme .nav-item.active { color: #11863e !important; background: #dffbea !important; border-color: #afecc6; box-shadow: none !important; }
.admin-theme .nav-item .nav-icon { flex-shrink: 0; }
.admin-theme .side-help { display: block; margin: 24px 7px 14px; padding: 14px; background: #fafbf9; border: 1px solid #e6e9e3; border-radius: 10px; }
.admin-theme .side-help strong { color: #596a58; font-size: 11px; }
.admin-theme .side-help p { color: #8b968a; font-size: 10px; line-height: 1.8; margin-top: 6px; }
.admin-theme .side-public { display: block; margin: 0 12px 3px; color: #7c8797; font-size: 10px; }
.admin-theme .portal-main { margin: 0; min-width: 0; }
.admin-theme .portal-header { border-color: #d8dfe9; box-shadow: 0 2px 8px #24334b03; }
.admin-theme .workspace { padding: 28px 0 5px; }
.admin-theme .panel { border-color: #d4dce7; box-shadow: 0 4px 16px #24334b04; }
.admin-theme .exam-brand-panel { background: #f6fbf8 !important; border-block: 1px solid #d8eee0; }
.admin-theme .exam-brand-panel h2 { color: #139745; }
.admin-theme .exam-brand-panel p { color: #7a8492; }
.admin-theme .welcome-banner { background: linear-gradient(115deg,#f2fdf6,#fff) !important; border: 1px solid #b2e5c5 !important; }
.admin-theme .welcome-banner h2 { color: #29374c !important; }
.admin-theme .welcome-banner p { color: #808a98 !important; }
.admin-theme .welcome-banner > div:first-child > span { color: #1aa34e !important; }
.admin-theme .banner-button { border-color: #8ed9ab !important; color: #208c49 !important; background: #fff !important; }
.admin-theme .banner-symbol img { background: transparent !important; }

@media(max-width:1100px) {
  .application-page .form-card.mascot-framed { padding: 25px !important; }
  .application-page .form-section { padding: 19px; }
  .admin-theme .portal-shell { grid-template-columns: 205px minmax(0,1fr); padding: 25px 20px; gap: 20px; }
}
@media(max-width:900px) {
  .admin-theme .portal-shell { display: block; padding: 22px 18px; }
  .admin-theme .sidebar { position: static; padding: 9px; margin-bottom: 20px; }
  .admin-theme .side-brand,.admin-theme .nav-caption,.admin-theme .side-help,.admin-theme .side-public { display: none; }
  .admin-theme .sidebar nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .admin-theme .nav-item { justify-content: center; padding: 10px 8px; font-size: 11px !important; text-align: center; }
  .admin-theme .nav-item .nav-icon { display: none; }
  .admin-theme .portal-main { margin: 0; }
}
@media(max-width:800px) {
  .application-page .form-aside { border-radius: 16px; }
  .application-page .aside-branches { margin-top: 18px; padding-top: 18px; }
  .application-page .form-card.mascot-framed { box-shadow: 0 0 0 3px #fff,0 0 0 4px #e3e7ee,0 10px 25px #25354e08 !important; }
}
@media(max-width:520px) {
  .pub .brand { width: 112px !important; height: 65px !important; }
  .application-page .form-card.mascot-framed { padding: 22px 15px !important; border-radius: 16px !important; }
  .application-page .form-section { padding: 18px 14px; border-radius: 11px; margin-top: 18px; }
  .application-page .form-section h3 { font-size: 15px; gap: 9px; margin-bottom: 19px; }
  .application-page .form-grid { gap: 18px; }
  .application-page .aside-branches { gap: 9px; }
  .application-page .aside-branches a { padding: 12px 11px; }
  .application-page .privacy-box { padding: 13px !important; }
  .application-page .application-card-heading { gap: 10px; }
  .admin-theme .portal-shell { padding-inline: 12px; }
  .admin-theme .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
