:root {
  --ink: #17243b;
  --muted: #667085;
  --navy: #102a43;
  --blue: #2458d3;
  --blue-dark: #1744ad;
  --sky: #eef4ff;
  --line: #dfe5ee;
  --surface: #ffffff;
  --page: #f5f7fb;
  --green: #14835c;
  --orange: #c96b13;
  font-size: 16px;
}
body { color: var(--ink); background: var(--page); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.app-navbar { background: linear-gradient(110deg, #102a43, #163c60); box-shadow: 0 3px 16px rgb(16 42 67 / 18%); }
.navbar-brand { font-weight: 750; letter-spacing: -.02em; }
.navbar-brand small { display: block; color: #a9c4dd; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: #fff; color: var(--blue); font-size: .8rem; font-weight: 850; box-shadow: 0 6px 20px rgb(13 34 56 / 22%); }
.brand-mark-lg { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
.nav-link { font-size: .94rem; font-weight: 560; }
.user-box strong, .user-box small { color: #fff; display: block; line-height: 1.25; font-size: .85rem; }
.user-box small { color: #b9ccde; font-size: .75rem; }
.btn { --bs-btn-font-weight: 650; border-radius: .6rem; padding: .65rem 1rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark); }
.form-control, .form-select { border-color: #cfd7e3; border-radius: .6rem; min-height: 2.8rem; }
.form-control:focus, .form-select:focus { border-color: #7ca2f5; box-shadow: 0 0 0 .25rem rgb(36 88 211 / 12%); }
.form-label { font-weight: 650; font-size: .9rem; }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 760; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { margin: .5rem 0 0; color: var(--muted); }
.eyebrow { margin-bottom: .45rem; color: #53708f; font-size: .76rem; font-weight: 760; letter-spacing: .105em; text-transform: uppercase; }
.content-card, .resource-card, .metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 30px rgb(38 50 77 / 5%); }
.content-card { padding: 1.4rem; }
.content-card h2 { font-size: 1.1rem; font-weight: 730; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.metric-card { min-height: 9.5rem; padding: 1.25rem; border-top: 3px solid var(--blue); display: flex; flex-direction: column; }
.metric-card.accent-green { border-top-color: var(--green); }
.metric-card.accent-slate { border-top-color: #65758b; }
.metric-card.accent-orange { border-top-color: var(--orange); }
.metric-card span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.metric-card strong { margin: .35rem 0 .15rem; font-size: 2rem; line-height: 1; }
.metric-card small { margin-top: auto; color: #7b8798; }
.app-table { margin: 0; min-width: 720px; }
.app-table thead th { padding: .75rem; border-bottom-color: var(--line); color: #718096; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.app-table tbody td { padding: .9rem .75rem; border-bottom-color: #edf0f5; font-size: .9rem; }
.app-table td small { display: block; color: #7b8798; font-size: .76rem; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .58rem; background: #edf1f5; color: #536174; font-size: .74rem; font-weight: 720; white-space: nowrap; }
.status-pending { background: #fff3db; color: #8a5800; }
.status-approved { background: #dff6ec; color: #096747; }
.status-rejected { background: #fce5e7; color: #9d2a37; }
.status-cancelled { background: #eceff3; color: #5d6877; }
.status-lg { padding: .55rem .8rem; font-size: .85rem; }
.empty-state { padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.empty-state div { color: #8fa2ba; font-size: 2rem; }
.empty-state h3 { color: var(--ink); font-size: 1.1rem; }
.filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.filter-bar label { font-weight: 650; }
.filter-bar select { width: min(18rem, 100%); }
.resource-card { height: 100%; padding: 1.4rem; transition: transform .16s ease, box-shadow .16s ease; }
.resource-card:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgb(38 50 77 / 9%); }
.resource-card h2 { font-size: 1.3rem; font-weight: 740; }
.resource-card > p:not(.eyebrow) { min-height: 3rem; color: var(--muted); }
.resource-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.resource-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .75rem; background: var(--sky); color: var(--blue); font-size: .73rem; font-weight: 800; }
.availability { color: #8a313c; font-size: .76rem; font-weight: 700; }
.availability.on { color: var(--green); }
.availability::before { content: ''; display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: currentColor; }
.resource-card dl { display: grid; gap: .45rem; margin: 1.2rem 0; padding: 1rem 0; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.resource-card dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.resource-card dt { color: var(--muted); font-weight: 550; }
.resource-card dd { margin: 0; font-weight: 650; text-align: right; }
.filter-pills { display: flex; gap: .5rem; overflow-x: auto; }
.filter-pills a { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: #5e6c7f; background: #fff; font-size: .83rem; font-weight: 650; white-space: nowrap; }
.filter-pills a.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.narrow-page { max-width: 800px; margin: 0 auto; }
.form-card { padding: clamp(1.25rem, 4vw, 2rem); }
.detail-card h2 { font-size: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.detail-grid div { padding-bottom: .8rem; border-bottom: 1px solid #edf0f5; }
.detail-grid dt { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.detail-grid dd { margin: .3rem 0 0; font-weight: 600; }
.action-row { display: flex; justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.timeline { list-style: none; padding: 0 0 0 1.2rem; margin: 1.4rem 0 0; border-left: 2px solid #d7e1ef; }
.timeline li { position: relative; padding: 0 0 1.5rem .9rem; }
.timeline li::before { content: ''; position: absolute; left: -1.51rem; top: .3rem; width: .65rem; height: .65rem; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.timeline span, .timeline small { display: block; color: var(--muted); font-size: .8rem; }
.timeline p { margin: .4rem 0 0; font-size: .86rem; }
.calendar-list { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.calendar-list article { display: grid; grid-template-columns: 5rem 1fr; gap: 1.2rem; padding: 1.3rem; border-bottom: 1px solid var(--line); }
.calendar-list article:last-child { border: 0; }
.calendar-list time { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.calendar-list time strong { font-size: 1.8rem; line-height: 1; }
.calendar-list time span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.calendar-list h2 { margin: .35rem 0 .15rem; font-size: 1.05rem; }
.calendar-list p { margin: 0; color: var(--muted); font-size: .85rem; }
.notice-card { padding: 1.2rem; border-left: 4px solid var(--blue); border-radius: .5rem; background: var(--sky); }
.notice-card p { margin: .25rem 0 0; color: #536681; }
.error-page { max-width: 620px; margin: 9vh auto; padding: 3rem; text-align: center; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.error-page > span { color: #b5c0d0; font-size: 5rem; font-weight: 800; line-height: 1; }
.error-page h1 { margin-top: 1rem; font-size: 1.7rem; }
.error-page p { margin-bottom: 1.5rem; color: var(--muted); word-break: break-word; }
.login-shell { min-height: 100vh; }
.login-panel { display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .95fr); min-height: 100vh; }
.login-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 8vw, 7rem); color: #fff; background: radial-gradient(circle at 85% 15%, #3976bc 0, transparent 30%), linear-gradient(135deg, #0f2942, #164f77); }
.login-hero .eyebrow { margin: 3rem 0 .7rem; color: #a8c6df; }
.login-hero h1 { max-width: 650px; font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 760; letter-spacing: -.05em; line-height: 1.05; }
.login-hero > p:not(.eyebrow) { max-width: 570px; margin-top: 1.5rem; color: #c5d8e8; font-size: 1.05rem; line-height: 1.7; }
.hero-lines { position: absolute; right: -8rem; bottom: -5rem; display: grid; gap: 1rem; transform: rotate(-24deg); opacity: .12; }
.hero-lines span { display: block; width: 40rem; height: 5rem; border: 2px solid #fff; border-radius: 999px; }
.login-form-wrap { display: grid; place-items: center; padding: 2rem; background: #f7f9fc; }
.login-form-card { width: min(430px, 100%); }
.login-form-card h2 { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; }
.login-note { margin-top: 1.5rem; color: #8b96a5; font-size: .78rem; text-align: center; }
code { color: #3c5681; font-size: .8rem; }
@media (max-width: 767.98px) {
  .login-panel { grid-template-columns: 1fr; }
  .login-hero { min-height: 38vh; padding: 2rem; }
  .login-hero .eyebrow { margin-top: 1.5rem; }
  .login-hero h1 { font-size: 2.15rem; }
  .login-hero > p:not(.eyebrow) { display: none; }
  .login-form-wrap { padding: 2.5rem 1.25rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .content-card { padding: 1rem; }
  .action-row { flex-wrap: wrap; }
}

