:root {
  --navy: #06285f;
  --blue: #0b5dc0;
  --green: #247a5a;
  --text: #0a2b61;
  --muted: #476695;
  --line: #d9e5f2;
  --focus: #1683c7;
  --shadow: 0 16px 45px rgb(5 34 78 / 18%);
  color: var(--text);
  background: #edf4fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
body.login-screen::before { content: ""; position: fixed; z-index: 9998; inset: 0; background: rgb(0 0 0 / 50%); pointer-events: none; }
button, a { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

@keyframes enter-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes enter-left { from { opacity: 0; translate: -22px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes button-pulse { 0%, 100% { box-shadow: 0 5px 13px rgb(4 42 104 / 20%), 0 0 0 0 rgb(74 153 255 / 0%); } 50% { box-shadow: 0 8px 24px rgb(4 42 104 / 36%), 0 0 0 7px rgb(74 153 255 / 13%); } }
@keyframes shimmer { 0% { transform: translateX(-170%) skewX(-22deg); } 58%, 100% { transform: translateX(270%) skewX(-22deg); } }

.shell { min-height: 100vh; display: block; background: #fff; }
.sidebar { position: sticky; top: 0; z-index: 10; height: 100vh; padding: 0 15px 15px; display: flex; flex-direction: column; border-right: 1px solid rgb(186 207 230 / 72%); background: linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(250 253 255 / 78%) 72%, rgb(235 245 255 / 84%)); box-shadow: 8px 0 30px rgb(10 48 94 / 6%); backdrop-filter: blur(20px) saturate(145%); }
.brand { height: 74px; display: flex; align-items: center; justify-content: center; overflow: visible; animation: enter-left .62s cubic-bezier(.2, .8, .2, 1) both; }
.brand img { width: 222px; height: 58px; object-fit: contain; display: block; }
.nav { display: grid; gap: 4px; margin-top: 7px; }
.nav a { min-height: 44px; display: flex; align-items: center; gap: 15px; padding: 7px 9px; border-radius: 9px; color: #082a60; text-decoration: none; font-size: .9rem; font-weight: 540; transition: background .18s ease, transform .18s ease; animation: enter-left .52s cubic-bezier(.2, .8, .2, 1) both; }
.nav a:hover { background: #eef6ff; transform: translateX(3px); }
.nav a:nth-child(1) { animation-delay: .08s; }
.nav a:nth-child(2) { animation-delay: .13s; }
.nav a:nth-child(3) { animation-delay: .18s; }
.nav a:nth-child(4) { animation-delay: .23s; }
.nav a:nth-child(5) { animation-delay: .28s; }
.nav a:nth-child(6) { animation-delay: .33s; }
.nav a:nth-child(7) { animation-delay: .38s; }
.nav a:nth-child(8) { animation-delay: .43s; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; color: #082d68; }
.icon svg, .card-icon svg, .utility-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.staff { margin-top: auto; display: flex; gap: 11px; align-items: flex-start; padding: 16px 14px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 11px; background: linear-gradient(135deg, rgb(237 246 255 / 86%), rgb(221 236 255 / 76%)); box-shadow: inset 0 0 0 1px rgb(50 105 170 / 4%), 0 8px 24px rgb(29 79 132 / 8%); overflow-wrap: anywhere; animation: enter-left .62s .48s cubic-bezier(.2, .8, .2, 1) both; }
.staff strong { display: block; margin-bottom: 5px; font-size: .95rem; }
.staff span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.staff form { margin-top: 8px; border-top: 1px solid #cfdded; text-align: right; }
.staff button { padding: 8px 0 0; border: 0; color: #a12c38; background: none; cursor: pointer; font-size: .78rem; font-weight: 700; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.hub-toolbar { min-height: 70px; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #30548e; background: #fff; }
.profile { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.profile form { margin: 0; }
.profile button { border: 0; background: transparent; color: #a12c38; cursor: pointer; font-weight: 700; }
.admin-link { color: #0b5dc0; font-size: .84rem; font-weight: 700; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #244f88; background: #dce9fb; font-size: 1rem; }
main { min-width: 0; }
.hero { min-height: 341px; position: relative; display: grid; place-items: center; padding: 34px 18px 48px; background: #164a72 url("dewey-hero-poster.jpg") center / cover no-repeat; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; pointer-events: none; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: transparent; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: 1; left: -2%; right: -2%; bottom: -27px; height: 118px; background: linear-gradient(176deg, transparent 0 38%, rgb(36 126 86 / 96%) 39% 48%, rgb(4 65 117 / 98%) 49% 62%, #062d68 63% 100%); transform: skewY(-.8deg); transform-origin: right; }
.hero-brand { position: absolute; z-index: 2; top: 20px; left: 24px; width: 280px; height: auto; max-width: calc(100% - 40px); object-fit: contain; object-position: left top; filter: drop-shadow(0 3px 5px rgb(0 24 56 / 38%)); }
.sign-in-section { padding: 26px 16px 30px; background: #f5f9fe; }
body.login-screen .sign-in-section { position: relative; z-index: 9999; background: transparent; }
.welcome-card { width: min(500px, 100%); margin: 0 auto; padding: 28px 34px 26px; border: 1px solid rgb(211 227 244 / 90%); border-radius: 12px; text-align: center; background: #fff; box-shadow: 0 12px 32px rgb(5 34 78 / 12%); animation: enter-up .72s .18s cubic-bezier(.16, .85, .28, 1) both; }
.eyebrow { margin: 0 0 13px; color: #315993; font-size: .72rem; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; color: #072b64; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
.version-suffix { font-size: .5em; }
.welcome-card h1 + .primary-button { margin-top: 20px; }
.lead { max-width: 440px; margin: 12px auto 19px; color: #3d5f93; font-size: 1rem; line-height: 1.48; }
.primary-button { position: relative; isolation: isolate; width: min(320px, 100%); min-height: 44px; padding: 10px 18px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; overflow: hidden; border-radius: 7px; color: #fff; background: linear-gradient(90deg, #092b74, #0b3185); box-shadow: 0 5px 13px rgb(4 42 104 / 20%); text-decoration: none; font-weight: 750; animation: button-pulse 2.8s 1s ease-in-out infinite; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button::after { content: ""; position: absolute; z-index: -1; inset: -35% auto -35% -28%; width: 34%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 60%), transparent); transform: translateX(-170%) skewX(-22deg); animation: shimmer 3.4s 1.15s ease-in-out infinite; pointer-events: none; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(4 42 104 / 28%); }
.ms-logo { width: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-logo i { display: block; aspect-ratio: 1; background: #fff; }
.hint { margin: 14px 0 0; color: #49699a; font-size: .82rem; line-height: 1.45; }

.content { padding: 10px 24px 24px; background: #fff; }
.section-heading { margin: 0 0 17px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; text-align: right; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; perspective: 1100px; }
.app-card { min-height: 149px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 72%); border-radius: 11px; color: var(--text); background: linear-gradient(135deg, #eef8ff, #dfefff); box-shadow: 0 4px 14px rgb(17 76 148 / 7%); text-align: center; text-decoration: none; transform-style: preserve-3d; animation: enter-up .58s cubic-bezier(.2, .8, .2, 1) both; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, filter .28s ease; }
.app-card:hover { transform: perspective(850px) translateY(-7px) rotateX(3deg) rotateY(-3deg) scale(1.018); box-shadow: 0 16px 32px rgb(17 76 148 / 20%), 0 0 22px rgb(54 145 255 / 15%); filter: saturate(1.08) brightness(1.02); }
.app-card:nth-child(1) { animation-delay: .16s; }
.app-card:nth-child(2) { animation-delay: .23s; }
.app-card:nth-child(3) { animation-delay: .3s; }
.app-card:nth-child(4) { animation-delay: .37s; }
.app-card:nth-child(5) { animation-delay: .44s; }
.app-our_people { background: linear-gradient(135deg, #effaf1, #e1f3e6); }
.app-tripwise { background: linear-gradient(135deg, #fff9ed, #fff0cf); }
.app-travel { background: linear-gradient(135deg, #f6f3ff, #e9e5ff); }
.app-student_reviews { background: linear-gradient(135deg, #fff2f4, #fde3e6); }
.card-icon { width: 42px; height: 42px; margin-bottom: 10px; color: #0962bd; }
.app-our_people .card-icon { color: #1e6c47; }
.app-tripwise .card-icon { color: #ba7600; }
.app-travel .card-icon { color: #2b2484; }
.app-student_reviews .card-icon { color: #79325d; }
.app-card strong { display: block; margin-bottom: 7px; font-size: 1rem; letter-spacing: -.02em; }
.app-card > span:last-child { display: block; max-width: 180px; color: #486a98; font-size: .84rem; line-height: 1.4; }
.app-card[draggable="true"], .portal-card[draggable="true"] { cursor: grab; }
.app-card.is-dragging, .portal-card.is-dragging { opacity: .5; }
.app-card.is-drop-target, .portal-card.is-drop-target, .favorite-slot.is-drop-target { outline: 3px solid var(--focus); outline-offset: -3px; }
.empty-state { padding: 28px; border: 1px solid var(--line); border-radius: 11px; background: #f7faff; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); line-height: 1.6; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
.utilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.utility { min-height: 80px; padding: 15px 17px; display: flex; align-items: center; gap: 15px; border: 0; border-radius: 9px; color: var(--text); background: linear-gradient(135deg, #f5f9fe, #edf4fc); text-align: left; text-decoration: none; animation: enter-up .55s cubic-bezier(.2, .8, .2, 1) both; transition: background .18s ease, transform .18s ease; }
a.utility:hover { background: #e8f2fd; transform: translateY(-2px); }
.utility:nth-child(1) { animation-delay: .5s; }
.utility:nth-child(2) { animation-delay: .57s; }
.utility:nth-child(3) { animation-delay: .64s; }
.utility-icon { width: 41px; height: 41px; flex: 0 0 41px; color: #0864c7; }
.utility strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.utility small { display: block; color: #496997; font-size: .84rem; line-height: 1.4; }
.chev { margin-left: auto; color: #4970a8; font-size: 2rem; font-weight: 300; }
.announcements { scroll-margin-top: 20px; margin-top: 22px; padding: 22px 24px; display: grid; grid-template-columns: minmax(170px, .4fr) minmax(0, 1.6fr); gap: 25px; align-items: start; border: 1px solid #d7e3ef; border-radius: 11px; background: linear-gradient(135deg, rgb(255 253 246 / 96%), rgb(244 249 255 / 94%)); box-shadow: 0 8px 28px rgb(16 61 115 / 7%); }
.announcements .eyebrow { margin-bottom: 6px; }
.announcements h2 { margin: 0; color: #143f72; font-size: 1.18rem; }
.announcements > p, .announcements ul { margin: 0; color: #365777; line-height: 1.6; }
.announcements ul { padding-left: 20px; }
.announcements li + li { margin-top: 8px; }
footer { min-height: 54px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #365e95; background: #fff; font-size: .82rem; }
footer em { padding-left: 34px; border-left: 1px solid #7b92b1; color: #0660b9; font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 1rem; }
.favorites { margin-top: 16px; padding: 16px 20px 12px; border-radius: 12px; background: #f5f8fd; }
.favorites-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.favorites-heading-copy { display: grid; gap: 4px; }
.favorites-heading h3 { margin: 0; font-size: 1.05rem; }
.favorites-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.reset-layout { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #b9cbe3; border-radius: 7px; color: #174778; background: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.reset-layout:hover { border-color: #7ca7d8; background: #eef6ff; }
.favorite-slot { min-height: 132px; border: 2px dashed #c7d7eb; border-radius: 11px; background: rgb(255 255 255 / 50%); }
.layout-status { min-height: 1em; margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.portal { margin-top: 8px; padding: 16px 20px; border-radius: 14px; background: #f5f8fd; }
.portal-search { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.portal-search input { width: min(340px, 42vw); padding: 10px 12px; border: 1px solid #b9cbe3; border-radius: 8px; font: inherit; font-size: .9rem; }
.portal-group + .portal-group { margin-top: 12px; }
.portal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.portal-card { position: relative; min-width: 0; min-height: 128px; padding: 0; display: flex; flex-direction: column; border: 1px solid #dbe5f2; border-radius: 11px; background: #fdfefe; box-shadow: 0 4px 14px rgb(17 76 148 / 5%); transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
.portal-card[hidden] { display: none; }
.portal-card:hover, .portal-card:focus-within { transform: translateY(-4px); border-color: #91b9ed; background: #f7fbff; box-shadow: 0 12px 26px rgb(17 76 148 / 17%); }
.portal-card[data-category="finance"] { background: #fff8f8; }
.portal-card[data-category="finance"]:hover, .portal-card[data-category="finance"]:focus-within { border-color: #e97878; background: #ffe3e3; box-shadow: 0 12px 26px rgb(176 38 38 / 20%); }
.portal-card[data-category="hr"] { background: #fffbef; }
.portal-card[data-category="hr"]:hover, .portal-card[data-category="hr"]:focus-within { border-color: #d8a72e; background: #fff0bf; box-shadow: 0 12px 26px rgb(166 119 13 / 20%); }
.portal-card[data-category="safety"] { background: #f7fdf9; }
.portal-card[data-category="safety"]:hover, .portal-card[data-category="safety"]:focus-within { border-color: #4eae7a; background: #dff5e7; box-shadow: 0 12px 26px rgb(32 120 73 / 20%); }
.portal-card[data-category="operations"] { background: #fffdf3; }
.portal-card[data-category="operations"]:hover, .portal-card[data-category="operations"]:focus-within { border-color: #d1ae3d; background: #fff5ce; box-shadow: 0 12px 26px rgb(145 112 16 / 19%); }
.portal-card[data-category="inventory"] { background: #f3f9ff; }
.portal-card[data-category="inventory"]:hover, .portal-card[data-category="inventory"]:focus-within { border-color: #5796d5; background: #d7ecff; box-shadow: 0 12px 26px rgb(32 91 157 / 20%); }
.favorites-grid .portal-card { min-height: 128px; }
.portal [hidden] { display: none !important; }
.portal-grid > a.portal-card { color: var(--blue); font-weight: 700; text-decoration: none; }
.portal-grid > a.portal-card:hover, .portal-grid > a.portal-card:focus-visible { color: #073b87; }
.portal-card-link { position: relative; flex: 1; display: flex; align-items: center; padding: 26px 12px 10px; color: inherit; text-decoration: none; }
.portal-card-body { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; }
.portal-card-icon { width: 52px; height: 52px; flex: 0 0 52px; display: block; object-fit: contain; filter: drop-shadow(0 4px 5px rgb(18 73 128 / 12%)); }
.portal-card-copy { flex: 1; min-width: 0; overflow-wrap: break-word; }
.portal-pin { position: absolute; z-index: 2; top: 5px; right: 8px; padding: 1px 3px; border: 0; background: none; color: #9aaabe; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.portal-pin[aria-pressed="true"] { color: #d39b12; }
.portal-card h4 { margin: 0 0 4px; font-size: .88rem; line-height: 1.25; }
.portal-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.portal-card .portal-subtitle { color: #315993; font-weight: 650; }
.portal-empty { padding: 28px; text-align: center; color: var(--muted); }
.personal-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.personal-heading h3 { margin: 0 0 4px; font-size: 1.05rem; }
.personal-heading p, .personal-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.personal-note { padding: 8px 0 16px; }
.district-links-heading { margin: 20px 0 12px; font-size: 1.05rem; }
.personal-button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #0756a7; border-radius: 7px; background: #0756a7; color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.personal-button:hover { background: #06457f; }
.personal-button:disabled { opacity: .6; cursor: wait; }
.personal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 16px; border: 1px solid #c7d7eb; border-radius: 10px; background: #fff; }
.personal-form h4, .personal-form-actions, .personal-error { grid-column: 1 / -1; margin: 0; }
.personal-form label { display: grid; gap: 5px; align-content: start; color: #173c68; font-size: .82rem; font-weight: 700; }
.personal-form input, .personal-form select { min-width: 0; width: 100%; padding: 9px; border: 1px solid #9db6d3; border-radius: 6px; background: #fff; color: #153659; font: inherit; }
.personal-form small { color: #486a98; font-weight: 400; line-height: 1.4; }
.personal-form .icon-picker { position: relative; min-width: 0; }
.personal-form .icon-toggle, .personal-form .icon-option { display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: #102f5e; background: #fff; font-size: .87rem; font-weight: 450; cursor: pointer; text-align: left; }
.personal-form .icon-toggle { width: 100%; border: 1px solid #bdcfe3; border-radius: 6px; }
.personal-form .icon-preview, .personal-form .icon-option img { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.personal-form .icon-name, .personal-form .icon-option span { min-width: 0; overflow-wrap: anywhere; }
.personal-form .icon-arrow { margin-left: auto; color: #365e95; }
.personal-form .icon-options { position: absolute; z-index: 10; inset-inline: 0; top: calc(100% + 5px); max-height: min(336px, 50vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #bdcfe3; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(17 76 148 / 18%); }
.personal-form .opens-up .icon-options { top: auto; bottom: calc(100% + 5px); }
.personal-form .icon-option + .icon-option { border-top: 1px solid #edf2f8; }
.personal-form .icon-option:hover, .personal-form .icon-option:focus { outline: none; background: #edf4fb; box-shadow: inset 0 0 0 2px #1683c7; }
.personal-form .icon-option[aria-selected="true"] { color: #0a4c9b; background: #e2efff; font-weight: 700; }
.personal-form-actions { display: flex; gap: 8px; }
.personal-error { color: #9c2626; font-size: .85rem; }
.personal-error:empty { display: none; }
.personal-card-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 10px 8px; }
.personal-card-actions button { padding: 2px; border: 0; background: transparent; color: #174f89; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.personal-card-actions button:hover { text-decoration: underline; }
.personal-form :focus-visible, .personal-button:focus-visible, .personal-card-actions button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 1500px) and (min-width: 1051px) {
  .portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .shell { display: block; }
  .sidebar { padding: 0 10px 14px; }
  .brand { height: 82px; }
  .brand img { width: 285px; max-width: none; transform: translateX(-5px); }
  .nav a { justify-content: center; padding: 10px; }
  .nav a > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .staff { justify-content: center; padding: 15px; }
  .staff > div { display: none; }
  .welcome-card { width: min(500px, 100%); }
  .hero-brand { top: 16px; left: 16px; width: min(220px, 42vw); height: auto; }
  .utilities { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .brand, .nav a, .welcome-card, .app-card, .utility { animation: none; }
  .shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 0 12px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 74px; }
  .brand img { width: 280px; transform: none; }
  .nav { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 0; }
  .nav a { min-height: 48px; }
  .staff { display: none; }
  .hub-toolbar { min-height: 58px; padding: 8px 16px; }
  .hero { min-height: 440px; padding: 30px 16px 55px; background-position: center; }
  .welcome-card { width: 100%; padding: 31px 20px; }
  .hero::after { height: 80px; }
  .content { padding: 20px 16px; }
  .portal, .favorites { padding: 16px; }
  .hub-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
  .hub-toolbar .profile { justify-content: flex-end; }
  .portal-search { width: 100%; justify-content: space-between; }
  .portal-search input { width: min(100%, 340px); }
  .favorites-heading { align-items: flex-start; flex-direction: column; }
  .personal-heading { align-items: flex-start; flex-direction: column; }
  .personal-form { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .section-heading > p { text-align: left; }
  .apps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card { min-height: 165px; }
  .app-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .announcements { grid-template-columns: 1fr; gap: 14px; }
  footer { padding: 18px; gap: 10px; flex-direction: column; text-align: center; }
  footer em { padding: 0; border: 0; }
}

@media (max-width: 430px) {
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav a { min-width: 0; }
  .apps { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .app-card:last-child:nth-child(odd) { grid-column: auto; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .app-card:hover { transform: none; }
  .portal-card:hover, .portal-card:focus-within { transform: none; }
}
.preview-notice { margin: 16px 24px 0; padding: 12px 16px; border: 1px solid #f4c86b; border-radius: 10px; background: #fff7df; color: #503811; font-weight: 650; }
.preview-notice a { color: #164b91; }
