/* Accounts portal only. Registration pages keep their independent layout. */
.portal-page {
  --brand: #087f78;
  --brand-strong: #07645f;
  --brand-soft: #e9f5f2;
  --ink: #203b40;
  --muted: #62777d;
  --line: #dce7e7;
  --bg: #f3f7f7;
  background: radial-gradient(ellipse at 5% 0, #deefea 0, transparent 38%), var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.portal-page [hidden] { display: none !important; }
.portal-page .skip-link { position: fixed; left: 24px; top: -80px; z-index: 50; padding: 12px 20px; border-radius: 8px; background: var(--brand-strong); color: #fff; }
.portal-page .skip-link:focus { top: 12px; }
.portal-page :is(button, a, summary, input, select, textarea):focus-visible { outline: 3px solid #087f7860; outline-offset: 3px; }
.portal-page .topbar { min-height: 76px; height: auto; padding: 14px max(28px, calc((100vw - 1384px) / 2)); gap: 12px; background: #ffffffed; backdrop-filter: blur(16px); }
.portal-page .brand-mark { flex: 0 0 42px; box-shadow: 0 5px 12px #087f7814; border-radius: 12px; letter-spacing: -.03em; }
.portal-page .brand-copy { min-width: 0; }
.portal-page .topbar strong { font-size: 17px; letter-spacing: .01em; }
.portal-page .topbar small { font-size: 12px; margin-top: 1px; }
.portal-page .top-actions { gap: 10px; }
.portal-page #current-user:not(:empty) { padding: 6px 12px; border-right: 1px solid var(--line); max-width: 200px; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.portal-page :is(.primary, .ghost, .danger) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.portal-page .primary { background: var(--brand); box-shadow: 0 2px 3px #087f7812; }
.portal-page .primary:hover:not(:disabled) { background: var(--brand-strong); }
.portal-page .ghost { background: #fff; border-color: #cddfdd; color: var(--brand-strong); }
.portal-page .ghost:hover:not(:disabled) { background: #eef7f4; border-color: #97bcb5; }
.portal-page .danger { background: #fff7f5; border-color: #efd5ce; }
.portal-page .danger:hover:not(:disabled) { background: #ffede8; border-color: #e3b0a4; }
.portal-page button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.portal-page main { max-width: 1440px; padding: 30px 28px 32px; }
.portal-page .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 4px 27px; }
.portal-page .eyebrow { margin: 0 0 7px; font-size: 10px; letter-spacing: .16em; }
.portal-page .hero h1 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.4; letter-spacing: -.025em; margin: 0 0 8px; }
.portal-page .hero p:not(.eyebrow) { margin: 0; font-size: 14px; line-height: 1.7; }
.portal-page .status-card { display: block; min-width: 210px; padding: 13px 18px; border-color: #d3e5df; border-radius: 12px; background: #f9fcfb; box-shadow: none; }
.portal-page .status-card strong { font-size: 13px; font-weight: 600; }
.portal-page .status-card span { width: 8px; height: 8px; }
.portal-page .status-card span.online { box-shadow: 0 0 0 4px #16a56f12; }
.portal-page .status-card small { margin-top: 4px; font-size: 12px; }
.portal-page .workspace { border-radius: 16px; box-shadow: 0 8px 32px #25454006; overflow: clip; }
.portal-page .tabs { align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 22px; background: #fff; }
.portal-page .tabs button { position: relative; min-height: 42px; padding: 10px 19px; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 9px; }
.portal-page .tabs button:hover { color: var(--brand-strong); background: #f3f8f6; }
.portal-page .tabs button.active { color: var(--brand-strong); background: var(--brand-soft); box-shadow: none; }
.portal-page .tabs button.active::after { content: ''; position: absolute; width: 18px; height: 3px; border-radius: 4px; background: var(--brand); bottom: -15px; left: calc(50% - 9px); }
.portal-page #registration-admin-link { margin-left: auto; min-height: 36px; font-size: 12px; border-color: transparent; background: #f4f8f7; }
.portal-page .panel { padding: 24px 26px 26px; }
.portal-page .panel-head { padding-bottom: 18px; margin-bottom: 20px; gap: 18px; }
.portal-page .panel h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.02em; }
.portal-page .panel-head p { font-size: 13px; line-height: 1.7; }
.portal-page .panel-head .readonly-note { margin-top: 6px; font-weight: 400; font-size: 12px; }
.portal-page .org-selector-box { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfa; flex-shrink: 0; }
.portal-page .org-selector-box label { white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--muted); }
.portal-page .org-selector-box select { min-height: 36px; min-width: 200px; max-width: 310px; border-color: transparent; background-color: transparent; font-weight: 600; padding: 6px 25px 6px 7px; }
.portal-page label { font-size: 13px; line-height: 1.5; }
.portal-page :is(input, select, textarea) { min-width: 0; border-color: #d3e0df; border-radius: 8px; font-size: 14px; }
.portal-page :is(input, select) { min-height: 40px; }
.portal-page :is(input, textarea)::placeholder { color: #819195; font-weight: 400; }
.portal-page input[type=checkbox] { width: 17px; height: 17px; min-height: 17px; accent-color: var(--brand); }
.portal-page .action-toolbar { padding: 0; background: transparent; border: 0; border-radius: 0; margin: 0 0 16px; }
.portal-page .selection-count { font-size: 12px; font-weight: 500; }
.portal-page .batch-import-tools { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 16px; }
.portal-page .batch-import-tools > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; cursor: pointer; list-style: none; color: var(--brand-strong); font-size: 13px; font-weight: 600; border-radius: 10px; }
.portal-page .batch-import-tools > summary::-webkit-details-marker { display: none; }
.portal-page .batch-import-tools > summary:hover { background: #f7fbf9; }
.portal-page .batch-import-tools summary small { display: inline-block; margin-left: 15px; color: var(--muted); font-size: 12px; font-weight: 400; }
.portal-page .disclosure-arrow { flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 3px 0; }
.portal-page .batch-import-tools[open] .disclosure-arrow { transform: rotate(225deg); margin-top: 4px; }
.portal-page .batch-import-tools[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; background: #f7fbf9; }
.portal-page .batch-import-content { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; }
.portal-page .batch-import-password { margin: 0; padding: 0; background: transparent; border: 0; }
.portal-page .batch-import-password input { width: 100%; }
.portal-page .batch-import-password small { max-width: 540px; font-size: 12px; }
.portal-page .batch-import-buttons { display: flex; gap: 8px; padding-top: 25px; flex-wrap: wrap; }
.portal-page .batch-import-hint { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid #e7eeec; font-size: 12px; line-height: 1.7; }
.portal-page .people-search-toolbar { grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) auto auto; margin-bottom: 18px; padding: 16px; background: #f6f9f8; border-color: #e4ece9; border-radius: 10px; }
.portal-page .people-search-toolbar label { font-size: 12px; color: #526a6d; }
.portal-page .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px; border: 1px solid #b8d7cc; border-radius: 12px; box-shadow: 0 4px 18px #087f7805; background: #fbfdfc; }
.portal-page .form-grid input { width: 100%; }
.portal-page .form-grid .check input { width: 17px; }
.portal-page .organization-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); }
.portal-page .field-hint { font-size: 12px; font-weight: 400; }
.portal-page .table-wrap { border-color: var(--line); border-radius: 10px; scrollbar-color: #b7ceca #f4f8f7; }
.portal-page table { font-size: 13px; }
.portal-page th { padding: 12px 16px; font-weight: 600; font-size: 12px; background: #f4f8f7; color: #5b7276; white-space: nowrap; }
.portal-page td { padding: 16px; vertical-align: middle; line-height: 1.55; border-bottom-color: #eaf0ee; }
.portal-page tbody tr:last-child td { border-bottom: 0; }
.portal-page tbody tr:hover { background: #f9fcfb; }
.portal-page tbody tr:has(.selection-cell input:checked) { background: #edf8f2; }
.portal-page td small { font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.portal-page .people-table { table-layout: fixed; min-width: 960px; }
.portal-page .people-table th:nth-child(2) { width: 28%; }
.portal-page .people-table th:nth-child(3) { width: 19%; }
.portal-page .people-table th:nth-child(4) { width: 19%; }
.portal-page .people-table td { overflow-wrap: anywhere; }
.portal-page .people-table td:nth-child(2) > strong { font-size: 14px; }
.portal-page .row-actions { gap: 7px 8px; }
.portal-page .row-actions button { padding: 5px 8px; min-height: 30px; border: 1px solid #e1eeea; border-radius: 6px; background: #f4f9f7; font-size: 12px; font-weight: 500; }
.portal-page .row-actions button:hover { background: #e5f3ed; border-color: #b9d9ce; }
.portal-page .pill { padding: 3px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.portal-page .pill.off { background: #eff2f3; color: #66757c; }
.portal-page :is(.people-pagination, .audit-pagination) { font-size: 12px; gap: 10px; margin-top: 18px; }
.portal-page #people-total, .portal-page #audit-total { margin-right: auto; }
.portal-page .people-pagination button, .portal-page .audit-pagination button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.portal-page .people-pagination label { font-size: 12px; }
.portal-page :is(.people-pagination, .audit-pagination) select { min-height: 34px; }
.portal-page .applications-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.portal-page .application-card { background: #fff; border-color: #d5e5df; border-radius: 12px; box-shadow: 0 4px 16px #214e4005; padding: 20px; }
.portal-page .application-card-head h3 { font-size: 18px; margin: 0 0 5px; }
.portal-page .application-card-head small { font-size: 11px; }
.portal-page .application-card.is-unavailable { background: #fafcfc; border-style: dashed; }
.portal-page .application-card-facts { gap: 8px; margin-top: 18px; }
.portal-page .application-card-facts div { background: #f3f8f6; }
.portal-page .authorization-matrix { background: #f8fbfa; border-color: #d5e5de; padding: 20px; }
.portal-page .authorization-matrix > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: var(--brand-strong); font-weight: 600; font-size: 13px; }
.portal-page .authorization-matrix > summary::-webkit-details-marker { display: none; }
.portal-page .authorization-matrix > summary small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 15px; }
.portal-page .authorization-matrix[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 16px; }
.portal-page .authorization-matrix[open] .disclosure-arrow { transform: rotate(225deg); }
.portal-page .authorization-matrix-head h3 { margin-top: 0; font-size: 17px; }
.portal-page .authorization-matrix-head p:not(.eyebrow) { font-size: 13px; }
.portal-page .app-card { background: #fff; box-shadow: none; border-color: #d5e5df; border-radius: 12px; }
.portal-page .app-card:hover { border-color: #8eb9ae; }
.portal-page .application-technical-details summary { font-size: 13px; font-weight: 600; }
.portal-page .audit-filter-toolbar { border-radius: 10px; background: #f6f9f8; }
.portal-page .modal, .portal-page #roles-modal.modal { padding: 24px; background: #142e3a72; backdrop-filter: blur(5px); }
.portal-page .modal-card { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 26px; border: 1px solid #e1ebe8; border-radius: 16px; box-shadow: 0 24px 80px #102c3a33; }
.portal-page .modal-card h2 { font-size: 22px; margin: 0 0 6px; }
.portal-page .modal-card > header { align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.portal-page .modal-card > header button { flex-shrink: 0; min-height: 34px; padding: 6px 12px; }
.portal-page .modal-card > footer { gap: 12px; }
.portal-page .modal-card input[type=checkbox] { flex-shrink: 0; }
.portal-page #toast { z-index: 40; max-width: min(460px, calc(100vw - 32px)); font-size: 14px; line-height: 1.6; }
.portal-page .portal-welcome { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: #fff; box-shadow: 0 8px 32px #25454006; }
.portal-page #workspace:not([hidden]) ~ .portal-welcome, .portal-page #user-workspace:not([hidden]) ~ .portal-welcome { display: none; }
.portal-page .welcome-heading h2 { font-size: 22px; margin: 0 0 8px; }
.portal-page .welcome-heading p { color: var(--muted); margin: 0; }
.portal-page .welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.portal-page .welcome-grid article { padding: 22px; border: 1px solid #e3ece8; border-radius: 12px; background: #f9fcfb; }
.portal-page .welcome-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e4f1eb; color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.portal-page .welcome-grid h3 { font-size: 17px; margin: 16px 0 10px; }
.portal-page .welcome-grid p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 13px; }
.portal-page .welcome-help { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.portal-page .welcome-help a { color: var(--brand-strong); text-underline-offset: 4px; margin-left: 6px; }
.portal-page .version-footer { justify-content: space-between; align-items: flex-start; padding: 22px 4px 0; font-size: 11px; gap: 18px; }
.portal-page .version-details { max-width: min(650px, 75%); text-align: right; }
.portal-page .version-details summary { cursor: pointer; }
.portal-page .version-details code { display: block; margin-top: 8px; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; background: #eaf2ee; }
.portal-page .version-details small { display: block; font-size: 10px; margin-top: 5px; }
.portal-page .site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 16px; margin: 4px 4px 0; padding: 18px 4px 28px; color: #738786; font-size: 11px; line-height: 1.7; text-align: center; }
.portal-page .site-footer p { margin: 0; }
.portal-page .site-footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
.portal-page .site-footer a { color: #557775; text-decoration: none; text-underline-offset: 3px; }
.portal-page .site-footer a:hover { color: var(--brand-strong); text-decoration: underline; }
@media (max-width: 1100px) {
  .portal-page .panel-head { align-items: stretch; flex-direction: column; }
  .portal-page .org-selector-box { align-self: flex-start; max-width: 100%; }
  .portal-page .tabs { padding: 12px 16px; gap: 5px; }
  .portal-page .tabs button { padding: 9px 12px; font-size: 13px; }
  .portal-page .tabs button.active::after { display: none; }
  .portal-page .batch-import-content { grid-template-columns: minmax(0, 1fr); }
  .portal-page .batch-import-buttons { padding-top: 0; }
}
@media (max-width: 800px) {
  .portal-page .topbar { padding: 12px 20px; flex-wrap: wrap; }
  .portal-page .top-actions { gap: 8px; }
  .portal-page .top-actions #current-user { display: none; }
  .portal-page main { padding: 24px 20px; }
  .portal-page .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portal-page .status-card { min-width: 0; padding: 10px 14px; }
  .portal-page .status-card small { display: inline; margin: 0 0 0 12px; }
  .portal-page .panel { padding: 20px; }
  .portal-page .people-search-toolbar { grid-template-columns: 1fr 1fr; }
  .portal-page .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-page .organization-description-field { grid-column: 1 / -1; }
  .portal-page .organization-enabled-preview { grid-column: 1 / 2; }
  .portal-page .organization-form .form-actions { grid-column: 2 / -1; }
  .portal-page .welcome-grid { gap: 12px; }
  .portal-page .welcome-grid article { padding: 16px; }
}
@media (max-width: 600px) {
  .portal-page .topbar { padding: 12px 16px; gap: 10px; position: static; }
  .portal-page .topbar strong { font-size: 15px; }
  .portal-page .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .portal-page .top-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
  .portal-page .top-actions :is(.primary, .ghost) { min-height: 34px; padding: 6px 12px; font-size: 12px; }
  .portal-page main { padding: 22px 12px; }
  .portal-page .hero { padding: 0 4px 20px; }
  .portal-page .hero h1 { font-size: 26px; }
  .portal-page .hero p:not(.eyebrow) { font-size: 13px; }
  .portal-page .workspace { border-radius: 12px; }
  .portal-page .tabs { flex-wrap: nowrap; overflow-x: auto; padding: 12px; gap: 6px; }
  .portal-page .tabs > * { flex-shrink: 0; }
  .portal-page #registration-admin-link { margin-left: 0; }
  .portal-page .panel { padding: 18px 14px; }
  .portal-page .panel h2 { font-size: 20px; }
  .portal-page .org-selector-box { width: 100%; }
  .portal-page .org-selector-box select { min-width: 0; max-width: 100%; width: 100%; }
  .portal-page .toolbar-left, .portal-page .toolbar-right { width: auto; }
  .portal-page .action-toolbar { gap: 10px; align-items: center; }
  .portal-page .batch-import-tools summary small { display: block; margin: 4px 0 0; }
  .portal-page .authorization-matrix > summary small { display: block; margin: 4px 0 0; }
  .portal-page .batch-import-content { padding: 14px; }
  .portal-page .batch-import-buttons { flex-direction: column; }
  .portal-page .people-search-toolbar { gap: 12px 8px; padding: 12px; }
  .portal-page .people-search-toolbar label { grid-column: 1 / -1; }
  .portal-page .form-grid { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .portal-page .organization-description-field, .portal-page .organization-enabled-preview, .portal-page .organization-form .form-actions { grid-column: auto; }
  .portal-page .profile-options { grid-template-columns: minmax(0, 1fr); }
  .portal-page .people-pagination { gap: 10px 8px; justify-content: flex-start; }
  .portal-page #people-total { margin-right: 0; }
  .portal-page .modal, .portal-page #roles-modal.modal { padding: 12px; }
  .portal-page .modal-card { padding: 20px; max-height: calc(100dvh - 24px); border-radius: 14px; }
  .portal-page .modal-card > header { flex-direction: row; gap: 10px; }
  .portal-page .modal-card h2 { font-size: 20px; }
  .portal-page .modal-actions { flex-wrap: wrap; }
  .portal-page .portal-welcome { padding: 24px 18px; }
  .portal-page .welcome-grid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .portal-page .welcome-grid article { padding: 20px; }
  .portal-page .welcome-grid h3 { display: inline; margin-left: 12px; }
  .portal-page .welcome-grid p { margin-top: 12px; }
  .portal-page .welcome-help a { display: block; margin: 6px 0 0; }
  .portal-page .version-footer { flex-direction: row; font-size: 10px; }
  .portal-page .version-details { max-width: 65%; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-page *, .portal-page *::before, .portal-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  .portal-page { --muted: #3d555a; --line: #8aa39e; }
  .portal-page :is(button, input, select, textarea, .table-wrap, .application-card) { border-color: #77978e; }
}

/* Public launchpad: the application catalogue stays visible before login;
   only applications marked for unified access are routed through OIDC. */
.portal-page .public-launchpad {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.portal-page .public-login-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 30px;
  background: linear-gradient(150deg, #eaf6f2 0%, #f8fcfb 65%, #fff 100%);
  border-right: 1px solid #dcebe5;
}
.portal-page .public-login-panel .eyebrow { margin-bottom: 20px; }
.portal-page .public-login-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 19px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0c8b82, #075d5a);
  box-shadow: 0 10px 20px #087f782e;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.portal-page .public-login-panel h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; letter-spacing: -.045em; white-space: nowrap; }
.portal-page .public-login-panel > p:not(.eyebrow) { margin: 0; color: #5e7677; font-size: 13px; line-height: 1.85; }
.portal-page .public-login-button { width: 100%; margin-top: 25px; min-height: 46px; font-size: 14px; }
.portal-page .public-register-link { margin-top: 14px; color: var(--brand-strong); font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.portal-page .public-login-benefits { display: grid; gap: 11px; margin-top: 31px; padding-top: 22px; border-top: 1px solid #d9eae3; }
.portal-page .public-login-benefits div { display: grid; gap: 1px; }
.portal-page .public-login-benefits strong { color: #2f5f5c; font-size: 11px; }
.portal-page .public-login-benefits span { color: #75908d; font-size: 11px; line-height: 1.45; }
.portal-page .public-apps-panel { min-width: 0; padding: 30px; }
.portal-page .public-apps-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.portal-page .public-apps-heading h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.025em; }
.portal-page .public-apps-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.portal-page .public-app-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #eff8f4; color: var(--brand-strong); font-size: 11px; font-weight: 700; }
.portal-page .public-applications-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.portal-page .public-application-card { display: flex; gap: 12px; min-height: 132px; padding: 15px; border: 1px solid #e0ebe8; border-radius: 12px; background: linear-gradient(145deg, #fff, #fbfdfd); transition: border-color .15s, box-shadow .15s, transform .15s; }
.portal-page .public-application-card:hover { border-color: #a9cbc0; box-shadow: 0 8px 20px #1e55450f; transform: translateY(-1px); }
.portal-page .public-app-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.05em; }
.portal-page .icon-teal { background: linear-gradient(135deg, #20a59a, #147b73); }
.portal-page .icon-coral { background: linear-gradient(135deg, #e88170, #c45c4d); }
.portal-page .icon-blue { background: linear-gradient(135deg, #5e93da, #386ab1); }
.portal-page .icon-purple { background: linear-gradient(135deg, #9577cf, #6547a6); }
.portal-page .icon-orange { background: linear-gradient(135deg, #e5a04e, #c37124); }
.portal-page .icon-green { background: linear-gradient(135deg, #4aa879, #277651); }
.portal-page .icon-indigo { background: linear-gradient(135deg, #687fc8, #43599d); }
.portal-page .icon-pink { background: linear-gradient(135deg, #d77fa5, #a84e79); }
.portal-page .icon-sky { background: linear-gradient(135deg, #4ea7c5, #2f7895); }
.portal-page .icon-gold { background: linear-gradient(135deg, #c69c43, #8d681e); }
.portal-page .public-application-card > div:last-child { min-width: 0; flex: 1; }
.portal-page .public-app-category { display: block; margin-bottom: 4px; color: #78908f; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.portal-page .public-application-card h3 { margin: 0; color: #244447; font-size: 14px; line-height: 1.45; }
.portal-page .public-application-card p { margin: 5px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.portal-page .public-application-card a { color: var(--brand-strong); font-size: 11px; font-weight: 700; text-decoration: none; }
.portal-page .public-application-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-page .public-task-entries { margin: -4px 0 28px; padding: 18px; border: 1px solid #d8ebe3; border-radius: 13px; background: linear-gradient(145deg, #f5fbf8, #fff); }
.portal-page .public-task-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.portal-page .public-task-heading h2 { margin: 0 0 4px; color: #244447; font-size: 17px; }
.portal-page .public-task-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.portal-page .public-task-heading > span { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e6f3ed; color: var(--brand-strong); font-size: 10px; font-weight: 700; }
.portal-page .public-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.portal-page .public-task-card { display: grid; gap: 5px; min-height: 104px; padding: 13px; border: 1px solid #dcebe5; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.portal-page .public-task-card:hover { border-color: #82b5a8; box-shadow: 0 8px 18px #1e55450f; transform: translateY(-1px); }
.portal-page .public-task-card strong { color: var(--brand-strong); font-size: 13px; }
.portal-page .public-task-card small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.portal-page .public-task-card span { align-self: end; color: #78908f; font-size: 10px; font-weight: 700; }
.portal-page .public-application-card.is-task-match { border-color: #29927f; box-shadow: 0 0 0 3px #29927f1a; }
.portal-page .public-application-card.is-task-dim { opacity: .42; }
.portal-page .public-boundary-note { margin: 17px 0 0; padding: 11px 13px; border-left: 3px solid #9fcfc1; background: #f6faf8; color: #5e7677; font-size: 11px; line-height: 1.65; }
.portal-page .work-entry-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: -3px 0 25px; }
.portal-page .work-entry-card { display: flex; align-items: flex-start; gap: 9px; min-height: 85px; padding: 12px; border: 1px solid #dbe9e5; border-radius: 10px; background: #f8fcfa; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.portal-page .work-entry-card:hover { border-color: #8abaae; box-shadow: 0 7px 16px #1e55450b; transform: translateY(-1px); }
.portal-page .work-entry-icon { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; }
.portal-page .work-entry-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.portal-page .work-entry-card strong { color: #28534e; font-size: 12px; line-height: 1.4; }
.portal-page .work-entry-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.portal-page .work-entry-arrow { margin-left: auto; color: #6b9a90; font-size: 15px; line-height: 1; }
.portal-page .user-applications { scroll-margin-top: 20px; }
.portal-page .user-work-summary { margin: -3px 0 24px; padding: 16px; border: 1px solid #d8ebe3; border-radius: 12px; background: linear-gradient(145deg, #f5fbf8, #fff); }
.portal-page .work-summary-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.portal-page .work-summary-heading h3 { margin: 0; color: #244447; font-size: 17px; }
.portal-page .work-summary-heading > span { color: var(--muted); font-size: 11px; }
.portal-page .work-summary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.portal-page .work-summary-metrics div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #e1eee9; border-radius: 9px; background: #fff; }
.portal-page .work-summary-metrics strong { color: var(--brand-strong); font-size: 20px; line-height: 1.2; }
.portal-page .work-summary-metrics span { color: var(--muted); font-size: 10px; }
.portal-page .work-summary-items { display: grid; gap: 7px; }
.portal-page .work-summary-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e1eee9; border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; }
.portal-page .work-summary-item:hover { border-color: #8abaae; background: #f8fcfa; }
.portal-page .work-summary-item strong { min-width: 0; color: #28534e; font-size: 12px; }
.portal-page .work-summary-item small { min-width: 0; flex: 1; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.portal-page .work-summary-item > span { flex: 0 0 auto; color: var(--brand-strong); font-size: 10px; font-weight: 700; }
.portal-page .work-summary-empty { margin: 0; padding: 10px 12px; border: 1px dashed #cbded7; border-radius: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.portal-page .user-applications-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 20px; margin-bottom: 14px; border-top: 1px solid var(--line); }
.portal-page .user-applications-heading h3 { margin: 0; color: #244447; font-size: 18px; }
.portal-page .user-applications-note { color: var(--muted); font-size: 11px; }
.portal-page #user-applications-list .tenant-apps { padding-top: 0; border-top: 0; }
.portal-page #public-launchpad:not([hidden]) ~ .version-footer { padding-top: 18px; }
@media (max-width: 980px) {
  .portal-page .public-launchpad { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .portal-page .public-login-panel, .portal-page .public-apps-panel { padding: 25px 20px; }
  .portal-page .public-applications-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-page .public-task-grid, .portal-page .work-entry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .portal-page .public-launchpad { grid-template-columns: 1fr; }
  .portal-page .public-login-panel { border-right: 0; border-bottom: 1px solid #dcebe5; }
  .portal-page .public-login-benefits { margin-top: 24px; }
  .portal-page .public-apps-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .portal-page .public-task-heading, .portal-page .user-applications-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .portal-page .work-summary-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .portal-page .work-summary-item { align-items: flex-start; flex-direction: column; gap: 4px; }
  .portal-page .work-summary-item small { white-space: normal; }
  .portal-page .public-task-grid, .portal-page .work-entry-strip { grid-template-columns: minmax(0, 1fr); }
  .portal-page .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; text-align: left; }
  .portal-page .site-footer-links { justify-content: flex-start; }
}
