/* Inter variable (latin subset, wght 100-900), self-hosted. Source: @fontsource-variable/inter@5.1.0 (SIL OFL 1.1). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2?v=5.1.0") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #061a35;
  --navy-2: #0b2b50;
  --cyan: #48c8e8;
  --ink: #14243a;
  --muted: #64748b;
  --text-secondary: #475569; /* 7.6:1 on #fff, 7.1:1 on --soft: WCAG AA for body copy */
  --surface: #ffffff;
  --line: #dce4eb;
  --soft: #f4f7fa;
  --shadow: 0 18px 50px rgba(8, 30, 55, .12);
  --shadow-soft: 0 8px 24px rgba(8, 30, 55, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(72, 200, 232, .13), transparent 28rem),
    linear-gradient(135deg, #eef4f8 0%, #e7eef4 100%);
  font: 14px/1.65 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
.site-shell { position: relative; width: 85%; max-width: none; margin: 0 auto; background: var(--surface); box-shadow: var(--shadow); overflow: visible; }
.admin-area .site-shell { width: 90%; }
.admin-area { overflow-x: hidden; }
.site-header { background: var(--navy); color: #fff; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; padding: 12px 30px; }
.facility-notice { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; border: 1px solid #e5b740; background: #fff8e5; color: #473713; box-shadow: 0 5px 16px rgba(8, 30, 55, .12); }
.facility-notice__label { display: flex; align-items: center; gap: 8px; padding: 12px 17px; background: #f4b323; color: #2e2105; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.facility-notice__label i { font-size: 13px; }
.facility-notice__items { display: flex; min-width: 0; align-items: center; gap: 22px; overflow-x: auto; padding: 8px 16px; scrollbar-width: thin; }
.facility-notice__item { display: flex; flex: 0 0 auto; align-items: baseline; gap: 9px; max-width: min(900px, 78vw); color: #493919; font-size: 11px; line-height: 1.5; }
.facility-notice__item + .facility-notice__item { padding-left: 20px; border-left: 1px solid #e7d39e; }
.facility-notice__item strong { color: #5b3514; font-weight: 800; }
.facility-notice__item time { color: #8b6416; font-size: 9px; font-weight: 800; white-space: nowrap; }
.facility-notice__item > span { overflow: hidden; text-overflow: ellipsis; }
.facility-notice__item a { display: inline-flex; align-items: center; gap: 5px; color: #0b6385; font-size: 10px; font-weight: 800; white-space: nowrap; }
.facility-notice__dismiss { display: grid; width: 42px; place-items: center; border: 0; border-left: 1px solid #e5d4a7; background: transparent; color: #765b23; cursor: pointer; }
.facility-notice__dismiss:hover { background: rgba(244, 179, 35, .15); color: #392a0c; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand-mark { width: 50px; height: 50px; object-fit: contain; filter: brightness(0) invert(1); }
.brand strong { display: block; font-family: Inter, sans-serif; letter-spacing: .08em; font-size: 19px; }
.brand small { display: block; color: #c9d9e8; font-size: 8px; line-height: 1.1; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.site-nav .portal-link { font-size: 13px; padding: 8px 14px; }
.site-nav a { color: #e9f4fb; text-decoration: none; white-space: nowrap; }
.site-nav a { transition: color .2s ease, transform .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan); transform: translateY(-1px); }
.admin-header-context { display: flex; align-items: center; gap: 9px; margin-left: auto; color: #d4e7f3; }
.admin-header-context span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.admin-header-context small { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.18); color: #9db6c9; font-size: 10px; }
.portal-link, .button { border-radius: 6px; padding: 8px 12px; text-decoration: none; font-weight: 700; font-size: 11px; letter-spacing: .01em; }
.button { cursor: pointer; font: inherit; }
.portal-link { color: #edfaff; background: linear-gradient(135deg, #1a84c8, #0a5fc4); border: 1px solid rgba(125, 206, 255, .7); box-shadow: 0 4px 12px rgba(16, 92, 193, .22); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.portal-link:hover { background: linear-gradient(135deg, #1f90dc, #0d68d5); box-shadow: 0 8px 16px rgba(16, 92, 193, .28), 0 0 0 2px rgba(90, 184, 245, .12); transform: translateY(-1px); filter: brightness(1.02); }
.button { display: inline-block; background: linear-gradient(135deg, #63d5ee, var(--cyan)); color: #05203d; border: 0; box-shadow: 0 8px 18px rgba(72, 200, 232, .22); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(72, 200, 232, .30); }
.button.outline { color: #fff; border: 1px solid rgba(255,255,255,.7); background: transparent; }
.hero-actions .button { box-shadow: 0 8px 18px rgba(24, 132, 200, .34); }
.hero-actions .button:hover { box-shadow: 0 13px 26px rgba(24, 132, 200, .48); }
.hero { min-height: 390px; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--navy); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,20,43,.98) 0%, rgba(3,20,43,.84) 44%, rgba(3,20,43,.16) 100%); z-index: 1; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; padding: 62px 58px; }
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 10px; max-width: 440px; font-family: Inter, sans-serif; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.hero p { max-width: 480px; color: #d3e1ed; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }
.section { padding: 38px 42px; }
.section-heading { text-align: center; margin: 0 auto 25px; }
.section-heading h2 { color: var(--navy); font-family: Inter, sans-serif; font-size: 24px; margin: 0 0 5px; letter-spacing: -.025em; }
.section-heading p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.section-link { display: inline-block; color: #0f6f94; font-size: 14px; font-weight: 800; margin-top: 12px; text-decoration: none; }
.workflow-section { background: var(--surface); padding-top: 34px; padding-bottom: 42px; }
.workflow-section .section-heading { margin-bottom: 24px; }
.workflow-section .section-heading h2 { color: var(--navy); font-family: Inter, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.025em; text-transform: none; }
.workflow-section .section-link { color: #0f6f94; margin-top: 7px; }
.workflow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; padding: 8px 0 4px; }
.workflow::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: #c9eaf1; }
.step { position: relative; z-index: 1; min-width: 0; text-align: center; padding: 0 7px 16px; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 14px; color: #45a8c1; font-size: 17px; font-weight: 800; }
.step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 4px solid #fff; border-radius: 50%; background: var(--navy); color: var(--cyan); box-shadow: 0 5px 14px rgba(6, 26, 53, .20); font-size: 11px; font-weight: 800; }
.step img { width: 82px; height: 82px; object-fit: cover; display: block; margin: 16px auto 12px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 5px 16px rgba(8, 30, 55, .14); }
.step strong { display: block; min-height: 18px; color: var(--navy); font-size: 11px; line-height: 1.25; }
.step span { display: block; min-height: 28px; color: var(--muted); font-size: 9px; line-height: 1.35; margin-top: 4px; }
.workflow-section .workflow { max-width: 1080px; margin: 0 auto; gap: 9px; padding-top: 0; }
.workflow-section .workflow::before { display: none; }
.workflow-section .step { padding: 0 3px 6px; transition: transform .2s ease, filter .2s ease; }
.workflow-section .step::after { content: ""; position: absolute; z-index: 2; top: 69px; right: -5px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 11px solid #2a9aa5; }
.workflow-section .step:last-child::after { display: none; }
.workflow-section .step:hover { transform: translateY(-6px); filter: drop-shadow(0 10px 12px rgba(8, 30, 55, .14)); }
.workflow-section .step-number { width: auto; height: auto; border: 0; border-radius: 0; background: transparent; color: #164b55; box-shadow: none; font-family: Inter, sans-serif; font-size: 13px; line-height: 1.15; font-weight: 700; letter-spacing: .08em; }
.workflow-section .step img { position: relative; z-index: 3; width: 104px; height: 104px; margin: 9px auto 14px; border: 6px solid var(--surface); outline: 1px solid #c6d9d5; background: var(--surface); box-shadow: 0 3px 10px rgba(17, 65, 72, .16); }
.workflow-section .step strong { color: #111; font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; }
.workflow-section .step span { color: #334155; font-size: 13px; min-height: 0; }
.glance { background: var(--soft); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.info-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.info-card:hover { transform: translateY(-4px); border-color: #9eddea; box-shadow: var(--shadow); }
.info-card i { color: #167da5; font-size: 21px; }
.info-card h3 { font-size: 16px; margin: 11px 0 6px; }
.info-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; margin: 0; }
.info-card a { display: inline-block; color: #0f6f94; font-size: 14px; font-weight: 700; margin-top: 12px; text-decoration: none; }
.portal { background: var(--navy); color: #fff; }
.portal .section-heading h2 { color: #fff; }
.portal .section-heading p { color: #bcd0e2; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.portal-card { display: block; padding: 20px; border: 1px solid rgba(105, 212, 239, .58); border-radius: 10px; text-decoration: none; background: linear-gradient(145deg, rgba(28, 76, 111, .92), rgba(8, 42, 73, .96)); box-shadow: 0 8px 18px rgba(0, 0, 0, .24), 0 0 0 1px rgba(113, 220, 244, .10); transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.portal-card:hover { transform: translateY(-5px); background: linear-gradient(145deg, rgba(38, 103, 143, .98), rgba(10, 55, 91, .98)); border-color: var(--cyan); box-shadow: 0 14px 26px rgba(0, 0, 0, .30), 0 0 0 2px rgba(93, 211, 238, .16); }
.portal-card i { color: var(--cyan); font-size: 22px; }
.portal-card strong { display: block; margin: 10px 0 4px; font-size: 16px; }
.portal-card span { color: #d3e1ec; font-size: 14px; }
.site-footer { position: relative; z-index: 10; background: #031329; color: #d7e3ee; padding: 16px 42px 9px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.site-footer h3 { color: #fff; font-size: 14px; margin: 0 0 8px; }
.site-footer p, .site-footer a { color: #b9cad8; font-size: 14px; text-decoration: none; }
.site-footer p { margin: 0; line-height: 1.55; }
.site-footer a { display: block; margin: 4px 0; line-height: 1.45; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 12px; padding-top: 6px; text-align: center; color: #a5b8c8; font-size: 12px; }
.admin-area .admin-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 5vw;
  width: 196px;
  height: 100vh;
  overflow: hidden;
  padding: 102px 14px 18px;
  background: #071d37;
  color: #c3d5e5;
}
.admin-area .site-header { position: relative; z-index: 30; }
.admin-area .admin-sidebar__label { padding: 0 12px 6px; color: #6e8aa2; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-area .admin-sidebar__identity { display: flex; align-items: center; gap: 10px; margin: 0 8px 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.10); }
.admin-area .admin-sidebar__identity > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(72, 200, 232, .15); color: var(--cyan); font-size: 14px; }
.admin-area .admin-sidebar__identity strong, .admin-area .admin-sidebar__identity small { display: block; }
.admin-area .admin-sidebar__identity strong { color: #fff; font-size: 11px; }
.admin-area .admin-sidebar__identity small { margin-top: 2px; color: #7895aa; font-size: 9px; }
.admin-area .admin-sidebar nav { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.admin-area .admin-sidebar__group { display: grid; gap: 2px; }
.admin-area .admin-sidebar a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 34px; padding: 7px 12px; border-radius: 8px; color: #b8ccdd; font-size: 11px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: color .15s ease, background .15s ease; }
.admin-area .admin-sidebar a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-area .admin-sidebar a.active { color: #fff; background: rgba(72, 200, 232, .16); }
.admin-area .admin-sidebar nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); }
.admin-area .admin-sidebar a:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.admin-area .admin-sidebar a i { flex: 0 0 16px; width: 16px; color: #67cde5; text-align: center; }
.admin-area .admin-sidebar a.active i { color: var(--cyan); }
.admin-area .admin-sidebar__logout { flex-shrink: 0; margin-top: auto; border-top: 1px solid rgba(255,255,255,.10); border-radius: 0 !important; padding-top: 14px !important; background: #071d37; }
.admin-area .page-content { min-width: 0; margin-left: 196px; }
.admin-area .data-stack, .admin-area .data-panel, .admin-area .table-wrap { min-width: 0; max-width: 100%; }
/* Admin work pages: a compact header so the page's own content starts above the fold. */
.admin-area .page-header { min-height: 0; align-items: center; }
@media (min-width: 801px) { .admin-area .page-header { padding: 30px 42px 28px; } }
.admin-area .page-header .eyebrow { font-size: 11px; }
.admin-area .page-header h1 { font-size: clamp(26px, 2.5vw, 32px); line-height: 1.15; }
.admin-area .page-header p { margin-top: 6px; font-size: 13px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.summary-card { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; padding: 16px 17px; border: 1px solid #d9e5ec; border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgba(8, 30, 55, .06); }
.summary-card__icon { display: grid; grid-row: span 2; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e8f6fa; color: #167da5; font-size: 15px; }
.summary-card__label { color: #6a7d8d; font-size: 10px; font-weight: 700; }
.summary-card strong { color: var(--navy); font-size: 21px; line-height: 1.1; }
.summary-card small { grid-column: 2; color: #91a0ac; font-size: 9px; }
@media (min-width: 801px) and (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding: 12px 24px; }
  .site-nav { order: 3; flex: 1 1 100%; justify-content: center; gap: 8px 17px; flex-wrap: wrap; overflow: visible; padding-bottom: 3px; }
}
@media (max-width: 800px) {
  .site-shell, .admin-area .site-shell { width: 100%; }
  .header-inner { padding: 12px 18px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: center; gap: 8px 17px; flex-wrap: wrap; overflow: visible; padding-bottom: 3px; }
  .hero-copy { padding: 48px 26px; }
  .section { padding: 32px 22px; }
  .workflow, .card-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow::before { display: none; }
  .workflow-section .workflow { gap: 16px 10px; }
  .workflow-section .step::after { display: none; }
  .workflow-section .step img { width: 96px; height: 96px; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { overflow: hidden; }
  .page-header h1 { max-width: 100%; }
  .admin-area .admin-sidebar { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 8px; overflow: visible; padding: 12px 14px; }
  .admin-area .admin-sidebar__identity { order: 1; width: 100%; margin: 0 0 4px; padding: 0 4px 10px; border-bottom: 1px solid rgba(255,255,255,.10); }
  .admin-area .admin-sidebar__identity > i { width: 29px; height: 29px; }
  .admin-area .admin-sidebar__identity strong { font-size: 10px; }
  .admin-area .admin-sidebar__identity small { font-size: 8px; }
  .admin-area .admin-sidebar__label, .admin-area .admin-sidebar__logout span { display: none; }
  .admin-area .admin-sidebar nav { order: 2; display: flex; flex-direction: row; flex: 1 1 0; min-width: 0; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  .admin-area .admin-sidebar nav::-webkit-scrollbar { display: none; }
  .admin-area .admin-sidebar__group { display: contents; }
  .admin-area .admin-sidebar a { white-space: nowrap; }
  .admin-area .admin-sidebar nav a.active::before { top: auto; bottom: 0; left: 10px; right: 10px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .admin-area .admin-sidebar__logout { order: 3; margin: 0; border: 0; padding: 11px 12px !important; }
  .admin-area .page-content { margin-left: 0; }
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-area .page-header { text-align: center; }
  .admin-area .page-header > div { width: 100%; }
  .admin-area .dashboard-charts { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .admin-area .chart-card { width: min(100%, 430px); box-sizing: border-box; text-align: center; }
  .admin-area .chart-card__heading { justify-content: center; text-align: center; }
  .admin-area .chart-card__heading > div { max-width: 250px; }
  .admin-area .chart-card__heading > i { display: none; }
  .admin-area .donut-layout { justify-content: center; }
  .admin-area .dashboard-meta { text-align: center; }
  .attention-panel { grid-template-columns: 1fr; }
  .attention-panel__items { grid-template-columns: 1fr; }
  .table-tools { align-items: stretch; flex-direction: column; }
  /* Stacked: a width basis would otherwise become the item's height. */
  .combined-charge-toolbar > .combined-user-filter, .combined-charge-toolbar > .combined-selection-status { flex-basis: auto; max-width: none; }
  .table-tools select { width: 100%; }
  .team-card { align-items: flex-start; }
  .team-details { padding-top: 3px; }
  .event-photo img { height: 170px; }
}
@media (max-width: 480px) {
  .header-inner { position: relative; gap: 14px; padding: 12px 16px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand strong { font-size: 17px; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; justify-content: stretch; gap: 6px 8px; flex-wrap: wrap; overflow: visible; font-size: 10px; }
  .site-nav a { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: center; text-align: center; }
  .site-nav .portal-link { position: absolute; top: 22px; right: 16px; width: auto; min-height: 36px; padding: 6px 12px; line-height: 1.2; }
  .workflow, .card-grid, .portal-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .hero-copy { padding: 42px 22px; }
  .hero h1 { font-size: clamp(29px, 9vw, 40px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { text-align: center; }
  .section { padding: 28px 16px; }
  .section-heading h2, .workflow-section .section-heading h2 { font-size: 21px; }
  .page-content { padding: 24px 16px; }
  .page-header { margin: -24px -16px 22px; padding: 30px 16px; min-height: 155px; }
  .page-header h1 { font-size: 30px; }
  .page-header p { font-size: 12px; }
  .admin-summary { gap: 9px; }
  .summary-card { padding: 13px 12px; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .team-details { width: 100%; padding-top: 0; }
  .team-details a.team-email { margin-left: auto; margin-right: auto; }
  .advisory { padding: 18px; }
  .workflow-intro, .workflow-timeline { padding-left: 16px; padding-right: 16px; }
  .workflow-stage { grid-template-columns: 44px 1fr; gap: 12px; }
  .stage-marker { width: 44px; height: 44px; border-width: 4px; font-size: 11px; }
  .workflow-timeline::before { left: 37px; }
  .stage-image img { height: 125px; }
  .footer-grid { gap: 20px; }
}

/* Compatibility styling for the older portal/content templates. */
.main { max-width: 1180px; padding: 0; }
.main > .header { border-radius: 0; background: var(--navy); padding: 18px 28px; }
.main > .header .logo-container { gap: 20px; }
.main > .header .left-logo, .main > .header .right-logo { width: 48px; }
.main > .header .title h1 { font-size: 16px; letter-spacing: .04em; }
.main > .container { border-radius: 0; box-shadow: none; margin: 0; padding: 42px; line-height: 1.7; min-height: 500px; }
.main > .container h1 { color: var(--navy); font-size: 28px; }
.main > .container hr { border: 0; border-top: 1px solid var(--line); }
.main > .container p { color: #43546a; }
.main > .footer { border-radius: 0; margin-top: 0; background: var(--navy); }
.main > .container .top-buttons { top: 16px; right: 28px; gap: 14px; }
.main > .container .top-buttons a { color: var(--navy); font-size: 18px; }
.main > .container .top-buttons a:hover i { color: #167da5; }

/* Shared page, portal and administration components. */
.page-content { padding: 42px; background: var(--surface); }
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  background-image:
    linear-gradient(90deg, rgba(3, 20, 43, .96) 0%, rgba(6, 34, 62, .88) 52%, rgba(6, 34, 62, .56) 100%),
    url("../slideshow/1c.webp");
  background-size: cover;
  background-position: center 54%;
  margin: -42px -42px 28px;
  padding: 42px;
  min-height: 210px;
}
.page-header h1 { color: #fff; font-family: Inter, sans-serif; font-size: clamp(30px, 3.4vw, 40px); margin: 0; letter-spacing: -.03em; }
.page-header p { color: #c5d8e8; margin: 7px 0 0; max-width: 720px; }
.page-header--portal { background-image: linear-gradient(90deg, rgba(3, 20, 43, .88), rgba(6, 34, 62, .52)), url("../images/web/science.webp"); background-position: center 55%; }
.page-header--schedule { background-image: linear-gradient(90deg, rgba(3, 20, 43, .88), rgba(6, 34, 62, .48)), url("../images/cover-schedule-960w.webp"); background-position: center 45%; }
.page-header--admin { background-image: linear-gradient(90deg, rgba(3, 20, 43, .76) 0%, rgba(6, 34, 62, .48) 52%, rgba(6, 34, 62, .20) 100%), url("../images/admin-header-1600w.webp"); background-position: center 50%; }
.site-shell > main:not(.portal-page) > .page-content { padding-top: 0; }
.site-shell > main:not(.portal-page) > .page-content > .page-header { margin: 0 -42px 28px; }
@media (max-width: 800px) {
  .site-shell > main:not(.portal-page) > .page-content { padding-top: 0; }
  .site-shell > main:not(.portal-page) > .page-content > .page-header { margin: 0 -22px 25px; }
}
@media (max-width: 480px) {
  .site-shell > main:not(.portal-page) > .page-content > .page-header { margin-right: -16px; margin-left: -16px; }
}
.admin-login-page .page-content { padding-bottom: 58px; }
.admin-login-page .page-header { min-height: 178px; }
.admin-login-card {
  width: min(100%, 540px);
  margin: -18px auto 0;
  position: relative;
  z-index: 1;
  padding: 30px 32px 22px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(190, 211, 225, .9);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(8, 30, 55, .14);
}
.admin-login-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.admin-login-icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #0f6e9b;
  background: linear-gradient(135deg, #e7f8fc, #d5effa);
  font-size: 20px;
}
.admin-login-kicker { color: #167da5; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-login-heading h2 { margin: 2px 0 1px; color: var(--navy); font-size: 21px; letter-spacing: -.025em; }
.admin-login-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-login-fields { display: grid; gap: 17px; }
.admin-login-fields .form-field { gap: 7px; }
.admin-login-fields .form-field label { font-size: 11px; }
.admin-input { position: relative; }
.admin-input i { position: absolute; left: 15px; top: 50%; color: #7490a3; font-size: 13px; transform: translateY(-50%); pointer-events: none; }
.admin-login-card .admin-input input { padding: 10px 12px 10px 46px; }
.admin-login-card .form-actions { margin-top: 22px; }
.admin-login-card .button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; }
.admin-login-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; color: #8294a3; font-size: 10px; }
.admin-login-note i { color: #5daec5; }
.prose { max-width: 900px; }
.page-content > .prose { max-width: none; }
.prose p { color: #43546a; margin: 0 0 18px; }
.prose strong { color: var(--navy); }
.prose a, .publication-list a { color: #167da5; }
.notice {
  border-left: 4px solid var(--cyan);
  background: #eef9fc;
  padding: 15px 18px;
  color: #29465e;
  margin: 20px 0;
}
.equipment-featured, .equipment-groups { display: grid; gap: 30px; }
.equipment-featured > .section-heading { margin-bottom: 6px; }
.equipment-groups { margin-top: 34px; }
.equipment-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 26px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; box-shadow: 0 14px 30px rgba(8, 30, 55, .12); transition: transform .2s ease, box-shadow .2s ease; }
.equipment-hero-card:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(8, 30, 55, .18); }
.equipment-hero-card--reverse { grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr); }
.equipment-hero-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; background: #edf3f6; }
.equipment-hero-card--primary { position: relative; overflow: hidden; border: 2px solid #8ed9e8; background: linear-gradient(135deg, #fff 0%, #f1fbfd 100%); box-shadow: 0 20px 46px rgba(8, 30, 55, .18), 0 0 0 6px rgba(142, 217, 232, .12); }
.equipment-hero-card--primary img { height: 280px; box-shadow: 0 12px 26px rgba(8, 30, 55, .18); }
.equipment-hero-card--primary .equipment-hero-copy h2 { font-size: 23px; letter-spacing: -.02em; }
.equipment-hero-card--detector { max-width: none; align-self: center; margin-left: 0; margin-right: 0; padding-top: 16px; padding-bottom: 16px; }
.equipment-hero-card--detector img { height: 200px; }
.equipment-hero-card--detector .equipment-hero-copy h2 { font-size: 18px; }
.equipment-hero-copy h2 { color: var(--navy); font-size: 20px; margin: 0 0 8px; }
.equipment-hero-copy h3 { color: var(--navy); font-size: 15px; margin: 16px 0 7px; }
.equipment-hero-copy p, .equipment-hero-copy li { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.equipment-hero-copy p { margin: 0; }
.equipment-hero-copy ul { margin: 0; padding-left: 17px; }
.equipment-hero-copy li::marker { color: var(--cyan); }
.equipment-group .section-heading { margin-bottom: 16px; }
.equipment-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.equipment-card-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.equipment-tile { display: grid; grid-template-columns: 145px 1fr; gap: 17px; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(8, 30, 55, .10); transition: transform .2s ease, box-shadow .2s ease; }
.equipment-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(8, 30, 55, .16); }
.equipment-tile--text-only { grid-template-columns: minmax(0, 1fr); }
.equipment-tile img { width: 100%; height: 145px; object-fit: cover; background: #edf3f6; }
.equipment-tile > div { padding: 14px 14px 14px 0; }
.equipment-tile h3 { color: var(--navy); font-size: 16px; margin: 0 0 6px; }
.equipment-tile p { color: var(--text-secondary); margin: 0; font-size: 14px; line-height: 1.55; }
.team-intro { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 4px auto 26px; text-align: center; }
.team-intro-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #e6f8fc; color: #167da5; font-size: 20px; }
.team-intro h2 { color: var(--navy); font-family: Inter, sans-serif; margin: 0 0 3px; font-size: 21px; }
.team-intro p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.team-card { display: flex; min-width: 0; min-height: 190px; gap: 0; align-items: stretch; overflow: hidden; border: 1px solid #e1e8ed; border-radius: 20px; padding: 0; background: #fff; box-shadow: 0 5px 18px rgba(8, 30, 55, .045); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(8, 30, 55, .08); }
.team-photo { position: relative; display: grid; flex: 0 0 150px; place-items: center; padding: 12px; }
.team-card img { display: block; width: 126px; height: 126px; object-fit: cover; object-position: center 38%; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(8, 30, 55, .12); }
.team-status { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--navy); color: var(--cyan); border: 2px solid #fff; border-radius: 20px; padding: 5px 9px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.team-details { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; padding: 22px 20px; }
.team-role { color: #0f6f94; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.team-card strong { display: block; color: var(--navy); font-family: Inter, sans-serif; font-size: 18px; line-height: 1.3; margin: 7px 0 8px; }
.team-card .team-details > span:last-of-type { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.team-details a { display: block; margin-top: 12px; color: #0f6f94; font-size: 13px; font-weight: 800; text-decoration: none; }
.team-details a.team-email { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 15px; padding: 9px 12px; border: 1px solid #e2eaee; border-radius: 999px; background: #f8fafb; }
.team-email i { font-size: 13px; }
.team-details a i { margin-left: 4px; transition: transform .2s ease; }
.team-details a:hover i { transform: translateX(3px); }
.advisory { margin-top: 34px; padding: 25px; background: linear-gradient(135deg, #f0f8fb, #f7fafc); border: 1px solid #d7e8ef; border-radius: 14px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.advisory:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advisory-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.advisory-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--navy); color: var(--cyan); }
.advisory h2 { color: var(--navy); font-family: Inter, sans-serif; margin: 0 0 2px; font-size: 19px; }
.advisory-heading p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.advisory-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.advisory-list p { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 14px rgba(8, 30, 55, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.advisory-list p:hover { transform: translateY(-3px); border-color: #9eddea; box-shadow: var(--shadow-soft); }
.advisory-list strong { display: block; color: var(--navy); font-size: 14px; }
.advisory-list span { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 3px; }
.publication-list { display: grid; gap: 14px; }
.publication-list p { min-width: 0; margin: 0; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; color: #43546a; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; overflow-wrap: anywhere; }
.publication-list a { overflow-wrap: anywhere; }
.publication-list p:hover, .publication-list p:focus-within { transform: translateY(-5px); background: #fff; border-color: #9eddea; box-shadow: var(--shadow); }
.publication-list em { color: var(--navy); }
.events-section { max-width: 1000px; margin: 0 auto 38px; }
.events-section:last-child { margin-bottom: 0; }
.event-gallery, .course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-photo, .course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.event-photo { color: inherit; text-decoration: none; }
.event-photo:hover, .course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-photo img { display: block; width: 100%; height: 145px; object-fit: cover; }
.event-photo img.conference-image { object-position: center top; }
.event-photo img.community-welfare-image { object-position: center 20%; }
.event-photo > div { padding: 16px; }
.event-photo span, .course-tag { color: #167da5; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-photo h3, .course-card h3 { color: var(--navy); font-size: 16px; margin: 6px 0; }
.event-photo p, .course-card p { color: #43546a; font-size: 11px; margin: 0; }
.gallery-section { padding-top: 6px; }
.community-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.community-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 10px 24px rgba(8, 30, 55, .11); transition: transform .2s ease, box-shadow .2s ease; }
.community-gallery figure:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(8, 30, 55, .18); }
.community-gallery img { display: block; width: 100%; height: 190px; object-fit: cover; }
.community-gallery figcaption { padding: 13px 15px; color: var(--navy); font-size: 12px; font-weight: 700; }
.course-section { padding-top: 8px; }
.course-grid { grid-template-columns: repeat(2, 1fr); }
.course-card { padding: 22px; }
.course-card-link { display: block; color: inherit; text-decoration: none; }
.course-card-cta { display: inline-block; color: #167da5; font-size: 10px; font-weight: 700; margin-top: 12px; }
.course-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 11px; background: #e6f8fc; color: #167da5; font-size: 19px; }
.course-card a { display: inline-block; margin-top: 15px; color: #167da5; font-size: 10px; font-weight: 800; text-decoration: none; }
.portal-page { background: var(--soft); }
.portal-page .page-content { background: var(--soft); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dashboard-card {
  display: block;
  text-decoration: none;
  color: var(--navy);
  background: linear-gradient(145deg, #fff 0%, #f8fbfd 100%);
  border: 1px solid #d9e5ec;
  border-radius: 14px;
  padding: 28px 25px 25px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(8, 30, 55, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-card:hover { transform: translateY(-5px); border-color: #9ecbdc; box-shadow: 0 18px 34px rgba(8, 30, 55, .13), inset 0 1px 0 rgba(255, 255, 255, .9); }
.dashboard-card i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 17px; border: 1px solid #cce8ef; border-radius: 15px; background: linear-gradient(145deg, #eefbfe, #dff3f8); color: #167da5; font-size: 22px; box-shadow: 0 7px 14px rgba(22, 125, 165, .10); }
.dashboard-card strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.dashboard-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.dashboard-card .dashboard-status { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.dashboard-status b { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.dashboard-status em { font-style: normal; font-size: 12px; font-weight: 800; }
.dashboard-status .status-waiting { color: #9b3f48; background: #fff0f1; border: 1px solid #f2c9cd; }
.dashboard-status .status-ongoing { color: #28714b; background: #edf9f1; border: 1px solid #c7e8d2; }
.dashboard-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-slot-panel { margin: 20px 0; padding: 0 22px; border: 1px solid #d9e5ec; border-radius: 15px; background: #fff; box-shadow: 0 10px 24px rgba(8, 30, 55, .06); }
.admin-slot-panel__heading { display: flex; flex-direction: column; justify-content: center; min-height: 70px; }
.admin-slot-panel__title { display: block; margin-top: 3px; color: var(--navy); font-size: 19px; font-weight: 700; }
.admin-slot-panel__content { padding: 0 0 22px; }
.admin-slot-panel__content > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.admin-slot-type-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.admin-slot-type-button { min-height: 38px; padding: 8px 13px; border: 1px solid #cbd9e1; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.admin-slot-type-button:hover, .admin-slot-type-button[aria-pressed="true"] { border-color: #167da5; background: #e8f6fa; color: #116782; }
.admin-slot-type-button:focus-visible { outline: 3px solid rgba(22, 125, 165, .35); outline-offset: 2px; }
.admin-slot-selection-status { min-height: 0; }
.admin-slot-selection-status:empty { display: none; }
.admin-slot-save-feedback, .admin-slot-save-error { margin: 0 0 12px; padding: 11px 13px; border-radius: 8px; font-size: 12px; }
.admin-slot-save-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #b8dfc5; background: #effaf2; color: #24623d; }
.admin-slot-save-feedback[hidden] { display: none; }
.admin-slot-save-error { border: 1px solid #efc4c8; background: #fff3f4; color: #8f3540; }
.admin-slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: stretch; }
.admin-slot-form[hidden] { display: none; }
.admin-slot-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 16px; border: 1px solid #e0e9ee; border-radius: 12px; background: #f8fbfd; }
.admin-slot-form h3, .admin-slot-form button { grid-column: 1 / -1; }
.admin-slot-form [data-admin-inventory-picker] { display: grid; grid-column: 1 / -1; gap: 7px; }
.admin-inventory-picker__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; min-height: 20px; }
.admin-inventory-picker__footer p { margin: 0; }
.admin-inventory-picker__footer a { color: #167da5; font-size: 10px; font-weight: 700; }
.admin-slot-form .inventory-grid-picker > .empty-message { grid-column: 1 / -1; margin: 0; padding: 11px 12px; }
.admin-slot-form h3 { margin: 0; color: var(--navy); font-size: 15px; }
.admin-slot-form label { display: grid; gap: 5px; color: #516879; font-size: 11px; font-weight: 700; }
.admin-slot-form input, .admin-slot-form select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 9px; border: 1px solid #cbd9e1; border-radius: 7px; background: #fff; color: var(--navy); font: inherit; }
.admin-slot-form button { justify-self: start; margin-top: 3px; }
.admin-slot-known-user { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid #c8e1eb; border-radius: 8px; background: #eef8fb; color: #365667; font-size: 11px; line-height: 1.5; }
.admin-slot-known-user[hidden] { display: none; }
.admin-slot-known-user > span { flex: 1 1 100%; }
.admin-slot-known-user .button { margin: 0; }
.admin-slot-known-user__dismiss { padding: 7px 9px; border: 0; background: transparent; color: #526a79; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.chart-card { padding: 24px 26px; border: 1px solid #d9e5ec; border-radius: 15px; background: linear-gradient(145deg, #fff, #f8fbfd); box-shadow: 0 10px 24px rgba(8, 30, 55, .07); }
.chart-card__heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.chart-card__heading h2 { margin: 3px 0 3px; color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.chart-card__heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.chart-card__heading > i { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #e8f6fa; color: #167da5; font-size: 16px; }
.chart-kicker { color: #167da5; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.donut-layout { display: flex; align-items: center; justify-content: center; min-height: 190px; margin-top: 18px; }
.donut-chart { position: relative; display: grid; place-content: center; flex: 0 0 128px; width: 128px; height: 128px; text-align: center; }
.donut-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 9px rgba(8, 30, 55, .10)); transform: rotate(-90deg); }
.donut-chart::before { content: ""; position: absolute; inset: 18px; z-index: 1; border-radius: 50%; background: #fff; pointer-events: none; }
.donut-segment { fill: none; stroke: var(--segment-color); stroke-width: 16; cursor: pointer; pointer-events: stroke; transition: opacity .2s ease, stroke-width .2s ease; }
.donut-segment:hover { stroke-width: 19; }
.donut-segment:focus { outline: 0; stroke-width: 19; }
.donut-center { position: relative; z-index: 2; display: grid; justify-items: center; pointer-events: none; }
.donut-center strong { color: var(--navy); font-size: 22px; line-height: 1; }
.donut-center span { margin-top: 4px; color: #7890a0; font-size: 10px; font-weight: 700; }
.donut-tooltip { position: absolute; z-index: 3; left: 50%; bottom: -35px; min-width: 115px; padding: 7px 10px; border: 1px solid #d5e3e9; border-radius: 8px; background: rgba(6, 26, 53, .96); color: #fff; font-size: 10px; line-height: 1.3; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .18s ease, transform .18s ease; }
.donut-tooltip strong { color: #8de2f2; font-size: 12px; }
.donut-tooltip.is-visible { opacity: 1; transform: translate(-50%, 0); }
.donut-track { fill: none; stroke: #e6eef2; stroke-width: 16; }
.user-statistics { padding-top: 42px; padding-bottom: 42px; background: #f5fafc; }
.user-statistics .section-heading { align-items: end; }
.user-statistics-total { color: #167da5; font-size: 12px; font-weight: 800; white-space: nowrap; }
.user-statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 800px) {
  .user-statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .admin-slot-panel { padding: 0 17px; }
  .admin-slot-form { grid-template-columns: minmax(0, 1fr); }
  .user-statistics-grid { grid-template-columns: minmax(0, 1fr); }
}
.category-stat-card { min-width: 0; min-height: 270px; box-sizing: border-box; padding: 16px; border: 1px solid #d9e5ec; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbfd); box-shadow: 0 10px 24px rgba(8, 30, 55, .07); }
.category-stat-card__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.category-stat-card__heading > div { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.user-download-link { color: #167da5; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.user-download-link:hover { color: var(--navy); text-decoration: underline; }
.category-stat-card__heading h3 { margin: 0; color: var(--navy); font-size: 15px; }
.category-stat-card__heading span { color: #0f6f94; font-size: 12px; font-weight: 800; white-space: nowrap; }
.category-stat-card__body { display: grid; place-items: center; min-height: 200px; }
.category-stat-card__chart { width: 150px; height: 150px; margin: 0 auto; }
.category-stat-card__chart::before { inset: 18px; }
.category-stat-card__chart .donut-center strong { font-size: 22px; }
.metric-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff 0%, #eefaff 100%); }
.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -34px; bottom: -46px; border-radius: 50%; background: rgba(39, 169, 199, .12); }
.metric-card__body { min-height: 200px; align-content: center; gap: 6px; }
.metric-card__icon { color: #27a9c7; font-size: 24px; filter: drop-shadow(0 5px 8px rgba(39, 169, 199, .25)); }
.metric-card__body strong { color: var(--navy); font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.metric-card__body > span { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.structure-breakdown { width: 100%; margin-top: 10px; text-align: left; }
.structure-breakdown__row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #e6eef2; color: #536b7b; font-size: 10px; }
.structure-breakdown__row strong { color: var(--navy); font-size: 11px; }
.revenue-dashboard { margin-top: 24px; padding: 30px; border: 1px solid #d7e5eb; border-radius: 20px; background: linear-gradient(145deg, #fff 0%, #f5fafc 100%); box-shadow: 0 14px 32px rgba(8, 30, 55, .08); }
.revenue-dashboard:target, .data-panel:target { scroll-margin-top: 24px; outline: 3px solid rgba(22, 125, 165, .38); outline-offset: 4px; }
.revenue-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid #e3edf1; }
.revenue-heading > div:first-child { min-width: 0; flex: 1; }
.revenue-heading h2 { margin: 5px 0 6px; color: var(--navy); font-size: 25px; letter-spacing: -.035em; white-space: nowrap; }
.revenue-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.revenue-filter { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 8px; min-width: 170px; padding: 8px; border: 1px solid #dce8ed; border-radius: 12px; background: #f8fbfc; }
.revenue-filter label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.custom-range-fields { display: contents; }
.custom-range-fields[hidden] { display: none; }
.revenue-filter select, .revenue-filter input { min-height: 38px; padding: 8px 12px; border: 1px solid #c9dbe3; border-radius: 9px; background: #fff; color: #43546a; font: inherit; font-size: 11px; box-shadow: 0 3px 8px rgba(8, 30, 55, .04); }
.revenue-filter select:focus, .revenue-filter input:focus { outline: 0; border-color: #55aec5; box-shadow: 0 0 0 3px rgba(72, 200, 232, .14); }
.revenue-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.revenue-card { min-width: 0; min-height: 92px; padding: 17px 18px; border: 1px solid #dfebef; border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 5px 14px rgba(8, 30, 55, .045); }
.revenue-card span { display: block; color: #718694; font-size: 11px; font-weight: 700; line-height: 1.35; }
.revenue-card strong { display: block; margin-top: 9px; color: var(--navy); font-size: 19px; line-height: 1.1; letter-spacing: -.025em; white-space: nowrap; }
.revenue-card:nth-child(1) { border-top: 3px solid #167da5; }
.revenue-card:nth-child(2) { border-top: 3px solid #d58b42; }
.revenue-card:nth-child(3) { border-top: 3px solid #32a889; }
.revenue-card:nth-child(4) { border-top: 3px solid #7d6bb5; }
.revenue-card:nth-child(5), .revenue-card:nth-child(6) { border-top: 3px solid #55aec5; }
.revenue-summary { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 2.22fr); align-items: stretch; gap: 18px; margin-top: 22px; }
.revenue-primary-stat { container-type: inline-size; display: flex; min-height: 144px; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid #cce3eb; border-left: 4px solid #167da5; border-radius: 15px; background: linear-gradient(140deg, #f0f9fc, #fff 75%); }
.revenue-primary-stat span { color: #587385; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.revenue-primary-stat strong { margin-top: 10px; color: var(--navy); font-size: clamp(20px, 12cqi, 34px); line-height: 1.1; letter-spacing: -.045em; white-space: nowrap; }
.revenue-primary-stat small { margin-top: 10px; color: #788d9a; font-size: 11px; }
.revenue-details { align-self: stretch; min-width: 0; border-bottom: 1px solid #e0e9ee; }
.revenue-details summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid #e0e9ee; color: #38576a; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.revenue-details summary::-webkit-details-marker { display: none; }
.revenue-details summary::after { content: "+"; color: #167da5; font-size: 20px; font-weight: 500; line-height: 1; }
.revenue-details[open] summary::after { content: "−"; }
.revenue-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; padding: 8px 0 16px; }
.revenue-detail-grid > div { display: flex; min-width: 0; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #edf2f5; }
.revenue-detail-grid span { color: #718694; font-size: 10px; }
.revenue-detail-grid strong { color: #314b5d; font-size: 11px; text-align: right; white-space: nowrap; }
.revenue-detail-breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 14px 0 4px; border-top: 1px solid #e0e9ee; }
.revenue-detail-breakdowns h3 { margin: 0 0 5px; color: #38576a; font-size: 11px; }
.revenue-detail-breakdowns .revenue-row { padding: 7px 0; font-size: 10px; }
.revenue-detail-breakdowns .revenue-row strong { font-size: 10px; }
.revenue-detail-monthly-usage .empty-message { padding: 10px 0; background: transparent; font-size: 10px; }
.revenue-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.revenue-chart-card { min-width: 0; min-height: 220px; padding: 20px; border: 1px solid #dfebef; border-radius: 14px; background: rgba(255,255,255,.82); }
.revenue-chart-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.revenue-chart-title h3 { margin-bottom: 16px; }
.download-revenue-chart { flex: 0 0 auto; margin-bottom: 16px; }
.revenue-chart-card h3 { margin: 0 0 16px; color: var(--navy); font-size: 15px; letter-spacing: -.015em; }
.line-chart { min-height: 235px; overflow-x: auto; padding: 12px 4px 0; }
.line-chart svg { display: block; width: 100%; min-width: 420px; height: 190px; overflow: visible; background: linear-gradient(to bottom, transparent 24%, #edf2f5 25%, transparent 26%, transparent 49%, #edf2f5 50%, transparent 51%, transparent 74%, #edf2f5 75%, transparent 76%); }
.line-chart-labels { display: flex; justify-content: space-between; gap: 8px; min-width: 420px; color: var(--muted); font-size: 9px; text-align: center; }
.revenue-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 280px; overflow-x: auto; padding: 34px 12px 8px; border-bottom: 1px solid #b9cbd5; background: repeating-linear-gradient(to bottom, transparent 0, transparent 24%, #edf2f5 25%, transparent 26%); }
.revenue-bar-item { display: flex; flex: 0 0 76px; height: 238px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 10px; text-align: center; }
.revenue-bar-item strong { min-height: 14px; color: var(--navy); font-size: 10px; white-space: nowrap; }
.revenue-bar-item span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revenue-bar { width: 42px; min-height: 3px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #167da5, #32a889); box-shadow: 0 4px 10px rgba(22, 125, 165, .2); }
.comparison-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.comparison-heading h3 { margin-bottom: 3px; }
.comparison-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.comparison-heading .comparison-change { margin-top: 7px; color: #52687a; font-size: 10px; }
.comparison-change strong { color: #52687a; }
.comparison-change--increase strong { color: #23835d; }
.comparison-change--decrease strong { color: #bf4c4c; }
.comparison-change--unchanged strong { color: #52687a; }
.comparison-change--neutral strong { color: #64748b; }
.comparison-legend { display: grid; gap: 5px; color: #52687a; font-size: 10px; white-space: nowrap; }
.comparison-legend span { display: flex; align-items: center; gap: 5px; }
.comparison-dot { width: 8px; height: 8px; border-radius: 50%; }
.comparison-dot--current { background: #f47b20; }
.comparison-dot--previous { background: #94a3b8; }
.comparison-chart { padding: 18px 4px 6px; border-bottom: 1px solid #b9cbd5; background: #fff; }
.comparison-plot { display: grid; grid-template-columns: 52px 1fr; height: 220px; }
.comparison-yaxis { position: relative; }
.comparison-yaxis span { position: absolute; right: 10px; transform: translateY(-50%); color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comparison-area { position: relative; }
.comparison-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.comparison-gridline { stroke: #edf1f4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.comparison-axis { stroke: #b9cbd5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.comparison-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.comparison-line--current { stroke: #f47b20; }
.comparison-line--previous { stroke: #94a3b8; }
.comparison-month { position: absolute; top: 0; bottom: 0; outline: none; cursor: default; }
.comparison-month::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #9fb3c0; opacity: 0; }
.comparison-month:hover::before, .comparison-month:focus-visible::before { opacity: 1; }
.comparison-month:focus-visible { background: rgba(22, 125, 165, .06); }
.comparison-point { position: absolute; left: 50%; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; transform: translate(-50%, -50%); box-sizing: content-box; }
.comparison-point--current { background: #f47b20; z-index: 2; }
.comparison-point--previous { background: #94a3b8; z-index: 1; }
.comparison-month:hover .comparison-point, .comparison-month:focus-visible .comparison-point { width: 10px; height: 10px; }
.comparison-tip { position: absolute; top: 4px; left: calc(50% + 10px); z-index: 5; display: none; min-width: 130px; padding: 8px 10px; border: 1px solid #dce8ee; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(3, 20, 43, .12); color: #17324d; font-size: 10px; pointer-events: none; }
.comparison-month--end .comparison-tip { left: auto; right: calc(50% + 10px); }
.comparison-month:hover .comparison-tip, .comparison-month:focus-visible .comparison-tip { display: grid; gap: 4px; }
.comparison-tip span { display: flex; align-items: center; gap: 6px; color: #52687a; }
.comparison-tip b { margin-left: auto; padding-left: 10px; color: #17324d; font-variant-numeric: tabular-nums; }
.comparison-labels { position: relative; height: 22px; margin-left: 52px; color: var(--muted); font-size: 9px; }
.comparison-labels span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.comparison-labels--dense span:nth-child(even) { visibility: hidden; }
.revenue-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf2f5; color: #43546a; font-size: 11px; }
.revenue-row:last-child { border-bottom: 0; }
.revenue-row strong { color: var(--navy); font-size: 12px; white-space: nowrap; }
.payment-reminder-form { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.payment-reminder-button { padding: 6px 9px; border-radius: 9px; font-size: 10px; line-height: 1.2; white-space: nowrap; box-shadow: none; }
.payment-reminder-button:hover { transform: none; box-shadow: 0 3px 8px rgba(8, 30, 55, .12); }
.reminder-count { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-align: center; }
.usage-total { display: inline-flex; flex-direction: column; width: 48%; padding: 8px 0 14px; color: var(--muted); font-size: 10px; }
.usage-total strong { color: var(--navy); font-size: 25px; }
.chart-legend { display: grid; flex: 1; gap: 10px; }
.chart-legend > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; color: #52687a; font-size: 11px; }
.chart-legend b { color: var(--navy); font-size: 13px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-color); }
.chart-empty { color: var(--muted); font-size: 11px; }
.dashboard-meta { margin-top: 18px; color: #8598a8; font-size: 10px; text-align: center; }
.dashboard-meta i { margin-right: 4px; color: #55aec5; }
.dashboard-meta .backup-button,
.dashboard-meta .archive-button { font-weight: 800; margin-left: 8px; }
.dashboard-meta .archive-button { background: #b4232f; color: #fff; box-shadow: 0 8px 18px rgba(180, 35, 47, .25); }
.dashboard-meta .archive-button:hover { background: #8f1d27; }
.archive-warning { display: block; margin: 10px auto 0; max-width: 760px; color: #b4232f; font-size: 11px; }
.archive-warning code { color: #7f1d1d; }
.activity-report-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px 28px; border: 1px solid #cfe3e9; border-radius: 16px; background: linear-gradient(135deg, #f2fbfd, #fff); box-shadow: 0 8px 22px rgba(8, 30, 55, .06); }
.activity-report-panel h2 { margin: 5px 0; color: var(--navy); font-size: 20px; }
.activity-report-panel p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.activity-report-filter { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 9px; }
.activity-report-filter label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.activity-report-filter select, .activity-report-filter input { min-height: 38px; padding: 8px 10px; border: 1px solid #c9dbe3; border-radius: 9px; background: #fff; color: #43546a; font: inherit; font-size: 11px; }
.activity-report-dates:not([hidden]) { display: contents; }
.activity-report-filter .button { white-space: nowrap; }
@media (max-width: 760px) {
  .activity-report-panel { align-items: stretch; flex-direction: column; }
  .activity-report-filter { justify-content: flex-start; }
}
.attention-panel { display: grid; grid-template-columns: minmax(210px, .8fr) 1.2fr; gap: 18px; margin-top: 18px; padding: 15px; border: 1px solid #f1d6ac; border-radius: 11px; background: #fffaf1; color: #76582b; }
.attention-panel__heading { display: flex; align-items: center; gap: 12px; }
.attention-panel__icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #fff0d4; color: #c58223; }
.attention-panel strong, .attention-panel small { display: block; }
.attention-panel strong { margin-top: 2px; color: #5f4828; font-size: 11px; }
.attention-panel small { margin-top: 2px; color: #9b8059; font-size: 9px; }
.attention-panel__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.attention-item { display: grid; grid-template-columns: 25px 1fr; column-gap: 7px; align-items: center; padding: 8px; border: 1px solid rgba(212, 139, 66, .18); border-radius: 8px; background: rgba(255,255,255,.55); }
.attention-item__status { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e5e9eb; color: #73818a; font-size: 10px; font-weight: 800; }
.attention-item__status.has-items { background: #f3d7d8; color: #bd515a; }
.attention-item strong, .attention-item small { display: block; }
.attention-item strong { color: #5f4828; font-size: 10px; }
.attention-item small { margin-top: 1px; color: #9b8059; font-size: 8px; line-height: 1.3; }
.attention-item > div { min-width: 0; }
.attention-item > a { grid-column: 1 / -1; margin-top: 5px; color: #a66d1d; font-size: 9px; font-weight: 800; text-decoration: none; }
.attention-item > a i { margin-left: 3px; }
.table-tools { display: flex; align-items: center; gap: 10px; padding: 0 2px 2px; }
.table-search { position: relative; flex: 1; }
.table-search i { position: absolute; top: 50%; left: 13px; color: #7892a5; font-size: 12px; transform: translateY(-50%); }
.table-search input, .table-tools select { width: 100%; border: 1px solid #d4e1e8; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.table-search input { padding-left: 35px; }
.table-search input:focus, .table-tools select:focus { outline: 0; border-color: #62b8d0; box-shadow: 0 0 0 3px rgba(72, 200, 232, .14); }
.table-tools select { width: 170px; color: #526b7d; }
.combined-charge-panel { margin-bottom: 24px; }
/* Wraps instead of squeezing: below ~700px of panel width the help text
   moves onto its own line rather than shrinking to a one-word column. */
.combined-charge-toolbar { flex-wrap: wrap; gap: 10px 14px; padding: 0; }
.combined-user-filter { flex: 1 1 220px; max-width: 320px; }
.combined-user-filter select { width: 100%; padding-left: 35px; }
.combined-selection-status { flex: 1 1 260px; min-width: 0; color: #61798a; font-size: 11px; line-height: 1.4; }
.combined-charge-toolbar .button { flex: 0 0 auto; white-space: nowrap; }
.history-filter-bar { margin-bottom: 18px; padding: 12px; border: 1px solid #dce8ee; border-radius: 10px; background: #f8fbfd; }
.history-filter-bar .table-search { min-width: 180px; }
.history-filter-bar select { min-height: 37px; }
.history-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.history-tab { border: 1px solid #cbdce5; border-radius: 999px; padding: 9px 15px; color: #526b7d; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.history-tab:hover, .history-tab.is-active { border-color: #167da5; color: #fff; background: #167da5; }
.data-panel h2 { display: flex; align-items: center; gap: 9px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.status-badge--pending { color: #9b3f48; background: #fff0f1; }
.status-badge--confirmed { color: #28714b; background: #edf9f1; }
.status-badge--completed { color: #35658d; background: #edf5fb; }
.status-badge.completed { color: #28714b; background: #edf9f1; }
.status-badge.waiting { color: #9b3f48; background: #fff0f1; }
.stacked-form { display: grid; gap: 6px; min-width: 170px; margin-top: 8px; }
.stacked-form input, .stacked-form select, .stacked-form textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #cbd6df; border-radius: 6px; font: inherit; font-size: 11px; }
.stacked-form textarea { min-height: 38px; resize: vertical; }
.button.small { padding: 7px 10px; font-size: 11px; }
.button.danger { background: #b9404c; color: #fff; }
.page-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button.secondary { background: var(--navy-2); color: #fff; }
.button.muted { background: #e7edf2; color: var(--navy); }
.form-card, .data-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.hidden { display: none !important; }
.form-card { max-width: 820px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 22px; }
.form-grid.full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-weight: 700; font-size: 12px; }
.date-picker-trigger { display: flex; align-items: center; width: min(100%, 560px); gap: 10px; padding: 10px 12px; border: 1px solid #cbdce5; border-radius: 10px; color: var(--navy); background: linear-gradient(180deg, #fff, #f7fbfd); cursor: pointer; font: inherit; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.date-picker-trigger:hover { border-color: #81bfd0; transform: translateY(-1px); }
.date-picker-trigger:focus-visible { outline: 0; border-color: #167da5; box-shadow: 0 0 0 4px rgba(72, 200, 232, .18); }
.date-picker-trigger__icon { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #167da5; background: #e5f5fa; }
.date-picker-trigger__copy { display: grid; flex: 1; gap: 1px; }
.date-picker-trigger__copy strong { font-size: 11px; }
.date-picker-trigger__copy small { color: #71889a; font-size: 9px; }
.date-picker-trigger__chevron { color: #71889a; font-size: 10px; transition: transform .2s ease; }
.date-picker-trigger[aria-expanded="true"] .date-picker-trigger__chevron { transform: rotate(180deg); }
.freezing-calendar { max-width: 560px; border: 1px solid #d5e4eb; border-radius: 14px; padding: 9px; background: linear-gradient(145deg, #fbfeff, #f1f8fb); box-shadow: 0 10px 24px rgba(8, 30, 55, .08), inset 0 1px rgba(255,255,255,.9); }
.freezing-calendar__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; color: var(--navy); }
.freezing-calendar__toolbar strong { font-size: 13px; letter-spacing: -.01em; }
.calendar-nav { width: 27px; height: 27px; border: 1px solid #cbdce5; border-radius: 8px; color: #31566d; background: rgba(255,255,255,.85); font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.calendar-nav:hover { border-color: #167da5; color: #167da5; background: #fff; transform: translateY(-1px); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar-weekdays { margin-bottom: 3px; color: #71889a; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 38px; padding: 3px 1px; border: 1px solid rgba(205, 222, 231, .9); border-radius: 7px; color: var(--navy); background: rgba(255,255,255,.9); cursor: pointer; font: inherit; text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.calendar-day:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(8, 30, 55, .12); }
.calendar-day span, .calendar-day small { display: block; }
.calendar-day span { font-weight: 800; }
.calendar-meter { height: 3px; margin: 3px 2px 2px; overflow: hidden; border-radius: 999px; background: #e5edf1; }
.calendar-meter i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #55b886; transition: width .2s ease; }
.calendar-day--partial .calendar-meter i { background: #e0a72f; }
.calendar-day--full .calendar-meter i { background: #d96b76; }
.calendar-day small { margin-top: 1px; color: #28714b; font-size: 6px; line-height: 1.05; white-space: nowrap; }
.calendar-day--partial { border-color: #e6b95c; background: linear-gradient(145deg, #fffdf7, #fff8e8); }
.calendar-day--partial small { color: #9b6411; }
.calendar-day--full { border-color: #dc8b94; background: linear-gradient(145deg, #fff8f8, #fff0f1); }
.calendar-day--full small { color: #a33d49; }
.calendar-day--selected { outline: 2px solid #167da5; outline-offset: 1px; box-shadow: 0 0 0 3px rgba(22,125,165,.12); }
.calendar-day--past, .calendar-day:disabled { color: #9aa9b4; background: #eef2f5; cursor: not-allowed; }
.calendar-day--past small, .calendar-day:disabled small { color: #8797a3; }
.calendar-day--empty { border: 0; background: transparent; }
.calendar-selection { min-height: 18px; margin: 8px 0 6px; padding: 5px 7px; border-radius: 7px; color: #526b7d; background: rgba(226,241,247,.62); font-size: 10px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 2px; color: #617789; font-size: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-key { width: 10px; height: 10px; border: 1px solid #d5e3ea; border-radius: 3px; background: #fff; }
.calendar-key--partial { border-color: #e6b95c; background: #fff8e8; }
.calendar-key--full { border-color: #dc8b94; background: #fff0f1; }
.reg-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 14px;
}
.reg-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 16px 14px 18px;
  border: 1px solid #d9e8f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6fafe);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(8, 30, 55, .04);
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.reg-type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(8, 30, 55, .07);
  border-color: #b8dff4;
}
.reg-type-card.selected {
  border-color: rgba(26, 132, 200, .8);
  background: linear-gradient(135deg, #edf9ff, #dff2ff);
  box-shadow: 0 12px 24px rgba(26, 132, 200, .12);
}
.reg-type-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(22, 125, 165, .08);
  color: #0f60bd;
  font-size: 16px;
  line-height: 1;
}
.reg-type-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #c9d6df;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f9fbfd);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(12, 32, 52, .03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(180deg, #fff, #f9fbfd),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5 7l5 5 5-5 2 2-7 7-7-7 2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  background-size: auto, 12px 12px;
  padding-right: 36px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: #167da5; box-shadow: 0 0 0 4px rgba(72, 200, 232, .18); }
.form-field select:hover { border-color: #9fb8c9; }
@media (max-width: 900px) {
  .history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .history-summary { grid-template-columns: 1fr; }
  .combined-charge-toolbar { align-items: stretch; }
  .combined-selection-status { text-align: center; }
  .combined-charge-toolbar .button { width: 100%; }
  .history-panel { padding: 16px 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .reg-type-grid { grid-template-columns: 1fr; }
  .reg-type-card { min-height: 160px; }
  .completion-modal__dialog { padding: 24px 20px; }
  .completion-modal__dialog form { grid-template-columns: 1fr; }
  .completion-checkbox, .completion-summary, .completion-modal__actions { grid-column: auto; }
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.flash, .alert { border-radius: 6px; padding: 12px 15px; margin-bottom: 18px; background: #fff4e5; border: 1px solid #f4c879; color: #775016; }
.flash p { margin: 0; }

.history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.history-summary__item {
  padding: 16px 18px;
  border: 1px solid #dfeaf0;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 12px 24px rgba(8, 30, 55, 0.05);
}
.history-summary__item span,
.history-summary__item small {
  display: block;
  color: #5d7285;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.history-summary__item strong {
  display: block;
  margin: 10px 0 2px;
  color: var(--navy);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.history-summary__item small {
  letter-spacing: .04em;
  text-transform: none;
}

.combined-charge-panel {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #dfeaf0;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 12px 22px rgba(8, 30, 55, 0.05);
}
.history-filter-bar {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #dce8ee;
  border-radius: 12px;
  background: #f8fbfd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px;
  margin-bottom: 18px;
}
.history-tab {
  border: 1px solid #cbdce5;
  border-radius: 999px;
  padding: 9px 15px;
  color: #526b7d;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.history-tab:hover, .history-tab.is-active {
  border-color: #167da5;
  color: #fff;
  background: linear-gradient(135deg, #167da5, #0e5d98);
  box-shadow: 0 10px 18px rgba(22, 125, 165, 0.2);
}
.history-panel {
  padding: 22px 18px 18px;
  border: 1px solid #dfeaf0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 12px 24px rgba(8, 30, 55, 0.04);
}
.history-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5edf3;
  color: var(--navy);
  font-size: 19px;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  border: 1px solid #dfeaf0;
  border-radius: 12px;
  overflow: hidden;
}
.data-table thead th {
  background: linear-gradient(180deg, #0e2d4a 0%, #0b233d 100%);
  color: #edf8ff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.data-table tbody td {
  padding: 12px 14px;
  background: #fff;
  color: #41556c;
  font-size: 11px;
  line-height: 1.5;
  border-bottom: 1px solid #ebf1f5;
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td { background: #f9fbfd; }
.data-table tbody tr:hover td { background: #eef9fe; }
.data-table td strong { color: var(--navy); }
.data-table td small { display: block; color: #64748b; }
.data-table input[type="checkbox"] { accent-color: #167da5; transform: scale(1.12); }
.data-table .stacked-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.data-table .stacked-form select,
.data-table .stacked-form input,
.data-table .stacked-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* padding stays inside the box, so fields fit their panel */
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d5e0e8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 42, 61, 0.02);
}
.data-table .stacked-form textarea {
  min-height: 68px;
  resize: vertical;
}
.data-table .payment-received-form { grid-template-columns: 1fr auto; align-items: center; gap: 7px; }
.payment-received-check { display: flex; align-items: center; gap: 7px; color: #506879; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table .payment-received-check input[type="checkbox"] { width: auto; min-height: 0; margin: 0; padding: 0; accent-color: #167da5; }
.data-table .payment-received-form .button { margin-top: 0; }
.data-table .stacked-form input:focus,
.data-table .stacked-form select:focus,
.data-table .stacked-form textarea:focus {
  outline: 0;
  border-color: #62b8d0;
  box-shadow: 0 0 0 3px rgba(72, 200, 232, .15);
}
.data-table .stacked-form .button { margin-top: 2px; }
.history-edit { min-width: 190px; margin-top: 10px; }
.history-edit summary { width: fit-content; color: #167da5; font-size: 10px; font-weight: 800; cursor: pointer; }
.history-edit[open] { min-width: 220px; padding: 10px; border: 1px solid #dce8ee; border-radius: 10px; background: #f8fbfd; }
.history-edit .stacked-form { max-height: 420px; overflow-y: auto; padding-right: 3px; }
.history-edit .stacked-form label { display: grid; gap: 4px; color: #5c7280; font-size: 9px; font-weight: 700; }
/* Charge-sheet "To" (PI billing address) fields */
.sheet-details { min-width: 190px; }
.sheet-details summary { width: fit-content; color: #167da5; font-size: 10px; font-weight: 800; cursor: pointer; }
.sheet-details[open] { padding: 10px; border: 1px solid #dce8ee; border-radius: 10px; background: #f8fbfd; }
.sheet-details[open] { min-width: 230px; box-sizing: border-box; }
.sheet-details__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.sheet-details .bill-to { min-width: 0; }
.bill-to { min-width: 200px; border: 1px solid #dce8ee; border-radius: 10px; background: #f8fbfd; padding: 6px 10px; }
.bill-to summary { color: #167da5; font-size: 10px; font-weight: 800; cursor: pointer; }
.bill-to[open] { display: grid; gap: 6px; padding-bottom: 10px; }
.bill-to__needed { display: inline-block; margin-left: 4px; padding: 1px 6px; white-space: nowrap; line-height: 1.5; border-radius: 999px; background: #fff1d6; color: #8a5300; font-size: 9px; }
.bill-to__hint { margin: 0; color: #5c7280; font-size: 9px; line-height: 1.4; }
.bill-to label { display: grid; gap: 3px; color: #5c7280; font-size: 9px; font-weight: 700; }
.bill-to input { width: 100%; min-width: 0; }
.combined-charge-panel .bill-to { margin-top: 10px; }
.combined-charge-panel .bill-to[open] { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.combined-charge-panel .bill-to summary, .combined-charge-panel .bill-to__hint { grid-column: 1 / -1; }
.history-edit .stacked-form .history-edit__check { display: flex; align-items: center; gap: 7px; }
.history-edit .stacked-form .history-edit__check input { width: auto; min-height: 0; }
.csic-booking-toggle { margin: 0 0 8px; }
.csic-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #506879; font-size: 10px; font-weight: 700; cursor: pointer; }
.csic-toggle input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.csic-toggle__track { position: relative; width: 36px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: #b7c6cd; transition: background .18s ease; }
.csic-toggle__track::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; transition: transform .18s ease; }
.csic-toggle input:checked + .csic-toggle__track { background: #167da5; }
.csic-toggle input:checked + .csic-toggle__track::after { transform: translateX(16px); }
.csic-toggle input:focus-visible + .csic-toggle__track { outline: 3px solid rgba(22, 125, 165, .25); outline-offset: 2px; }
.csic-toggle input:disabled + .csic-toggle__track { opacity: .55; cursor: not-allowed; }
.csic-audit { margin-top: 5px; color: #506879; font-size: 10px; }
.csic-audit summary { color: #167da5; font-weight: 700; cursor: pointer; }
.csic-audit ol { display: grid; gap: 8px; margin: 7px 0 0; padding-left: 18px; }
.csic-audit li { line-height: 1.5; }
.csic-confirmation { width: min(460px, calc(100vw - 28px)); padding: 24px; border: 1px solid #d3e2e9; border-radius: 16px; box-shadow: 0 24px 70px rgba(13, 37, 54, .25); color: var(--ink); }
.csic-confirmation::backdrop { background: rgba(12, 31, 45, .54); backdrop-filter: blur(3px); }
.csic-confirmation form { display: grid; gap: 13px; }
.csic-confirmation [hidden] { display: none; }
.csic-confirmation h2 { margin: 0; color: var(--navy); font-size: 20px; }
.csic-confirmation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.csic-confirmation label { display: grid; gap: 6px; color: #334b60; font-size: 11px; font-weight: 700; }
.csic-confirmation input { width: 100%; padding: 10px 12px; border: 1px solid #c9d6df; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.csic-confirmation input:focus { outline: 0; border-color: #167da5; box-shadow: 0 0 0 4px rgba(72, 200, 232, .16); }
.csic-confirmation__actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.csic-confirmation__error, .completion-error { padding: 10px 12px; border: 1px solid #efc3c6; border-radius: 8px; background: #fff2f2; color: #8b303a !important; font-size: 11px; line-height: 1.5; }
.empty-message {
  padding: 28px 18px;
  border: 1px dashed #d2e0ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbfd 0%, #f1f7fb 100%);
  color: #64748b;
  font-style: normal;
  text-align: center;
}

.data-stack { display: grid; gap: 20px; }
.portal-page .data-stack,
.portal-page .data-panel,
.portal-page .table-wrap { min-width: 0; max-width: 100%; }
.data-panel h2, .data-panel h3 { color: var(--navy); margin: 0 0 12px; }
.data-panel h2 { font-size: 19px; }
.data-panel h3 { font-size: 15px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 0; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--navy); color: #fff; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.data-table td { color: #43546a; font-size: 11px; line-height: 1.45; }
.data-table tbody tr:nth-child(even) { background: #f8fafc; }
.data-table tbody tr:hover { background: #eef9fc; }
.data-table th:first-child, .data-table td:first-child { width: auto; min-width: 0; }
.data-table td:first-child.action-buttons { position: relative; z-index: 2; vertical-align: middle; white-space: nowrap; }
.data-table td:first-child.action-buttons .btn { margin-right: 5px; padding: 7px 9px; border-radius: 7px; font-size: 10px; white-space: nowrap; }
.data-table .btn { position: relative; z-index: 3; cursor: pointer; }
.freezing-complete-form { display: flex; align-items: center; gap: 5px; min-width: 170px; }
.freezing-complete-form input { width: 82px; padding: 7px 6px; border: 1px solid #cbd7df; border-radius: 7px; font: inherit; font-size: 10px; }
.freezing-complete-form input:focus { outline: 0; border-color: #55aec5; box-shadow: 0 0 0 3px rgba(72, 200, 232, .14); }
.data-table th:nth-child(2), .data-table td:nth-child(2) { min-width: 0; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { min-width: 0; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { min-width: 0; }
.data-table th:nth-child(5), .data-table td:nth-child(5) { min-width: 0; }
.data-table td:nth-child(4) { color: #28714b; font-weight: 700; }
.empty-message { padding: 24px; text-align: center; color: var(--muted); font-style: italic; background: var(--soft); border-radius: 6px; }
.success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 16, 29, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 1000;
}
.success-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.success-modal__content {
  width: min(100%, 420px);
  text-align: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(17, 60, 100, 0.08);
  box-shadow: 0 22px 60px rgba(8, 30, 55, 0.2);
  padding: 28px 22px 22px;
}
.success-modal__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebfbff, #d5f3ff);
  color: #0d7db6;
  font-size: 28px;
  font-weight: 800;
}
.success-modal__content h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -.03em;
}
.success-modal__content p {
  margin: 0 0 18px;
  color: #465d75;
  font-size: 14px;
}
.action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { display: inline-block; border: 0; border-radius: 4px; padding: 7px 10px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 700; }
.btn-load { background: #167da5; }
.btn-complete { background: #278653; }

.completion-modal[hidden] { display: none; }
.completion-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(6, 26, 53, .66); backdrop-filter: blur(7px); }
.completion-modal__dialog { position: relative; width: min(1180px, 100%); max-height: min(860px, calc(100vh - 40px)); overflow-y: auto; padding: 30px; border: 1px solid rgba(151, 205, 222, .45); border-radius: 20px; background: linear-gradient(145deg, #fff 0%, #f7fbfd 100%); box-shadow: 0 28px 80px rgba(6, 26, 53, .32); }
.completion-modal__header { display: flex; align-items: center; gap: 14px; padding-right: 24px; }
.completion-modal__icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; color: #0f6e9b; background: linear-gradient(135deg, #e7f8fc, #d5effa); font-size: 19px; }
.completion-modal__eyebrow { color: #167da5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.completion-modal__dialog h2 { margin: 1px 0 2px; color: var(--navy); font-size: 23px; letter-spacing: -.03em; }
.completion-modal__header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.completion-modal__dialog form { display: block; margin-top: 24px; }
.completion-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 16px; }
.completion-pane { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #dce7ed; border-radius: 14px; background: rgba(255, 255, 255, .82); }
.completion-pane h3 { margin: 0; color: var(--navy); font-size: 15px; }
.completion-pane > p { margin: -7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.completion-billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.completion-modal__dialog label { display: grid; gap: 6px; color: #334b60; font-size: 11px; font-weight: 700; }
.completion-modal__dialog [hidden] { display: none; }
.completion-modal__dialog input[type="number"], .completion-modal__dialog input[type="text"], .completion-modal__dialog input:not([type]), .completion-modal__dialog select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c9d6df; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.storage-name-suggestions { position: fixed; z-index: 1300; display: grid; max-height: 220px; box-sizing: border-box; overflow-y: auto; padding: 6px; border: 1px solid #d5e4eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(8, 30, 55, .16); }
.storage-name-suggestions[hidden] { display: none; }
.storage-name-suggestions__heading { padding: 5px 8px 7px; color: #718698; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.storage-name-suggestions__option { width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: #24445d; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.storage-name-suggestions__option:hover, .storage-name-suggestions__option:focus-visible, .storage-name-suggestions__option[aria-selected="true"] { outline: 0; background: #edf7fa; color: #126a89; }
.storage-name-suggestions__empty { padding: 8px; color: #718698; font-size: 10px; line-height: 1.4; }
.completion-modal__dialog input:focus, .completion-modal__dialog select:focus { outline: 0; border-color: #167da5; box-shadow: 0 0 0 4px rgba(72, 200, 232, .16); }
.completion-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.completion-checkbox, .completion-summary { grid-column: 1 / -1; }
.completion-checkbox { padding: 12px 14px; border: 1px solid #dceaf0; border-radius: 10px; background: #f5fbfd; }
.completion-checkbox input { accent-color: #167da5; }
.completion-mapped-grids { display: grid; gap: 10px; padding: 12px; border: 1px solid #d6e3ea; border-radius: 12px; background: #f7fbfd; }
.completion-mapped-grids[hidden] { display: none; }
.completion-mapped-grids h3 { margin: 0; color: var(--navy); font-size: 14px; }
.completion-mapped-grids > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.completion-mapped-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; padding: 15px; border: 1px solid #dce7ed; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(8, 30, 55, .035); }
.completion-mapped-grid legend { padding: 0 5px; color: #123d61; font-size: 10px; font-weight: 800; }
.completion-grid-discard-note { grid-column: 1 / -1; margin: 0; padding: 9px 11px; border-left: 3px solid #c44d58; border-radius: 5px; background: #fff2f2; color: #7a3038; font-size: 11px; line-height: 1.5; }
.completion-mapped-grid label { min-width: 0; }
.completion-storage-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.completion-storage-field .button.completion-copy-first { display: inline-flex; width: fit-content; max-width: 100%; justify-self: start; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid #cbdde7; border-radius: 7px; background: #f2f8fb; color: #164363; box-shadow: none; font-size: 10px; line-height: 1.3; text-align: center; white-space: normal; }
.completion-storage-field .button.completion-copy-first:hover { background: #e6f4f8; box-shadow: none; transform: none; }
.completion-grid-return-fields { display: contents; }
.completion-grid-return-fields[hidden], .completion-mapped-grid label[hidden] { display: none; }
.completion-summary { padding: 15px 17px; border: 1px solid #cfe6ed; border-radius: 12px; background: linear-gradient(135deg, #effafd, #f7fcfd); color: #29465e; line-height: 1.75; }
.completion-error { margin-top: 10px; }
.completion-csic { display: grid; grid-column: 1 / -1; gap: 10px; }
.completion-csic[hidden], .completion-csic label[hidden] { display: none; }
.completion-modal__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; border-top: 1px solid #e2ebf0; }
.completion-modal__actions .button { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 17px; }
.completion-modal__close { position: absolute; top: 15px; right: 17px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d8e4ea; border-radius: 50%; background: #fff; color: #617783; font-size: 20px; line-height: 1; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.completion-modal__close:hover { color: var(--navy); background: #eaf7fa; transform: rotate(90deg); }
@media (max-width: 900px) {
  .completion-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .completion-modal { padding: 10px; }
  .completion-modal__dialog { padding: 22px 16px; }
  .completion-columns, .completion-billing-grid { grid-template-columns: minmax(0, 1fr); }
  .completion-checkbox, .completion-summary, .completion-csic { grid-column: auto; }
  .completion-mapped-grid { grid-template-columns: minmax(0, 1fr); }
}
.btn-delete { background: #c44d58; }
.btn:hover { filter: brightness(.92); }
.index-page { background: var(--soft); }
.index-page .page-content { text-align: center; }
.index-logo { width: 150px; height: 150px; object-fit: contain; margin: 24px auto; }
.index-page .page-header { display: block; text-align: center; border: 0; }
.index-page .page-header h1 { max-width: 600px; margin: 0 auto; }
.index-details { margin: 0 auto 22px; text-align: center; }
.team-ack {
  max-width: 300px;
  margin: 22px auto -18px;
  padding: 6px 12px;
  border: 1px solid #dbeaf0;
  border-radius: 8px;
  background: #f8fcfd;
  color: #6a7d8d;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 4px 12px rgba(8, 30, 55, .04);
}
.team-ack span,
.team-ack strong { display: block; }
.team-ack span { letter-spacing: .04em; }
.team-ack strong {
  margin-top: 1px;
  color: #31576c;
  font-size: 10px;
  font-weight: 700;
}
.workflow-page { background: var(--soft); padding-bottom: 50px; }
.workflow-page .page-header { margin: 0; padding: 38px 42px; }
.workflow-intro { max-width: 970px; margin: 0 auto; padding: 35px 42px 25px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.workflow-intro h2 { color: var(--navy); margin: 5px 0; font-size: 25px; }
.workflow-intro p { color: var(--muted); max-width: 650px; margin: 0; }
.workflow-timeline { max-width: 970px; margin: 0 auto; padding: 0 42px; position: relative; }
.workflow-timeline::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 88px; width: 2px; background: #c5d8e4; }
.workflow-stage { display: grid; grid-template-columns: 55px 155px 1fr; gap: 22px; align-items: center; position: relative; padding: 18px 0; }
.stage-marker { z-index: 1; display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; background: var(--navy); border: 5px solid var(--soft); color: var(--cyan); font-size: 12px; font-weight: 800; }
.stage-image img { width: 155px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.stage-copy { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 19px 22px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.workflow-stage:hover .stage-copy { transform: translateX(4px); box-shadow: var(--shadow); }
.stage-copy h2 { color: var(--navy); margin: 2px 0 6px; font-size: 17px; }
.stage-copy p { color: #52657a; margin: 0; font-size: 12px; }
.stage-tag { display: inline-block; margin-top: 10px; color: #167da5; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 800px) {
  .admin-area .table-wrap {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow-x: auto;
  }
  .admin-area .data-table {
    min-width: 860px;
  }
  .admin-area .data-table th,
  .admin-area .data-table td {
    white-space: nowrap;
  }
  .admin-area .data-table th:first-child,
  .admin-area .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 3px 0 6px rgba(8, 30, 55, .08);
  }
  .admin-area .data-table th:first-child {
    z-index: 3;
    background: var(--navy);
  }
  .admin-area .data-table tbody tr:nth-child(even) td:first-child {
    background: #f8fafc;
  }
  .admin-area .data-table tbody tr:hover td:first-child {
    background: #eef9fc;
  }
  .page-content { padding: 30px 22px; }
  .admin-area .revenue-dashboard { padding: 22px; }
    .admin-area .revenue-heading { flex-direction: column; }
    .admin-area .revenue-heading h2 { white-space: normal; }
    .admin-area .revenue-filter { justify-content: flex-start; }
    .admin-area .revenue-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-area .revenue-summary { grid-template-columns: minmax(0, 1fr); }
    .admin-area .revenue-primary-stat { min-height: 120px; }
    .admin-area .revenue-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-area .revenue-charts { grid-template-columns: minmax(0, 1fr); }
  @media (max-width: 480px) {
    .admin-area .revenue-dashboard { padding: 18px 14px; border-radius: 14px; }
    .admin-area .revenue-heading h2 { font-size: 21px; }
    .admin-area .revenue-cards { grid-template-columns: minmax(0, 1fr); }
    .admin-area .revenue-card { min-height: 0; }
    .admin-area .revenue-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-area .revenue-detail-breakdowns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .admin-area .revenue-filter { width: 100%; }
    .admin-area .revenue-filter select, .admin-area .revenue-filter input { flex: 1 1 130px; }
  }
  .page-header { margin: -30px -22px 25px; padding: 34px 22px; min-height: 175px; }
  .page-header { display: block; }
  @media (max-width: 800px) {
    .workflow-intro { padding: 30px 22px 20px; display: block; }
    .workflow-intro .button { margin-top: 18px; }
    .workflow-timeline { padding: 0 22px; }
    .workflow-timeline::before { left: 49px; }
    .workflow-stage { grid-template-columns: 55px 1fr; gap: 16px; }
    .stage-image { grid-column: 2; }
    .stage-image img { width: 100%; height: 150px; }
    .stage-copy { grid-column: 2; }
  }
  .dashboard-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .event-gallery { grid-template-columns: repeat(2, 1fr); }
  .community-gallery { grid-template-columns: repeat(2, 1fr); }
  .equipment-hero-card, .equipment-hero-card--reverse { grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr); gap: 16px; }
  .equipment-hero-card img { height: 200px; }
  .equipment-card-grid { grid-template-columns: 1fr; }
  .equipment-card-grid--single { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
@media (max-width: 520px) {
  .dashboard-grid, .team-grid { grid-template-columns: 1fr; }
  .user-statistics .section-heading { display: block; }
  .user-statistics-total { display: inline-block; margin-top: 8px; }
  .pi-statistics-card { padding: 20px 16px; }
  .pi-statistics-legend { grid-template-columns: 1fr; }
  .event-gallery, .course-grid { grid-template-columns: 1fr; }
  .community-gallery { grid-template-columns: 1fr; }
  .team-intro { display: block; }
  .team-intro-icon { margin: 0 auto 10px; }
  .team-card { align-items: flex-start; }
  .team-photo { flex-basis: 92px; }
  .team-card img { width: 92px; height: 92px; }
  .team-status { font-size: 7px; }
  .advisory-list { grid-template-columns: 1fr; }
  .equipment-hero-card, .equipment-hero-card--reverse { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .equipment-hero-card--reverse img { grid-row: 1; }
  .equipment-hero-card img { height: 190px; }
  .equipment-hero-card--primary img { height: 220px; }
  .equipment-hero-card--detector img { height: 175px; }
  .equipment-tile { grid-template-columns: 115px 1fr; }
  .equipment-tile img { height: 130px; }
  .equipment-tile > div { padding-right: 12px; }
  .form-card, .data-panel { padding: 17px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1; text-align: center; }
}
.maintenance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.maintenance-editor h2, .maintenance-list h2 { margin-top: 0; color: var(--navy); }
.maintenance-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.maintenance-form .form-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.maintenance-list { margin-bottom: 20px; }
.maintenance-list .data-table td:first-child { min-width: 260px; white-space: normal; }
.maintenance-list .data-table td:last-child { white-space: nowrap; }
.maintenance-notices { margin: 0 0 20px; border: 1px solid #d4e4eb; border-radius: 14px; }
.maintenance-notices__intro { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.maintenance-notices__icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #fff4d6; color: #aa7410; font-size: 17px; }
.maintenance-notices__intro h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.maintenance-notices__intro p { max-width: 760px; margin: 0; color: #63798a; font-size: 11px; line-height: 1.55; }
.maintenance-notice-form { padding: 16px; border: 1px solid #e0e9ee; border-radius: 11px; background: #f8fbfc; }
.maintenance-notice-active { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #38536a; font-size: 11px; font-weight: 700; }
.maintenance-notice-active input { accent-color: #167da5; }
.maintenance-notices__list { margin-top: 22px; }
.maintenance-notices__list h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #23465e; font-size: 13px; }
.maintenance-notices__list h3 span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border-radius: 99px; background: #eaf4f8; color: #216986; font-size: 10px; }
.maintenance-notices__list .data-table td:first-child { min-width: 260px; white-space: normal; }
.maintenance-notices__list .data-table td:first-child small { display: block; margin-top: 4px; color: #64788a; line-height: 1.5; }
.managed-content-section { margin: 0 0 30px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfd; }

@media (max-width: 700px) {
  .facility-notice { grid-template-columns: minmax(0, 1fr) auto; }
  .facility-notice__label { grid-column: 1 / -1; padding: 8px 12px; }
  .facility-notice__items { padding: 10px 12px; }
  .facility-notice__item { display: grid; gap: 2px 8px; grid-template-columns: auto auto; max-width: 78vw; }
  .facility-notice__item > span { grid-column: 1 / -1; }
  .facility-notice__item a { grid-column: 1 / -1; }
}

@media (min-width: 701px) {
  #registration-fields.is-datacollecting #imaging_fields,
  #registration-fields.is-datacollecting #datacollecting_fields {
    display: contents;
  }
  #registration-fields.is-datacollecting #imaging_fields > .form-field,
  #registration-fields.is-datacollecting #datacollecting_fields > .form-field {
    grid-column: span 1;
  }
}

@media (min-width: 901px) {
  .portal-page .form-card { max-width: 1040px; }
  .portal-page #freezing_fields { grid-template-columns: minmax(0, 1fr) 190px; align-items: end; }
  .portal-page #freezing_fields > .form-field.full { grid-column: 1; }
  .portal-page #freezing_fields > .form-field:not(.full) { grid-column: 2; align-self: end; }
  .portal-page #freezing_fields .date-picker-trigger { width: 100%; }
  .portal-page #freezing_fields .freezing-calendar { max-width: none; }
}

@media (max-width: 700px) {
  .portal-page .page-content { padding: 18px 12px 28px; }
  .portal-page .page-header { margin: -18px -12px 16px; min-height: 126px; padding: 22px 14px; }
  .portal-page .page-header h1 { font-size: clamp(25px, 8vw, 32px); }
  .portal-page .page-header p { max-width: 540px; font-size: 11px; line-height: 1.45; }
  .portal-page .table-wrap {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow-x: auto;
  }
  .portal-page .data-table {
    width: max-content;
    min-width: 100%;
  }
  .portal-page .form-card { padding: 14px 12px; }
  .portal-page .form-grid { gap: 12px 14px; }
  .portal-page .reg-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 8px 0 10px; }
  .portal-page .reg-type-card { min-height: 72px; padding: 8px 4px; gap: 4px; border-radius: 10px; font-size: 10px; }
  .portal-page .reg-type-card i { font-size: 15px; }
  .portal-page .freezing-calendar { width: 100%; padding: 7px; }
  .portal-page .calendar-day { min-height: 36px; }
  .portal-page .calendar-selection { margin: 6px 0 5px; }
  .portal-page .form-actions { margin-top: 16px; }
}

@media (max-width: 380px) {
  .portal-page .page-content { padding-left: 9px; padding-right: 9px; }
  .portal-page .page-header { margin-left: -9px; margin-right: -9px; padding-left: 11px; padding-right: 11px; }
  .portal-page .form-card { padding: 12px 9px; }
  .portal-page .calendar-weekdays { font-size: 8px; }
  .portal-page .calendar-day { min-height: 34px; }
  .portal-page .calendar-day small { font-size: 5px; }
  .portal-page .calendar-legend { gap: 5px; font-size: 8px; }
}
.managed-content-section .section-heading { margin-bottom: 18px; }
.managed-page-content { margin: 0 0 24px; padding: 18px 22px; border-left: 4px solid #32a889; background: #f4faf8; white-space: pre-line; }
.maintenance-help { margin: -8px 0 18px; color: #607689; font-size: 12px; }
.page-editor { padding: 20px 0; border-top: 1px solid var(--line); }
.page-editor:first-of-type { border-top: 0; padding-top: 0; }
.page-editor__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; color: var(--navy); }
.page-editor__title strong { font-size: 16px; }
.page-editor__title span { color: #7892a5; font-size: 11px; }
.page-editor > .button { margin-top: 14px; }
@media (max-width: 760px) {
  .maintenance-grid, .maintenance-form { grid-template-columns: 1fr; }
  .maintenance-form .form-actions { grid-column: auto; }
}
@media (max-width: 800px) {
}
@media (max-width: 480px) {
}
@media (max-width: 760px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card { flex-direction: row; align-items: center; gap: 16px; min-width: 0; padding: 16px; text-align: left; }
  .team-photo { flex: 0 0 92px; padding: 0; }
  .team-card img { display: block; width: 84px; height: 84px; }
  .team-status { top: calc(100% + 2px); bottom: auto; max-width: none; padding: 4px 5px; font-size: 7px; white-space: nowrap; }
  .team-details { flex: 1; min-width: 0; padding-top: 0; }
  .team-card strong { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
  .team-card .team-details > span:last-of-type { display: block; }
  .team-details a.team-email { width: auto; max-width: 100%; margin: 12px 0 0; text-align: left; overflow-wrap: anywhere; }
  .team-email span { min-width: 0; overflow-wrap: anywhere; }
  .advisory-heading { align-items: flex-start; }
  .advisory-heading > div { min-width: 0; }
  .advisory h2 { font-size: 18px; line-height: 1.35; }
  .advisory-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .team-card { gap: 12px; padding: 14px 12px; }
  .team-photo { flex-basis: 90px; }
  .team-card img { width: 72px; height: 72px; }
  .team-card strong { font-size: 15px; }
  .advisory { padding: 16px 14px; }
  .advisory-icon { flex: 0 0 36px; width: 36px; height: 36px; }
}

.inventory-page { display: grid; gap: 20px; }
.inventory-page [hidden] { display: none !important; }
.inventory-page .page-header { margin-bottom: 0; }
.admin-area .portal-page .page-content { padding-top: 0; }
.admin-area .portal-page .page-header--admin {
  margin: 0 -42px;
  padding: 30px 42px;
  border-radius: 0;
  background-color: var(--navy);
  box-shadow: none;
}
.admin-area .portal-page .page-header--admin h1 { color: #fff; }
.admin-area .portal-page .page-header--admin p { color: #c5d8e8; }
@media (max-width: 1100px) {
  .admin-area .portal-page .page-header--admin { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 700px) {
  .admin-area .portal-page .page-header--admin { margin-right: -12px; margin-left: -12px; padding: 22px 14px; }
}
@media (max-width: 480px) {
  .admin-area .portal-page .page-header--admin { margin-right: -12px; margin-left: -12px; padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 380px) {
  .admin-area .portal-page .page-header--admin { margin-right: -9px; margin-left: -9px; padding-right: 11px; padding-left: 11px; }
}
.inventory-nav { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border: 1px solid #dce7ed; border-radius: 12px; background: #fff; }
.inventory-nav a { flex: 0 0 auto; padding: 9px 12px; border-radius: 8px; color: #496175; font-size: 11px; font-weight: 700; text-decoration: none; }
.inventory-nav a:hover, .inventory-nav a.active { color: #fff; background: #123d61; }
.inventory-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.inventory-metric { min-width: 0; padding: 17px; border: 1px solid #d9e5ec; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbfd); }
.inventory-metric span { display: block; color: #667e90; font-size: 10px; font-weight: 700; }
.inventory-metric strong { display: block; margin-top: 7px; color: #123d61; font-size: 26px; line-height: 1; }
.inventory-metric--frozen, .inventory-breakdown--status.inventory-status--frozen,
.inventory-storage-code--f, .inventory-storage-code--frozen, .inventory-status--frozen {
  --inventory-status-bg: #d6eee8;
  --inventory-status-fg: #315f57;
  --inventory-status-border: #bfd7d0;
  --inventory-status-accent: #58a18f;
}
.inventory-metric--clipped, .inventory-breakdown--status.inventory-status--clipped,
.inventory-storage-code--c, .inventory-storage-code--clipped, .inventory-status--clipped {
  --inventory-status-bg: #e5def2;
  --inventory-status-fg: #51476e;
  --inventory-status-border: #d2cbe2;
  --inventory-status-accent: #8272ad;
}
.inventory-metric--stored, .inventory-breakdown--status.inventory-status--stored,
.inventory-storage-code--s, .inventory-storage-code--stored, .inventory-status--stored {
  --inventory-status-bg: #d9eaf3;
  --inventory-status-fg: #3d5f78;
  --inventory-status-border: #c7d7e3;
  --inventory-status-accent: #6597b7;
}
.inventory-metric--in-microscope, .inventory-breakdown--status.inventory-status--in-microscope,
.inventory-storage-code--u, .inventory-storage-code--used,
.inventory-status--in-data-collection, .inventory-status--in-microscope {
  --inventory-status-bg: #f5ebca;
  --inventory-status-fg: #69552f;
  --inventory-status-border: #e2d5b5;
  --inventory-status-accent: #c29a42;
}
.inventory-metric--discarded, .inventory-breakdown--status.inventory-status--discarded,
.inventory-storage-code--d, .inventory-storage-code--discarded, .inventory-status--discarded {
  --inventory-status-bg: #f3dddd;
  --inventory-status-fg: #704648;
  --inventory-status-border: #e3c9ca;
  --inventory-status-accent: #bd7479;
}
.inventory-metric--frozen, .inventory-metric--clipped, .inventory-metric--stored,
.inventory-metric--in-microscope, .inventory-metric--discarded {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
  border-color: var(--inventory-status-border);
  background: var(--inventory-status-bg);
}
.inventory-metric--frozen::before, .inventory-metric--clipped::before,
.inventory-metric--stored::before, .inventory-metric--in-microscope::before,
.inventory-metric--discarded::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--inventory-status-accent);
  content: "";
}
.inventory-metric--frozen span, .inventory-metric--frozen strong,
.inventory-metric--clipped span, .inventory-metric--clipped strong,
.inventory-metric--stored span, .inventory-metric--stored strong,
.inventory-metric--in-microscope span, .inventory-metric--in-microscope strong,
.inventory-metric--discarded span, .inventory-metric--discarded strong {
  color: var(--inventory-status-fg);
}
.inventory-dashboard-grid, .inventory-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inventory-panel { min-width: 0; padding: 21px; border: 1px solid #d9e5ec; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(8, 30, 55, .045); }
.inventory-panel h2 { margin: 0 0 13px; color: #123d61; font-size: 17px; }
.inventory-panel > p { color: #667e90; font-size: 11px; line-height: 1.55; }
.inventory-panel__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.inventory-panel__heading h2, .inventory-panel__heading h3 { margin: 2px 0 3px; color: #123d61; font-size: 17px; }
.inventory-panel__heading h3 { font-size: 14px; }
.inventory-panel__heading p { margin: 0; color: #718698; font-size: 10px; line-height: 1.5; }
.inventory-breakdown { display: grid; gap: 9px; }
.inventory-breakdown > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #f4f8fa; color: #435a6d; font-size: 11px; }
.inventory-breakdown strong { color: #123d61; }
.inventory-breakdown > .inventory-breakdown--status {
  border: 1px solid var(--inventory-status-border);
  background: var(--inventory-status-bg);
  color: var(--inventory-status-fg);
  font-weight: 700;
}
.inventory-breakdown--status strong { color: inherit; }
.inventory-storage-map { display: grid; gap: 14px; }
.inventory-storage-map .inventory-panel__heading { margin-bottom: 0; }
.inventory-storage-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; color: #526b7e; font-size: 10px; }
.inventory-storage-legend li { display: flex; align-items: center; gap: 6px; }
.inventory-storage-code { display: inline-flex; min-width: 25px; min-height: 22px; box-sizing: border-box; align-items: center; justify-content: center; padding: 3px 6px; border-radius: 6px; background: #edf5fb; color: #35658d; font-size: 9px; font-weight: 800; line-height: 1; }
.inventory-storage-code--f, .inventory-storage-code--frozen,
.inventory-storage-code--c, .inventory-storage-code--clipped,
.inventory-storage-code--s, .inventory-storage-code--stored,
.inventory-storage-code--u, .inventory-storage-code--used,
.inventory-storage-code--d, .inventory-storage-code--discarded {
  border: 1px solid var(--inventory-status-border);
  background: var(--inventory-status-bg);
  color: var(--inventory-status-fg);
}
.inventory-storage-containers { display: grid; gap: 13px; }
.inventory-storage-container { padding: 13px; border: 1px solid #dce7ed; border-radius: 10px; background: #f8fbfc; }
.inventory-storage-container > h3 { margin: 0 0 11px; color: #123d61; font-size: 13px; }
.inventory-storage-container > summary { display: flex; justify-content: space-between; gap: 10px; color: #123d61; font-size: 13px; font-weight: 700; cursor: pointer; }
.inventory-storage-container > summary span, .inventory-storage-box > summary span + span { color: #718698; font-size: 10px; font-weight: 500; }
.inventory-storage-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 11px; }
.inventory-storage-box { min-width: 0; padding: 11px; border: 1px solid #e0e9ee; border-radius: 9px; background: #fff; }
.inventory-storage-box > summary { display: flex; justify-content: space-between; gap: 8px; color: #38536a; font-size: 11px; font-weight: 700; cursor: pointer; }
.inventory-storage-box[open] > summary { margin-bottom: 9px; }
.inventory-storage-box[open] { grid-column: 1 / -1; }
.inventory-storage-positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.inventory-storage-position { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px 7px; min-width: 0; padding: 8px; border: 1px solid #e1eaf0; border-radius: 8px; color: #24445d; text-decoration: none; }
.inventory-storage-position:not(a) { cursor: default; }
.inventory-storage-position:hover { border-color: #71b9ce; background: #f5fbfd; }
.inventory-storage-position:not(a):hover { border-color: #e1eaf0; background: #fff; }
.inventory-storage-position__number { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: #edf3f7; color: #526b7e; font-size: 10px; font-weight: 800; }
.inventory-storage-position > strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-storage-position__sample { grid-column: 1 / 3; overflow: hidden; color: #718698; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-storage-position__reference { grid-column: 1 / 3; color: #8798a6; font-size: 8px; }
.inventory-storage-table { min-width: 1040px; }
.inventory-storage-table th:nth-child(1), .inventory-storage-table td:nth-child(1) { min-width: 140px; }
.inventory-storage-table th:nth-child(2), .inventory-storage-table td:nth-child(2) { min-width: 110px; }
.inventory-storage-table th:nth-child(3), .inventory-storage-table td:nth-child(3) { min-width: 180px; }
.inventory-storage-table th:nth-child(6), .inventory-storage-table td:nth-child(6) { white-space: nowrap; }
.public-grid-available { grid-column: 1 / -1; color: #28714b; font-size: 9px; font-weight: 700; }
.public-grid-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.public-grid-selection > .empty-message { grid-column: 1 / -1; }
.public-grid-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dce7ed; border-radius: 9px; background: #fff; cursor: pointer; }
.public-grid-choice:has(input:checked) { border-color: #46a0bc; background: #f1fafc; box-shadow: 0 0 0 2px rgba(70, 160, 188, .12); }
.public-grid-choice > input { accent-color: #167da5; }
.public-grid-choice > span:nth-of-type(1) { display: grid; gap: 3px; min-width: 0; }
.public-grid-choice strong { overflow: hidden; color: #123d61; font-size: 10px; text-overflow: ellipsis; }
.public-grid-choice small { overflow: hidden; color: #718698; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.public-grid-choice__location { grid-column: 2 / -1; }
.public-grid-inventory-link, .public-inventory-result-note { margin: 0; color: #63798a; font-size: 10px; line-height: 1.55; }
.public-grid-inventory-link a { color: #167da5; font-weight: 700; }
.public-inventory-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; }
.public-inventory-search label { display: grid; min-width: 0; gap: 5px; color: #38536a; font-size: 10px; font-weight: 700; }
.public-inventory-search input { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 11px; border: 1px solid #d2dfe7; border-radius: 7px; background: #fff; color: #20384d; font: inherit; font-size: 11px; }
.public-inventory-search .button { margin: 0; white-space: nowrap; }
.public-inventory-result-count { color: #526b7e; font-size: 11px; }
.public-inventory-result-note { margin-top: 12px; }
.inventory-selection-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; color: #526b7e; font-size: 10px; }
.inventory-selection-intro strong { color: #24445d; font-size: 11px; }
.inventory-selection-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: #526b7e; font-size: 10px; }
.inventory-selection-actions .button { margin: 0; }
.inventory-select-grid { display: inline-flex; align-items: center; gap: 6px; color: #38536a; font-size: 10px; font-weight: 700; cursor: pointer; }
.inventory-select-grid input { margin: 0; accent-color: #167da5; }
.public-inventory-prompt, .public-grid-availability { color: #28714b; font-size: 11px; font-weight: 700; }
@media (max-width: 650px) {
  .public-inventory-search { grid-template-columns: minmax(0, 1fr); }
  .public-inventory-search .button { width: 100%; }
}
.inventory-recent { grid-column: 1 / -1; }
.inventory-recent { grid-column: 1 / -1; }
.inventory-quick-links, .inventory-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.inventory-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid #d9e5ec; border-radius: 12px; background: #fff; }
.inventory-filter-form label, .inventory-form label, .inventory-inline-form label, .inventory-outcome-form label { display: grid; gap: 6px; color: #38536a; font-size: 10px; font-weight: 700; }
.inventory-filter-form input, .inventory-filter-form select, .inventory-form input, .inventory-form select, .inventory-form textarea, .inventory-inline-form input, .inventory-inline-form select, .inventory-outcome-form input, .inventory-outcome-form select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d2dfe7; border-radius: 7px; background: #fff; color: #20384d; font: inherit; font-size: 11px; }
.inventory-filter-form input:focus, .inventory-filter-form select:focus, .inventory-form input:focus, .inventory-form select:focus, .inventory-form textarea:focus, .inventory-inline-form input:focus, .inventory-inline-form select:focus, .inventory-outcome-form input:focus, .inventory-outcome-form select:focus { outline: 2px solid rgba(22, 125, 165, .24); border-color: #4ba4bf; }
.inventory-filter-wide, .inventory-form-wide { grid-column: 1 / -1; }
.inventory-filter-actions { display: flex !important; align-items: flex-end; gap: 7px; }
.inventory-filter-actions .button { margin: 0; }
.inventory-bulk-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 11px; padding: 12px; margin: 0 0 13px; border: 1px solid #dce7ed; border-radius: 9px; background: #f6fafb; }
.inventory-bulk-controls label { display: grid; gap: 5px; color: #38536a; font-size: 10px; font-weight: 700; }
.inventory-bulk-controls input, .inventory-bulk-controls select { min-width: 150px; padding: 8px; border: 1px solid #d2dfe7; border-radius: 6px; background: #fff; }
.inventory-page .inventory-nav { position: sticky; top: 10px; z-index: 4; box-shadow: 0 8px 22px rgba(8, 30, 55, .06); }
.inventory-page .inventory-nav a { padding: 10px 15px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.inventory-page .inventory-nav a:hover { transform: translateY(-1px); }
.inventory-filter-form { padding: 20px; gap: 14px; border-color: #d4e2eb; box-shadow: 0 10px 28px rgba(8, 30, 55, .045); }
.inventory-filter-form .inventory-filter-wide { position: relative; }
.inventory-filter-form .inventory-filter-wide::before { position: absolute; top: 36px; left: 13px; z-index: 1; color: #6c879a; content: "\f002"; font-family: "Font Awesome 6 Free"; font-weight: 900; pointer-events: none; }
.inventory-filter-form .inventory-filter-wide input { min-height: 44px; padding-left: 38px; border-radius: 9px; }
.inventory-filter-form input, .inventory-filter-form select { min-height: 40px; border-color: #d7e2e9; border-radius: 9px; transition: border-color .16s ease, box-shadow .16s ease; }
.inventory-filter-form input:focus, .inventory-filter-form select:focus { outline: none; border-color: #42a9c3; box-shadow: 0 0 0 3px rgba(66, 169, 195, .15); }
.inventory-filter-actions { align-items: flex-end; }
.inventory-filter-actions .button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.inventory-panel { border-color: #d4e2eb; box-shadow: 0 12px 32px rgba(8, 30, 55, .055); }
.inventory-bulk-controls { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(180px, .8fr) minmax(220px, 1.3fr) auto; align-items: end; gap: 12px; padding: 15px; border-color: #d9e7ed; border-radius: 12px; background: linear-gradient(135deg, #f5fafc, #f9fbff); }
.inventory-bulk-controls__selection { display: grid; gap: 5px; align-self: center; }
.inventory-bulk-controls__eyebrow { color: #718698; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.inventory-bulk-controls__selection strong { color: #183e5d; font-size: 13px; }
.inventory-bulk-controls__selection strong span { color: #1684a6; font-size: 17px; }
.inventory-bulk-controls label { min-width: 0; }
.inventory-bulk-controls input, .inventory-bulk-controls select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 39px; border-color: #d2dfe7; border-radius: 8px; }
.inventory-bulk-controls__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-bulk-controls__actions .button { min-height: 39px; }
.inventory-bulk-controls__actions .button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; transform: none; }
.inventory-bulk-controls__selection .inventory-select-all { display: flex; align-items: center; gap: 6px; color: #526b7e; font-size: 10px; font-weight: 600; }
.inventory-bulk-controls__selection .inventory-select-all input { width: auto; min-height: auto; accent-color: #167da5; }
.inventory-search-falcons { display: grid; gap: 13px; }
.inventory-search-falcon { padding: 13px; border: 1px solid #d5e2ea; border-radius: 12px; background: #f5f9fb; }
.inventory-search-falcon__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.inventory-search-falcon__heading h3 { margin: 0; color: #123d61; font-size: 14px; }
.inventory-search-falcon__heading > span { color: #718698; font-size: 10px; }
.inventory-search-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 9px; }
.inventory-search-box { min-width: 0; overflow: hidden; border: 1px solid #d8e5ec; border-radius: 10px; background: #fff; }
.inventory-search-box > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 12px; cursor: pointer; list-style-position: inside; }
.inventory-search-box > summary strong { overflow: hidden; color: #214a66; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-search-box > summary > span { color: #167da5; font-size: 10px; font-weight: 700; white-space: nowrap; }
.inventory-search-box > summary small { grid-column: 1 / -1; overflow: hidden; color: #718698; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-search-box[open] { grid-column: 1 / -1; }
.inventory-search-box[open] > summary { border-bottom: 1px solid #e0e9ee; background: #f8fbfc; }
.inventory-grid-table-wrap { overflow-x: auto; border: 1px solid #e0e9ee; border-radius: 11px; }
.inventory-grid-table { min-width: 1300px; border-collapse: separate; border-spacing: 0; }
.inventory-grid-table thead th { position: sticky; top: 0; z-index: 2; padding-top: 12px; padding-bottom: 12px; background: #123d61; }
.inventory-grid-table tbody td { padding-top: 12px; padding-bottom: 12px; vertical-align: middle; }
.inventory-grid-table tbody td:nth-child(12) a { color: #137da1; text-decoration: none; }
.inventory-grid-table tbody td:nth-child(12) a:hover { text-decoration: underline; }
.inventory-grid-table tbody td:nth-child(2), .inventory-grid-table tbody td:nth-child(4) { min-width: 150px; }
.inventory-grid-table tbody td:nth-child(9) { white-space: nowrap; }
.inventory-grid-table .inventory-batch-heading th { padding: 11px 14px; background: #eaf3f8; color: #164b68; text-align: left; border-top: 2px solid #c8dce7; }
.inventory-grid-table .inventory-batch-heading th span { color: #526579; font-weight: 400; }
.inventory-grid-table tbody tr:not(.inventory-batch-heading):hover td { background: #f0f9fc; }
.inventory-page .empty-message { padding: 34px 20px; border: 1px dashed #cadbe5; border-radius: 12px; background: linear-gradient(135deg, #f7fafc, #f0f6fa); color: #6c8191; }
.inventory-page .button:focus-visible, .inventory-page a:focus-visible, .inventory-page input:focus-visible, .inventory-page select:focus-visible { outline: 3px solid rgba(36, 157, 188, .35); outline-offset: 2px; }
.inventory-status { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--inventory-status-border); border-radius: 99px; background: var(--inventory-status-bg); color: var(--inventory-status-fg); font-size: 9px; font-weight: 800; white-space: nowrap; }
.inventory-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 16px; color: #63798a; font-size: 11px; }
.inventory-pagination a, .inventory-breadcrumb a, .inventory-manage-types a { color: #167da5; font-weight: 700; text-decoration: none; }
.inventory-pagination a:hover, .inventory-breadcrumb a:hover, .inventory-manage-types a:hover { text-decoration: underline; }
.inventory-form { display: grid; gap: 17px; }
.inventory-form h2 { padding-bottom: 10px; margin: 0; border-bottom: 1px solid #e6edf1; }
.inventory-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inventory-form small { color: #758b9c; font-size: 9px; font-weight: 400; }
.inventory-sample-search-status { min-height: 12px; margin: -8px 0 0; color: #718698; font-size: 9px; }
.inventory-checkbox { display: flex !important; align-items: center; gap: 8px !important; }
.inventory-checkbox input { width: auto; }
.inventory-form-note { padding: 11px 13px; border-radius: 8px; background: #eef7fa; color: #456478; font-size: 10px; line-height: 1.5; }
.inventory-form-note i { margin-right: 5px; color: #167da5; }
.inventory-manage-types { margin: -8px 0 0; font-size: 11px; }
.inventory-breadcrumb { display: flex; gap: 9px; color: #7b8e9c; font-size: 10px; }
.inventory-detail-grid > .inventory-panel { height: 100%; box-sizing: border-box; }
.inventory-definition-list { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 9px 14px; margin: 0; font-size: 11px; }
.inventory-definition-list dt { color: #718698; }
.inventory-definition-list dd { margin: 0; color: #28465d; font-weight: 600; overflow-wrap: anywhere; }
.inventory-detail-highlight { padding: 12px; border-radius: 9px; background: #f4f8fa; }
.inventory-detail-highlight strong, .inventory-detail-highlight span { display: block; color: #123d61; font-size: 12px; }
.inventory-detail-highlight span { margin-top: 4px; color: #718698; font-size: 10px; }
.inventory-detail-highlight p { margin: 7px 0 0; color: #526b7e; font-size: 10px; }
.inventory-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.inventory-inline-form label { flex: 1 1 150px; }
.inventory-storage-form { margin-top: 16px; }
.inventory-location-current { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px; border-radius: 9px; background: #eef8f2; color: #28714b !important; }
.inventory-location-current span { color: #5c7968; font-size: 10px; }
.inventory-detail-discard { display: grid; gap: 9px; margin-top: 16px; padding: 12px; border: 1px solid #f0d8db; border-radius: 9px; background: #fffafb; }
.inventory-detail-discard p { margin: 0; color: #718698; font-size: 10px; }
.inventory-detail-discard form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.inventory-detail-discard label { flex: 1 1 180px; display: grid; gap: 6px; color: #38536a; font-size: 10px; font-weight: 700; }
.inventory-detail-discard input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d2dfe7; border-radius: 7px; background: #fff; color: #20384d; font: inherit; font-size: 11px; }
.inventory-current-tag { margin-left: 5px; padding: 3px 6px; border-radius: 99px; background: #edf9f1; color: #28714b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.inventory-timeline { display: grid; gap: 0; padding: 0 0 0 18px; margin: 0; border-left: 2px solid #dce9ee; list-style: none; }
.inventory-timeline li { position: relative; padding: 0 0 18px 12px; }
.inventory-timeline li::before { content: ""; position: absolute; left: -24px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #4ca9c0; border: 2px solid #fff; box-shadow: 0 0 0 1px #4ca9c0; }
.inventory-timeline li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; }
.inventory-timeline strong { color: #23465e; font-size: 11px; }
.inventory-timeline span, .inventory-timeline p { color: #6f8493; font-size: 10px; }
.inventory-timeline p { margin: 5px 0 0; overflow-wrap: anywhere; }
.inventory-select-grids { padding: 12px; border: 1px solid #d9e5ec; border-radius: 9px; }
.inventory-select-grids legend { padding: 0 5px; color: #28465d; font-size: 11px; font-weight: 800; }
.inventory-select-grids legend small { display: block; margin-top: 3px; font-weight: 400; }
.inventory-grid-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-height: 260px; overflow: auto; }
.inventory-grid-picker label { display: flex; align-items: flex-start; gap: 7px; padding: 9px; border: 1px solid #e1e9ed; border-radius: 7px; background: #fbfdfe; cursor: pointer; }
.inventory-grid-picker label > span { min-width: 0; }
.inventory-grid-picker strong, .inventory-grid-picker small { display: block; overflow-wrap: anywhere; }
.inventory-grid-picker strong { color: #23465e; font-size: 10px; }
.inventory-grid-picker small { color: #718698; font-size: 9px; }
.inventory-outcome-list { display: grid; gap: 12px; }
.inventory-outcome-card { padding: 14px; border: 1px solid #e0e9ed; border-radius: 10px; background: #fcfefe; }
.inventory-outcome-card .inventory-panel__heading { margin-bottom: 10px; }
.inventory-outcome-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; }
.inventory-outcome-storage { display: contents; }
.inventory-outcome-storage[hidden] { display: none; }
.inventory-outcome-meta { color: #6a8090; font-size: 10px; }
.inventory-table-form { margin: 0; }
.inventory-table-form .button { margin: 0; }
.inventory-initial-storage-grid { display: grid; gap: 9px; padding-top: 12px; }
.inventory-initial-storage-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 11px; border: 1px solid #dfe8ed; border-radius: 8px; background: #fafcfd; }
.inventory-initial-storage-row > strong { grid-column: 1 / -1; color: #28465d; font-size: 10px; }
.inventory-initial-storage-row label { display: grid; gap: 5px; color: #38536a; font-size: 9px; font-weight: 700; }
.inventory-initial-storage-row input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px; border: 1px solid #d2dfe7; border-radius: 6px; background: #fff; }
.inventory-relocate summary { color: #167da5; font-size: 10px; font-weight: 800; cursor: pointer; }
.inventory-relocate form { display: grid; min-width: 190px; gap: 7px; padding: 9px; border: 1px solid #dce7ed; border-radius: 8px; background: #fff; }
.inventory-relocate label { display: grid; gap: 4px; color: #38536a; font-size: 9px; font-weight: 700; }
.inventory-relocate input { min-width: 0; padding: 7px; border: 1px solid #d2dfe7; border-radius: 5px; }
.inventory-grid-picker input, .inventory-page input[type="checkbox"] { accent-color: #167da5; }
@media (max-width: 1050px) {
  .inventory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-grid-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .inventory-dashboard-grid, .inventory-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .completion-modal__dialog form { grid-template-columns: minmax(0, 1fr); }
  .completion-checkbox, .completion-summary, .completion-modal__actions { grid-column: auto; }
  .completion-mapped-grid { grid-template-columns: minmax(0, 1fr); }
  .inventory-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-panel { padding: 15px; }
  .inventory-panel__heading { flex-wrap: wrap; }
  .inventory-page .page-header { align-items: flex-start; gap: 12px; }
  .inventory-page .page-header > a { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-filter-form, .inventory-form-grid, .inventory-outcome-form { grid-template-columns: minmax(0, 1fr); }
  .inventory-filter-wide, .inventory-form-wide { grid-column: auto; }
  .inventory-grid-picker { grid-template-columns: minmax(0, 1fr); }
  .inventory-initial-storage-row { grid-template-columns: minmax(0, 1fr); }
  .inventory-initial-storage-row > strong { grid-column: auto; }
  .inventory-page .page-header { flex-direction: column; }
  .inventory-panel__heading > .button { width: 100%; }
  .inventory-definition-list { grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); }
  .inventory-bulk-controls { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .inventory-bulk-controls input, .inventory-bulk-controls select { width: 100%; box-sizing: border-box; }
  .inventory-bulk-controls__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .inventory-bulk-controls__actions .button { width: 100%; }
}

.admin-assistant { position: fixed; z-index: 1100; right: 24px; bottom: 22px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.admin-assistant__toggle { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 17px; border: 0; border-radius: 999px; background: #0b4269; color: #fff; box-shadow: 0 8px 24px rgba(6, 26, 53, .26); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.admin-assistant__toggle i { color: #66d5ed; font-size: 17px; }
.admin-assistant__toggle:hover { background: #0e527e; }
.admin-assistant__panel { position: absolute; right: 0; bottom: 60px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); max-height: min(590px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #d8e5ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 54px rgba(6, 26, 53, .24); }
.admin-assistant__panel[hidden] { display: none; }
.admin-assistant__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: #061a35; color: #fff; }
.admin-assistant__eyebrow { color: #65cce5; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-assistant__header h2 { margin: 2px 0 0; font-size: 17px; line-height: 1.3; }
.admin-assistant__close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.admin-assistant__privacy { margin: 0; padding: 9px 16px; color: #526b7d; background: #f2f8fa; font-size: 10px; line-height: 1.45; }
.admin-assistant__messages { display: flex; flex: 1 1 auto; flex-direction: column; gap: 9px; min-height: 100px; padding: 13px; overflow-y: auto; overscroll-behavior: contain; }
.admin-assistant__message { max-width: 92%; padding: 10px 12px; border: 1px solid #e0e9ee; border-radius: 12px; background: #f6f9fb; color: #233b50; }
.admin-assistant__message--user { align-self: flex-end; border-color: #b8e9f3; background: #e9f9fc; }
.admin-assistant__message--error { align-self: flex-start; border-color: #f1c8c8; background: #fff3f3; color: #8a2f37; }
.admin-assistant__message--preview { align-self: stretch; max-width: 100%; border-color: #9bc9d8; background: #f0f9fc; }
.admin-assistant__message--preview > strong { display: block; margin-bottom: 8px; color: #0b4269; font-size: 12px; }
.admin-assistant__message--preview ul { margin: 0; padding-left: 18px; color: #314b5d; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-assistant__message--preview p { margin-top: 8px; }
.admin-assistant__preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-assistant__preview-actions .button { margin: 0; padding: 8px 10px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-assistant__preview-actions .button.danger { border: 1px solid #a93642; background: #b9404c; color: #fff; }
.admin-assistant__preview-actions .button:disabled { cursor: wait; opacity: .6; }
.admin-assistant__message p { margin: 0; white-space: pre-line; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.admin-assistant__message audio { display: block; max-width: 100%; margin-top: 8px; }
.admin-assistant__message a { display: inline-block; margin-top: 8px; color: #0b6688; font-size: 11px; font-weight: 700; }
.admin-assistant__form { display: grid; gap: 8px; padding: 12px; border-top: 1px solid #e1e9ee; }
.admin-assistant__form textarea { width: 100%; min-height: 52px; resize: vertical; padding: 10px 11px; border: 1px solid #cbd9e1; border-radius: 9px; color: #14243a; font: inherit; font-size: 11px; }
.admin-assistant__form textarea:focus { outline: 2px solid rgba(22, 125, 165, .25); border-color: #2588aa; }
.admin-assistant__status { min-height: 16px; margin: -3px 0 0; color: #647b8c; font-size: 10px; line-height: 1.4; }
.admin-assistant__actions { display: flex; justify-content: space-between; gap: 8px; }
.admin-assistant__actions .button { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 12px; font-size: 10px; }
.admin-assistant__actions .admin-assistant__voice-button { flex: 1 1 auto; justify-content: center; min-height: 42px; font-size: 12px; }
.admin-assistant__voice-button.is-listening { background: #c94752; color: #fff; box-shadow: 0 0 0 4px rgba(201, 71, 82, .14); }
.admin-assistant__voice-button.is-listening i { animation: assistant-mic-pulse 1s ease-in-out infinite; }
.admin-assistant__actions .button:disabled { cursor: not-allowed; opacity: .55; }
.admin-assistant .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes assistant-mic-pulse { 50% { transform: scale(1.18); } }
@media (max-width: 520px) {
  .admin-assistant { right: 14px; bottom: 14px; }
  .admin-assistant__panel { position: fixed; right: 10px; bottom: 72px; width: auto; left: 10px; max-height: calc(100dvh - 92px); }
}

/* ---- Accessibility, layout and navigation helpers ---- */
img { height: auto; }
:focus-visible { outline: 3px solid #1a84c8; outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); transition: top .15s ease; }
.skip-link:focus { top: 12px; }
.skip-target { display: block; height: 0; }
.skip-target:focus { outline: none; }
.inline-form { display: inline; }
.stats-loading { text-align: center; padding: 40px; }

/* Keep the footer at the bottom of short public pages */
body:not(.admin-area) .site-shell { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.admin-area) .site-shell > main { flex: 1 0 auto; }

/* Current page in the primary navigation */
.site-nav a[aria-current="page"]:not(.portal-link) { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-nav .portal-link.active { color: #fff; box-shadow: 0 0 0 2px var(--cyan); }

/* Collapsible navigation on narrow screens (only when JS is available) */
.nav-toggle { display: none; }
@media (max-width: 800px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
  .js .nav-toggle i { font-size: 15px; }
  .js .nav-toggle[aria-expanded="true"] { border-color: var(--cyan); background: rgba(72, 200, 232, .14); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 4px; padding: 8px 0 4px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
  .js .site-nav.is-open a { position: static; display: block; min-height: 44px; padding: 11px 8px; text-align: left; transform: none; }
  .js .site-nav.is-open a[aria-current="page"]:not(.portal-link) { padding-left: 14px; text-decoration: none; box-shadow: inset 3px 0 0 var(--cyan); background: rgba(72, 200, 232, .08); }
  .js .site-nav.is-open .portal-link { margin-top: 8px; padding: 11px 12px; text-align: center; }
}

/* Staff login: small lock beside "Book slots"; labelled row inside the open mobile menu. */
.site-nav .staff-login { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: -10px; border-radius: 6px; color: rgba(233, 244, 251, .6); font-size: 12px; border: 1px solid transparent; }
.site-nav .staff-login:hover, .site-nav .staff-login:focus-visible { color: var(--cyan); border-color: rgba(125, 206, 255, .35); transform: none; }
.site-nav .staff-login-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) {
  .js .site-nav.is-open .staff-login { display: flex; width: auto; height: auto; margin: 4px 0 0; padding: 11px 8px; justify-content: flex-start; gap: 10px; font-size: 13px; color: rgba(233, 244, 251, .75); }
  .js .site-nav.is-open .staff-login-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Lighter page-header banners on phones and small tablets (800w variants). */
@media (max-width: 800px) {
  .page-header--portal { background-image: linear-gradient(90deg, rgba(3, 20, 43, .88), rgba(6, 34, 62, .52)), url("../images/web/science-800w.webp"); }
  .page-header--schedule { background-image: linear-gradient(90deg, rgba(3, 20, 43, .88), rgba(6, 34, 62, .48)), url("../images/cover-schedule-640w.webp"); }
  .page-header--admin { background-image: linear-gradient(90deg, rgba(3, 20, 43, .76) 0%, rgba(6, 34, 62, .48) 52%, rgba(6, 34, 62, .20) 100%), url("../images/admin-header-800w.webp"); }
}

/* ==== Phase 2: Rates, FAQ, footer contact (rates-*, faq-*, footer-*, contact-*) ==== */
.rates-section { margin: 0 0 34px; }
.rates-table-wrap { max-width: 960px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(8, 30, 55, .07); }
.rates-table-wrap:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.rates-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rates-table th, .rates-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rates-table thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.rates-table thead th:not(:first-child), .rates-table td { text-align: right; }
.rates-table tbody th { color: var(--navy); font-weight: 700; }
.rates-table tbody th small { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.rates-table td { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rates-table tbody tr:nth-child(even) { background: #f8fafc; }
.rates-table tbody tr:last-child th, .rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-table__gst td { font-weight: 500; color: var(--text-secondary); }
.rates-list { max-width: 900px; margin: 0 auto; padding-left: 20px; color: #43546a; line-height: 1.6; }
.rates-list li { margin-bottom: 10px; }
.rates-list strong { color: var(--navy); }
.rates-example { max-width: 560px; margin: 0 auto; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 10px; background: #fff; }
.rates-example dl { margin: 0; }
.rates-example dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rates-example dl > div:last-child { border-bottom: 0; }
.rates-example dt { color: #43546a; }
.rates-example dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rates-example__subtotal { border-top: 1px solid #b8c5d0; }
.rates-example__total dt, .rates-example__total dd { color: var(--navy); font-weight: 800; font-size: 17px; }
.rates-cta { max-width: 900px; margin: 0 auto 10px; text-align: center; }
.rates-cta p { color: #43546a; margin: 0 0 14px; }
.rates-cta .button { font-size: 14px; padding: 10px 18px; }
.rates-cta__link { margin-left: 14px; color: #167da5; font-weight: 700; }
@media (max-width: 600px) {
  .rates-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .rates-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates-table, .rates-table tbody, .rates-table tr, .rates-table th, .rates-table td { display: block; width: auto; }
  .rates-table tbody tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff !important; overflow: hidden; }
  .rates-table tbody th { padding: 12px 14px; background: #eef9fc; }
  .rates-table td { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; text-align: right; }
  .rates-table td::before { content: attr(data-label); color: var(--text-secondary); font-weight: 500; text-align: left; }
  .rates-table tbody tr td:last-child { border-bottom: 0; }
  .rates-example { padding: 14px 16px; }
  .rates-example dl > div { font-size: 14px; }
  .rates-cta__link { display: inline-block; margin: 12px 0 0 14px; }
}
.faq-list { max-width: 900px; margin: 0 auto 26px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(8, 30, 55, .05); }
.faq-item[open] { border-color: #9fd9ea; }
.faq-item summary { position: relative; display: block; padding: 16px 48px 16px 18px; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: #167da5; font-size: 22px; font-weight: 500; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: #0b6385; }
.faq-item summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
.faq-answer { padding: 0 18px 6px; border-top: 1px solid var(--line); }
.faq-answer p { color: #43546a; margin: 12px 0; line-height: 1.6; }
.faq-answer a, .faq-more a { color: #167da5; }
.faq-quote { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--cyan); background: #eef9fc; color: #29465e; font-style: italic; }
.faq-more { max-width: 900px; margin: 0 auto 10px; text-align: center; color: #43546a; }
.footer-contact address { font-style: normal; color: #b9cad8; font-size: 14px; line-height: 1.55; margin: 6px 0 2px; }
.site-footer .contact-directions { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 700; }
.site-footer .contact-directions i { font-size: 11px; }
.footer-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer .footer-funding { margin: 12px 0 0; text-align: center; color: #9fb3c4; font-size: 12px; }
.site-footer .footer-funding + .copyright { margin-top: 8px; }
/* ==== End Phase 2 block ==== */
/* Phase 2: keep the 10-link primary nav on one line between 1101px and 1300px */
@media (min-width: 1101px) and (max-width: 1300px) {
  .site-nav { gap: 12px; }
}

/* ==== Phase 2b: instructions steps, home stats tiles, publications, notices ==== *//* Instructions page (facility.html) */

/* Home statistics tiles (home.html) */

.stats-row-tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; overflow: hidden; padding: 22px 20px; border: 1px solid #d9e5ec; border-radius: 12px; background: linear-gradient(145deg, #fff 0%, #eefaff 100%); box-shadow: 0 10px 24px rgba(8, 30, 55, .07); }
.stats-row-tile::after { content: ""; position: absolute; width: 110px; height: 110px; right: -34px; bottom: -46px; border-radius: 50%; background: rgba(39, 169, 199, .10); pointer-events: none; }
.stats-row-tile__icon { color: #27a9c7; font-size: 22px; }
.stats-row-tile__value { color: var(--navy); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats-row-tile__label { margin: 2px 0 0; color: var(--navy); font-size: 15px; }
.stats-row-tile__note { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }

@media (max-width: 560px) {
  
  .stats-row-tile { gap: 4px; padding: 14px 10px; }
  .stats-row-tile__icon { font-size: 16px; }
  .stats-row-tile__value { font-size: 28px; }
  .stats-row-tile__label { font-size: 12px; }
  .stats-row-tile__note { display: none; }
  
  
}

/* Publications (pub.html) */
.pub-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin: 4px 0 22px; }
.pub-count { margin: 0; color: var(--navy); font-size: 15px; font-weight: 800; }
.pub-search { display: grid; gap: 6px; width: min(100%, 380px); }
.pub-search[hidden] { display: none; }
.pub-search label { color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.pub-search__field { position: relative; }
.pub-search__field i { position: absolute; left: 12px; top: 50%; color: #64748b; font-size: 13px; transform: translateY(-50%); pointer-events: none; }
.pub-search__field input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 12px 9px 34px; border: 1px solid #c9d7e1; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.pub-search__field input:focus { outline: 3px solid rgba(22, 125, 165, .3); border-color: #48c8e8; }
.pub-year { display: grid; gap: 12px; }
.pub-year[hidden] { display: none; }
.pub-year + .pub-year { margin-top: 14px; }
.pub-year__heading { display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 6px; border-bottom: 2px solid #e2edf2; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.pub-year__count { display: inline-grid; min-width: 24px; height: 22px; padding: 0 6px; place-items: center; border-radius: 11px; background: #e2f5fa; color: #0f6f94; font-size: 12px; font-weight: 800; }
.pub-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pub-item[hidden] { display: none; }
.pub-empty { margin: 8px 0 0; padding: 18px; border: 1px dashed #c9d7e1; border-radius: 8px; color: var(--text-secondary); text-align: center; }
.pub-empty[hidden] { display: none; }

/* Facility notices strip (base.html) */
.notice-strip .facility-notice__items { align-items: stretch; }
.notice-item.facility-notice__item { align-items: center; gap: 12px; }
.notice-date { display: inline-grid; flex: 0 0 auto; padding: 3px 8px; border: 1px solid #e7cf8e; border-radius: 6px; background: #fff; color: #7a5410; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.notice-body { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.notice-title { color: #5b3514; font-weight: 800; white-space: nowrap; }
.notice-message { overflow: hidden; text-overflow: ellipsis; }
.notice-link { display: inline-flex; align-items: center; gap: 5px; color: #0b6385; font-size: 10px; font-weight: 800; white-space: nowrap; }
.notice-strip .facility-notice__dismiss:focus-visible { outline: 3px solid rgba(11, 99, 133, .45); outline-offset: -3px; }
@media (max-width: 800px) {
  .notice-item.facility-notice__item { display: flex; align-items: flex-start; }
  .notice-body { display: grid; gap: 2px; }
  .notice-title { white-space: normal; }
}
/* ==== End Phase 2b block ==== */
@media (min-width: 1101px) and (max-width: 1200px) {
  .site-nav { gap: 10px; font-size: 13px; }
}

/* === Phase 2 / D: rates, faq, contact, notices, footer — START === */
/* Rates: charge sheet table (rates.html) */
.rates-sheet-wrap { max-width: 1040px; }
.rates-sheet thead th { vertical-align: bottom; white-space: normal; line-height: 1.35; }
.rates-sheet thead th:first-child { min-width: 260px; }
.rates-sheet__gst-head { display: block; margin-top: 3px; color: #b9e9f5; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.rates-sheet td { white-space: normal; }
.rates-sheet__amount { display: block; white-space: nowrap; }
.rates-sheet__gst { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 12px; font-weight: 500; white-space: nowrap; }
.rates-sheet .rates-sheet__sub th { padding-left: 36px; font-weight: 600; }
.rates-sheet .rates-sheet__sub th, .rates-sheet .rates-sheet__sub td { padding-top: 10px; padding-bottom: 10px; }
.rates-sheet .rates-sheet__sub td { color: #1d6b43; }
.rates-sheet .rates-sheet__note td { padding: 10px 18px; background: #eef9fc; color: #29465e; font-size: 14px; font-weight: 600; text-align: left; white-space: normal; }
.rates-sheet .rates-sheet__note i { margin-right: 6px; color: #167da5; }
.rates-sheet__badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid #e7cf8e; border-radius: 999px; background: #fff8e5; color: #7a5410; font-size: 11px; font-weight: 700; }
.rates-example__qty { display: block; color: var(--text-secondary); font-size: 12px; }
.rates-sheet__row-note { display: block; margin-top: 6px; padding-left: 9px; border-left: 3px solid var(--cyan); color: #29465e; font-size: 12px; font-weight: 600; line-height: 1.45; }
.rates-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; align-items: start; }
.rates-examples .rates-example { max-width: none; margin: 0; }
.rates-example__title { margin: 0 0 8px; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.45; }
@media (max-width: 760px) { .rates-examples { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.rates-sheet__meta { max-width: 1040px; margin: 12px auto 0; color: var(--text-secondary); font-size: 13px; }
.rates-cta .rates-cta__link + .rates-cta__link { margin-left: 18px; }
@media (max-width: 600px) {
  .rates-sheet thead th:first-child { min-width: 0; }
  .rates-sheet td { align-items: baseline; }
  .rates-sheet td .rates-sheet__amount, .rates-sheet td .rates-sheet__gst { display: inline; margin: 0; }
  .rates-sheet td .rates-sheet__gst { margin-left: 6px; }
  .rates-sheet td::before { margin-right: auto; }
  .rates-sheet .rates-sheet__sub th { padding-left: 14px; }
  .rates-sheet .rates-sheet__note { border-color: #cfe6ee; }
  .rates-sheet .rates-sheet__note td { display: block; padding: 12px 14px; }
  .rates-sheet .rates-sheet__note td::before { content: none; }
}

/* Contact page (contact.html) */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 960px; margin: 0 auto 30px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.contact-card__icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 14px; border-radius: 12px; background: #e2f5fa; color: #0f6f94; font-size: 18px; }
.contact-card h2 { margin: 0 0 6px; color: var(--navy); font-size: 21px; letter-spacing: -.02em; }
.contact-card p { margin: 0 0 14px; color: var(--text-secondary); }
.contact-card__list { display: grid; gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.contact-card__list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e2edf2; border-radius: 10px; background: var(--soft); }
.contact-card__role { color: var(--text-secondary); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.contact-card__list a { color: #0b6385; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.contact-card__address { margin: 4px 0 16px; color: #29465e; font-size: 15px; font-style: normal; line-height: 1.6; }
.contact-card__map { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; border: 1px solid #9ccfe0; border-radius: 8px; background: #fff; color: #0b5878; font-weight: 700; }
.contact-card__map:hover { background: #e2f5fa; border-color: var(--cyan); }
.contact-card__map i { font-size: 11px; }
.contact-card a:focus-visible { outline: 3px solid rgba(22, 125, 165, .45); outline-offset: 2px; }
.contact-next { max-width: 900px; margin: 0 auto 10px; text-align: center; }
.contact-next p { margin: 0 0 14px; color: var(--text-secondary); }
.contact-next .button { font-size: 14px; padding: 10px 18px; }
.contact-next .rates-cta__link { margin-left: 18px; }
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact-card { padding: 20px 18px; }
}
@media (max-width: 600px) {
  .rates-cta .rates-cta__link + .rates-cta__link, .contact-next .rates-cta__link { display: inline-block; margin: 12px 9px 0; }
}

/* Facility notices: slim dated announcement bar under the header (base.html) */
.facility-notice.notice-strip { grid-template-columns: auto minmax(0, 1fr) auto; border-width: 0 0 1px; border-color: #e7cf8e; box-shadow: 0 2px 8px rgba(8, 30, 55, .08); }
.notice-strip .facility-notice__label { gap: 7px; padding: 0 14px; font-size: 10px; }
.notice-strip .facility-notice__items { gap: 18px; padding: 6px 14px; }
.notice-strip .notice-item.facility-notice__item { gap: 10px; font-size: 13px; line-height: 1.45; }
.notice-strip .facility-notice__item + .facility-notice__item { padding-left: 18px; }
.notice-strip .notice-date { padding: 2px 7px; font-size: 11px; }
.notice-strip .notice-title { font-size: 13px; }
.notice-strip .notice-message { color: #493919; }
.notice-strip .notice-link { font-size: 12px; }
.notice-strip .facility-notice__dismiss { width: 40px; min-height: 36px; }
@media (max-width: 800px) {
  .facility-notice.notice-strip { grid-template-columns: auto minmax(0, 1fr) auto; }
  .notice-strip .facility-notice__label { grid-column: auto; padding: 0 10px; }
  .notice-strip .facility-notice__label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .notice-strip .facility-notice__items { padding: 8px 10px; }
  .notice-strip .notice-item.facility-notice__item { display: flex; flex: 0 0 100%; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; max-width: 100%; font-size: 12px; }
  .notice-strip .facility-notice__item + .facility-notice__item { padding-left: 0; border-left: 0; }
  .notice-strip .notice-body { display: block; min-width: 0; }
  .notice-strip .notice-title { white-space: normal; }
  .notice-strip .notice-message { overflow: visible; white-space: normal; }
  .notice-strip .notice-title { margin-right: 6px; }
}
/* === Phase 2 / D — END === */

/* === Phase 2 / E: instructions steps, home stats row — START === */
/* Instructions page (facility.html): numbered step cards, checklist + acknowledgement cards */
.ins-flow { margin-top: 8px; }
.ins-heading { max-width: 760px; }
.ins-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ins-step { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.ins-step__number { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 4px solid #fff; border-radius: 50%; background: var(--navy); color: var(--cyan); box-shadow: 0 5px 14px rgba(6, 26, 53, .20); font-size: 12px; font-weight: 800; }
.ins-step h3 { margin: 4px 0 0; color: var(--navy); font-size: 17px; letter-spacing: -.01em; }
.ins-step p { flex: 1; margin: 0; color: var(--text-secondary); line-height: 1.6; }
.ins-step p a, .ins-checklist a, .ins-ack a, .ins-contact a { color: #167da5; font-weight: 600; overflow-wrap: anywhere; }
.ins-step__link { align-self: flex-start; margin-top: 4px; color: #167da5; font-size: 13px; font-weight: 700; text-decoration: none; }
.ins-step__link:hover, .ins-step__link:focus-visible { text-decoration: underline; }
.ins-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.ins-card { min-width: 0; padding: 22px 22px 20px; border: 1px solid #cfe6ee; border-radius: 12px; background: linear-gradient(160deg, #f1fbfd 0%, #fff 70%); box-shadow: var(--shadow-soft); }
.ins-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.ins-card h2 i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e2f5fa; color: #167da5; font-size: 15px; }
.ins-checklist__list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ins-checklist__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; color: #29465e; line-height: 1.5; }
.ins-checklist__list i { display: grid; width: 20px; height: 20px; margin-top: 1px; place-items: center; border-radius: 50%; background: #d8f2f8; color: #0f6f94; font-size: 10px; }
.ins-ack > p { margin: 0 0 14px; color: var(--text-secondary); }
.ins-ack__quote { margin: 0; padding: 16px 18px; border-left: 4px solid var(--cyan); border-radius: 0 10px 10px 0; background: #fff; }
.ins-ack__quote blockquote { margin: 0; color: #1d3a52; font-size: 15px; font-style: italic; line-height: 1.6; }
.ins-ack__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ins-ack__copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #9ccfe0; border-radius: 8px; background: #fff; color: #0b5878; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.ins-ack__copy:hover { background: #e2f5fa; border-color: #48c8e8; }
.ins-ack__copy:focus-visible { outline: 3px solid rgba(22, 125, 165, .45); outline-offset: 2px; }
.ins-ack__copy.is-copied { background: #e3f6ec; border-color: #7cc79e; color: #1d6b43; }
.ins-ack__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ins-contact { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.ins-contact i { margin-top: 4px; color: #167da5; }
@media (max-width: 1100px) {
  .ins-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ins-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ins-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ins-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 16px; }
  .ins-step__number { grid-row: 1 / span 3; }
  .ins-step h3 { margin-top: 8px; font-size: 16px; }
  .ins-step > :not(.ins-step__number) { grid-column: 2; }
  .ins-card { padding: 18px 16px; }
  .ins-card h2 { font-size: 18px; }
}

/* Home statistics (home.html): 4 numbers, then one breakdown card (donut, legend, CSV lists) */
.stats-e { display: grid; gap: 18px; }
.stats-e__numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats-e__tile { justify-content: flex-start; }
.stats-e .donut-segment { stroke: currentColor; }
.stats-e__breakdown { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 22px 28px; border: 1px solid #d9e5ec; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbfd); box-shadow: 0 10px 24px rgba(8, 30, 55, .07); }
.stats-e__chart .category-stat-card__chart { width: 150px; height: 150px; margin: 12px 0 24px; }
.stats-e__breakdown h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0 0 12px; color: var(--navy); font-size: 15px; }
.stats-e__breakdown h3 span { color: #0f6f94; font-size: 12px; font-weight: 800; }
.stats-e__legend { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.stats-e__legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: #29465e; font-size: 14px; }
.stats-e__legend strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.stats-e__swatch { display: block; width: 12px; height: 12px; }
@media (max-width: 1100px) {
  .stats-e__numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-e__breakdown { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stats-e { gap: 12px; }
  .stats-e__numbers { gap: 10px; }
  .stats-e__breakdown { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 16px; }
  .stats-e__chart .category-stat-card__chart { width: 130px; height: 130px; margin: 0 auto 24px; }
}
/* === Phase 2 / E — END === */

/* === Phase 2 / F: publications, gallery lightbox, banners — START === */
/* Publications: year jump chips (pub.html) */
.pub-years { margin: -8px 0 24px; }
.pub-years ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pub-years li[hidden] { display: none; }
.pub-years__chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 6px 4px 12px; border: 1px solid #c9d7e1; border-radius: 16px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.pub-years__chip span { display: inline-grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border-radius: 11px; background: #e2f5fa; color: #0f6f94; font-size: 11px; font-weight: 800; }
.pub-years__chip:hover, .pub-years__chip:focus-visible { border-color: #48c8e8; background: #f1fbfd; }
.pub-year__heading { scroll-margin-top: 72px; }
.pub-year__heading:focus { outline: 0; }
.publication-list .pub-item a[href^="https://www.ebi.ac.uk/emdb/"] { white-space: nowrap; }
@media (max-width: 560px) {
  .pub-years { margin-top: -10px; }
  .pub-years ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .pub-years li { flex: 0 0 auto; }
}

/* Gallery lightbox (events.html, community_gallery.html; static/js/gallery.js) */
.event-card { position: relative; display: grid; border-radius: 12px; transition: transform .2s ease; }
.event-card .event-photo:hover { transform: none; }
.event-card:hover { transform: translateY(-4px); }
.event-card:hover .event-photo { box-shadow: var(--shadow); }
.gallery-enlarge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px; background: rgba(6, 26, 53, .78); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: zoom-in; box-shadow: 0 6px 16px rgba(3, 20, 43, .25); }
.gallery-enlarge[hidden] { display: none; }
.gallery-enlarge i { font-size: 11px; }
.gallery-enlarge:hover { background: rgba(6, 26, 53, .92); }
.gallery-enlarge:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.gallery-trigger { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-trigger:focus-visible { outline: 3px solid #1a84c8; outline-offset: -3px; }
.lightbox { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 12px; background: #04101f; color: #e6eef5; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 12, 25, .86); }
.lightbox__frame { position: relative; }
.lightbox__figure { display: grid; margin: 0; }
.lightbox__image { display: block; width: 100%; height: auto; max-height: calc(100vh - 110px); object-fit: contain; background: #04101f; }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; color: #e6eef5; font-size: 14px; font-weight: 700; }
.lightbox__counter { color: #9fb6c9; font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox__button { position: absolute; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(4, 16, 31, .72); color: #fff; font-size: 17px; cursor: pointer; }
.lightbox__button[hidden] { display: none; }
.lightbox__button:hover { background: rgba(4, 16, 31, .95); }
.lightbox__button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: calc(50% - 46px); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--prev i { transform: rotate(90deg); }
.lightbox__nav--next { right: 12px; }
.lightbox__nav--next i { transform: rotate(-90deg); }
.lightbox .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 560px) {
  .lightbox { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .lightbox__image { max-height: calc(100vh - 120px); }
  .lightbox__caption { padding: 12px 14px; font-size: 13px; }
  .lightbox__button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-card, .event-card:hover { transform: none; transition: none; }
}

/* Banner: Instructions page uses the facility's own Talos Arctica photo
   (scoped to facility.html via its .ins-flow / .steps-layout; FAQ/Rates keep their header). */
/* === Phase 2 / F — END === */

/* === Header navigation polish (desktop only; the mobile menu keeps its own rules) === */
@media (min-width: 801px) {
  .site-nav { gap: 2px; font-size: 14px; font-weight: 500; letter-spacing: .005em; }
  .site-nav a:not(.portal-link):not(.staff-login) {
    padding: 8px 11px; border-radius: 8px; color: rgba(233, 244, 251, .84);
    text-decoration: none; transition: color .15s ease, background-color .15s ease;
  }
  .site-nav a:not(.portal-link):not(.staff-login):hover { color: #fff; background: rgba(255, 255, 255, .07); transform: none; }
  /* Current page: steady highlight, no vertical jump, no underline. */
  .site-nav a.active:not(.portal-link), .site-nav a[aria-current="page"]:not(.portal-link) {
    color: #fff; font-weight: 600; text-decoration: none; transform: none;
    background: rgba(72, 200, 232, .14); box-shadow: inset 0 -2px 0 var(--cyan);
  }
  /* Primary action and staff lock form their own group, set apart from the page links. */
  .site-nav .portal-link {
    margin-left: 14px; padding: 9px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 92, 193, .25);
  }
  .site-nav .portal-link:hover { transform: none; }
  .site-nav .staff-login { margin-left: 6px; }
}
/* Narrower desktops: tighten link padding so everything stays on one line. */
@media (min-width: 1101px) and (max-width: 1300px) {
  .site-nav { gap: 0; }
  .site-nav a:not(.portal-link):not(.staff-login) { padding: 8px 8px; }
  .site-nav .portal-link { margin-left: 10px; padding: 8px 13px; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .site-nav { font-size: 13px; }
  .site-nav a:not(.portal-link):not(.staff-login) { padding: 7px 6px; }
}
/* Never squeeze the ACCEM name block; the nav adapts instead. */
@media (min-width: 801px) {
  .brand { flex-shrink: 0; }
  .brand small { white-space: nowrap; }
}
@media (min-width: 1101px) and (max-width: 1150px) {
  .header-inner { gap: 20px; padding-right: 22px; }
  .site-nav .portal-link { margin-left: 6px; }
}
/* Tablet / small laptop (801–1100px): links take the second row; Book slots and the
   staff lock sit top-right beside the ACCEM name instead of dropping to a third row. */
@media (min-width: 801px) and (max-width: 1100px) {
  .header-inner { position: relative; }
  .site-nav { gap: 0; justify-content: center; }
  .site-nav a:not(.portal-link):not(.staff-login) { padding: 7px 9px; }
  .site-nav .portal-link { position: absolute; top: 22px; right: 66px; margin: 0; }
  .site-nav .staff-login { position: absolute; top: 27px; right: 26px; margin: 0; }
}

/* === Staff login lock: gold, gently animated === */
:root { --lock-gold: #f2c14e; --lock-gold-bright: #ffd978; }
.site-nav .staff-login i {
  color: var(--lock-gold);
  display: inline-block;
  transform-origin: 50% 20%;
  filter: drop-shadow(0 0 0 rgba(242, 193, 78, 0));
  animation: lock-idle 6s ease-in-out infinite;
}
.site-nav .staff-login:hover i, .site-nav .staff-login:focus-visible i {
  color: var(--lock-gold-bright);
  animation: lock-wiggle .6s ease-in-out;
  filter: drop-shadow(0 0 6px rgba(255, 217, 120, .75));
}
.site-nav .staff-login:hover, .site-nav .staff-login:focus-visible { border-color: rgba(242, 193, 78, .45); }
/* Idle: a soft gold glow and a small wiggle once every 6 seconds. */
@keyframes lock-idle {
  0%, 82%, 100% { transform: rotate(0); filter: drop-shadow(0 0 0 rgba(242, 193, 78, 0)); }
  86% { transform: rotate(-12deg); filter: drop-shadow(0 0 5px rgba(242, 193, 78, .7)); }
  90% { transform: rotate(10deg); }
  94% { transform: rotate(-6deg); filter: drop-shadow(0 0 3px rgba(242, 193, 78, .45)); }
  97% { transform: rotate(3deg); }
}
@keyframes lock-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(13deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .staff-login i, .site-nav .staff-login:hover i, .site-nav .staff-login:focus-visible i { animation: none; }
}
/* Home stats card without the download panel: keep the legend compact beside the donut. */
.stats-e__breakdown { justify-content: center; column-gap: 56px; }
.stats-e__legend-wrap { width: 100%; max-width: 440px; }
@media (min-width: 901px) {
  .stats-e__breakdown { grid-template-columns: auto minmax(0, 440px); }
}

/* === Header navigation v2: grouped menus + light-blue glow (replaces the underline) === */
:root { --nav-glow: rgba(125, 211, 252, .38); --nav-glow-soft: rgba(125, 211, 252, .12); --nav-ring: rgba(125, 211, 252, .32); }
.nav-group { position: relative; }
.nav-group__toggle {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer;
  font: inherit; color: rgba(233, 244, 251, .84); white-space: nowrap;
}
.nav-group__toggle i { font-size: 10px; opacity: .75; transition: transform .2s ease; }
@media (min-width: 801px) {
  .site-nav { gap: 4px; font-size: 14px; font-weight: 500; }
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle {
    padding: 8px 14px; border-radius: 999px; color: rgba(233, 244, 251, .84);
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  /* Hover / keyboard focus / press: soft light-blue glow, no underline. */
  .site-nav > a:not(.portal-link):not(.staff-login):hover,
  .site-nav > a:not(.portal-link):not(.staff-login):focus-visible,
  .nav-group__toggle:hover, .nav-group__toggle:focus-visible, .nav-group.is-open .nav-group__toggle {
    color: #fff; background: var(--nav-glow-soft); outline: none;
    box-shadow: 0 0 0 1px var(--nav-ring), 0 0 18px var(--nav-glow);
  }
  .site-nav > a:not(.portal-link):not(.staff-login):active, .nav-group__toggle:active {
    box-shadow: 0 0 0 1px rgba(125, 211, 252, .5), 0 0 24px rgba(125, 211, 252, .55);
  }
  /* Current page (or current group): steady, slightly softer glow. */
  .site-nav > a.active:not(.portal-link), .site-nav > a[aria-current="page"]:not(.portal-link),
  .nav-group.is-current > .nav-group__toggle {
    color: #fff; font-weight: 600; text-decoration: none; transform: none;
    background: rgba(125, 211, 252, .14); box-shadow: 0 0 0 1px var(--nav-ring), 0 0 14px rgba(125, 211, 252, .28);
  }
  /* Dropdown panel */
  .nav-group__menu {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 40; min-width: 210px;
    display: grid; gap: 2px; padding: 8px; border-radius: 14px;
    background: #0b2340; border: 1px solid rgba(125, 211, 252, .2);
    box-shadow: 0 18px 40px rgba(2, 10, 24, .45), 0 0 24px rgba(125, 211, 252, .12);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  }
  .nav-group__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
  .nav-group:hover .nav-group__menu, .nav-group:has(.nav-group__menu a:focus) .nav-group__menu, .nav-group.is-open .nav-group__menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
  }
  .nav-group:hover .nav-group__toggle i, .nav-group.is-open .nav-group__toggle i { transform: rotate(180deg); }
  .site-nav .nav-group__menu a:not(.portal-link):not(.staff-login) {
    display: block; padding: 9px 14px; border-radius: 10px; color: rgba(233, 244, 251, .86);
    font-size: 14px; font-weight: 500; text-decoration: none; background: none; box-shadow: none;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
  }
  .site-nav .nav-group__menu a:not(.portal-link):not(.staff-login):hover, .site-nav .nav-group__menu a:not(.portal-link):not(.staff-login):focus-visible {
    color: #fff; background: var(--nav-glow-soft); box-shadow: 0 0 0 1px rgba(125, 211, 252, .22), 0 0 14px rgba(125, 211, 252, .25); outline: none;
  }
  .site-nav .nav-group__menu a:not(.portal-link):not(.staff-login)[aria-current="page"] {
    color: #fff; font-weight: 600; text-decoration: none; background: rgba(125, 211, 252, .16); box-shadow: inset 3px 0 0 #7dd3fc;
  }
  .site-nav .portal-link { margin-left: 14px; }
  .site-nav .portal-link:hover, .site-nav .portal-link:focus-visible { box-shadow: 0 0 0 1px rgba(125, 211, 252, .55), 0 0 20px rgba(125, 211, 252, .45); }
}
/* Fewer top-level items now: undo the old tight-spacing overrides on narrower desktops. */
@media (min-width: 1101px) and (max-width: 1300px) {
  .site-nav { gap: 2px; font-size: 14px; }
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle { padding: 8px 12px; }
}
/* Phone menu: the groups flatten so every link is listed in the menu as before. */
@media (max-width: 800px) {
  .nav-group { display: contents; }
  .nav-group__toggle { display: none; }
  .nav-group__menu { display: contents; }
}
/* Mid-size laptops (1001–1100px) now fit on one row: cancel the two-row tablet layout. */
@media (min-width: 1001px) and (max-width: 1100px) {
  .header-inner { flex-wrap: nowrap; gap: 20px; }
  .site-nav { order: 0; flex: 0 1 auto; justify-content: flex-end; padding-bottom: 0; }
  .site-nav .portal-link, .site-nav .staff-login { position: static; }
  .site-nav .portal-link { margin-left: 10px; }
  .site-nav .staff-login { margin-left: 4px; }
}

/* === Footer v2 === */
.site-footer { padding: 0; background: linear-gradient(180deg, #04162d 0%, #020e1f 100%); border-top: 1px solid rgba(125, 211, 252, .12); }
.footer-v2 {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  padding: 44px 42px 32px;
}
.site-footer .footer-v2 h3 {
  margin: 4px 0 14px; color: #7dd3fc; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.site-footer .footer-v2__col a, .site-footer .footer-v2__contact address {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #b6c7d6; font-size: 14px; line-height: 1.4;
  font-style: normal; text-decoration: none; transition: color .15s ease;
}
.site-footer .footer-v2__col a:hover, .site-footer .footer-v2__col a:focus-visible { color: #fff; text-decoration: none; }
.site-footer .footer-v2__contact i { width: 14px; color: #7dd3fc; font-size: 12px; }
.site-footer .footer-v2__contact address { display: block; margin-top: 4px; color: #93a9bb; }
.site-footer .footer-v2__contact .contact-directions { color: #7dd3fc; font-weight: 600; }
.site-footer .footer-v2__contact .contact-directions i { width: auto; font-size: 10px; }
.footer-v2__logo { display: inline-flex !important; align-items: center; gap: 12px; margin: 0 0 14px !important; text-decoration: none !important; }
.footer-v2__logo img { width: 44px; height: 44px; filter: brightness(0) invert(1); opacity: .95; }
.footer-v2__logo strong { display: block; color: #fff; font-size: 18px; letter-spacing: .08em; }
.footer-v2__logo small { display: block; color: #a9bccd; font-size: 12.5px; }
.site-footer .footer-v2__about { max-width: 340px; margin: 0 0 18px; color: #93a9bb; font-size: 14px; line-height: 1.6; }
.site-footer .footer-v2__cta {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border-radius: 999px;
  color: #e6f6ff; font-size: 13.5px; font-weight: 600; text-decoration: none;
  background: rgba(125, 211, 252, .1); border: 1px solid rgba(125, 211, 252, .35);
  transition: box-shadow .18s ease, background-color .18s ease;
}
.site-footer .footer-v2__cta:hover, .site-footer .footer-v2__cta:focus-visible {
  color: #fff; text-decoration: none; background: rgba(125, 211, 252, .16); box-shadow: 0 0 18px rgba(125, 211, 252, .4);
}
.footer-v2__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin: 0 42px; padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .footer-v2__bottom p, .site-footer .footer-v2__bottom .footer-funding {
  margin: 0; color: #7f97ab; font-size: 12.5px; line-height: 1.5; text-align: left;
}
@media (max-width: 1000px) {
  .footer-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; padding: 36px 28px 26px; }
  .footer-v2__brand { grid-column: 1 / -1; }
  .site-footer .footer-v2__about { max-width: 520px; }
  .footer-v2__bottom { margin: 0 28px; }
}
@media (max-width: 600px) {
  .footer-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 32px 20px 22px; }
  .footer-v2__contact { grid-column: 1 / -1; }
  .footer-v2__bottom { margin: 0 20px; flex-direction: column; }
}
/* Tablet (801–1000px): the dropdowns stay, so the six top-level items fit on one row. */
/* Phone menu: current page gets the same soft light-blue glow instead of the cyan side bar. */
@media (max-width: 800px) {
  .js .site-nav.is-open a[aria-current="page"]:not(.portal-link) {
    color: #fff; padding-left: 12px; border-radius: 10px;
    background: rgba(125, 211, 252, .14); box-shadow: 0 0 0 1px rgba(125, 211, 252, .3), 0 0 14px rgba(125, 211, 252, .25);
  }
}

/* ── Admin publication finder (/admin/publications/finder) ─────────────────── */
.pubfinder .data-panel { margin-bottom: 20px; }
.pubfinder-run__intro { display: flex; gap: 16px; align-items: flex-start; }
.pubfinder-run__icon {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; background: #e6f6fb; color: #167da5; font-size: 18px;
}
.pubfinder-tags { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.pubfinder-tags li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.pubfinder-tags__id {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.pubfinder-tags strong { color: var(--navy); }
.pubfinder-tags__detail { display: block; margin-top: 6px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.pubfinder code { padding: 1px 5px; border-radius: 4px; background: #e9eff5; color: #1e3a5f; font-size: 12px; white-space: normal; word-break: break-word; }
.pubfinder-muted { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.pubfinder-run__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pubfinder-run__actions form { margin: 0; }
.pubfinder-run__actions .button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; }
.pubfinder-run__actions .button[disabled] { cursor: progress; opacity: .75; }
.pubfinder-run__actions .pubfinder-muted { flex: 1 1 260px; margin: 0; }
.pubfinder-queries { margin-top: 16px; }
.pubfinder-queries summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.pubfinder-queries .table-wrap { margin-top: 10px; }
.pubfinder-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.pubfinder-summary div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-soft); }
.pubfinder-summary strong { display: block; color: var(--navy); font-size: 28px; line-height: 1.1; }
.pubfinder-summary span { color: var(--text-secondary); font-size: 13px; }
.pubfinder-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 8px;
  border-radius: 999px; background: #e6f6fb; color: #167da5; font-size: 13px;
}
.pubfinder-table td.pubfinder-pub { min-width: 300px; white-space: normal; }
.pubfinder-table td.pubfinder-pub strong { display: block; color: var(--navy); line-height: 1.4; }
.pubfinder-table td.pubfinder-pub small { margin-top: 3px; }
.pubfinder-table td.pubfinder-match { min-width: 150px; white-space: normal; }
.pubfinder-table td.pubfinder-links a { display: block; white-space: nowrap; }
.pubfinder-table td.pubfinder-year { font-weight: 700; white-space: nowrap; }
.pubfinder-table td.pubfinder-action { white-space: nowrap; }
.pubfinder-table td.pubfinder-action .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pubfinder-note { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
.pubfinder-tag, .pubfinder-badge {
  display: inline-block; margin-top: 5px; padding: 2px 8px; border: 1px solid transparent;
  border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.pubfinder-tag { margin-right: 6px; }
.pubfinder-tag--preprint { border-color: #e2d3f5; background: #f4edfc; color: #5b3a8c; }
.pubfinder-tag--flag { border-color: #f3d9a4; background: #fdf4e1; color: #7a4f00; }
.pubfinder-badge { margin-top: 0; }
.pubfinder-badge--high { border-color: #bfd7d0; background: #d6eee8; color: #24574b; }
.pubfinder-badge--medium { border-color: #f3d9a4; background: #fdf4e1; color: #7a4f00; }
.pubfinder-badge--error { border-color: #f1c4c4; background: #fdeaea; color: #8a1f1f; }
.stats-row-tile__link { color: inherit; text-decoration: none; }
.stats-row-tile__link:hover, .stats-row-tile__link:focus-visible { text-decoration: underline; }
@media (max-width: 700px) {
  .pubfinder-run__intro { flex-direction: column; }
  .pubfinder-summary { grid-template-columns: 1fr; }
}
/* ── End admin publication finder ──────────────────────────────────────────── */

/* === Header spacing v3: links centred between the ACCEM name and Book slots === */
@media (min-width: 801px) {
  .brand small { font-size: 10px; line-height: 1.25; letter-spacing: .01em; }
  .brand strong { font-size: 20px; }
  .nav-group__toggle { gap: 6px; }
  .nav-group__toggle i { font-size: 9px; }
}
@media (min-width: 1001px) {
  .header-inner { gap: 32px; }
  .site-nav { flex: 1 1 auto; gap: 10px; justify-content: flex-start; }
  .site-nav > a:first-child { margin-left: auto; }          /* centre the page links… */
  .site-nav .portal-link { margin-left: auto; }             /* …and keep Book slots on the right */
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle { padding: 8px 13px; }
  .site-nav .staff-login { margin-left: 12px; width: 34px; height: 34px; font-size: 14px; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .header-inner { gap: 24px; }
  .site-nav { gap: 6px; }
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle { padding: 8px 11px; }
}
/* Tablet two-row layout: same pill padding, evenly spaced and centred. */
@media (min-width: 801px) and (max-width: 1000px) {
  .site-nav { gap: 10px; }
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle { padding: 7px 12px; }
}
@media (min-width: 1001px) {
  .site-nav { flex-wrap: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .header-inner { gap: 18px; padding-left: 22px; padding-right: 22px; }
  .site-nav { gap: 2px; }
  .site-nav > a:not(.portal-link):not(.staff-login), .nav-group__toggle { padding: 8px 10px; }
  .site-nav .staff-login { margin-left: 8px; }
}

/* ── Admin publication finder: EMDB structures section ─────────────────────── */
.emdb-panel .pubfinder-run__actions { margin: 4px 0 16px; padding-top: 0; border-top: 0; }
.emdb-new { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f3d9a4; border-left: 4px solid #e0a72e; border-radius: 8px; background: #fdf8ec; }
.emdb-new h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #6b4500; font-size: 15px; }
.emdb-new ul { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.emdb-new small { color: var(--muted); }
.emdb-table .emdb-paper-row td { background: var(--soft); color: var(--navy); white-space: normal; }
.emdb-table .emdb-paper-row td:first-child { position: static; box-shadow: none; }
.emdb-table tr.emdb-row--new td { background: #fdf8ec; }
.pubfinder-tag--new { margin-top: 0; border-color: #f3d9a4; background: #fdf4e1; color: #7a4f00; }
.emdb-review-heading { display: flex; align-items: center; gap: 9px; margin-top: 24px; }
.pubfinder-action .btn + .btn { margin-left: 4px; }
/* ── End EMDB structures section ───────────────────────────────────────────── */

/* === About page v2 === */
.about-page { display: grid; gap: 28px; }
.about-page > .page-header { margin-bottom: 6px; }
.about-kicker { display: inline-block; margin-bottom: 8px; color: #0f6f94; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-overview h2 { margin: 0 0 14px; color: var(--navy); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.about-overview p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.about-overview__photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #0b2340; box-shadow: 0 18px 40px rgba(6, 26, 53, .18); }
.about-overview__photo img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.about-overview__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 26, 53, .72); color: #e6f6ff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }

.about-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-glance li { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.about-glance i { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f6fc; color: #0f7fa8; font-size: 16px; }
.about-glance strong { color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.about-glance span { color: var(--text-secondary); font-size: 13px; line-height: 1.35; }

.about-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); }
.about-card__icon, .about-mission__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, #e8f6fc, #d6effa); color: #0f7fa8; font-size: 17px; }
.about-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.about-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.about-tags li { padding: 5px 11px; border-radius: 999px; background: #eef7fb; border: 1px solid #d3e9f3; color: #0f5f80; font-size: 12.5px; font-weight: 600; }

.about-mission { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 28px 30px; border-radius: 18px; color: #dbe9f4;
  background: radial-gradient(120% 140% at 0% 0%, #0f3a66 0%, #061a35 60%); box-shadow: 0 18px 40px rgba(6, 26, 53, .2); }
.about-mission__icon { margin: 0; background: rgba(125, 211, 252, .15); color: #7dd3fc; }
.about-mission h2 { margin: 2px 0 10px; color: #fff; font-size: 20px; }
.about-mission p { margin: 0; color: #c9dbe9; font-size: 15.5px; line-height: 1.75; }
.about-mission .about-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(125, 211, 252, .1); border: 1px solid rgba(125, 211, 252, .22); color: #dbeefa; font-size: 14px; line-height: 1.55; }
.about-mission .about-note i { margin-top: 3px; color: #7dd3fc; }
.about-mission .about-note strong { color: #fff; }

.about-funding { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 14px; border: 1px solid #cfe6f1; background: #f2f9fc; }
.about-funding i { margin-top: 3px; color: #0f7fa8; font-size: 16px; }
.about-funding p { margin: 0; color: #24435e; font-size: 14.5px; font-weight: 600; line-height: 1.6; }

.about-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 4px; }
.about-next .button { font-size: 14px; padding: 10px 18px; }
.about-next__link { color: #0f6f94; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.about-next__link:hover, .about-next__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .about-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-overview { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .about-overview__photo { order: -1; }
  .about-overview__photo img { max-height: 260px; }
  .about-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .about-page { gap: 20px; }
  .about-glance { grid-template-columns: minmax(0, 1fr); }
  .about-mission { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .about-card { padding: 20px; }
}
.about-card { display: flex; flex-direction: column; }
.about-card__link { margin-top: auto; padding-top: 18px; color: #0f6f94; font-size: 14px; font-weight: 600; text-decoration: none; }
.about-card__link:hover, .about-card__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* === Redesign G1: equipment, workflow, team — START === */
/* Shared bits */
.eq-page, .wf-page, .tm-page { display: grid; gap: 32px; align-content: start; }
.site-shell > main:not(.portal-page) > .page-content.eq-page > .page-header,
.site-shell > main:not(.portal-page) > .page-content.wf-page > .page-header,
.site-shell > main:not(.portal-page) > .page-content.tm-page > .page-header { margin-bottom: 0; }
.eq-page > .managed-page-content, .wf-page > .managed-page-content, .tm-page > .managed-page-content { margin: 0; }
.eq-kicker, .wf-kicker, .tm-kicker { display: inline-block; color: #0f6f94; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.eq-head, .tm-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.eq-head__icon, .tm-head__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #e8f6fc, #d6effa); color: #0f7fa8; font-size: 17px; }
.eq-head h2, .tm-head h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.eq-head p, .tm-head p { max-width: 720px; margin: 6px 0 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.65; }

/* Equipment */
.eq-section { scroll-margin-top: 96px; }
.eq-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.eq-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.eq-jump a i { font-size: 13px; color: #0f7fa8; }
.eq-jump a:hover, .eq-jump a:focus-visible { border-color: #9fd8ee; background: #fff; box-shadow: 0 0 0 4px rgba(125, 211, 252, .25); outline: none; }

.eq-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.eq-feature { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.eq-feature:hover { border-color: #bfe3f2; box-shadow: 0 10px 28px rgba(15, 127, 168, .12); }
.eq-feature__photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #0b2340; }
.eq-feature__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eq-feature__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 26, 53, .72); color: #e6f6ff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }
.eq-feature__body { display: flex; flex: 1; flex-direction: column; padding: 22px 26px 26px; }
.eq-feature__body h3 { margin: 6px 0 10px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.eq-feature__body h4 { margin: 18px 0 10px; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eq-feature__body p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.eq-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eq-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.eq-checks i { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 0; border-radius: 7px; background: #e8f6fc; color: #0f7fa8; font-size: 11px; }

.eq-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.eq-page .eq-tile-grid .equipment-tile { display: flex; flex-direction: column; gap: 0; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transform: none; transition: box-shadow .2s ease, border-color .2s ease; }
.eq-page .eq-tile-grid .equipment-tile:hover { transform: none; border-color: #bfe3f2; box-shadow: 0 10px 26px rgba(15, 127, 168, .12); }
.eq-page .eq-tile-grid .equipment-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #edf3f6; border-bottom: 1px solid var(--line); }
.eq-page .eq-tile-grid .equipment-tile > div { flex: 1; padding: 18px 20px 20px; }
.eq-page .eq-tile-grid .equipment-tile h3 { margin: 0 0 8px; color: var(--navy); font-size: 16.5px; line-height: 1.35; }
.eq-page .eq-tile-grid .equipment-tile p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }
.eq-page .eq-tile-grid .equipment-tile small { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 12px; font-weight: 600; }
.eq-page .eq-tile-grid .equipment-tile .eq-spec { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
/* single wide card: photo beside text, no lonely half row */
.eq-tile-grid--wide { grid-template-columns: minmax(0, 1fr); }
.eq-page .eq-tile-grid--wide .equipment-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.eq-page .eq-tile-grid--wide .equipment-tile img { height: 100%; min-height: 220px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.eq-page .eq-tile-grid--wide .equipment-tile > div { display: flex; flex-direction: column; justify-content: center; padding: 28px 32px; }
.eq-page .eq-tile-grid--wide .equipment-tile h3 { font-size: 20px; }
.eq-page .eq-tile-grid--wide .equipment-tile p { font-size: 15px; }
.eq-tile-grid--managed { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eq-page .eq-tile-grid .equipment-tile--text-only > div { border-top: 3px solid #7dd3fc; }

/* Workflow */
.wf-intro { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 24px; align-items: center; padding: 28px 30px; border-radius: 18px; color: #dbe9f4; background: radial-gradient(120% 140% at 0% 0%, #0f3a66 0%, #061a35 60%); box-shadow: 0 18px 40px rgba(6, 26, 53, .2); }
.wf-intro__icon { display: grid; place-items: center; align-self: start; width: 42px; height: 42px; border-radius: 12px; background: rgba(125, 211, 252, .15); color: #7dd3fc; font-size: 17px; }
.wf-intro__kicker { display: inline-block; color: #7dd3fc; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wf-intro h2 { margin: 6px 0 8px; color: #fff; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; }
.wf-intro p { max-width: 680px; margin: 0; color: #c9dbe9; font-size: 15.5px; line-height: 1.7; }
.wf-intro .wf-intro__cta { white-space: nowrap; padding: 11px 20px; font-size: 14.5px; }
.wf-intro .wf-intro__cta:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }

.wf-steps { position: relative; display: grid; gap: 20px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.wf-steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 23px; width: 2px; border-radius: 2px; background: linear-gradient(#7dd3fc, #c5d8e4); }
.wf-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; align-items: center; }
.wf-step__marker { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #7dd3fc; font-size: 13px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 0 5px #fff, 0 6px 14px rgba(6, 26, 53, .18); }
.wf-step__card { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.wf-step:hover .wf-step__card { border-color: #bfe3f2; box-shadow: 0 10px 26px rgba(15, 127, 168, .12); }
.wf-step__photo { position: relative; margin: 0; min-height: 180px; overflow: hidden; background: #edf3f6; border-right: 1px solid var(--line); }
.wf-step__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-step__photo--diagram { background: #fff; padding: 12px; }
.wf-step__photo--diagram img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.wf-step__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 26px; }
.wf-step__body h3 { margin: 4px 0 8px; color: var(--navy); font-size: 19px; line-height: 1.3; }
.wf-step__body p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.wf-tag { display: inline-block; margin-top: 14px; padding: 4px 11px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 12.5px; font-weight: 600; }

/* Team */
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tm-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.tm-card:hover { border-color: #bfe3f2; box-shadow: 0 10px 26px rgba(15, 127, 168, .12); }
.tm-card__photo { display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 120% at 0% 0%, #eef7fb 0%, #e3f1f8 100%); border-right: 1px solid var(--line); }
.tm-card__photo img { display: block; width: 132px; height: 132px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; object-position: center 30%; box-shadow: 0 8px 20px rgba(6, 26, 53, .14); }
.tm-card__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px 26px; }
.tm-card__body h3 { margin: 6px 0 10px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.tm-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--navy); color: #7dd3fc; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tm-card__affil { margin: 14px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.tm-email { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: auto; padding: 9px 14px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 14px; font-weight: 600; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.tm-card__affil + .tm-email { margin-top: 18px; }
.tm-email i { color: #0f7fa8; font-size: 13px; }
.tm-email span { min-width: 0; overflow-wrap: anywhere; }
.tm-email:hover, .tm-email:focus-visible { border-color: #9fd8ee; background: #fff; box-shadow: 0 0 0 4px rgba(125, 211, 252, .25); outline: none; }

.tm-advisory { padding: 28px 30px; border: 1px solid #cfe6f1; border-radius: 18px; background: #f2f9fc; }
.tm-advisors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tm-advisors li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.tm-advisors li:hover { border-color: #bfe3f2; box-shadow: 0 8px 20px rgba(15, 127, 168, .1); }
.tm-advisor__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f6fc; color: #0f7fa8; font-size: 15px; }
.tm-advisors strong { display: block; color: var(--navy); font-size: 15.5px; line-height: 1.35; }
.tm-advisors li span:not(.tm-advisor__icon) { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 1100px) {
  .eq-tile-grid:not(.eq-tile-grid--wide):not(.eq-tile-grid--managed) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-card { grid-template-columns: 150px minmax(0, 1fr); }
  .tm-card__photo { padding: 18px; }
  .tm-card__photo img { width: 112px; height: 112px; }
}
@media (max-width: 900px) {
  .eq-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-intro { grid-template-columns: auto minmax(0, 1fr); }
  .wf-intro .wf-intro__cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 700px) {
  .eq-page, .wf-page, .tm-page { gap: 24px; }
  .eq-page .eq-tile-grid--wide .equipment-tile { display: flex; flex-direction: column; }
  .eq-page .eq-tile-grid--wide .equipment-tile img { height: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .eq-page .eq-tile-grid--wide .equipment-tile > div { padding: 18px 20px 20px; }
  .eq-page .eq-tile-grid--wide .equipment-tile h3 { font-size: 17px; }
  .wf-steps::before { left: 17px; }
  .wf-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
  .wf-step__marker { width: 36px; height: 36px; margin-top: 12px; font-size: 11.5px; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(6, 26, 53, .16); }
  .wf-step__card { grid-template-columns: minmax(0, 1fr); }
  .wf-step__photo { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .wf-step__body { padding: 18px 18px 20px; }
  .wf-step__body h3 { font-size: 17.5px; }
  .tm-card { grid-template-columns: minmax(0, 1fr); }
  .tm-card__photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .tm-card__body { align-items: center; padding: 20px; text-align: center; }
  .tm-advisory { padding: 22px 18px; }
  .tm-advisors { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .eq-tile-grid { grid-template-columns: minmax(0, 1fr); }
  .eq-page .eq-tile-grid .equipment-tile img { aspect-ratio: 16 / 10; }
  .eq-head, .tm-head { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .eq-head__icon, .tm-head__icon { width: 38px; height: 38px; font-size: 15px; }
  .eq-feature__body { padding: 18px 20px 22px; }
  .eq-feature__body h3 { font-size: 18px; }
  .wf-intro { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .wf-intro .wf-intro__cta { grid-column: auto; }
}
/* === Redesign G1 — END === */

/* === Redesign G2: publications, events, contact, faq, rates — START === */
/* Shared: page rhythm, left-aligned section heads with kickers, one dark CTA panel per page. */
.g2-page { display: grid; gap: 32px; }
.g2-page > .page-header { margin-bottom: 0 !important; }
.g2-page > * { min-width: 0; }
.g2-kicker { display: inline-block; color: #0f6f94; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.g2-head { display: grid; gap: 6px; max-width: 760px; margin: 0 0 20px; }
.g2-head h2 { margin: 0; color: var(--navy); font-size: clamp(22px, 2.3vw, 26px); line-height: 1.25; letter-spacing: -.02em; }
.g2-head p { margin: 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.7; }

.g2-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 22px; max-width: none; margin: 0; padding: 24px 28px; border-radius: 18px; text-align: left;
  background: radial-gradient(120% 140% at 0% 0%, #0f3a66 0%, #061a35 60%); box-shadow: 0 18px 40px rgba(6, 26, 53, .2); }
.g2-cta__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(125, 211, 252, .15); color: #7dd3fc; font-size: 17px; }
.g2-page .g2-cta p { margin: 0; color: #dbe9f4; font-size: 15.5px; line-height: 1.6; }
.g2-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.g2-page .g2-cta .button { margin: 0; font-size: 14px; padding: 10px 18px; }
.g2-page .g2-cta a:not(.button) { margin: 0; color: #7dd3fc; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.g2-page .g2-cta a:not(.button):hover, .g2-page .g2-cta a:not(.button):focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.g2-page .g2-cta a:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; border-radius: 6px; }

.g2-next { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.g2-next__link { color: #0f6f94; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.g2-next__link:hover, .g2-next__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* Publications: sticky search / year rail beside compact citation cards. */
.pub-page .pub-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.pub-page .pub-sidebar { position: sticky; top: 16px; }
.pub-page .pub-sidebar__panel { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); }
.pub-page .pub-toolbar { display: grid; gap: 12px; margin: 0; }
.pub-page .pub-toolbar .g2-kicker { margin-bottom: -8px; }
.pub-page .pub-count { color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.pub-page .pub-search { width: 100%; justify-self: stretch; }
.pub-page .pub-search__field { width: 100%; }
.pub-page .pub-search__field input { display: block; max-width: none; }
.pub-page .pub-search label { color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.pub-page .pub-search__field input { min-height: 42px; border-color: var(--line); border-radius: 10px; background: var(--soft); }
.pub-page .pub-search__field input:focus { outline: 3px solid rgba(15, 127, 168, .22); border-color: #7cc9e4; background: #fff; }
.pub-page .pub-years { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.pub-page .pub-years__label { margin: 0 0 10px; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.pub-page .pub-years ul { gap: 8px; }
.pub-page .pub-years__chip { min-height: 30px; padding: 3px 5px 3px 11px; border-color: #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 13px; font-weight: 600; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.pub-page .pub-years__chip span { background: #fff; color: #0f6f94; }
.pub-page .pub-years__chip:hover, .pub-page .pub-years__chip:focus-visible { border-color: #7cc9e4; background: #fff; box-shadow: 0 0 0 4px rgba(125, 211, 252, .25); outline: 0; }

.pub-page .publication-list { gap: 0; }
.pub-page .pub-year { gap: 12px; }
.pub-page .pub-year + .pub-year { margin-top: 30px; }
.pub-page .pub-year__heading { gap: 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 22px; scroll-margin-top: 20px; }
.pub-page .pub-year__count { min-width: 26px; height: 24px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 12px; }
.pub-page .pub-list { gap: 10px; counter-reset: pub; }
.pub-page .pub-item { counter-increment: pub; }
.pub-page .publication-list .pub-item p { position: relative; padding: 16px 20px 16px 58px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .04); color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; transition: box-shadow .2s ease, border-color .2s ease; transform: none; }
.pub-page .publication-list .pub-item p::before { content: counter(pub); position: absolute; top: 16px; left: 18px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e8f6fc; color: #0f7fa8; font-size: 12px; font-weight: 700; line-height: 1; }
.pub-page .publication-list .pub-item p:hover, .pub-page .publication-list .pub-item p:focus-within { transform: none; background: #fff; border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .18), 0 10px 24px rgba(6, 26, 53, .07); }
.pub-page .publication-list em { color: var(--navy); font-weight: 600; }
.pub-page .publication-list a { color: #0f6f94; }
.pub-page .pub-item__doi { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; margin-top: 10px; padding: 4px 12px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.pub-page .pub-item__doi i { flex: none; color: #0f7fa8; font-size: 10px; }
.pub-page .pub-item__doi a { min-width: 0; color: #0f5f80; text-decoration: none; overflow-wrap: anywhere; }
.pub-page .pub-item__doi a:hover, .pub-page .pub-item__doi a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.pub-page .pub-item__doi:focus-within { border-color: #7cc9e4; }
.pub-page .pub-empty { margin-top: 12px; border-radius: 14px; border-color: var(--line); background: var(--soft); }

/* Events: equal-height photo cards and course cards. */
.events-page .events-section { max-width: none; margin: 0; }
.events-page .course-section { padding-top: 0; }
.events-page .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.events-page .event-card--featured { grid-column: 1 / -1; }
.events-page .event-card--featured .event-photo img { aspect-ratio: 1920 / 535; }
.events-page .event-card--featured .event-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag cta" "title cta" "text cta"; align-items: center; justify-items: start; gap: 8px 32px; padding: 22px 28px 24px; }
.events-page .event-card--featured .event-card__tag { grid-area: tag; }
.events-page .event-card--featured h3 { grid-area: title; }
.events-page .event-card--featured p { grid-area: text; }
.events-page .event-card--featured .event-card__cta { grid-area: cta; margin: 0; padding: 0; }
.events-page .event-card--featured h3 { font-size: 20px; }
.events-page .event-card { display: flex; border-radius: 16px; transform: none; }
.events-page .event-card:hover { transform: none; }
.events-page .event-photo { display: flex; flex-direction: column; width: 100%; border-radius: 16px; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.events-page .event-photo img { height: auto; aspect-ratio: 16 / 9; background: #0b2340; }
.events-page .event-card:hover .event-photo, .events-page .event-photo:focus-visible { border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2), 0 12px 28px rgba(6, 26, 53, .08); }
.events-page .event-photo:focus-visible { outline: 3px solid #0f7fa8; outline-offset: 2px; }
.events-page .event-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; }
.events-page .event-photo .event-card__tag { padding: 3px 10px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.events-page .event-photo h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.35; }
.events-page .event-photo p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }
.events-page .event-photo .event-card__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 6px; color: #0f6f94; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.events-page .event-card__cta i { font-size: 10px; }
.events-page .gallery-enlarge { top: 12px; right: 12px; min-height: 30px; padding: 4px 10px; font-size: 12px; background: rgba(6, 26, 53, .8); backdrop-filter: blur(4px); }

.events-page .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.events-page .course-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 26px; border-radius: 16px; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.events-page .course-card:hover, .events-page .course-card:focus-within { transform: none; border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2), 0 12px 28px rgba(6, 26, 53, .08); }
.events-page .course-icon { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: linear-gradient(135deg, #e8f6fc, #d6effa); color: #0f7fa8; font-size: 17px; }
.events-page .course-tag { padding: 3px 10px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.events-page .course-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.4; }
.events-page .course-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.events-page .course-card .course-card-cta { margin-top: auto; padding-top: 18px; color: #0f6f94; font-size: 14px; font-weight: 600; text-decoration: none; }
.events-page .course-card a.course-card-cta:hover, .events-page .course-card-link:hover .course-card-cta { text-decoration: underline; text-underline-offset: 4px; }
.events-page .course-card-link:focus-visible, .events-page .course-card a:focus-visible { outline: 3px solid #0f7fa8; outline-offset: 2px; }

/* Community gallery: uniform 4:3 tiles with captions. */
.gallery-page .gallery-section { margin: 0; }
.gallery-page .community-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-page .community-gallery figure { display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.gallery-page .community-gallery figure:hover, .gallery-page .community-gallery figure:focus-within { transform: none; border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2), 0 12px 28px rgba(6, 26, 53, .08); }
.gallery-page .community-gallery img { height: auto; aspect-ratio: 4 / 3; background: #0b2340; transition: transform .35s ease; }
.gallery-page .community-gallery .gallery-trigger { overflow: hidden; }
.gallery-page .community-gallery figure:hover img { transform: scale(1.03); }
.gallery-page .community-gallery figcaption { display: flex; flex: 1; align-items: center; gap: 10px; padding: 14px 18px; color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.gallery-page .g2-next { padding-top: 0; }

/* Contact: two balanced cards. */
.contact-page .contact-grid { max-width: none; margin: 0; gap: 20px; }
.contact-page .contact-card { padding: 26px 28px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); }
.contact-page .contact-card__icon { width: 42px; height: 42px; margin-bottom: 16px; background: linear-gradient(135deg, #e8f6fc, #d6effa); color: #0f7fa8; font-size: 17px; }
.contact-page .contact-card h2 { margin-bottom: 8px; font-size: 22px; }
.contact-page .contact-card p { margin-bottom: 18px; font-size: 15.5px; line-height: 1.7; }
.contact-page .contact-card__list li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; border-color: var(--line); border-radius: 12px; background: var(--soft); transition: box-shadow .2s ease, border-color .2s ease; }
.contact-page .contact-card__list li:hover, .contact-page .contact-card__list li:focus-within { border-color: #a9dcef; background: #fff; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }
.contact-page .contact-card__mail { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e8f6fc; color: #0f7fa8; font-size: 14px; }
.contact-page .contact-card__role { color: #0f6f94; font-size: 11.5px; letter-spacing: .1em; }
.contact-page .contact-card__list a { color: var(--navy); font-size: 16px; font-weight: 700; text-decoration: none; }
.contact-page .contact-card__list a:hover, .contact-page .contact-card__list a:focus-visible { color: #0f6f94; text-decoration: underline; text-underline-offset: 3px; }
.contact-page .contact-card__address { align-self: stretch; margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid #7dd3fc; border-radius: 0 12px 12px 0; background: var(--soft); color: #24435e; font-size: 15.5px; line-height: 1.75; }
.contact-page .contact-card__map { padding: 10px 16px; border-color: #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 14px; font-weight: 600; text-decoration: none; }
.contact-page .contact-card__map:hover, .contact-page .contact-card__map:focus-visible { border-color: #7cc9e4; background: #fff; box-shadow: 0 0 0 4px rgba(125, 211, 252, .25); }

/* FAQ: topic chips, grouped accordions with chevrons. */
.faq-page .faq-topics ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.faq-page .faq-topics a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.35; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-page .faq-topics a i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f6fc; color: #0f7fa8; font-size: 15px; }
.faq-page .faq-topics a span { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 12px; }
.faq-page .faq-topics a:hover, .faq-page .faq-topics a:focus-visible { border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); outline: 0; }
.faq-page .faq-group { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; scroll-margin-top: 16px; }
.faq-page .faq-group + .faq-group { padding-top: 32px; margin-top: -8px; border-top: 1px solid var(--line); }
.faq-page .faq-group__head { position: sticky; top: 16px; display: grid; gap: 6px; justify-items: start; }
.faq-page .faq-group__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: linear-gradient(135deg, #e8f6fc, #d6effa); color: #0f7fa8; font-size: 17px; }
.faq-page .faq-group__head h2 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.faq-page .faq-list { max-width: none; margin: 0; gap: 12px; }
.faq-page .faq-item { border-radius: 14px; box-shadow: 0 6px 18px rgba(6, 26, 53, .04); transition: box-shadow .2s ease, border-color .2s ease; }
.faq-page .faq-item:hover { border-color: #a9dcef; }
.faq-page .faq-item[open] { border-color: #a9dcef; box-shadow: 0 0 0 4px rgba(125, 211, 252, .16), 0 10px 24px rgba(6, 26, 53, .06); }
.faq-page .faq-item summary { padding: 18px 64px 18px 22px; font-size: 15.5px; line-height: 1.45; }
.faq-page .faq-item summary::after { content: "\f078"; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #eef7fb; color: #0f7fa8; font: 900 12px/1 "Font Awesome 6 Free"; transition: transform .2s ease, background .2s ease; }
.faq-page .faq-item[open] summary::after { content: "\f078"; transform: translateY(-50%) rotate(180deg); background: #e8f6fc; }
.faq-page .faq-item summary:hover { color: #0f6f94; }
.faq-page .faq-item summary:focus-visible { outline: 3px solid #0f7fa8; outline-offset: 2px; border-radius: 14px; }
.faq-page .faq-answer { padding: 2px 22px 8px; border-top-color: #e6eef3; }
.faq-page .faq-answer p { color: var(--text-secondary); font-size: 15px; line-height: 1.75; margin: 14px 0; }
.faq-page .faq-answer a { color: #0f6f94; font-weight: 600; }
.faq-page .faq-quote { border-left-color: #7dd3fc; border-radius: 0 12px 12px 0; background: #f2f9fc; color: #24435e; font-size: 14.5px; line-height: 1.7; }
.faq-page .faq-more { margin: 0; grid-template-columns: auto minmax(0, 1fr); }

/* Rates (light polish; numbers come from Python). */
.rates-page .rates-section { margin: 0; }
.rates-page .rates-table-wrap, .rates-page .rates-sheet__meta, .rates-page .rates-examples { max-width: none; }
.rates-page .rates-table-wrap { border-radius: 16px; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); }
.rates-page .rates-table tbody tr:not(.rates-sheet__note):hover { background: #f2f9fc; }
.rates-page .rates-sheet__meta { margin-top: 14px; font-size: 13.5px; }
.rates-page .rates-sheet__meta i { margin-right: 4px; color: #0f7fa8; }
.rates-page .rates-sheet thead th:not(:first-child) { width: 19%; }
.rates-page .rates-sheet thead th { padding-top: 16px; padding-bottom: 16px; }
.rates-page .rates-examples { align-items: stretch; gap: 20px; }
.rates-page .rates-example { padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid #48c8e8; border-radius: 16px; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); }
.rates-page .rates-example__title { margin-bottom: 12px; font-size: 15px; }
.rates-page .rates-list { display: grid; max-width: none; margin: 0; padding: 6px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(6, 26, 53, .05); list-style: none; }
.rates-page .rates-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.rates-page .rates-list li + li { border-top: 1px solid #e6eef3; }
.rates-page .rates-list i { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: #e8f6fc; color: #0f7fa8; font-size: 11px; }

@media (max-width: 1180px) {
  .faq-page .faq-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pub-page .pub-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pub-page .pub-sidebar { position: static; }
  .pub-page .pub-sidebar__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .pub-page .pub-years { padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--line); }
  .gallery-page .community-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-page .faq-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-page .faq-group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq-page .faq-group__head { position: static; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 14px; }
  .faq-page .faq-group__icon { grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 720px) {
  .g2-page { gap: 24px; }
  .g2-head { margin-bottom: 16px; }
  .g2-cta, .faq-page .faq-more { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .pub-page .pub-sidebar__panel { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pub-page .pub-years { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pub-page .publication-list .pub-item p { padding: 14px 16px 14px 50px; font-size: 14px; }
  .pub-page .publication-list .pub-item p::before { top: 14px; left: 14px; }
  .pub-page .pub-item__doi { border-radius: 10px; }
  .events-page .event-gallery, .events-page .course-grid, .gallery-page .community-gallery { grid-template-columns: minmax(0, 1fr); }
  .events-page .event-card--featured .event-card__body { display: flex; align-items: flex-start; padding: 18px 20px 20px; }
  .events-page .event-card--featured .event-card__cta { margin-top: auto; padding-top: 6px; }
  .events-page .event-card--featured h3 { font-size: 17px; }
  .events-page .course-card, .contact-page .contact-card { padding: 20px; }
  .faq-page .faq-topics ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .faq-page .faq-item summary { padding: 16px 56px 16px 18px; font-size: 15px; }
  .faq-page .faq-item summary::after { right: 14px; }
  .faq-page .faq-answer { padding: 2px 18px 6px; }
  .rates-page .rates-list { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .community-gallery img, .faq-page .faq-item summary::after { transition: none; }
  .gallery-page .community-gallery figure:hover img { transform: none; }
}
/* === Redesign G2 — END === */

/* Instructions: "Good to know" card split into labelled groups */
.ins-checklist__group { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid #dcebf1; color: #4b6a80; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ins-checklist h2 + .ins-checklist__group { margin-top: 4px; padding-top: 0; border-top: 0; }
.ins-checklist__list--rules i { background: #eef3f7; color: #4b6a80; }

/* === Redesign G3: booking, schedules, inventory — START === */
/* Scoped to .booking-page (register), .schedule-page (freezing / screening / data collection) and .lookup-page (public inventory). */
.booking-page, .schedule-page, .lookup-page {
  --g3-accent: #0f6f94; --g3-accent-2: #0f7fa8; --g3-tile: #e8f6fc;
  --g3-ring: 0 0 0 3px rgba(125, 211, 252, .35); --g3-shadow: 0 6px 18px rgba(6, 26, 53, .05);
}
.booking-page .page-header p, .schedule-page .page-header p, .lookup-page .page-header p { font-size: 16px; line-height: 1.6; }
.booking-kicker { display: inline-block; margin-bottom: 6px; color: #0f6f94; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Buttons */
.booking-page .button, .schedule-page .button, .lookup-page .button, .schedule-view .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, #0f7fa8, #0f6f94); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 111, 148, .22); transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.booking-page .button:hover, .schedule-page .button:hover, .lookup-page .button:hover, .schedule-view .primary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 111, 148, .3); }
.booking-page .button:focus-visible, .schedule-page .button:focus-visible, .lookup-page .button:focus-visible, .schedule-view .primary-btn:focus-visible { outline: 2px solid #0f6f94; outline-offset: 2px; box-shadow: var(--g3-ring); }
.booking-page .button.muted { border-color: var(--line); background: #fff; color: var(--navy); box-shadow: none; }
.booking-page .button.muted:hover { border-color: #b9cbd8; background: var(--soft); box-shadow: none; }
.lookup-page .button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.booking-page .page-header .button, .lookup-page .page-header .button { flex: 0 0 auto; }

/* ---------- Register / book slots ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; max-width: 1160px; margin: 0 auto; }
.booking-page .booking-card { max-width: none; margin: 0; padding: 6px 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--g3-shadow); }
.booking-flash { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border: 1px solid #f1c27a; border-radius: 12px; background: #fff8eb; color: #6b4710; font-size: 15px; line-height: 1.55; }
.booking-flash > i { margin-top: 3px; color: #b26a00; }
.booking-flash p + p { margin-top: 4px; }

.booking-step { min-width: 0; margin: 0; padding: 26px 0; border: 0; }
.booking-step + .booking-step { border-top: 1px solid var(--line); }
.booking-step__legend { float: left; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 18px; padding: 0; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.booking-step__legend + * { clear: both; }
.booking-step__num { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--g3-tile); color: #0f7fa8; font-size: 14px; font-weight: 800; }
.booking-step__hint { margin: -6px 0 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.booking-page .reg-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.booking-page .reg-type-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-items: center; justify-content: stretch; min-height: 0; padding: 16px 40px 16px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--navy); text-align: left; box-shadow: none; font: inherit;
}
.booking-page .reg-type-card i { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--g3-tile); color: #0f7fa8; font-size: 16px; }
.booking-page .reg-type-card span { display: block; width: auto; color: var(--navy); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.reg-type-card__meta { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.35; }
.booking-page .reg-type-card:hover { transform: translateY(-1px); border-color: #9fd3e8; box-shadow: 0 8px 18px rgba(6, 26, 53, .06); }
.booking-page .reg-type-card:focus-visible { outline: 2px solid #0f6f94; outline-offset: 2px; }
.booking-page .reg-type-card.selected { border-color: #0f7fa8; background: #f2fafd; box-shadow: inset 0 0 0 1px #0f7fa8, 0 8px 18px rgba(15, 127, 168, .12); }
.booking-page .reg-type-card.selected i { background: #0f7fa8; color: #fff; }
.booking-page .reg-type-card::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; box-sizing: border-box;
  border: 1.5px solid #c6d4de; border-radius: 50%; background: #fff;
}
.booking-page .reg-type-card.selected::after {
  content: "\f00c"; display: grid; place-items: center; border-color: #0f7fa8; background: #0f7fa8; color: #fff;
  font-family: "Font Awesome 6 Free"; font-size: 10px; font-weight: 900; line-height: 1;
}

.booking-page .form-grid { gap: 20px 20px; }
.booking-page .form-field { gap: 7px; min-width: 0; }
.booking-page .form-field label { color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.35; }
.booking-page .form-field input, .booking-page .form-field select, .lookup-page .public-inventory-search input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background-color: #fff; color: var(--ink); font: inherit; font-size: 15px; box-shadow: none;
}
.booking-page .form-field input { background-image: none; }
.booking-page .form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath fill='%23475569' d='M5 7l5 5 5-5 2 2-7 7-7-7 2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 12px; padding-right: 40px; cursor: pointer;
}
.booking-page .form-field input:hover, .booking-page .form-field select:hover, .lookup-page .public-inventory-search input:hover { border-color: #b9cbd8; }
.booking-page .form-field input:focus, .booking-page .form-field select:focus, .lookup-page .public-inventory-search input:focus {
  outline: 0; border-color: #0f7fa8; box-shadow: var(--g3-ring);
}
.booking-page .form-field input[readonly] { background-color: var(--soft); color: var(--navy); font-weight: 600; }
.booking-page .form-field input:user-invalid, .booking-page .form-field select:user-invalid { border-color: #c2414b; }
.booking-page .form-field input:user-invalid:focus { box-shadow: 0 0 0 3px rgba(194, 65, 75, .18); }
.booking-page .field-hint, .lookup-page .field-hint { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }

.booking-choose-hint { display: none; grid-column: 1 / -1; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid #cfe6f1; border-radius: 12px; background: #f2f9fc; color: #24435e; font-size: 14.5px; line-height: 1.5; }
.booking-choose-hint i { color: #0f7fa8; }
.booking-form:has(#reg_type:not([value])) .booking-choose-hint, .booking-form:has(#reg_type[value=""]) .booking-choose-hint { display: flex; }

/* Inventory grid picker */
.booking-page .booking-picker { display: block; min-width: 0; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.booking-picker__legend { float: left; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 0; color: var(--navy); font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.booking-picker__legend + * { clear: both; }
.booking-picker__legend > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.booking-picker__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid #d3e9f3; color: #0f7fa8; font-size: 16px; }
.booking-page .booking-tag { display: inline-block; padding: 3px 10px; border: 1px solid #d3e9f3; border-radius: 999px; background: #eef7fb; color: #0f5f80; font-size: 12px; font-weight: 600; }
.booking-page .booking-picker > .form-hint { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.booking-page .booking-picker > .form-hint:empty { display: none; }
.booking-page .public-grid-selection { gap: 10px; margin-bottom: 12px; }
.booking-page .public-grid-selection > .empty-message { margin: 0; padding: 16px; border: 1px dashed #c9dbe6; border-radius: 12px; background: #fff; color: var(--text-secondary); font-size: 14px; }
.booking-page .public-grid-choice { gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.booking-page .public-grid-choice:hover { border-color: #9fd3e8; }
.booking-page .public-grid-choice:has(input:checked) { border-color: #0f7fa8; background: #f2fafd; box-shadow: inset 0 0 0 1px #0f7fa8; }
.booking-page .public-grid-choice > input { width: 18px; height: 18px; margin: 0; accent-color: #0f7fa8; }
.booking-page .public-grid-choice > input:focus-visible { outline: 2px solid #0f6f94; outline-offset: 2px; }
.booking-page .public-grid-choice strong { color: var(--navy); font-size: 14.5px; }
.booking-page .public-grid-choice small { color: var(--text-secondary); font-size: 12.5px; }
.booking-page .public-grid-choice .inventory-storage-code, .lookup-page .inventory-storage-code { min-width: 26px; min-height: 24px; border-radius: 8px; font-size: 12px; }
.booking-page .public-grid-inventory-link { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.booking-page .public-grid-inventory-link i { margin-right: 4px; color: #0f7fa8; }
.booking-page .public-grid-inventory-link a { color: #0f6f94; font-weight: 600; text-underline-offset: 3px; }

/* Freezing date picker + availability calendar */
.booking-page .date-picker-trigger { width: 100%; min-height: 56px; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none; text-align: left; cursor: pointer; }
.booking-page .date-picker-trigger:hover { border-color: #9fd3e8; transform: none; }
.booking-page .date-picker-trigger:focus-visible, .booking-page .date-picker-trigger[aria-expanded="true"] { outline: 0; border-color: #0f7fa8; box-shadow: var(--g3-ring); }
.booking-page .date-picker-trigger__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--g3-tile); color: #0f7fa8; font-size: 16px; }
.booking-page .date-picker-trigger__copy strong { color: var(--navy); font-size: 15px; font-weight: 600; }
.booking-page .date-picker-trigger__copy small { color: var(--text-secondary); font-size: 13px; }
.booking-page .date-picker-trigger__chevron { color: var(--text-secondary); font-size: 12px; }
.booking-page .freezing-calendar { max-width: none; margin-top: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(6, 26, 53, .08); }
.booking-page .freezing-calendar__toolbar { margin-bottom: 12px; }
.booking-page .freezing-calendar__toolbar strong { color: var(--navy); font-size: 16px; }
.booking-page .calendar-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; }
.booking-page .calendar-nav:hover { border-color: #0f7fa8; color: #0f7fa8; transform: none; }
.booking-page .calendar-nav:focus-visible { outline: 0; border-color: #0f7fa8; box-shadow: var(--g3-ring); }
.booking-page .calendar-weekdays, .booking-page .calendar-grid { gap: 6px; }
.booking-page .calendar-weekdays { margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.booking-page .calendar-day { min-height: 58px; padding: 6px 4px; border-radius: 10px; font: inherit; cursor: pointer; }
.booking-page .calendar-day:disabled, .booking-page .calendar-day--past { cursor: not-allowed; }
.booking-page .calendar-day span { font-size: 15px; font-weight: 700; }
.booking-page .calendar-day small { margin-top: 2px; font-size: 10.5px; font-weight: 600; }
.booking-page .calendar-meter { height: 4px; margin: 5px 4px 2px; }
.booking-page .calendar-day:focus-visible { outline: 2px solid #0f6f94; outline-offset: 1px; }
.booking-page .calendar-day--selected { outline: 2px solid #0f7fa8; outline-offset: 1px; background: #f2fafd; }
.booking-page .calendar-selection { margin: 12px 0 10px; padding: 10px 12px; border-radius: 10px; background: #f2f9fc; color: #24435e; font-size: 14px; }
.booking-page .calendar-legend { gap: 8px 16px; color: var(--text-secondary); font-size: 13px; }
.booking-page .calendar-key { width: 12px; height: 12px; }
@media (min-width: 701px) {
  .booking-page #freezing_fields { grid-template-columns: minmax(0, 1fr) 210px; align-items: start; }
  .booking-page #freezing_fields > .form-field:not(.full) { align-self: start; }
}

/* Actions */
.booking-page .booking-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.booking-actions__note { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; color: var(--text-secondary); font-size: 14px; }
.booking-actions__note i { color: #0f7fa8; }
.booking-page .booking-actions .button { min-width: 120px; }
.booking-page .booking-actions .button[type="submit"] { min-width: 170px; }

/* Side panel */
.booking-aside { position: sticky; top: 20px; display: grid; gap: 16px; }
.booking-aside__card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--g3-shadow); }
.booking-aside__card h2 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.booking-rules { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.booking-rules li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.booking-rules__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--g3-tile); color: #0f7fa8; font-size: 16px; }
.booking-rules li > div > strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.booking-rules li > div > span { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.booking-links { display: grid; gap: 2px; }
.booking-links .booking-kicker { margin-bottom: 8px; }
.booking-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; }
.booking-links a i { width: 18px; color: #0f7fa8; text-align: center; }
.booking-links a:hover, .booking-links a:focus-visible { background: #f2f9fc; color: #0f6f94; outline: none; box-shadow: inset 0 0 0 1px #d3e9f3; }

/* ---------- Schedules (freezing / screening / data collection) ---------- */
.schedule-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1160px; margin: 0 auto 22px; }
.schedule-tabs > a:not(.button) {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.schedule-tabs > a:not(.button) i { color: #0f7fa8; font-size: 14px; }
.schedule-tabs > a:not(.button):hover { border-color: #9fd3e8; background: #f2f9fc; }
.schedule-tabs > a:not(.button):focus-visible { outline: 2px solid #0f6f94; outline-offset: 2px; }
.schedule-tabs > a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.schedule-tabs > a[aria-current="page"] i { color: #7dd3fc; }
.schedule-tabs > a[aria-current="page"]:hover { border-color: var(--navy); background: var(--navy); }
.schedule-tabs .schedule-tabs__book { margin-left: auto; }

.schedule-page .data-stack { max-width: 1160px; margin: 0 auto; gap: 22px; }
.schedule-page .schedule-panel { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--g3-shadow); }
.schedule-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.schedule-panel__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--g3-tile); color: #0f7fa8; font-size: 16px; }
.schedule-page .schedule-panel__head h2 { margin: 0; color: var(--navy); font-size: 19px; line-height: 1.3; }
.schedule-count { flex: 0 0 auto; margin-left: auto; padding: 5px 12px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.schedule-count::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.schedule-count--active { border-color: #bfe3f2; background: #eaf6fb; color: #0b5f80; }
.schedule-count--ongoing { border-color: #b7e4c7; background: #ecfaf1; color: #166534; }
.schedule-count--waiting { border-color: #f4d58d; background: #fff8e6; color: #8a4b08; }

/* Shared table treatment for schedules + inventory results */
.schedule-page .table-wrap, .lookup-page .table-wrap { overflow: visible; border: 1px solid var(--line); border-radius: 12px; }
.schedule-page .data-table, .lookup-page .data-table { width: 100%; min-width: 0; border: 0; border-radius: 12px; overflow: visible; border-collapse: separate; border-spacing: 0; }
.schedule-page .data-table thead th, .lookup-page .data-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f1f6f9; color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.schedule-page .data-table thead th:first-child, .lookup-page .data-table thead th:first-child { border-top-left-radius: 12px; }
.schedule-page .data-table thead th:last-child, .lookup-page .data-table thead th:last-child { border-top-right-radius: 12px; }
.schedule-page .data-table tbody td, .lookup-page .data-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid #edf2f6; background: #fff; color: var(--text-secondary); font-size: 15px; font-weight: 400; line-height: 1.5; vertical-align: middle;
}
.schedule-page .data-table tbody tr:nth-child(even) td, .lookup-page .data-table tbody tr:nth-child(even) td { background: #fafcfd; }
.schedule-page .data-table tbody tr:hover td, .lookup-page .data-table tbody tr:hover td { background: #f2f9fc; }
.schedule-page .data-table tbody tr:last-child td, .lookup-page .data-table tbody tr:last-child td { border-bottom: 0; }
.schedule-page .data-table tbody tr:last-child td:first-child, .lookup-page .data-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.schedule-page .data-table tbody tr:last-child td:last-child, .lookup-page .data-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
.schedule-page .data-table td.schedule-table__name, .lookup-page .data-table td.lookup-table__code { color: var(--navy); font-weight: 600; }
.queue-pos { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--g3-tile); color: #0b5f80; font-size: 14px; font-weight: 700; }
.schedule-date { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.schedule-date i { color: #0f7fa8; }
.schedule-page .status-badge { padding: 4px 11px; border: 1px solid transparent; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.lookup-page.inventory-page { max-width: none; }
.lookup-page .lookup-panel { width: 100%; }
.schedule-page .status-badge--screening { border-color: #bfe3f2; background: #eaf6fb; color: #0b5f80; }
.schedule-page .status-badge--datacollection { border-color: #d8ccf0; background: #f4f0fc; color: #4c2f8f; }

.schedule-page .empty-message.schedule-empty, .lookup-page .lookup-empty, .lookup-page .public-inventory-prompt {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 34px 20px; border: 1px dashed #c9dbe6; border-radius: 14px;
  background: var(--soft); color: var(--text-secondary); font-size: 15px; font-style: normal; font-weight: 400; line-height: 1.55; text-align: center;
}
.schedule-empty > i, .lookup-empty > i, .public-inventory-prompt > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #0f7fa8; font-size: 17px; }

/* Success modal on the schedule pages */
.schedule-view .success-modal { background: rgba(6, 26, 53, .55); backdrop-filter: blur(4px); }
.schedule-view .success-modal__content { padding: 32px 28px 26px; border: 1px solid var(--line); border-radius: 18px; }
.schedule-view .success-modal__icon { width: 56px; height: 56px; border-radius: 16px; background: #ecfaf1; color: #166534; border: 1px solid #b7e4c7; font-size: 26px; }
.schedule-view .success-modal__content h3 { font-size: 22px; letter-spacing: -.01em; }
.schedule-view .success-modal__content p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }
.schedule-view .primary-btn { width: 100%; }

/* ---------- Public inventory lookup ---------- */
.lookup-page .lookup-panel { max-width: 1160px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--g3-shadow); }
.lookup-page .schedule-tabs { width: 100%; margin-bottom: 2px; }
.lookup-page .public-inventory-search {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line);
}
.lookup-page .public-inventory-search > label { grid-column: 1 / -1; display: block; color: var(--navy); font-size: 14px; font-weight: 600; }
.lookup-input { position: relative; display: block; min-width: 0; }
.lookup-input > i { position: absolute; top: 50%; left: 15px; color: #7a8ea0; font-size: 14px; transform: translateY(-50%); pointer-events: none; }
.lookup-page .public-inventory-search .lookup-input input { padding-left: 40px; }
.lookup-page .public-inventory-search .button { min-width: 180px; white-space: nowrap; }
.lookup-page .public-inventory-search > .field-hint { grid-column: 1 / -1; }
.lookup-page .inventory-selection-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #cfe6f1; border-radius: 12px; background: #f2f9fc; color: #24435e; font-size: 14.5px; line-height: 1.5; }
.lookup-page .inventory-selection-intro i { grid-row: 1 / span 2; margin-top: 3px; color: #0f7fa8; }
.lookup-page .inventory-selection-intro strong { color: var(--navy); font-size: 15px; }
.lookup-page .public-inventory-result-count, .lookup-page .public-inventory-result-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.lookup-page .public-inventory-result-count i, .lookup-page .public-inventory-result-note i { margin-top: 4px; color: #0f7fa8; }
.lookup-page .public-inventory-result-count strong { color: var(--navy); }
.lookup-page .public-inventory-result-note { margin: 16px 0 0; font-size: 14px; }
.lookup-status { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); white-space: nowrap; }
.lookup-muted { color: #64748b; }
.lookup-page .public-grid-availability, .lookup-availability { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lookup-page .public-grid-availability { border-color: #b7e4c7; background: #ecfaf1; color: #166534; }
.lookup-availability--busy { border-color: #f4d58d; background: #fff8e6; color: #8a4b08; }
.lookup-availability--off { border-color: #dbe2e8; background: #f1f4f7; color: #475569; }
.lookup-page .inventory-select-grid { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; }
.lookup-page .inventory-select-grid:has(input:checked) { border-color: #0f7fa8; background: #f2fafd; }
.lookup-page .inventory-select-grid:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.lookup-page .inventory-select-grid input { width: 18px; height: 18px; accent-color: #0f7fa8; }
.lookup-page .data-table .form-hint { color: #64748b; font-size: 14px; }
.lookup-page .inventory-selection-actions { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 28px rgba(6, 26, 53, .12); color: var(--navy); font-size: 15px; font-weight: 600; }
.lookup-page .lookup-error { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid #f1c27a; border-radius: 12px; background: #fff8eb; color: #6b4710; font-size: 15px; font-style: normal; text-align: left; }
.lookup-page .lookup-error i { margin-top: 3px; color: #b26a00; }
.lookup-page .lookup-empty strong { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .schedule-page .data-table thead th, .lookup-page .data-table thead th { padding: 11px 12px; white-space: normal; }
  .schedule-page .data-table tbody td, .lookup-page .data-table tbody td { padding: 13px 12px; }
}
@media (max-width: 900px) {
  .booking-page .reg-type-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 700px) {
  .booking-page .page-header p, .schedule-page .page-header p, .lookup-page .page-header p { font-size: 14px; line-height: 1.5; }
  .lookup-page .page-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .booking-page .booking-card { padding: 2px 18px 20px; border-radius: 14px; }
  .booking-step { padding: 22px 0; }
  .booking-step__legend { font-size: 17px; margin-bottom: 14px; }
  .booking-page .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .booking-page #freezing_fields { grid-template-columns: minmax(0, 1fr); }
  .booking-page #freezing_fields > .form-field { grid-column: auto; }
  .booking-page .booking-picker { padding: 16px 14px; }
  .booking-page .freezing-calendar { padding: 12px 10px; }
  .booking-page .booking-actions { flex-direction: column; align-items: stretch; }
  .booking-actions__note { order: 3; justify-content: center; margin: 4px 0 0; text-align: center; }
  .booking-page .booking-actions .button[type="submit"] { order: 1; width: 100%; }
  .booking-page .booking-actions .button.muted { order: 2; width: 100%; }
  .booking-aside { grid-template-columns: minmax(0, 1fr); }

  .schedule-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-tabs > a:not(.button) { justify-content: center; padding: 8px 10px; font-size: 14px; }
  .schedule-tabs .schedule-tabs__book { grid-column: 1 / -1; margin-left: 0; }
  .schedule-page .schedule-panel, .lookup-page .lookup-panel { padding: 18px 16px; border-radius: 14px; }
  .schedule-panel__head { flex-wrap: wrap; gap: 10px 12px; }
  .schedule-page .schedule-panel__head h2 { flex: 1 1 0; min-width: 0; font-size: 17px; }

  /* Tables become stacked cards */
  .schedule-page .table-wrap, .lookup-page .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .schedule-page .data-table, .lookup-page .data-table { width: 100%; }
  .schedule-page .data-table thead, .lookup-page .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .schedule-page .data-table tbody, .lookup-page .data-table tbody { display: grid; gap: 10px; }
  .schedule-page .data-table tbody tr, .lookup-page .data-table tbody tr,
  .schedule-page .data-table tbody tr:nth-child(even), .lookup-page .data-table tbody tr:nth-child(even) { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .schedule-page .data-table tbody td, .lookup-page .data-table tbody td,
  .schedule-page .data-table tbody tr:nth-child(even) td, .lookup-page .data-table tbody tr:nth-child(even) td,
  .schedule-page .data-table tbody tr:hover td, .lookup-page .data-table tbody tr:hover td {
    display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid #edf2f6; border-radius: 0; background: transparent; font-size: 14.5px; overflow-wrap: anywhere;
  }
  .schedule-page .data-table tbody td:last-child, .lookup-page .data-table tbody td:last-child { border-bottom: 0; }
  .schedule-page .data-table tbody td::before, .lookup-page .data-table tbody td::before {
    content: attr(data-label); color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
  .schedule-page .data-table td > *, .lookup-page .data-table td > * { justify-self: start; }
  .lookup-status, .schedule-date { white-space: normal; }

  .lookup-page .public-inventory-search { grid-template-columns: minmax(0, 1fr); }
  .lookup-page .public-inventory-search .button { width: 100%; }
  .lookup-page .public-inventory-search > .field-hint { order: 0; }
  .lookup-page .inventory-selection-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .lookup-page .page-header .button { width: 100%; }
}
@media (max-width: 480px) {
  .booking-page .calendar-weekdays, .booking-page .calendar-grid { gap: 3px; }
  .booking-page .calendar-weekdays { font-size: 11px; letter-spacing: 0; }
  .booking-page .calendar-day { min-height: 46px; padding: 6px 1px; border-radius: 8px; }
  .booking-page .calendar-day small { display: none; }
  .booking-page .calendar-day span { font-size: 14px; }
  .booking-page .calendar-meter { margin: 6px 3px 0; }
  .booking-page .reg-type-card { padding: 14px 40px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-page .button, .schedule-page .button, .lookup-page .button, .booking-page .reg-type-card, .booking-page .calendar-day { transition: none; }
  .booking-page .button:hover, .schedule-page .button:hover, .lookup-page .button:hover, .booking-page .reg-type-card:hover { transform: none; }
}
/* === Redesign G3 — END === */

/* Team: keep the two core-team cards side by side down to tablet width.
   Between 641px and 1100px each card stacks its photo above the text so the
   pair fits without leaving an empty right half. */
@media (min-width: 641px) and (max-width: 1100px) {
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .tm-card { grid-template-columns: minmax(0, 1fr); }
  .tm-card__photo { padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tm-card__body { align-items: center; padding: 20px 18px 22px; text-align: center; }
}
@media (max-width: 640px) {
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
}

/* === Page cover photos ===================================================
   ACCEM's own photos (equipment: Talos Arctica; workflow: grid-screening
   atlas) and CC0 / public-domain photos (StockSnap and rawpixel via
   Openverse; IISc main building from Wikimedia Commons). None of them
   requires a credit line. */
.page-header--science { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-about-1600w.webp"); background-position: center 62%; }
.page-header--equipment { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-equipment-1600w.webp"); background-position: center 58%; }
.page-header--workflow { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-workflow-960w.webp"); background-position: center 32%; }
.page-header--faq { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-faq-1024w.webp"); background-position: center 50%; }
.page-header--facility { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-instructions-960w.webp"); background-position: center 55%; }
.page-header--rates { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-rates-960w.webp"); background-position: center 50%; }
.page-header--team { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-team-960w.webp"); background-position: center 42%; }
.page-header--publications { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-publications-960w.webp"); background-position: center 50%; }
.page-header--events { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-events-960w.webp"); background-position: center 55%; }
.page-header--contact { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-contact-960w.webp"); background-position: center 40%; }
@media (max-width: 800px) {
  .page-header--science { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-about-800w.webp"); }
  .page-header--equipment { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-equipment-800w.webp"); }
  .page-header--workflow { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-workflow-640w.webp"); }
  .page-header--faq { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-faq-640w.webp"); }
  .page-header--facility { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-instructions-640w.webp"); }
  .page-header--rates { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-rates-640w.webp"); }
  .page-header--team { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-team-640w.webp"); }
  .page-header--publications { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-publications-640w.webp"); }
  .page-header--events { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-events-640w.webp"); }
  .page-header--contact { background-image: linear-gradient(90deg, rgba(3, 20, 43, .93) 0%, rgba(6, 34, 62, .74) 38%, rgba(6, 34, 62, .28) 100%), url("../images/cover-contact-640w.webp"); }
}

/* === Admin dashboard v2 — START === */
/* Scoped to the admin dashboard (templates/admin_panel.html). Overrides older
   dashboard rules by specificity instead of editing them. */
.dash-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* "Needs attention" strip */
.dash-attention { margin-top: 4px; padding: 22px 24px 24px; border: 1px solid #d7e5eb; border-radius: 20px; background: #fff; box-shadow: 0 14px 32px rgba(8, 30, 55, .08); }
.dash-attention__heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.dash-attention__heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.dash-attention__updated { margin: 0; color: var(--text-secondary); font-size: 12px; }
.dash-attention__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dash-tile a { display: flex; height: 100%; flex-direction: column; gap: 4px; padding: 14px 15px 13px; border: 1px solid #dfebef; border-top: 3px solid #167da5; border-radius: 13px; background: linear-gradient(145deg, #fff, #f8fbfd); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dash-tile a:hover { border-color: #9fcde0; box-shadow: 0 8px 20px rgba(8, 30, 55, .09); transform: translateY(-1px); }
.dash-tile a:focus-visible { outline: 3px solid #167da5; outline-offset: 2px; }
.dash-tile__label { display: flex; align-items: center; gap: 7px; color: #38576a; font-size: 12px; font-weight: 700; }
.dash-tile__label i { color: #167da5; font-size: 13px; }
.dash-tile__value { display: flex; align-items: baseline; gap: 6px; color: var(--text-secondary); font-size: 12px; }
.dash-tile__value strong { color: var(--navy); font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.dash-tile__detail { flex: 1; color: var(--text-secondary); font-size: 11.5px; line-height: 1.4; }
.dash-tile__action { margin-top: 4px; color: #0f6a8d; font-size: 12px; font-weight: 700; }
.dash-tile--alert a { border-top-color: #c46b1c; background: linear-gradient(145deg, #fffaf3, #fff); }
.dash-tile--alert .dash-tile__label i { color: #b35d12; }
.dash-tile--freezing.dash-tile--alert a { border-top-color: #b4232f; background: linear-gradient(145deg, #fff5f5, #fff); }
.dash-tile--clear a { border-top-color: #32a889; }
.dash-tile--clear .dash-tile__value strong { color: #2b7a5f; }

/* Bills awaiting receipt sits directly under the attention strip */
.admin-area .dash-pending { margin-top: 18px; }
.admin-area .dash-pending h2:focus { outline: none; }
.admin-area .dash-pending .status-badge { white-space: normal; }

/* Donut legends (names were only visible on hover before) */
.admin-area .dash-donut-layout { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; justify-content: stretch; gap: 22px; min-height: 170px; }
.admin-area .dash-donut-layout .donut-track { stroke-width: 16; }
.dash-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; }
.dash-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.35; }
.dash-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.dash-legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-legend li strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.dash-legend .dash-legend__empty { display: block; }

/* Revenue: show the actual dates and invalid-range feedback */
.dash-range-dates { margin-left: 6px; color: var(--text-secondary); font-weight: 600; }
.dash-range-error { margin: 8px 0 0; padding: 9px 12px; border: 1px solid #f0c7a0; border-radius: 10px; background: #fff7ef; color: #7a3f0c; font-size: 12px; }

/* Revenue bar chart: bars share the width so recent periods are not pushed
   out of view; long ranges scroll (admin.js starts at the latest period). */
.admin-area .revenue-bars { gap: 4px; padding-left: 6px; padding-right: 6px; scrollbar-width: thin; }
.admin-area .revenue-bars.is-scrollable:focus-visible { outline: 3px solid #167da5; outline-offset: 2px; }
.admin-area .revenue-bar-item { flex: 1 0 46px; min-width: 46px; }
.admin-area .revenue-bar-item strong { font-size: 9.5px; font-variant-numeric: tabular-nums; }
.admin-area .revenue-bar-item span { max-width: 100%; color: var(--text-secondary); font-size: 10.5px; }
.admin-area .revenue-bar { width: min(42px, 72%); }

/* Comparison chart figures */
.dash-chart-table { margin-top: 12px; font-size: 12px; }
.dash-chart-table summary { color: #0f6a8d; font-weight: 700; cursor: pointer; }
.dash-chart-table .data-table { margin-top: 8px; }
.dash-chart-table .data-table th[scope="row"] { padding: 8px 14px; background: #fff; color: var(--navy); font-size: 11px; text-align: left; }
.dash-chart-table .data-table td { font-variant-numeric: tabular-nums; }

@media (min-width: 1280px) {
  .dash-attention__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 1200px) {
  .admin-area .dash-donut-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .admin-area .dash-donut-layout .dash-legend { width: min(100%, 300px); }
}

@media (max-width: 640px) {
  .dash-attention { padding: 16px 14px; border-radius: 14px; }
  .dash-attention__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dash-tile a { padding: 11px 11px 10px; }
  .dash-tile__value strong { font-size: 24px; }
  .dash-tile__detail { font-size: 11px; }
  .dash-range-dates { display: block; margin: 2px 0 0; }
}

/* Pending bills become cards instead of a sideways-scrolling table whose
   reminder button sat off-screen (tablet: 4 fields per row; phone: 1). */
@media (max-width: 1180px) {
  .admin-area .dash-pending .table-wrap { overflow: visible; }
  .admin-area .dash-pending__table, .admin-area .dash-pending__table tbody { display: block; width: 100%; }
  .admin-area .dash-pending__table { border: 0; border-radius: 0; }
  .admin-area .dash-pending__table thead { display: none; }
  .admin-area .dash-pending__table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; border: 1px solid #dfeaf0; border-radius: 12px; background: #fff; overflow: hidden; }
  .admin-area .dash-pending__table tbody td, .admin-area .dash-pending__table tbody tr:nth-child(even) td { display: block; min-width: 0; padding: 9px 12px; background: #fff; border-bottom: 1px solid #f0f4f7; }
  .admin-area .dash-pending__table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: #5b7183; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .admin-area .dash-pending__table .payment-reminder-form { align-items: flex-start; }
}
@media (max-width: 640px) {
  .admin-area .dash-pending__table tr { grid-template-columns: minmax(0, 1fr); }
  .admin-area .dash-pending__table tbody td, .admin-area .dash-pending__table tbody tr:nth-child(even) td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 5px 12px; }
  .admin-area .dash-pending__table td::before { margin: 0; }
}
/* === Admin dashboard v2 — END === */

/* Publication finder: "Added to the website" confirmation banner */
.pubfinder-added { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #9fdcb8; border-radius: 12px; background: #ecfaf2; color: #14532d; scroll-margin-top: 90px; animation: pubfinder-added-in .35s ease-out; }
.pubfinder-added > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #22a35a; color: #fff; font-size: 16px; }
.pubfinder-added strong { display: block; font-size: 16px; }
.pubfinder-added p { margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.pubfinder-added__links a { color: #116b3a; font-weight: 600; }
.pubfinder-added:focus { outline: 2px solid #22a35a; outline-offset: 2px; }
@keyframes pubfinder-added-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pubfinder-added { animation: none; } }

/* Publication finder: "Not ours" button, dismissed banner and list */
.pubfinder-action { white-space: nowrap; }
.pubfinder-action .inline-form + .inline-form { margin-left: 6px; }
.pubfinder-added--dismissed { border-color: #f1c4c4; background: #fff5f5; color: #6b1d1d; }
.pubfinder-added--dismissed > i { background: #c0392b; }
.pubfinder-added--dismissed .inline-form { margin-top: 8px; }
#dismissed details > summary { cursor: pointer; list-style: none; }
#dismissed details > summary::-webkit-details-marker { display: none; }
#dismissed details > summary h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
#dismissed details > summary h2::before { content: "▸"; color: #64748b; font-size: 14px; transition: transform .15s ease; }
#dismissed details[open] > summary h2::before { transform: rotate(90deg); }
@media (max-width: 700px) { .pubfinder-action { white-space: normal; } .pubfinder-action .inline-form + .inline-form { margin: 6px 0 0; display: block; } }

/* Drop-down toggles: space the words as if the arrows were not there.
   The arrow (5px gap + 9px glyph) stays inside the hover pill, but the
   pill's right padding is 4px shorter and a -10px margin hands the rest
   back, so word-to-word spacing equals the plain links' (2 x padding + gap). */
@media (min-width: 801px) {
  .nav-group__toggle { gap: 5px; }
  .site-nav .nav-group__toggle { margin-right: -10px; }
}
@media (min-width: 1001px) {
  .site-nav .nav-group__toggle { padding-right: 9px; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .site-nav .nav-group__toggle { padding-right: 7px; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  /* Tightest range (22px between words): a smaller arrow leaves clear space
     between a highlighted pill and the next word. 3 + 8 + 4 - 5 = 10 + 0. */
  .nav-group__toggle { gap: 3px; }
  .nav-group__toggle i { font-size: 8px; }
  .site-nav .nav-group__toggle { padding-right: 4px; margin-right: -5px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .site-nav .nav-group__toggle { padding-right: 8px; }
}

/* ── Grid picker: grids grouped by freezing session ────────────────────────── */
.grid-picker { display: grid; grid-template-columns: 1fr; gap: 8px; }
.grid-session { border: 1px solid #dce7ed; border-radius: 10px; background: #fff; overflow: hidden; }
.grid-session + .grid-session { margin-top: 0; }
.grid-session__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; cursor: pointer; list-style: none; background: #f6fafc; }
.grid-session__summary::-webkit-details-marker { display: none; }
.grid-session__summary { position: relative; padding-right: 32px; }
.grid-session__summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; margin-top: -8px; color: #167da5; font-size: 12px; line-height: 16px; transition: transform .15s ease; }
.grid-session:not([open]) .grid-session__summary::after { transform: rotate(-90deg); }
.grid-session__title { display: inline-flex; align-items: center; gap: 7px; color: #17324d; font-size: 13px; }
.grid-session__title i { color: #46a0bc; font-size: 12px; }
.grid-session__meta { color: #5c7280; font-size: 11px; }
.grid-session__grids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #e6eef2; }
.grid-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 9px; padding: 9px 10px; border: 1px solid #dce7ed; border-radius: 8px; background: #fff; cursor: pointer; }
.grid-choice:has(input:checked) { border-color: #46a0bc; background: #f1fafc; box-shadow: 0 0 0 2px rgba(70, 160, 188, .12); }
.grid-choice > input { accent-color: #167da5; }
.grid-choice__copy { display: grid; gap: 2px; min-width: 0; }
.grid-choice__copy strong { color: #17324d; font-size: 12.5px; }
.grid-choice__copy small, .grid-choice__location { color: #5c7280; font-size: 11px; }
.grid-choice__location { grid-column: 2; }
.grid-choice--unavailable { border-style: dashed; background: #fffaf0; }
.public-grid-selection.grid-picker { display: grid; grid-template-columns: 1fr; max-height: 460px; }
.grid-session--lookup { margin-bottom: 12px; }
.grid-session--lookup .table-wrap { margin: 0; border: 0; border-top: 1px solid #e6eef2; border-radius: 0; }
.inventory-storage-table th:last-child, .inventory-storage-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }

/* Completion modal: mark which reserved grids were used */
.completion-used-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #17324d; cursor: pointer; }
.completion-used-toggle input { width: 18px; height: 18px; accent-color: #167da5; }
.completion-mapped-grid.is-unused { background: #f7f9fa; border-style: dashed; }
.completion-mapped-grid.is-unused legend { color: #6b7f8c; }
.completion-unused-note { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: #eef6f9; color: #31566b; font-size: 12px; }
.completion-used-status { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; background: #eef6f9; color: #31566b; font-size: 12.5px; font-weight: 600; }
.completion-used-status.is-error { background: #fff4e5; color: #8a5300; }
.completion-mapped-grid > label.completion-used-toggle { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #eef6f9; }
.completion-mapped-grid > .completion-unused-note { grid-column: 1 / -1; }

/* === "Live schedule" button beside Book slots ===
   An outlined secondary button: same height as Book slots, lighter weight so
   booking stays the primary action. It opens the schedules page, whose tabs
   cover freezing, screening, data collection and Find your grids. */
@media (min-width: 801px) {
  .site-nav > a.schedule-link.schedule-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
    border: 1px solid rgba(233, 244, 251, .38); border-radius: 8px; background: transparent;
    color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: none;
  }
  .site-nav > a.schedule-link.schedule-link i { font-size: 12px; color: var(--cyan); }
  .site-nav > a.schedule-link.schedule-link:hover, .site-nav > a.schedule-link.schedule-link:focus-visible {
    border-color: var(--cyan); background: rgba(72, 200, 232, .1); color: #fff;
  }
  .site-nav > a.schedule-link.schedule-link.active { border-color: var(--cyan); background: rgba(72, 200, 232, .14); box-shadow: none; }
}
/* One row: the two buttons sit together on the right. */
@media (min-width: 1401px) {
  .site-nav > a.schedule-link.schedule-link { margin-left: auto; }
  .site-nav .portal-link { margin-left: 8px; }
}
/* Below ~1400px everything no longer fits on one row: links take the second
   row (as on tablets) and both buttons plus the lock sit top-right. */
@media (min-width: 1001px) and (max-width: 1400px) {
  .header-inner { position: relative; flex-wrap: wrap; gap: 12px 20px; padding: 12px 24px; }
  .site-nav { order: 3; flex: 1 1 100%; width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; padding-bottom: 3px; }
  .site-nav > a:first-child { margin-left: 0; }
  .site-nav > a:not(.portal-link):not(.staff-login):not(.schedule-link), .nav-group__toggle { padding: 8px 13px; }
  .nav-group__toggle { gap: 5px; }
  .nav-group__toggle i { font-size: 9px; }
  .site-nav .nav-group__toggle { padding-right: 9px; margin-right: -10px; }
  .site-nav .portal-link { position: absolute; top: 22px; right: 66px; margin: 0; }
  .site-nav .staff-login { position: absolute; top: 27px; right: 26px; margin: 0; width: 30px; height: 30px; }
}
@media (min-width: 801px) and (max-width: 1400px) {
  .site-nav > a.schedule-link.schedule-link { position: absolute; top: 22px; right: 180px; margin: 0; }
}
@media (min-width: 1001px) and (max-width: 1400px) {
  .site-nav .portal-link { padding: 9px 16px; }
}
/* Narrow tablets: tighter spacing keeps all the page links on one row. */
@media (min-width: 801px) and (max-width: 900px) {
  .site-nav { gap: 6px; }
  .site-nav > a:not(.portal-link):not(.staff-login):not(.schedule-link), .nav-group__toggle { padding: 7px 9px; }
  .site-nav .nav-group__toggle { padding-right: 5px; }
}
@media (max-width: 800px) {
  .js .site-nav.is-open a.schedule-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 11px 12px; border: 1px solid rgba(233, 244, 251, .38); border-radius: 8px; color: #fff; font-weight: 700; text-align: center; }
  .js .site-nav.is-open a.schedule-link i { color: var(--cyan); }
  .js .site-nav.is-open a.schedule-link + .portal-link { margin-top: 8px; }
}

/* Red "live" indicator on the Live schedule button: glows and pulses. */
.live-dot { position: relative; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 6px 1px rgba(255, 59, 59, .85); animation: live-dot-blink 1.4s ease-in-out infinite; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 59, 59, .55); animation: live-dot-ring 1.4s ease-out infinite; }
@keyframes live-dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px 0 rgba(255, 59, 59, .4); } }
@keyframes live-dot-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .live-dot, .live-dot::after { animation: none; }
  .live-dot::after { display: none; }
}

/* "Is this you?" name choices on Find your grids */
.lookup-name-choices { margin: 14px 0; padding: 14px 16px; border: 1px solid #d6e6ee; border-radius: 12px; background: #f4fafc; }
.lookup-name-choices__heading { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #17324d; font-weight: 700; }
.lookup-name-choices__heading i { color: #167da5; }
.lookup-name-choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.lookup-name-choice { display: grid; gap: 2px; min-width: 170px; padding: 10px 14px; border: 1px solid #b9d7e4; border-radius: 10px; background: #fff; color: #17324d; text-decoration: none; }
.lookup-name-choice:hover, .lookup-name-choice:focus-visible { border-color: #167da5; box-shadow: 0 0 0 3px rgba(22, 125, 165, .12); }
.lookup-name-choice small { color: #167da5; font-weight: 600; }
.grid-picker-names { display: grid; gap: 8px; padding: 12px; border: 1px solid #d6e6ee; border-radius: 10px; background: #f4fafc; }
.grid-picker-names p { margin: 0; color: #17324d; font-weight: 600; }
.grid-picker-names__list { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-picker-names button { display: grid; gap: 2px; padding: 9px 12px; border: 1px solid #b9d7e4; border-radius: 9px; background: #fff; color: #17324d; font: inherit; text-align: left; cursor: pointer; }
.grid-picker-names button:hover, .grid-picker-names button:focus-visible { border-color: #167da5; }
.grid-picker-names button small { color: #167da5; font-weight: 600; }
.grid-picker-owner { margin: 0 0 6px; color: #31566b; font-size: 12px; }
.grid-picker-owner button { margin-left: 6px; border: 0; background: none; color: #167da5; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.grid-session__dot { color: #8aa1af; }
.grid-session__sample { padding: 2px 9px; border-radius: 999px; background: #dff1f7; color: #0f5f80; font-weight: 800; }

/* Publication finder: background search status */
.pubfinder-status { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.pubfinder-status--running { background: #eef6f9; color: #17324d; border: 1px solid #cfe3ec; }
.pubfinder-status--ok { background: #ecf8f1; color: #1d6b45; border: 1px solid #c6e8d5; }
.pubfinder-status--warn { background: #fff4e5; color: #8a5300; border: 1px solid #f3d9a4; }
.pubfinder-spinner { flex: none; width: 16px; height: 16px; border: 2px solid #b9d7e4; border-top-color: #167da5; border-radius: 50%; animation: pubfinder-spin .9s linear infinite; }
@keyframes pubfinder-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pubfinder-spinner { animation: none; } }

/* Page messages: shown top-right above everything (the admin sidebar used
   to cover them). Errors stay until closed; others fade after 7 s. */
.flash-messages { position: fixed; top: 16px; right: 16px; z-index: 2000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.flash-message { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 16px; border: 1px solid #b9d7e4; border-left: 4px solid #167da5; border-radius: 10px; background: #fff; color: #17324d; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 28px rgba(3, 20, 43, .18); transition: opacity .4s ease, transform .4s ease; }
.flash-message > span { flex: 1; }
.flash-message--success { border-color: #c6e8d5; border-left-color: #23835d; background: #f3fbf6; }
.flash-message--error { border-color: #f1c7c7; border-left-color: #bf4c4c; background: #fff6f6; }
.flash-message--warning { border-color: #f3d9a4; border-left-color: #e0a72e; background: #fffaf0; }
.flash-message.is-leaving { opacity: 0; transform: translateY(-6px); }
.flash-message__close { flex: none; border: 0; background: none; color: #52687a; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.flash-message__close:hover { color: #17324d; }
@media (prefers-reduced-motion: reduce) { .flash-message { transition: none; } }

/* Storage page: only 4 columns now (Sample name, Grid type, Position, Change),
   so the table fits its box; the relocate form opens as a panel under the
   row's "Change" link instead of widening the table. */
.inventory-storage-table { min-width: 0; width: 100%; }
.inventory-storage-table th:nth-child(n), .inventory-storage-table td:nth-child(n) { min-width: 0; }
.inventory-storage-table td:last-child { position: relative; }
.inventory-storage-table .inventory-relocate[open] form { position: absolute; right: 0; top: calc(100% - 4px); z-index: 30; width: 260px; text-align: left; white-space: normal; box-shadow: 0 12px 28px rgba(3, 20, 43, .18); }
.inventory-storage-table .inventory-relocate summary { font-size: 12px; }
.inventory-storage-box .table-wrap { overflow: visible; }

/* Publication finder: keep the action buttons on screen on smaller laptops by
   stacking them and letting the publication column take the slack. */
@media (max-width: 1300px) {
  .pubfinder-table td.pubfinder-pub { min-width: 220px; }
  .pubfinder-table td.pubfinder-match { min-width: 110px; }
  .pubfinder-table td.pubfinder-action { white-space: normal; }
  .pubfinder-table td.pubfinder-action .inline-form { display: block; }
  .pubfinder-table td.pubfinder-action .inline-form + .inline-form { margin-top: 6px; }
  .pubfinder-table td.pubfinder-action .btn { width: 100%; justify-content: center; white-space: nowrap; }
}

/* Admin create-slot picker: the grouped picker replaces the older 3-column
   card grid inside .inventory-grid-picker, so undo those rules here. */
.inventory-grid-picker.grid-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 480px; overflow: auto; }
.inventory-grid-picker.grid-picker .grid-session { overflow: visible; flex: none; }
.inventory-grid-picker.grid-picker label.grid-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 9px; padding: 9px 10px; border-radius: 8px; background: #fff; }
.inventory-grid-picker.grid-picker .grid-choice__copy strong { display: block; color: #17324d; font-size: 12px; }
.inventory-grid-picker.grid-picker .grid-choice__copy small, .inventory-grid-picker.grid-picker .grid-choice__location { display: block; color: #5c7280; font-size: 10.5px; }
.grid-picker .grid-choice > input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; min-height: 0; margin: 0; padding: 0; }
.inventory-grid-picker.grid-picker .grid-session__summary strong { display: inline; font-size: 12px; }
.inventory-grid-picker.grid-picker .grid-session__meta { font-size: 10.5px; }
@media (max-width: 1300px) {
  /* Each result becomes a card: year + title on top, details and actions below. */
  .pubfinder-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pubfinder-table, .pubfinder-table tbody { display: block; width: 100%; }
  .pubfinder-table tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 18px; padding: 14px 4px; border-bottom: 1px solid #e3ecf1; }
  .pubfinder-table td { display: block; padding: 0; border: 0; background: none; }
  .pubfinder-table td.pubfinder-year { flex: 0 0 auto; }
  .pubfinder-table td.pubfinder-pub { flex: 1 1 calc(100% - 70px); min-width: 0; }
  .pubfinder-table td.pubfinder-match { flex: 1 1 200px; min-width: 0; }
  .pubfinder-table td.pubfinder-action { flex: 0 0 auto; margin-left: auto; }
  .pubfinder-table td.pubfinder-action .inline-form { display: inline-block; }
  .pubfinder-table td.pubfinder-action .inline-form + .inline-form { margin: 0 0 0 6px; }
  .pubfinder-table td.pubfinder-action .btn { width: auto; }
}
@media (max-width: 1300px) {
  .pubfinder .pubfinder-table tr > td { padding: 0; border: 0; box-shadow: none; min-width: 0; width: auto; }
  .pubfinder .pubfinder-table td.pubfinder-year { padding-top: 1px; }
  .pubfinder .pubfinder-table td.pubfinder-pub { flex: 1 1 0; }
  .pubfinder .pubfinder-table td.pubfinder-links { flex: 0 0 100%; display: flex; gap: 14px; order: 3; }
  .pubfinder .pubfinder-table td.pubfinder-match { order: 4; }
  .pubfinder .pubfinder-table td:nth-child(5) { order: 5; }
  .pubfinder .pubfinder-table td.pubfinder-action { order: 6; }
}
.history-filter-count { align-self: center; color: #31566b; font-size: 12px; font-weight: 600; }
[data-history-panel].is-filtered-empty { display: none; }

/* Inventory overview: status tiles open Search grids filtered to that status. */
a.inventory-metric--link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.inventory-metric--link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 61, 97, .12); }
a.inventory-metric--link:focus-visible { outline: 3px solid #2f6f9f; outline-offset: 2px; }
.inventory-metric .inventory-metric__go span { display: inline; }
.inventory-metric__go { display: block; margin-top: 8px; color: var(--inventory-status-fg, #3d5f78); font-size: 11px; font-weight: 600; opacity: .75; }
a.inventory-metric--link:hover .inventory-metric__go { opacity: 1; text-decoration: underline; }
a.inventory-breakdown--link { color: inherit; text-decoration: none; }
a.inventory-breakdown--link:hover { box-shadow: 0 4px 12px rgba(18, 61, 97, .12); }
a.inventory-breakdown--link:focus-visible { outline: 3px solid #2f6f9f; outline-offset: 2px; }

/* Search grids: status chips and the active-filter banner. */
.inventory-status-chips { scroll-margin-top: 84px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.inventory-status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--inventory-status-border, #d9e5ec); border-radius: 999px; background: var(--inventory-status-bg, #fff); color: var(--inventory-status-fg, #123d61); font-size: 13px; font-weight: 600; text-decoration: none; }
.inventory-status-chip strong { font-size: 13px; }
.inventory-status-chip:hover { box-shadow: 0 3px 10px rgba(18, 61, 97, .12); }
.inventory-status-chip.is-active { border-color: var(--inventory-status-accent, #123d61); box-shadow: inset 0 0 0 2px var(--inventory-status-accent, #123d61); }
.inventory-status-chip:focus-visible { outline: 3px solid #2f6f9f; outline-offset: 2px; }
.inventory-panel > .inventory-filter-banner { font-size: 14px; line-height: 1.5; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--inventory-status-border, #d9e5ec); border-left: 4px solid var(--inventory-status-accent, #123d61); border-radius: 8px; background: var(--inventory-status-bg, #f3f7fa); color: var(--inventory-status-fg, #123d61); }
.inventory-panel > .inventory-filter-banner a { margin-left: 6px; font-weight: 600; }

/* "Showing N of M" note under capped admin tables. */
.table-more { margin: 12px 2px 0; color: #5d7385; font-size: 12px; }
.table-more a { color: #167da5; font-weight: 700; }

/* Billing & payments: server-side filters, tab links and paging. */
.history-tab { display: inline-block; text-decoration: none; line-height: 1.3; }
.history-filter-bar { flex-wrap: wrap; }
.history-filter-bar .table-search { flex: 1 1 240px; }
.history-filter-count { color: #5d7385; font-size: 12px; font-weight: 700; }
.history-panel__count { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #e8f3f8; color: #3f6378; font-size: 12px; font-weight: 700; vertical-align: middle; }
.history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: #5d7385; font-size: 12px; }
@media (max-width: 800px) {
  .history-filter-bar { flex-direction: column; align-items: stretch; }
  .history-filter-bar .table-search, .history-filter-bar select, .history-filter-bar .button { flex: 0 0 auto; width: 100%; max-width: none; box-sizing: border-box; text-align: center; }
  .history-filter-bar .table-search input { width: 100%; }
}
.rate-update { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid #f0d58f; border-left: 4px solid #d9a521; border-radius: 12px; background: #fffaf0; color: #5b4514; }
.rate-update > i { color: #b7861a; font-size: 18px; }
.rate-update p { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; }
.rate-update form { margin: 0; flex: 0 0 auto; }
@media (max-width: 640px) { .rate-update { flex-direction: column; align-items: stretch; } .rate-update > i { display: none; } }
