:root {
  --gate-gold: #e1ba73;
  --gate-gold-soft: #f2d9a7;
  --gate-blue: #248bf9;
  --gate-blue-soft: #8bc2ff;
  --gate-ink: #101b2b;
  --gate-glass: rgba(13, 24, 40, .74);
  --gate-line: rgba(242, 217, 167, .28);
  --gate-text-soft: rgba(255, 255, 255, .68);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
button, summary { font: inherit; }
.department-gate { position: relative; min-height: 100dvh; overflow-x: hidden; background: #8dc9e9; }
.department-gate-bg, .department-gate-shade { position: fixed; inset: 0; }
.department-gate-bg { z-index: 0; background: #8dc9e9; }
.department-gate-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.04) saturate(1.06); transform: scale(1.01); }
.department-gate-shade { z-index: 1; background: linear-gradient(180deg, rgba(8, 38, 62, .02), rgba(7, 30, 48, .05) 58%, rgba(6, 25, 37, .14)); }
.department-gate-topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 24px; }
.department-gate-actions { display: flex; align-items: center; gap: 8px; }
.department-gate-secure { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(10,20,34,.36); color: rgba(255,255,255,.78); font-size: 10.5px; backdrop-filter: blur(8px); }
.department-gate-secure i { color: var(--gate-gold-soft); }
.department-gate-quick { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(10,20,34,.36); color: rgba(255,255,255,.82); font-size: 11.5px; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); }
.department-gate-quick:hover, .department-gate-quick:focus-visible { border-color: var(--gate-line); background: rgba(255,255,255,.1); color: #fff; outline: none; }
.department-gate-guest { border-color: rgba(139,194,255,.28); }
.department-gate-guest i { color: var(--gate-blue-soft); }
.department-gate-account { position: relative; }
.department-gate-account summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(10,20,34,.42); cursor: pointer; list-style: none; backdrop-filter: blur(8px); }
.department-gate-account summary::-webkit-details-marker { display: none; }
.department-gate-account summary:focus-visible { border-color: var(--gate-gold); outline: none; }
.department-gate-avatar { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: var(--gate-gold); color: #231b0e; font-size: 11px; font-weight: 800; }
.department-gate-user { min-width: 0; line-height: 1.1; text-align: left; }
.department-gate-user strong, .department-gate-user small { display: block; overflow: hidden; max-width: 145px; text-overflow: ellipsis; white-space: nowrap; }
.department-gate-user strong { font-size: 11.5px; }.department-gate-user small { margin-top: 3px; color: var(--gate-text-soft); font-size: 9.5px; }
.department-gate-account summary > i { color: rgba(255,255,255,.55); font-size: 10px; transition: transform .16s ease; }
.department-gate-account[open] summary > i { transform: rotate(180deg); }
.department-gate-account-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(13,24,40,.96); box-shadow: 0 20px 48px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.department-gate-account-id { margin-bottom: 5px; padding: 7px 9px 9px; border-bottom: 1px solid rgba(255,255,255,.1); }
.department-gate-account-id strong, .department-gate-account-id span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.department-gate-account-id strong { font-size: 11.5px; }.department-gate-account-id span { margin-top: 3px; color: var(--gate-text-soft); font-size: 10px; }
.department-gate-account-menu a, .department-gate-account-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.78); font-size: 11.5px; text-align: left; text-decoration: none; cursor: pointer; }
.department-gate-account-menu a:hover, .department-gate-account-menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.department-gate-account-menu form { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.1); }
.department-gate-account-menu form button { color: #ffb8b8; }
.department-gate-main { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - 120px); padding: 18px 24px 72px; }
.department-gate-panel { position: relative; width: min(1080px, 100%); padding: 28px 30px 24px; overflow: hidden; border: 1px solid var(--gate-line); border-radius: 20px; background: var(--gate-glass); box-shadow: 0 38px 90px -32px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); }
.department-gate-panel::before { position: absolute; top: 0; right: 14%; left: 14%; height: 2px; background: linear-gradient(90deg,transparent,var(--gate-blue) 34%,var(--gate-gold) 68%,transparent); content: ""; }
.department-gate-heading { text-align: center; }
.department-gate-eyebrow { color: var(--gate-gold-soft); font-size: 9.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.department-gate-heading h1 { margin: 7px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 31px); font-weight: 500; letter-spacing: .01em; }
.department-gate-heading p { margin: 0 0 20px; color: var(--gate-text-soft); font-size: 12px; }
.department-gate-heading p strong { color: #fff; }
.department-gate-alert { margin: -4px 0 14px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(255,255,255,.07); font-size: 11.5px; text-align: center; }
.department-gate-alert.is-error { border-color: rgba(255,142,142,.35); color: #ffd1d1; }.department-gate-alert.is-warning { border-color: rgba(241,198,112,.35); color: #ffe0a5; }.department-gate-alert.is-success { border-color: rgba(118,216,170,.32); color: #c8f5df; }
.department-gate-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.department-gate-item { min-width: 0; margin: 0; }
.department-gate-item button, .department-gate-item-static { position: relative; display: flex; width: 100%; min-height: 135px; align-items: center; flex-direction: column; justify-content: center; padding: 15px 10px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.055); color: #fff; text-align: center; transition: background .17s ease, border-color .17s ease, box-shadow .17s ease, transform .17s ease; }
.department-gate-item button { cursor: pointer; }
.department-gate-item button:hover, .department-gate-item button:focus-visible, .department-gate-item.is-current button { border-color: rgba(225,186,115,.62); background: rgba(225,186,115,.12); box-shadow: 0 14px 25px -18px rgba(0,0,0,.65); outline: none; transform: translateY(-2px); }
.department-gate-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 9px; border-radius: 11px; background: linear-gradient(145deg, #f1d69e, #c99747); color: #231b0e; box-shadow: 0 10px 20px -12px rgba(225,186,115,.9); font-size: 19px; }
.department-gate-label { overflow: hidden; max-width: 100%; font-size: 12.5px; font-weight: 680; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.department-gate-item small { overflow: hidden; width: 100%; margin-top: 4px; color: rgba(255,255,255,.52); font-size: 8.8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.department-gate-enter { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--gate-gold-soft); font-size: 9.5px; font-weight: 650; opacity: 0; transform: translateY(3px); transition: opacity .17s ease, transform .17s ease; }
.department-gate-item button:hover .department-gate-enter, .department-gate-item button:focus-visible .department-gate-enter, .department-gate-item.is-current .department-gate-enter { opacity: 1; transform: translateY(0); }
.department-gate-item.is-disabled { opacity: .48; }.department-gate-item.is-disabled .department-gate-icon { filter: grayscale(.7); }.department-gate-item.is-disabled .department-gate-enter { opacity: .8; transform: none; color: rgba(255,255,255,.58); }
.department-gate-item.is-submitting button { cursor: wait; opacity: .72; }
.department-gate-item.is-submitting .department-gate-enter i { animation: gate-spin .75s linear infinite; }
@keyframes gate-spin { to { transform: rotate(360deg); } }
.department-gate-access-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; color: rgba(255,255,255,.48); font-size: 9.5px; text-align: center; }
.department-gate-access-note i { color: var(--gate-blue-soft); }
.department-gate-empty { display: flex; align-items: center; flex-direction: column; padding: 26px; border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; color: var(--gate-text-soft); text-align: center; }
.department-gate-empty i { margin-bottom: 9px; color: var(--gate-gold); font-size: 25px; }.department-gate-empty strong { color: #fff; font-size: 13px; }.department-gate-empty span { margin-top: 4px; font-size: 11px; }
.department-gate-footer { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; justify-content: center; gap: 14px; padding: 12px 18px; color: rgba(255,255,255,.58); font-size: 9.5px; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,.5); }
.department-gate-footer span + span::before { margin-right: 14px; content: "·"; }
.department-login-open { overflow: hidden; }
.department-login-modal[hidden] { display: none !important; }
.department-login-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.department-login-backdrop { position: absolute; inset: 0; background: rgba(8,17,29,.48); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: department-login-fade .18s ease both; }
.department-login-dialog { position: relative; width: min(440px,100%); min-height: 445px; overflow: hidden; padding: 30px 32px 25px; border: 1px solid rgba(242,217,167,.38); border-radius: 20px; background: rgba(13,24,40,.96); box-shadow: 0 34px 90px -26px rgba(0,0,0,.78), inset 0 1px rgba(255,255,255,.06); animation: department-login-enter .24s cubic-bezier(.2,.8,.2,1) both; }
.department-login-dialog::before { position: absolute; top: 0; right: 36px; left: 36px; height: 2px; background: linear-gradient(90deg,transparent,var(--gate-blue) 34%,var(--gate-gold) 68%,transparent); content: ""; }
.department-login-close { position: absolute; top: 12px; right: 12px; display: inline-flex; width: 31px; height: 31px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.04); color: rgba(255,255,255,.68); cursor: pointer; }
.department-login-close:hover, .department-login-close:focus-visible { border-color: rgba(242,217,167,.38); color: #fff; outline: none; }
.department-login-brand { display: flex; align-items: center; flex-direction: column; gap: 0; padding: 0; text-align: center; }
.department-login-brand img { width: 58px; height: 58px; margin-bottom: 13px; object-fit: contain; border-radius: 15px; outline: 1px solid rgba(139,194,255,.45); box-shadow: 0 14px 30px -14px rgba(0,82,182,.78), 0 0 0 5px rgba(255,255,255,.035); }
.department-login-brand strong { display: block; }
.department-login-brand strong { font-size: 17px; letter-spacing: -.01em; }
.department-login-heading { margin: 22px 0 18px; text-align: center; }
.department-login-heading h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.department-login-error { margin-bottom: 12px; padding: 8px 10px; border: 1px solid rgba(255,132,132,.3); border-radius: 7px; background: rgba(153,45,57,.22); color: #ffd1d1; font-size: 10.5px; line-height: 1.4; }
.department-login-dialog form { display: grid; gap: 11px; }
.department-login-control { display: flex; min-height: 46px; align-items: center; overflow: hidden; border: 1px solid rgba(139,194,255,.24); border-radius: 12px; background: rgba(255,255,255,.065); box-shadow: inset 0 1px rgba(255,255,255,.035); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.department-login-control:focus-within { border-color: var(--gate-blue-soft); background: rgba(36,139,249,.09); box-shadow: 0 0 0 3px rgba(36,139,249,.13), inset 0 1px rgba(255,255,255,.05); }
.department-login-control > i { width: 45px; flex: 0 0 auto; color: var(--gate-gold-soft); font-size: 13px; text-align: center; }
.department-login-control input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px 9px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 12.5px; }
.department-login-control input::placeholder { color: rgba(255,255,255,.42); }
.department-login-control input:-webkit-autofill, .department-login-control input:-webkit-autofill:hover, .department-login-control input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px #18283b inset !important; -webkit-text-fill-color: #fff !important; caret-color: #fff; }
.department-login-control button { display: inline-flex; width: 43px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; }
.department-login-control button:hover { background: rgba(255,255,255,.06); color: #fff; }
.department-login-submit { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 7px; margin-top: 4px; padding: 9px 12px; border: 1px solid #edcf93; border-radius: 12px; background: linear-gradient(135deg,#e8c982,#c99747); box-shadow: 0 13px 26px -16px rgba(225,186,115,.9); color: #281f11; font-size: 12.5px; font-weight: 750; cursor: pointer; }
.department-login-submit:hover, .department-login-submit:focus-visible { background: linear-gradient(135deg,#f0d89f,#d5a553); outline: none; }
.department-login-submit:disabled { cursor: wait; opacity: .72; }
.department-login-submit.is-loading i { animation: gate-spin .75s linear infinite; }
@keyframes department-login-fade { from { opacity: 0; } }
@keyframes department-login-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (max-width: 900px) { .department-gate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.department-gate-panel { padding: 24px; }.department-gate-main { align-items: flex-start; padding-top: 30px; } }
@media (max-width: 640px) { .department-gate-topbar { padding: 10px 13px; }.department-gate-user { display: none; }.department-gate-account summary { width: 38px; padding: 3px; }.department-gate-account summary > i { display: none; }.department-gate-main { min-height: calc(100dvh - 102px); padding: 12px 12px 72px; }.department-gate-panel { padding: 20px 14px 17px; border-radius: 16px; }.department-gate-heading h1 { font-size: 23px; }.department-gate-heading p { margin-bottom: 16px; }.department-gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.department-gate-item button, .department-gate-item-static { min-height: 124px; }.department-gate-enter { opacity: .9; transform: none; }.department-gate-footer { position: relative; flex-direction: column; gap: 2px; margin-top: -58px; padding-bottom: 10px; }.department-gate-footer span + span::before { display: none; } }
@media (max-width: 370px) { .department-gate-grid { grid-template-columns: 1fr; }.department-gate-item button, .department-gate-item-static { min-height: 116px; } }
@media (max-width: 640px) { .department-login-modal { align-items: center; padding: 12px; }.department-login-dialog { min-height: 0; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 25px 19px 21px; border-radius: 18px; }.department-login-brand img { width: 52px; height: 52px; margin-bottom: 11px; }.department-login-heading { margin: 18px 0 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

@keyframes department-gate-enter {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: var(--gate-enter-opacity, 1); transform: translateY(0) scale(1); }
}
body[data-hms-animations="on"] .department-gate-topbar,
body[data-hms-animations="on"] .department-gate-panel,
body[data-hms-animations="on"] .department-gate-heading,
body[data-hms-animations="on"] .department-gate-alert,
body[data-hms-animations="on"] .department-gate-item,
body[data-hms-animations="on"] .department-gate-access-note,
body[data-hms-animations="on"] .department-gate-empty,
body[data-hms-animations="on"] .department-gate-footer {
  animation: department-gate-enter .58s cubic-bezier(.2,.8,.25,1) both;
}
body[data-hms-animations="on"] .department-gate-topbar { animation-delay: .04s; }
body[data-hms-animations="on"] .department-gate-panel { animation-delay: .12s; }
body[data-hms-animations="on"] .department-gate-heading { animation-delay: .20s; }
body[data-hms-animations="on"] .department-gate-alert { animation-delay: .26s; }
body[data-hms-animations="on"] .department-gate-item { animation-delay: var(--gate-enter-delay, .32s); }
body[data-hms-animations="on"] .department-gate-access-note { animation-delay: var(--gate-enter-delay, 1.2s); }
body[data-hms-animations="on"] .department-gate-empty { animation-delay: .32s; }
body[data-hms-animations="on"] .department-gate-footer { animation-delay: .78s; }
.department-gate-item.is-disabled { --gate-enter-opacity: .48; }

body[data-hms-animations="off"] .department-login-backdrop,
body[data-hms-animations="off"] .department-login-dialog,
body[data-hms-motion="reduced"] .department-login-backdrop,
body[data-hms-motion="reduced"] .department-login-dialog { animation: none; }
body[data-hms-motion="reduced"] .department-gate-topbar,
body[data-hms-motion="reduced"] .department-gate-panel,
body[data-hms-motion="reduced"] .department-gate-heading,
body[data-hms-motion="reduced"] .department-gate-alert,
body[data-hms-motion="reduced"] .department-gate-item,
body[data-hms-motion="reduced"] .department-gate-access-note,
body[data-hms-motion="reduced"] .department-gate-empty,
body[data-hms-motion="reduced"] .department-gate-footer { opacity: var(--gate-enter-opacity, 1); animation: none; }
@media (prefers-reduced-motion: reduce) {
  body[data-hms-animations="on"] .department-gate-topbar,
  body[data-hms-animations="on"] .department-gate-panel,
  body[data-hms-animations="on"] .department-gate-heading,
  body[data-hms-animations="on"] .department-gate-alert,
  body[data-hms-animations="on"] .department-gate-item,
  body[data-hms-animations="on"] .department-gate-access-note,
  body[data-hms-animations="on"] .department-gate-empty,
  body[data-hms-animations="on"] .department-gate-footer { opacity: var(--gate-enter-opacity, 1); animation: none; }
  .department-login-backdrop, .department-login-dialog { animation: none; }
}
