:root {
    --navy: #1a2e44;
    --navy-deep: #102235;
    --red: #a6192e;
    --red-dark: #831326;
    --cream: #faf9f6;
    --white: #ffffff;
    --slate-900: #172033;
    --slate-700: #42516a;
    --slate-500: #6d7a90;
    --slate-300: #cbd3df;
    --slate-200: #e2e7ee;
    --slate-100: #f0f3f7;
    --green: #237a52;
    --amber: #a25c05;
    --blue: #286aa6;
    --shadow: 0 18px 45px rgba(16, 34, 53, 0.1);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--cream);
    color: var(--slate-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }
button, input, textarea, select { font: inherit; }
[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 3px solid rgba(166,25,46,.28); outline-offset: 3px; }

.hub-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 5px 20px rgba(16, 34, 53, 0.05);
}

.hub-topbar-inner {
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
    flex: 0 0 auto;
}

.hub-brand:hover { color: var(--navy); }
.hub-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(21, 36, 56, .18);
}
.hub-brand strong,
.hub-brand small { display: block; }
.hub-brand strong { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.hub-brand small { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.hub-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.hub-nav-home,
.hub-nav-group > summary {
    padding: 10px 11px;
    border-radius: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.hub-nav-home { text-decoration: none; }
.hub-nav-home:hover,
.hub-nav-home[aria-current="page"],
.hub-nav-group > summary:hover,
.hub-nav-group[open] > summary,
.hub-nav-group.has-current > summary { background: var(--slate-100); color: var(--red); }
.hub-nav-group { position: relative; }
.hub-nav-group > summary,
.hub-account-menu > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.hub-nav-group > summary::-webkit-details-marker,
.hub-account-menu > summary::-webkit-details-marker { display: none; }
.hub-nav-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}
.hub-nav-group[open] .hub-nav-chevron,
.hub-account-menu[open] .hub-nav-chevron { transform: translateY(2px) rotate(225deg); }
.hub-nav-dropdown,
.hub-account-dropdown {
    position: absolute;
    top: calc(100% + 11px);
    z-index: 60;
    display: grid;
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.hub-nav-group:not([open]) > .hub-nav-dropdown,
.hub-account-menu:not([open]) > .hub-account-dropdown { display: none; }
.hub-nav-dropdown { left: 50%; transform: translateX(-50%); }
.hub-nav-group:last-child .hub-nav-dropdown { right: 0; left: auto; transform: none; }
.hub-nav-dropdown a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
}
.hub-nav-dropdown a:hover,
.hub-nav-dropdown a[aria-current="page"] { background: var(--slate-100); color: var(--red); }
.hub-nav-dropdown strong { font-size: 13px; }
.hub-nav-dropdown small { color: var(--slate-500); font-size: 11px; font-weight: 600; }
.hub-nav-dropdown a:hover small,
.hub-nav-dropdown a[aria-current="page"] small { color: var(--slate-700); }

.hub-account-menu {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--slate-200);
    padding-left: 18px;
    font-size: 13px;
    font-weight: 750;
}
.hub-account-menu > summary { color: var(--navy); }
.hub-account-menu > summary:hover,
.hub-account-menu[open] > summary,
.hub-account-menu.has-current > summary { color: var(--red); }
.hub-account-menu > summary > span:not(.hub-avatar):not(.hub-nav-chevron) { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-account-dropdown { right: 0; min-width: 205px; }
.hub-account-dropdown a,
.hub-account-dropdown button {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    color: var(--navy);
    text-align: left;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}
.hub-account-dropdown a:hover,
.hub-account-dropdown a[aria-current="page"],
.hub-account-dropdown button:hover { background: var(--slate-100); color: var(--red); }
.hub-account-dropdown form { margin: 0; }
.hub-nav-home:focus-visible,
.hub-nav-group > summary:focus-visible,
.hub-account-menu > summary:focus-visible,
.hub-menu-button:focus-visible { outline: 3px solid rgba(166,25,46,.28); outline-offset: 3px; }
.hub-user-profile-link,
.hub-person {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    text-decoration: none;
}
.hub-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--slate-300);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
}
.hub-avatar-small { width: 34px; height: 34px; max-width: 34px; max-height: 34px; font-size: 11px; }
.hub-avatar-medium { width: 50px; height: 50px; max-width: 50px; max-height: 50px; font-size: 14px; }
.hub-avatar-large { width: 76px; height: 76px; max-width: 76px; max-height: 76px; font-size: 21px; }
.hub-avatar-xlarge { width: 116px; height: 116px; max-width: 116px; max-height: 116px; font-size: 32px; border-width: 4px; }
.hub-avatar-fallback { background: linear-gradient(145deg, var(--navy), #315675); }
.hub-link-button {
    appearance: none;
    border: 0;
    padding: 0;
    color: var(--slate-500);
    background: transparent;
    cursor: pointer;
}
.hub-link-button:hover { color: var(--red); }
.hub-action-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.hub-action-row form { margin: 0; }

.hub-menu-button {
    display: none;
    margin-left: auto;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    padding: 9px 13px;
    font-weight: 800;
}

.hub-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.hub-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}
.hub-page-heading h1 { margin: 0 0 6px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.hub-page-heading p { max-width: 720px; margin: 0; color: var(--slate-700); }
.hub-eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; }
.hub-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hub-grid { display: grid; gap: 20px; }
.hub-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-span-2 { grid-column: span 2; }

.hub-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(16, 34, 53, .05);
}
.hub-card h2, .hub-card h3 { color: var(--navy); }
.hub-card h2 { margin: 0 0 16px; font-size: 22px; }
.hub-card h3 { margin: 0 0 8px; font-size: 17px; }
.hub-card p:last-child { margin-bottom: 0; }
.hub-profile-contact { padding-bottom: 24px; border-bottom: 1px solid var(--slate-200); }
.hub-card .hub-profile-section-title { margin-top: 24px; }
.hub-card-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.hub-card-header h2, .hub-card-header h3 { margin-bottom: 3px; }
.hub-card-header p { margin: 0; color: var(--slate-500); font-size: 14px; }

.hub-stat { position: relative; overflow: hidden; min-height: 145px; }
.hub-stat::after { content: ''; position: absolute; width: 68px; height: 68px; border-radius: 50%; right: -20px; bottom: -20px; background: rgba(166, 25, 46, .09); }
.hub-stat-value { display: block; margin: 7px 0 2px; color: var(--navy); font-size: 38px; line-height: 1; font-weight: 900; }
.hub-stat-text { display: block; margin: 9px 0 4px; color: var(--navy); font-size: 20px; line-height: 1.2; font-weight: 900; overflow-wrap: anywhere; }
.hub-stat-label { color: var(--slate-500); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }

.hub-announcement {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    border: 0;
}
.hub-announcement::after { content: ''; position: absolute; inset: auto -80px -100px auto; width: 260px; height: 260px; border: 35px solid rgba(255,255,255,.05); border-radius: 50%; }
.hub-announcement h2, .hub-announcement h3 { color: var(--white); }
.hub-announcement p { color: #d8e0e9; }
.hub-announcement .hub-eyebrow { color: #ffb2bd; }
.hub-meeting-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 18px; font-weight: 800; }

.hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.hub-button:hover { background: var(--red-dark); color: var(--white); }
.hub-button:disabled { background: var(--slate-300); color: var(--slate-700); cursor: not-allowed; }
.hub-button-secondary { background: var(--white); border-color: var(--slate-300); color: var(--navy); }
.hub-button-secondary:hover { background: var(--slate-100); color: var(--navy); }
.hub-button-navy { background: var(--navy); }
.hub-button-navy:hover { background: var(--navy-deep); }
.hub-button-small { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.hub-button-danger { background: var(--red); }
.hub-button-success { background: var(--green); }
.hub-button-success:hover { background: #17603e; }

.hub-form { display: grid; gap: 19px; }
.hub-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-field { display: grid; gap: 7px; }
.hub-inline-form { display: flex; align-items: center; gap: 8px; }
.hub-inline-form select { min-width: 0; border: 1px solid var(--slate-300); border-radius: 8px; background: var(--white); color: var(--slate-900); padding: 7px 9px; }
.hub-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; }
.hub-field label, .hub-label { color: var(--navy); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.hub-field small { color: var(--slate-500); }
.hub-field input,
.hub-field textarea,
.hub-field select {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 9px;
    background: var(--white);
    color: var(--slate-900);
    padding: 11px 13px;
    outline: none;
}
.hub-field textarea { min-height: 130px; resize: vertical; }
.hub-field input:focus,
.hub-field textarea:focus,
.hub-field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166,25,46,.12); }
.hub-field input:user-invalid,
.hub-field textarea:user-invalid,
.hub-field select:user-invalid { border-color: var(--red); }
.hub-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.hub-checkbox input { margin-top: 5px; }
.hub-checkbox > span { display: grid; gap: 2px; }
.hub-checkbox small { color: var(--slate-500); }
.hub-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 3px; }
.hub-form-error { color: var(--red); font-weight: 700; font-size: 14px; }
.hub-image-preview { width: min(100%, 520px); max-height: 280px; object-fit: cover; border-radius: 12px; border: 1px solid var(--slate-200); }
.hub-avatar-cropper { display: grid; gap: 16px; justify-items: start; }
.hub-avatar-cropper[hidden] { display: none; }
.hub-avatar-canvas {
    width: 256px;
    height: 256px;
    max-width: 100%;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--slate-100);
    box-shadow: 0 0 0 1px var(--slate-300), 0 12px 28px rgba(18,42,62,.16);
}
.hub-crop-controls { display: grid; gap: 12px; width: min(100%, 420px); }
.hub-crop-controls label { display: grid; gap: 6px; color: var(--navy); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.hub-crop-controls input { width: 100%; accent-color: var(--red); }
.hub-profile-intro { display: flex; align-items: center; gap: 22px; }
.hub-profile-intro h2 { margin-bottom: 4px; }
.hub-profile-intro p { margin: 0; color: var(--slate-500); }
.hub-member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hub-member-card { display: flex; align-items: center; gap: 18px; }
.hub-member-card h2 { margin: 3px 0 2px; font-size: 19px; }
.hub-member-card h2 small { color: var(--slate-500); font-size: 12px; }
.hub-member-card p { margin: 8px 0 0; }
.hub-member-role { color: var(--red); font-size: 12px; font-weight: 850; }

.hub-alert { margin-bottom: 20px; border: 1px solid var(--slate-300); border-left-width: 5px; border-radius: 10px; padding: 14px 17px; background: var(--white); font-weight: 650; }
.hub-alert-success { border-left-color: var(--green); }
.hub-alert-warning { border-left-color: var(--amber); }
.hub-alert-error { border-left-color: var(--red); }
.hub-alert-info { border-left-color: var(--blue); }

.hub-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: var(--slate-100); color: var(--slate-700); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.hub-badge-approved, .hub-badge-done, .hub-badge-active { background: #e4f4ec; color: var(--green); }
.hub-badge-sent { background: #e4f4ec; color: var(--green); }
.hub-badge-pending, .hub-badge-todo { background: #fff4dc; color: var(--amber); }
.hub-badge-queued, .hub-badge-partial { background: #fff4dc; color: var(--amber); }
.hub-badge-rejected, .hub-badge-blocked, .hub-badge-disabled, .hub-badge-declined { background: #fde7eb; color: var(--red); }
.hub-badge-failed { background: #fde7eb; color: var(--red); }
.hub-badge-in_progress { background: #e5f1fb; color: var(--blue); }
.hub-badge-cancelled { background: var(--slate-200); color: var(--slate-700); }
.hub-badge-complete, .hub-badge-confirmed, .hub-badge-received, .hub-badge-resolved, .hub-badge-completed, .hub-badge-mitigated, .hub-badge-filled { background: #e4f4ec; color: var(--green); }
.hub-badge-new, .hub-badge-inquiry, .hub-badge-not_started, .hub-badge-research, .hub-badge-open, .hub-badge-scheduled, .hub-badge-planned { background: #fff4dc; color: var(--amber); }
.hub-badge-contacted, .hub-badge-submitted, .hub-badge-monitoring, .hub-badge-invoiced, .hub-badge-medium { background: #e5f1fb; color: var(--blue); }
.hub-badge-denied, .hub-badge-emergency, .hub-badge-high, .hub-badge-critical { background: #fde7eb; color: var(--red); }
.hub-badge-closed, .hub-badge-not_applicable, .hub-badge-withdrawn, .hub-badge-waitlist, .hub-badge-draft { background: var(--slate-200); color: var(--slate-700); }

.hub-progress { height: 12px; overflow: hidden; border-radius: 999px; background: var(--slate-200); }
.hub-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #d9435c); }
.hub-mini-stat { display: grid; gap: 3px; min-height: 90px; place-content: center; border: 1px solid var(--slate-200); border-radius: 12px; color: var(--navy); text-align: center; text-decoration: none; }
.hub-mini-stat:hover { border-color: var(--red); color: var(--red); }
.hub-mini-stat strong { font-size: 28px; line-height: 1; }
.hub-mini-stat span { color: var(--slate-500); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hub-steps { margin: 0; padding-left: 22px; color: var(--slate-700); }
.hub-steps li { padding: 5px 0 5px 6px; }
.hub-record { border: 1px solid var(--slate-200); border-radius: 12px; padding: 18px; background: var(--slate-100); }
.hub-record h4 { margin: 16px 0 5px; color: var(--navy); }

.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list > li { padding: 15px 0; border-top: 1px solid var(--slate-200); }
.hub-list > li:first-child { border-top: 0; padding-top: 0; }
.hub-list > li:last-child { padding-bottom: 0; }
.hub-list-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 7px; color: var(--slate-500); font-size: 13px; }
.hub-list-title { color: var(--navy); font-weight: 850; text-decoration: none; }
.hub-muted { color: var(--slate-500); }
.hub-prose { color: var(--slate-700); white-space: normal; overflow-wrap: anywhere; }

.hub-event-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; padding: 0; }
.hub-event-image { width: 100%; height: 100%; min-height: 210px; object-fit: cover; background: var(--slate-100); }
.hub-event-image-placeholder { display: grid; place-items: center; min-height: 210px; background: linear-gradient(145deg, var(--navy), #294b69); color: rgba(255,255,255,.8); font-size: 48px; font-weight: 900; }
.hub-event-body { padding: 23px; }
.hub-event-topline { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.hub-event-body h2 { margin: 7px 0 6px; }
.hub-submitter-label { color: var(--slate-500); font-size: 12px; font-weight: 750; }
.hub-event-details { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 13px 0; color: var(--slate-700); font-size: 14px; font-weight: 650; }
.hub-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hub-internal-note { margin-top: 15px; padding: 13px 15px; background: #fff8e9; border-left: 4px solid var(--amber); border-radius: 5px; font-size: 14px; }

.hub-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hub-filter-bar a { padding: 8px 12px; border: 1px solid var(--slate-300); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 800; }
.hub-filter-bar a[aria-current="page"], .hub-filter-bar a:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.hub-day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 24px; color: var(--slate-500); font-size: 12px; font-weight: 800; }
.hub-day-nav a { border-radius: 999px; padding: 7px 11px; background: var(--navy); color: var(--white); text-decoration: none; }
.hub-day-nav a:hover { background: var(--red); color: var(--white); }
.hub-schedule-days { display: grid; gap: 26px; }
.hub-schedule-day { scroll-margin-top: 100px; }
.hub-schedule-day-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 0 4px; }
.hub-schedule-day-header h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(23px, 3vw, 32px); line-height: 1.1; }
.hub-schedule-day-header > span { color: var(--slate-500); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.hub-schedule-list { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--white); box-shadow: 0 8px 22px rgba(16, 34, 53, .05); }
.hub-schedule-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 22px; border-top: 1px solid var(--slate-200); }
.hub-schedule-row:first-child { border-top: 0; }
.hub-schedule-time strong, .hub-schedule-time span { display: block; }
.hub-schedule-time strong { color: var(--red); font-size: 18px; }
.hub-schedule-time span { color: var(--slate-500); font-size: 12px; }
.hub-schedule-title { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hub-schedule-title h3 { margin: 0; color: var(--navy); font-size: 18px; }
.hub-schedule-summary p { margin: 4px 0 1px; color: var(--slate-700); font-size: 14px; }
.hub-schedule-summary small { color: var(--slate-500); }
.hub-schedule-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; font-weight: 800; }
.hub-schedule-submitter { margin-top: 7px; color: var(--slate-500); }
.hub-member-steps { margin-top: 22px; border-top: 1px solid var(--slate-200); padding-top: 18px; color: var(--slate-700); font-size: 13px; }
.hub-member-steps > strong { color: var(--navy); }
.hub-member-steps ol { margin: 9px 0 0; padding-left: 20px; }
.hub-member-steps li + li { margin-top: 5px; }
.hub-break-link { overflow-wrap: anywhere; word-break: break-word; }

.hub-calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.hub-calendar-nav h2 { margin: 0; color: var(--navy); }
.hub-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--slate-200); border-left: 1px solid var(--slate-200); background: var(--white); }
.hub-calendar-heading { min-height: auto !important; padding: 9px !important; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hub-calendar-day { min-height: 132px; padding: 10px; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.hub-calendar-day.is-outside { background: var(--slate-100); color: var(--slate-500); }
.hub-calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--red); }
.hub-calendar-number { display: block; margin-bottom: 7px; font-weight: 900; }
.hub-calendar-event { display: block; margin-bottom: 5px; border-left: 3px solid var(--red); border-radius: 3px; padding: 5px 6px; background: #f8eaed; color: var(--navy); text-decoration: none; font-size: 11px; line-height: 1.25; font-weight: 800; }
.hub-calendar-event.is-pending { border-left-color: var(--amber); background: #fff5df; }
.hub-calendar-event.is-rejected { border-left-color: var(--slate-500); background: var(--slate-100); }
.hub-calendar-event.is-meeting { border-left-color: var(--blue); background: #e5f1fb; }
.hub-calendar-event.is-task { border-left-color: var(--green); background: #e4f4ec; }
.hub-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.hub-key::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--slate-500); }
.hub-key-meeting::before { background: var(--blue); }
.hub-key-task::before { background: var(--green); }

.hub-task-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; align-items: start; }
.hub-task-column { border-radius: 14px; padding: 13px; background: var(--slate-100); }
.hub-task-column h2 { margin: 0 0 12px; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: .07em; }
.hub-task { margin-bottom: 10px; border: 1px solid var(--slate-200); border-radius: 10px; padding: 14px; background: var(--white); }
.hub-task:last-child { margin-bottom: 0; }
.hub-task h3 { margin: 0 0 7px; font-size: 15px; }
.hub-task h3 a { color: var(--navy); text-decoration: none; }
.hub-task h3 a:hover { color: var(--red); }
.hub-task p { margin: 0 0 10px; color: var(--slate-700); font-size: 13px; }
.hub-task-meta { color: var(--slate-500); font-size: 11px; }
.hub-task .hub-task-open { margin: 12px 0 0; border-top: 1px solid var(--slate-200); padding-top: 10px; }
.hub-task-open a { font-weight: 850; text-decoration: none; }

.hub-stack { display: grid; gap: 20px; align-content: start; }
.hub-task-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 22px; align-items: start; }
.hub-sticky-card { position: sticky; top: 98px; }
.hub-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 22px 0 0; border: 1px solid var(--slate-200); border-radius: 11px; background: var(--slate-200); }
.hub-detail-list > div { min-width: 0; padding: 13px 15px; background: var(--slate-100); }
.hub-detail-list dt { color: var(--slate-500); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hub-detail-list dd { margin: 4px 0 0; color: var(--navy); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.hub-comment-list { display: grid; gap: 0; }
.hub-comment { border-top: 1px solid var(--slate-200); padding: 18px 0; }
.hub-comment:first-child { border-top: 0; padding-top: 0; }
.hub-comment:last-child { padding-bottom: 0; }
.hub-comment-author { display: flex; align-items: center; gap: 10px; }
.hub-comment-author > div { display: grid; }
.hub-comment-author small { color: var(--slate-500); }
.hub-comment p { margin: 11px 0 0; color: var(--slate-700); overflow-wrap: anywhere; }
.hub-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hub-timeline li { position: relative; display: grid; gap: 2px; margin-left: 6px; border-left: 2px solid var(--slate-200); padding: 0 0 18px 20px; color: var(--slate-700); font-size: 13px; }
.hub-timeline li::before { content: ''; position: absolute; top: 4px; left: -6px; width: 10px; height: 10px; border: 2px solid var(--white); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.hub-timeline li:last-child { padding-bottom: 0; }
.hub-timeline strong { color: var(--navy); }
.hub-timeline small, .hub-timeline time { color: var(--slate-500); }

.hub-workstream-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hub-workstream-card { display: grid; align-content: start; }
.hub-workstream-card > p { color: var(--slate-700); }
.hub-metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 16px 0; border: 1px solid var(--slate-200); border-radius: 10px; padding: 0; background: var(--slate-200); }
.hub-metric-row > div { min-width: 0; padding: 11px; background: var(--slate-100); text-align: center; }
.hub-metric-row dt { color: var(--slate-500); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.hub-metric-row dd { margin: 2px 0 0; color: var(--navy); font-size: 22px; font-weight: 900; }

.hub-notes-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.hub-note-textarea { min-height: 240px !important; }
.hub-note-card.is-pinned { border-color: #d7b769; box-shadow: 0 8px 25px rgba(162,92,5,.1); }
.hub-note-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; border-top: 1px solid var(--slate-200); padding-top: 14px; color: var(--slate-500); font-size: 12px; font-weight: 750; }
.hub-link-danger { color: var(--red); font-weight: 750; }

.hub-quick-card { display: grid; gap: 3px; min-height: 128px; border: 1px solid var(--slate-200); border-radius: 12px; padding: 18px; color: var(--navy); text-decoration: none; }
.hub-quick-card:hover { border-color: var(--red); color: var(--red); box-shadow: 0 8px 20px rgba(16,34,53,.07); }
.hub-quick-card strong { font-size: 30px; line-height: 1; }
.hub-quick-card span { font-weight: 900; }
.hub-quick-card small { color: var(--slate-500); }
.hub-project-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hub-project-strip > a { display: grid; align-content: start; gap: 7px; min-width: 0; border-radius: 10px; padding: 14px; background: var(--slate-100); color: var(--navy); text-decoration: none; }
.hub-project-strip > a:hover { background: #e8edf3; color: var(--red); }
.hub-project-strip strong, .hub-project-strip small { overflow-wrap: anywhere; }
.hub-project-strip small { color: var(--slate-500); }

.hub-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.hub-chat-stream { max-height: 610px; overflow-y: auto; padding-right: 8px; }
.hub-chat-message { padding: 16px 0; border-top: 1px solid var(--slate-200); }
.hub-chat-message:first-child { border-top: 0; padding-top: 0; }
.hub-chat-message p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-chat-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--slate-500); font-size: 12px; }
.hub-chat-meta strong { color: var(--navy); font-size: 13px; }
.hub-chat-meta .hub-person { min-width: 0; }

.hub-table-wrap { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-table th, .hub-table td { padding: 12px 11px; border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: top; }
.hub-table th { color: var(--navy); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hub-table tr:last-child td { border-bottom: 0; }

.hub-empty { padding: 45px 22px; text-align: center; color: var(--slate-500); }
.hub-empty h2 { margin: 12px 0 5px; color: var(--navy); }
.hub-empty p { margin: 0 auto; max-width: 480px; }
.hub-spacer { height: 20px; }
.hub-mt { margin-top: 18px; }
.hub-mt-small { margin-top: 14px; }

.hub-login-shell { width: min(460px, calc(100% - 32px)); margin: 50px auto; }
.hub-login-card { padding: 34px; }
.hub-login-card h1,
.hub-login-card h2 { margin: 6px 0 8px; color: var(--navy); font-size: 34px; line-height: 1.05; }
.hub-login-card > p { margin-top: 0; color: var(--slate-700); }
.hub-access-shell { width: min(1050px, 100%); margin: 12px auto 0; }
.hub-access-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 38px;
    align-items: center;
    margin-bottom: 22px;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy-deep), #274b6a);
    color: var(--white);
    box-shadow: var(--shadow);
}
.hub-access-hero::after { content: ''; position: absolute; right: -100px; bottom: -150px; width: 340px; height: 340px; border: 50px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.hub-access-hero > * { position: relative; z-index: 1; }
.hub-access-hero .hub-eyebrow { color: #ffb2bd; }
.hub-access-hero h1 { max-width: 670px; margin: 7px 0 14px; color: var(--white); font-size: clamp(38px, 6vw, 62px); line-height: .98; letter-spacing: -.045em; }
.hub-access-hero p:not(.hub-eyebrow) { max-width: 650px; margin: 0; color: #dce5ed; font-size: 17px; }
.hub-access-hero .hub-form-actions { margin-top: 25px; }
.hub-access-points { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.hub-access-points li { display: grid; gap: 3px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.07); }
.hub-access-points strong { color: var(--white); }
.hub-access-points span { color: #dce5ed; font-size: 13px; }
.hub-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.hub-access-grid > section { scroll-margin-top: 100px; }
.hub-access-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hub-access-return { margin: 22px 0 0; text-align: center; }
.hub-request-list { display: grid; gap: 14px; }
.hub-request-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-100); }
.hub-request-card h3 { margin: 3px 0 1px; color: var(--navy); font-size: 20px; }
.hub-request-card p { margin: 5px 0 0; }
.hub-request-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub-request-actions form { margin: 0; }

.hub-subcard { align-content: start; border: 1px solid var(--slate-200); border-radius: 12px; padding: 19px; background: var(--slate-100); }
.hub-subcard h3 { margin: 0; }
.hub-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hub-media-item { overflow: hidden; display: grid; align-content: start; gap: 10px; border: 1px solid var(--slate-200); border-radius: 12px; padding: 10px; background: var(--white); }
.hub-media-item > a:first-child { border-radius: 8px; overflow: hidden; }
.hub-media-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--slate-100); }
.hub-file-tile { display: grid; place-items: center; min-height: 130px; padding: 20px; background: var(--navy); color: var(--white); text-align: center; text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hub-file-tile:hover { background: var(--red); color: var(--white); }
.hub-media-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.hub-media-copy small { color: var(--slate-500); }
.hub-status-list { display: grid; gap: 10px; }
.hub-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-top: 1px solid var(--slate-200); padding-top: 12px; }
.hub-status-row:first-child { border-top: 0; padding-top: 0; }
.hub-status-row > div { display: grid; gap: 3px; }
.hub-status-row small { color: var(--slate-500); white-space: pre-wrap; }
.hub-review-list { display: grid; gap: 16px; }
.hub-review-card { border: 1px solid var(--slate-200); border-radius: 13px; padding: 19px; background: var(--slate-100); }
.hub-review-card .hub-card-header { margin-bottom: 12px; }
.hub-proposal-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.hub-proposal-preview > div { display: grid; gap: 3px; border-radius: 9px; padding: 11px 12px; background: var(--white); }
.hub-proposal-preview small { color: var(--slate-500); font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.hub-proposal-wide { grid-column: 1 / -1; }
.hub-proposal-image { width: min(100%, 520px); max-height: 260px; object-fit: cover; border-radius: 8px; }

.hub-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 34px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 12px;
}
.hub-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.hub-legal-document { max-width: 900px; margin: 0 auto; }
.hub-legal-document h2 { margin: 30px 0 8px; font-size: 21px; }
.hub-legal-document h2:first-of-type { margin-top: 22px; }
.hub-legal-document p, .hub-legal-document li { color: var(--slate-700); }
.hub-legal-document li + li { margin-top: 7px; }
.hub-policy-links { display: grid; gap: 10px; margin-top: 22px; }
.hub-policy-links a { display: grid; gap: 3px; border: 1px solid var(--slate-200); border-radius: 10px; padding: 14px 15px; color: var(--navy); text-decoration: none; }
.hub-policy-links a:hover { border-color: var(--red); background: var(--slate-100); }
.hub-policy-links span { color: var(--slate-500); font-size: 13px; }
.hub-profile-policies { margin-top: 28px; border-top: 1px solid var(--slate-200); padding-top: 22px; }
.hub-profile-policies h2 { margin-top: 0; }
.hub-profile-policies p { margin-bottom: 10px; }
.hub-policy-status { margin: 9px 0 0; color: var(--slate-500); }

@media (max-width: 1050px) {
    .hub-menu-button { display: inline-flex; }
    .hub-nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; max-height: calc(100vh - 92px); overflow-y: auto; margin: 0; padding: 12px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .hub-nav.is-open { display: flex; }
    .hub-nav-home,
    .hub-nav-group > summary { padding: 11px 12px; }
    .hub-nav-dropdown { position: static; min-width: 0; margin: 3px 8px 8px; padding: 5px; transform: none; border: 0; border-left: 3px solid var(--slate-200); border-radius: 0 9px 9px 0; background: var(--slate-100); box-shadow: none; }
    .hub-nav-dropdown a:hover,
    .hub-nav-dropdown a[aria-current="page"] { background: var(--white); }
    .hub-account-menu { margin-left: 0; }
    .hub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-task-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-task-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .hub-project-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .hub-topbar-inner { padding: 0 16px; gap: 10px; }
    .hub-brand small { display: none; }
    .hub-account-menu { border-left: 0; padding-left: 0; }
    .hub-account-menu > summary > span:not(.hub-avatar):not(.hub-nav-chevron) { display: none; }
    .hub-shell { padding-top: 28px; }
    .hub-page-heading { display: block; }
    .hub-page-actions { margin-top: 18px; }
    .hub-grid-2, .hub-grid-3, .hub-grid-4, .hub-form-row, .hub-chat-layout { grid-template-columns: 1fr; }
    .hub-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-span-2 { grid-column: auto; }
    .hub-event-card { grid-template-columns: 1fr; }
    .hub-event-image, .hub-event-image-placeholder { height: 220px; min-height: 220px; }
    .hub-schedule-row { grid-template-columns: 1fr; gap: 10px; }
    .hub-schedule-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .hub-schedule-day-header { align-items: flex-start; flex-direction: column; gap: 5px; }
    .hub-task-board { grid-template-columns: 1fr; }
    .hub-task-detail-layout, .hub-notes-layout, .hub-workstream-grid { grid-template-columns: 1fr; }
    .hub-sticky-card { position: static; }
    .hub-project-strip { grid-template-columns: 1fr; }
    .hub-calendar { min-width: 820px; }
    .hub-calendar-scroll { overflow-x: auto; padding-bottom: 8px; }
    .hub-access-hero, .hub-access-grid { grid-template-columns: 1fr; }
    .hub-access-hero { gap: 26px; }
    .hub-request-card { grid-template-columns: 1fr; }
    .hub-request-actions { justify-content: flex-start; }
    .hub-media-grid, .hub-proposal-preview { grid-template-columns: 1fr; }
    .hub-proposal-wide { grid-column: auto; }
    .hub-footer { flex-direction: column; }
    .hub-footer nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hub-brand strong { font-size: 13px; }
    .hub-brand-logo { width: 46px; height: 46px; border-radius: 8px; }
    .hub-card { padding: 19px; }
    .hub-event-body { padding: 19px; }
    .hub-page-heading h1 { font-size: 34px; }
    .hub-member-grid { grid-template-columns: 1fr; }
    .hub-profile-intro { align-items: flex-start; }
    .hub-shell { width: min(100% - 22px, 1180px); padding-top: 24px; }
    .hub-topbar-inner { min-height: 68px; padding: 0 11px; }
    .hub-menu-button { min-height: 44px; padding-inline: 12px; }
    .hub-nav { top: 68px; left: 8px; right: 8px; max-height: calc(100vh - 76px); }
    .hub-account-menu > summary { min-width: 44px; min-height: 44px; justify-content: center; }
    .hub-detail-list, .hub-metric-row { grid-template-columns: 1fr; }
    .hub-inline-form { align-items: stretch; flex-direction: column; }
    .hub-inline-form .hub-button { width: 100%; }
    .hub-page-actions, .hub-page-actions .hub-button { width: 100%; }
    .hub-form-actions .hub-button { flex: 1 1 100%; }
    .hub-footer { width: min(100% - 22px, 1180px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
