@font-face { font-family: "Hub Jakarta"; src: url("/hub-jakarta.woff2?v=20261119-v2r2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Typography and density follow the BacaGratis reference; Hub retains its identity. */
:root { --kh-font: "Hub Jakarta", Arial, sans-serif; --kh-header-height: 82px; }
html:has([data-hub-shell]) { scroll-padding-top: calc(var(--kh-header-height) + 16px); }
[data-hub-ui], [data-hub-public] { font-family: var(--kh-font); font-size: 15px; line-height: 1.65; }
[data-hub-ui] :is(h1,h2,h3,h4,input,select,textarea,button), [data-hub-public] :is(h1,h2,h3,h4,input,select,textarea,button) { font-family: var(--kh-font); }
[data-hub-ui] :is(.primary-button,.secondary-button,.hub-primary,.spina-primary,.spina-secondary,.kh-ask-button),
[data-hub-public] :is(.primary-button,.secondary-button) { font-family: var(--kh-font); font-size: 13px; min-height: 44px; padding: 9px 14px; }
[data-hub-ui] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
[data-hub-public] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size: 14px; min-height: 44px; }
[data-hub-ui] :is(.form-group>label,.hub-field,.spina-card label,.spina-modes legend,.form-section p) { font-size: 14px; }
[data-hub-ui] :is(.form-group>small,.upload-tile small,.autosave-bar,.hub-field-note) { font-size: 12px; }
[data-hub-ui][data-hub-shell] .sidebar { width: 232px; padding: 20px 12px 12px; }
[data-hub-ui][data-hub-shell] .main { margin-left: 232px; }
[data-hub-ui][data-hub-shell] .container { max-width: 1600px; padding: 0 28px 32px; }
[data-hub-ui][data-hub-shell] .page-header { position: sticky; top: 0; z-index: 90; background: #fff; margin: 0 -28px 24px; padding: 14px 28px; min-height: 82px; border-bottom: 1px solid var(--kh-line); box-shadow: 0 2px 5px #182c4605; }
[data-hub-ui][data-hub-shell] .page-header h1 { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
[data-hub-ui][data-hub-shell] .page-header .eyebrow { font-size: 12px; line-height: 1.5; margin-bottom: 3px; }
[data-hub-ui][data-hub-shell] .brand strong { font-size: 16px; }
[data-hub-ui][data-hub-shell] .side-nav a, [data-hub-ui] .hub-nav-footer a { font-size: 13px; line-height: 1.5; min-height: 44px; padding: 9px 12px; }
[data-hub-ui] .hub-nav-group>summary { font-size: 12px; }
[data-hub-ui] .header-profile-copy strong { font-family: var(--kh-font); font-size: 13px; max-width: 174px; }
[data-hub-ui] .header-profile-copy small { font-size: 12px; }
[data-hub-ui] .header-profile-trigger { min-height: 44px; }
[data-hub-ui] .header-notification-badge, [data-hub-ui] .mobile-notification-badge { font-family: var(--kh-font); font-size: 10px; }
[data-hub-ui] .hub-welcome h2 { font-size: 22px; }
[data-hub-ui] .hub-welcome p, [data-hub-ui] .hub-recent-list a { font-size: 14px; }
[data-hub-ui] :is(.hub-stat span,.hub-stat small,.hub-recent-list li span,.hub-task-intro,.hub-service-copy p,.hub-service-state) { font-size: 12px; }
[data-hub-ui] .hub-service-copy h3 { font-size: 14px; line-height: 1.6; }
[data-hub-ui] .hub-service-link { padding: 15px 18px; min-height: 84px; }
[data-hub-ui] .hub-section-head h2 { font-size: 15px; }
[data-hub-ui] .hub-stat strong { font-size: 28px; }
[data-hub-ui] :is(.section-card,.form-card,.detail-card,.spina-card,.hub-profile-panel) { padding: 20px; }
[data-hub-ui] :is(.section-head h2,.detail-title h2,.hub-profile-panel h2,.spina-heading h2) { font-size: 18px; }
[data-hub-ui] :is(.section-head p,.detail-title p,.help-step p,.faq-answer,.legal-basis-copy p,.help-hero p,.hub-profile-panel p) { font-size: 13px; line-height: 1.85; }
[data-hub-ui] .main small { font-size: 12px; }
[data-hub-ui][data-hub-shell] .main p { font-size: 13px; line-height: 1.85; }
[data-hub-ui] :is(.help-main,.help-side,.help-check-card,.help-flow-item,.help-doc-row) p { font-size: 13px !important; line-height: 1.85 !important; }
[data-hub-ui] :is(.help-check-card,.help-doc-row,.help-flow-item) strong { font-size: 13px; line-height: 1.7; }
[data-hub-ui] :is(.help-tags span,.help-doc-status,.help-flow-item>span,.help-step-number) { font-size: 12px; }
[data-hub-ui] .data-table strong { font-size: 13px; }
[data-hub-ui] :is(.eyebrow,.metric-title,.metric-sub,.hub-list-summary) { font-size: 12px; }
[data-hub-ui] .help-hero { padding: 20px; gap: 16px; }
[data-hub-ui] .help-hero h2 { font-size: 20px; }
[data-hub-ui] :is(.help-step h3,.faq-item summary,.legal-basis-copy h3,.form-section h3) { font-size: 14px; line-height: 1.7; }
[data-hub-ui] .legal-basis-card { padding: 18px 20px; background: #fff; }
[data-hub-ui] :is(.faq-group-head p,.legal-admin-upload summary,.hub-profile-help) { font-size: 13px; }
[data-hub-ui] :is(.info-strip,.flash,.hub-service-notice,.hub-notice) { font-size: 13px; line-height: 1.8; padding: 14px 16px; }
[data-hub-ui] .hub-service-notice h2 { font-size: 18px; margin: 0 0 6px; }
[data-hub-ui] .hub-service-notice p { margin: 0; }
[data-hub-ui] .hub-service-notice { margin-bottom: 24px; }
[data-hub-ui] .hub-budget-nav a, [data-hub-ui] .hub-form-nav a { font-size: 13px; }
[data-hub-ui] .search-input input { min-height: 44px; }
[data-hub-ui] .data-table { font-family: var(--kh-font); font-size: 13px; }
[data-hub-ui] .data-table th { font-size: 12px; padding: 12px 10px; font-weight: 700; letter-spacing: 0; }
[data-hub-ui] .data-table td { font-size: 13px; padding: 15px 10px; }
[data-hub-ui] .data-table small { font-size: 12px; line-height: 1.7; }
[data-hub-ui] .application-table { min-width: 0; table-layout: fixed; }
[data-hub-ui] .application-table :is(.code-cell,.applicant-cell,.publication-cell,.title-cell) { min-width: 0; overflow-wrap: anywhere; }
[data-hub-ui] .application-table .publication-cell .title-cell { min-width: 0; max-width: none; }
[data-hub-ui] .application-table .publication-cell .title-cell strong { font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; }
[data-hub-ui] .application-table th:nth-child(1) { width: 11%; }
[data-hub-ui] .application-table th:nth-child(2) { width: 16%; }
[data-hub-ui] .application-table th:nth-child(3) { width: 26%; }
[data-hub-ui] .application-table th:nth-child(4) { width: 12%; }
[data-hub-ui] .application-table th:nth-child(5) { width: 13%; }
[data-hub-ui] .application-table th:nth-child(6) { width: 10%; }
[data-hub-ui] .application-table th:nth-child(7) { width: 12%; }
[data-hub-ui] .application-table :is(.amount-cell,.date-cell) { font-size: 12px; }
[data-hub-ui] .application-table .amount-cell { white-space: normal; overflow-wrap: anywhere; }
[data-hub-ui] .status-badge { font-family: var(--kh-font); font-size: 12px; padding: 5px 8px; }
[data-hub-ui] .action-cell .text-link { font-size: 12px; white-space: normal; }
[data-hub-public] .main-nav a { font-size: 13px; }
[data-hub-public] :is(.record-meta,.section-intro,.scope-label,.collection-note,.mapping-note,.hero-actions a,.hero-actions button) { font-size: 13px; }
[data-hub-public] .publication-card :is(p,small), [data-hub-public] .record-card p { font-size: 13px; line-height: 1.8; }

/* Panel header/footer stay visible while the notification items scroll. */
[data-hub-ui] .hub-notification-panel { position: fixed; z-index: 160; top: calc(var(--kh-header-height) + 8px); right: 20px; width: min(416px,calc(100vw - 24px)); max-height: min(600px,calc(100dvh - var(--kh-header-height) - 28px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kh-line); border-radius: 12px; box-shadow: 0 14px 44px #182c4626; overflow: hidden; }
[data-hub-ui] .hub-notification-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--kh-line); background: #fff; }
[data-hub-ui] .hub-notification-heading h2 { margin: 0; font-size: 16px; font-weight: 700; }
[data-hub-ui] .hub-notification-heading p { margin: 3px 0 0; color: var(--kh-muted); font-size: 12px; }
[data-hub-ui] .hub-notification-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; background: #fff; border: 1px solid var(--kh-line); border-radius: 8px; color: var(--kh-muted); font: 400 26px/1 var(--kh-font); cursor: pointer; }
[data-hub-ui] .hub-notification-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; scrollbar-gutter: stable; }
[data-hub-ui] .hub-notification-item { margin: 0; padding: 0; background: #fff; border-bottom: 1px solid #edf0f5; }
[data-hub-ui] .hub-notification-item:last-child { border-bottom: 0; }
[data-hub-ui] .hub-notification-item.is-unread { background: #fff8f9; }
[data-hub-ui] .hub-notification-open { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 10px; width: 100%; min-height: 44px; padding: 15px 16px; text-align: left; color: var(--kh-text); background: transparent; border: 0; border-radius: 0; font: 400 13px/1.7 var(--kh-font); cursor: pointer; }
[data-hub-ui] .hub-notification-open:hover { background: #f4f6f9; }
[data-hub-ui] .hub-notification-open:focus-visible { outline-offset: -3px; }
[data-hub-ui] .hub-notification-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--kh-line); border-radius: 8px; color: #637184; background: #fff; }
[data-hub-ui] .hub-notification-copy { min-width: 0; }
[data-hub-ui] .hub-notification-copy strong { display: block; font-size: 13px; line-height: 1.6; color: var(--kh-ink); font-weight: 700; }
[data-hub-ui] .hub-notification-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; margin-top: 3px; color: var(--kh-muted); overflow-wrap: anywhere; }
[data-hub-ui] .hub-notification-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: var(--kh-muted); margin-top: 6px; }
[data-hub-ui] .hub-notification-read-state { display: inline-flex; align-items: center; gap: 5px; }
[data-hub-ui] .is-unread .hub-notification-read-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--kh-brand); }
[data-hub-ui] .hub-notification-arrow { margin-top: 3px; color: var(--kh-muted); }
[data-hub-ui] .hub-notification-footer { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0,1fr); padding: 8px 14px; border-top: 1px solid var(--kh-line); background: #fff; }
[data-hub-ui] .hub-notifications-mark-all { margin: 0; }
[data-hub-ui] .hub-notifications-mark-all button, [data-hub-ui] .hub-notification-footer>a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 9px 12px; color: var(--kh-brand-hover); background: transparent; border: 0; border-radius: 7px; font: 600 12px/1.6 var(--kh-font); text-decoration: none; cursor: pointer; }
[data-hub-ui] .hub-notification-footer>a { border-top: 1px solid var(--kh-line); border-radius: 0; }
[data-hub-ui] .hub-notifications-mark-all button:hover:not(:disabled), [data-hub-ui] .hub-notification-footer>a:hover { background: var(--kh-brand-soft); }
[data-hub-ui] .hub-notifications-mark-all button:disabled { color: var(--kh-muted); opacity: .65; cursor: default; }
[data-hub-ui] .hub-notification-empty { padding: 28px 20px; text-align: center; color: var(--kh-muted); }
[data-hub-ui] .hub-notification-empty p { margin: 0; font-size: 14px; color: var(--kh-ink); }
[data-hub-ui] .hub-notification-empty span { font-size: 12px; }
[data-hub-ui] .hub-notifications-page { margin-top: 0; }
[data-hub-ui] .hub-notifications-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
[data-hub-ui] .hub-notifications-page-heading h2 { margin: 0; font-size: 18px; }
[data-hub-ui] .hub-notifications-page-heading p { margin: 5px 0 0; font-size: 13px; color: var(--kh-muted); }
[data-hub-ui] .hub-notification-filters { display: flex; gap: 6px; border-bottom: 1px solid var(--kh-line); margin-top: 20px; padding-bottom: 8px; }
[data-hub-ui] .hub-notification-filters a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border-radius: 7px; font-size: 13px; text-decoration: none; color: var(--kh-muted); }
[data-hub-ui] .hub-notification-filters a[aria-current] { background: var(--kh-brand-soft); color: var(--kh-brand-hover); font-weight: 600; }
[data-hub-ui] .hub-notifications-history { border: 1px solid var(--kh-line); border-radius: 10px; overflow: hidden; margin-top: 16px; }
[data-hub-ui] .hub-notifications-history .hub-notification-open { padding: 18px; }
[data-hub-ui] .hub-notification-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 12px; }
[data-hub-ui] .hub-notification-pagination span { flex: 1; color: var(--kh-muted); }
[data-hub-ui] :is(.hub-notification-pagination a,.hub-notifications-back) { min-height: 44px; display: inline-flex; align-items: center; color: var(--kh-brand-hover); }
[data-hub-ui] .hub-notification-detail { padding: 18px 0; font-size: 14px; }
[data-hub-ui] .hub-notification-detail h3 { font-size: 17px; }
[data-hub-ui] .ai-admin { margin-top: 0; }
[data-hub-ui] :is(.ai-admin,.ai-workspace) h2 { font-size: 20px; }
[data-hub-ui] .ai-settings-panel, [data-hub-ui] .ai-usage-cards>div { border-color: var(--kh-line); border-radius: var(--kh-radius); box-shadow: var(--kh-shadow); padding: 20px; }
[data-hub-ui] .ai-settings-panel h3 { font-size: 16px; }
[data-hub-ui] :is(.ai-admin,.ai-workspace) a { color: var(--kh-brand-hover); }
[data-hub-ui] :is(.ai-admin,.ai-workspace) :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #175cd3; outline-offset: 3px; }
@media (min-width:901px) {
  [data-hub-ui] :is(.help-side,.verification-check-pane) { top: calc(var(--kh-header-height) + 16px); }
  [data-hub-ui] .verification-check-pane { max-height: calc(100dvh - var(--kh-header-height) - 32px); }
}

@media (min-width:901px) and (max-width:1200px) {
  [data-hub-ui][data-hub-shell] .sidebar { width: 216px; }
  [data-hub-ui][data-hub-shell] .main { margin-left: 216px; }
  [data-hub-ui][data-hub-shell] .container { padding-inline: 24px; }
  [data-hub-ui][data-hub-shell] .page-header { margin-inline: -24px; padding-inline: 24px; }
}
@media (min-width:901px) and (max-width:1100px) {
  [data-hub-ui] .table-wrap:has(.application-table) { overflow: visible; border: 0; }
  [data-hub-ui] .application-table, [data-hub-ui] .application-table tbody { display: block; width: 100%; }
  [data-hub-ui] .application-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  [data-hub-ui] .application-table tbody { display: grid; gap: 14px; }
  [data-hub-ui] .application-table tbody tr { display: flex; flex-direction: column; gap: 10px; width: 100%; border: 1px solid var(--kh-line); border-radius: 10px; padding: 18px; }
  [data-hub-ui] .application-table tbody td { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; width: 100%; border: 0; padding: 0; text-align: left; white-space: normal; }
  [data-hub-ui] .application-table tbody td::before { content: attr(data-label); font-size: 12px; color: var(--kh-muted); }
  [data-hub-ui] .application-table tbody .publication-cell { order: -1; display: block; }
  [data-hub-ui] .application-table tbody .publication-cell::before, [data-hub-ui] .application-table tbody .action-cell::before { display: none; }
  [data-hub-ui] .application-table tbody .action-cell { display: flex; justify-content: flex-end; }
}
@media (max-width:900px) {
  :root { --kh-header-height: 64px; }
  [data-hub-ui][data-hub-shell] .main { margin-left: 0; padding-top: 80px; }
  [data-hub-ui][data-hub-shell] .container { padding-inline: 20px; }
  [data-hub-ui][data-hub-shell] .mobile-top { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100; padding-inline: 16px; }
  [data-hub-ui][data-hub-shell] .mobile-brand strong { font-size: 14px; line-height: 1.4; max-width: calc(100vw - 162px); white-space: normal; overflow-wrap: anywhere; }
  [data-hub-ui][data-hub-shell] .mobile-brand small { font-size: 11px; }
  [data-hub-ui][data-hub-shell] .page-header { position: static; top: auto; z-index: auto; min-height: 0; margin: 0 0 20px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  [data-hub-ui][data-hub-shell] .page-header-copy { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  [data-hub-ui][data-hub-shell] .page-header:not(:has(.header-page-actions)) { margin: 0; }
  [data-hub-ui][data-hub-shell] .header-account-tools:has(.header-page-actions) { margin: 0; }
  [data-hub-ui] .header-page-actions, [data-hub-ui] .header-page-actions .page-actions { width: 100%; }
  [data-hub-ui] .header-page-actions .page-actions { justify-content: flex-start; gap: 8px; }
  [data-hub-ui] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea), [data-hub-public] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size: 16px; }
  [data-hub-ui] .hub-welcome h2 { font-size: 20px; }
  [data-hub-ui] .responsive-table tbody td { font-size: 13px; }
  [data-hub-ui] .application-table .publication-cell .title-cell strong { font-size: 14px; }
  [data-hub-ui] .hub-notification-panel { max-height: calc(100dvh - 166px - env(safe-area-inset-bottom)); }
}
@media (max-width:620px) {
  [data-hub-ui][data-hub-shell] .container { padding-inline: 16px; }
  [data-hub-ui] :is(.section-card,.form-card,.detail-card,.spina-card,.hub-profile-panel) { padding: 18px 16px; }
  [data-hub-ui] .help-hero { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 4px 12px; }
  [data-hub-ui] .help-hero>div:not(.help-hero-icon) { display: contents; }
  [data-hub-ui] .help-hero-icon { width: 36px; height: 36px; grid-column: 1; grid-row: 1 / span 2; }
  [data-hub-ui] .help-hero :is(.eyebrow,h2) { grid-column: 2; }
  [data-hub-ui] .help-hero h2 { font-size: 18px; margin: 0; }
  [data-hub-ui] .help-hero p { grid-column: 1 / -1; margin: 10px 0 0; }
  [data-hub-ui] .legal-basis-card { grid-template-columns: 36px minmax(0,1fr); gap: 6px 12px; }
  [data-hub-ui] .legal-basis-copy { display: contents; }
  [data-hub-ui] .legal-basis-icon { width: 36px; height: 36px; grid-column: 1; grid-row: 1 / span 2; }
  [data-hub-ui] .legal-basis-copy :is(.eyebrow,h3) { grid-column: 2; }
  [data-hub-ui] .legal-basis-copy h3 { margin: 0; }
  [data-hub-ui] .legal-basis-copy p { grid-column: 1 / -1; margin: 8px 0; }
  [data-hub-ui] .hub-notification-open { gap: 8px; padding: 14px 12px; grid-template-columns: 30px minmax(0,1fr); }
  [data-hub-ui] .hub-notification-heading { padding: 10px 14px; }
  [data-hub-ui] .hub-notification-footer { padding: 6px 10px; }
  [data-hub-ui] .hub-notifications-page-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  [data-hub-ui] .hub-notifications-history .hub-notification-open { padding: 14px 12px; }
}
@media (max-width:900px) and (max-height:560px) {
  [data-hub-ui] .hub-notification-heading { padding-block: 5px; }
  [data-hub-ui] .hub-notification-heading p { display: none; }
  [data-hub-ui] .hub-notification-footer { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-block: 4px; }
  [data-hub-ui] .hub-notification-footer>a { border-top: 0; border-left: 1px solid var(--kh-line); }
}
@media print {
  html:has([data-hub-shell]) { scroll-padding-top: 0; }
  [data-hub-ui] .hub-notification-panel { display: none !important; }
  [data-hub-ui][data-hub-shell] .main { margin: 0; padding: 0; }
  [data-hub-ui][data-hub-shell] .container { padding: 0; max-width: none; }
  [data-hub-ui][data-hub-shell] .page-header { position: static; }
}
