:root {
    --hd-navy: #123B53;
    --hd-project: #0B6E8A;
    --hd-primary: #0F6CBD;
    --hd-canvas: #F5F8FA;
    --hd-surface: #FFFFFF;
    --hd-divider: #D6E1E8;
    --hd-text: #1D2B36;
    --hd-muted: #5B6B78;
    --hd-focus: #0F6CBD;
    color-scheme: light;
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    color: var(--hd-text);
    background: var(--hd-canvas);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: var(--hd-canvas);
}

button,
input {
    font: inherit;
}

a {
    color: var(--hd-primary);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--hd-project);
}

:focus-visible {
    outline: 3px solid var(--hd-focus);
    outline-offset: 2px;
}

.account-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.kaiser-helpdesk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.kaiser-helpdesk-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.kaiser-helpdesk-wordmark {
    display: grid;
    gap: 1px;
    letter-spacing: 0.08em;
    line-height: 1;
}

.kaiser-helpdesk-wordmark strong {
    color: #103a8e;
    font-size: 0.84rem;
    font-weight: 800;
}

.kaiser-helpdesk-wordmark small {
    color: #0f87d8;
    font-size: 0.58rem;
    font-weight: 800;
}

.account-surface {
    width: min(100%, 420px);
    padding: 30px 32px 28px;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-top: 4px solid var(--hd-project);
    border-radius: 6px;
    box-shadow: 0 10px 28px rgb(23 33 43 / 8%);
}

.account-header {
    margin-bottom: 24px;
}

.project-mark {
    margin: 0 0 7px;
    color: var(--hd-project);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

form {
    display: grid;
    gap: 17px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label,
.checkbox-field {
    font-size: 0.9rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #9daab3;
    border-radius: 4px;
}

.field input:hover {
    border-color: #65737d;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    cursor: pointer;
}

.checkbox-field input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--hd-project);
}

.audience-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    border: 0;
}

.audience-checkbox-list legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    color: var(--hd-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.audience-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hd-text);
    cursor: pointer;
}

.audience-checkbox-list input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--hd-project);
}

.primary-button {
    min-height: 42px;
    padding: 9px 16px;
    color: #ffffff;
    font-weight: 700;
    background: var(--hd-primary);
    border: 1px solid var(--hd-primary);
    border-radius: 4px;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--hd-project);
    border-color: var(--hd-project);
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dde3e7;
    font-size: 0.9rem;
}

.validation-summary,
.form-error,
.form-status {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    border-radius: 4px;
}

.validation-summary,
.form-error {
    color: #8b211d;
    background: #fff5f4;
    border: 1px solid #e6b8b5;
}

.validation-summary:empty {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 19px;
}

.form-status {
    color: #174f38;
    background: #f0f8f4;
    border: 1px solid #acd3bf;
}

.validation-message {
    color: #8b211d;
    font-size: 0.82rem;
}

.work-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    background: var(--hd-canvas);
}

.work-rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 248px;
    height: 100vh;
    padding: 24px 16px;
    overflow-y: auto;
    color: #d9e7eb;
    background: var(--hd-navy);
}

.work-rail-mark {
    margin: 0 8px 28px;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.work-rail .kaiser-helpdesk-brand {
    margin: 0 8px 28px;
}

.work-rail .kaiser-helpdesk-brand img {
    width: 44px;
    height: 44px;
}

.work-rail .kaiser-helpdesk-wordmark strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.work-rail .kaiser-helpdesk-wordmark small {
    color: #3ac6ff;
    font-size: 0.65rem;
}

.profile-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 5px;
    background: #eaf1f5;
    border: 1px solid var(--hd-divider);
    border-radius: 8px;
}

.profile-navigation a {
    padding: 8px 10px;
    color: var(--hd-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
}

.profile-navigation a:hover,
.profile-navigation a.active {
    color: var(--hd-navy);
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(20 52 70 / 12%);
}

.notifier-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: clamp(40px, 8vw, 112px);
    align-items: start;
    margin-top: 22px;
}

.notifier-qr-card {
    display: grid;
    justify-items: start;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    background: #f8fbfd;
    border: 1px solid var(--hd-divider);
    border-radius: 8px;
}

.notifier-qr-card h3,
.notifier-qr-card p {
    margin: 0;
}

.notifier-qr-card img {
    max-width: 100%;
    height: auto;
    background: #ffffff;
}

.notifier-qr-step {
    color: var(--hd-project);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.second-factor-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.second-factor-method-card,
.second-factor-order,
.recovery-code-settings {
    padding: 18px;
    background: #f8fbfd;
    border: 1px solid var(--hd-divider);
    border-radius: 8px;
}

.second-factor-method-card h3,
.second-factor-order h3,
.recovery-code-settings h3 {
    margin-top: 0;
}

.second-factor-order,
.recovery-code-settings {
    margin-top: 16px;
}

.second-factor-order ol {
    display: grid;
    gap: 8px;
    padding-left: 24px;
}

.second-factor-order li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.recovery-code-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    padding: 0;
    list-style: none;
}

.recovery-code-value {
    display: block;
    padding: 8px 10px;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #ffffff;
    border: 1px dashed #9db3c0;
    border-radius: 4px;
}

.work-canvas {
    min-width: 0;
}

.work-context-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, auto);
    align-items: center;
    gap: 16px 24px;
    min-height: 72px;
    padding: 12px clamp(20px, 4vw, 48px);
    background: #ffffff;
    border-bottom: 1px solid var(--hd-divider);
}

.work-navigation-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--hd-navy);
    background: #ffffff;
    border: 1px solid #91aaa7;
    border-radius: 4px;
    cursor: pointer;
}

.work-navigation-toggle:hover {
    background: #eff7f6;
    border-color: var(--hd-project);
}

.work-navigation-close,
.work-navigation-backdrop {
    display: none;
}

.work-navigation-close {
    width: 40px;
    height: 40px;
    align-items: center;
    align-self: flex-end;
    justify-content: center;
    margin: -8px -8px 10px 0;
    padding: 0;
    color: #d9e7eb;
    background: transparent;
    border: 1px solid #5f8895;
    border-radius: 4px;
    cursor: pointer;
}

.work-navigation-close:hover {
    color: #ffffff;
    background: #1a4a5b;
    border-color: #a9c2ca;
}

.project-name {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.2;
}

.project-switcher {
    position: relative;
    display: inline-block;
    margin-top: 5px;
    color: var(--hd-navy);
    font-size: 0.78rem;
}

.project-switcher summary {
    cursor: pointer;
    font-weight: 650;
}

.project-switcher nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    min-width: 190px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    box-shadow: 0 8px 20px rgb(32 55 69 / 16%);
}

.project-switcher nav a {
    padding: 8px 10px;
    color: #172b3a;
    text-decoration: none;
}

.project-switcher nav a:hover {
    background: #e6f4f2;
    color: var(--hd-navy);
}

.project-switcher nav a:focus-visible {
    background: #e6f4f2;
    color: var(--hd-navy);
    outline: 3px solid var(--hd-focus);
    outline-offset: 2px;
}

.knowledge-attachments {
    margin: 10px 0 0;
    padding-left: 20px;
}

.knowledge-attachments a {
    color: var(--hd-navy);
}

.work-navigation {
    display: grid;
    gap: 24px;
}

.work-navigation-group {
    display: grid;
    gap: 3px;
}

.work-navigation-group h2 {
    margin: 0 8px 6px;
    color: #a9c2ca;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.work-navigation a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    color: #d9e7eb;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 4px;
}

.work-navigation a fluent-icon {
    flex: 0 0 20px;
}

.work-navigation a:hover,
.work-navigation a.active {
    color: #ffffff;
    background: #1a4a5b;
    border-left-color: #62b8ad;
}

.account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.signed-in-user {
    margin: 0;
    color: #394650;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.signed-in-organization {
    margin: 0;
    color: var(--hd-navy);
    font-size: 0.82rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.logout-form {
    display: block;
}

.logout-button {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--hd-navy);
    background: #ffffff;
    border: 1px solid #91aaa7;
    border-radius: 4px;
    cursor: pointer;
}

.logout-button:hover {
    background: #eff7f6;
    border-color: var(--hd-project);
}

.work-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 28px clamp(20px, 4vw, 48px);
}

.work-page-wide {
    width: 95%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

.incident-list-page .e-grid {
    width: 100%;
}

.incident-status-group-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.incident-status-group-filter {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--hd-muted);
    background: var(--hd-surface);
    border: 1px solid var(--hd-divider);
    border-radius: 999px;
    cursor: pointer;
}

.incident-status-group-filter.selected {
    color: var(--hd-surface);
    background: var(--hd-primary);
    border-color: var(--hd-primary);
}

.incident-unread {
    font-weight: 750;
}

.grid-action-link {
    color: var(--hd-primary);
    font-weight: 650;
    text-decoration: none;
}

.grid-action-link:hover {
    text-decoration: underline;
}

.work-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hd-divider);
}

.work-page-header h1 {
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 650;
}

.work-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.work-page-title-row .primary-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.work-page-section {
    min-width: 0;
    margin-top: 20px;
    padding-top: 16px;
    background: transparent;
    border-top: 1px solid var(--hd-divider);
}

.work-page-section > h2 {
    margin: 0 0 12px;
    color: var(--hd-text);
    font-size: 1rem;
}

.work-page-controls {
    display: block;
}

.work-page-grid {
    overflow-x: auto;
}

.work-page .e-grid {
    color: var(--hd-text);
    background: var(--hd-surface);
    border: 1px solid var(--hd-divider);
    border-radius: 6px;
    box-shadow: none;
}

.work-page .e-grid .e-gridheader,
.work-page .e-grid .e-pager {
    border-color: var(--hd-divider);
}

.work-page .e-grid .e-headercell {
    color: var(--hd-muted);
    background: var(--hd-canvas);
    border-color: var(--hd-divider);
    font-size: 0.8rem;
    font-weight: 700;
}

.work-page .e-grid .e-rowcell {
    border-color: var(--hd-divider);
}

.work-page .e-grid .e-altrow {
    background: var(--hd-canvas);
}

.work-page .e-grid .e-row:hover .e-rowcell {
    background: var(--hd-canvas);
}

.work-page .e-grid .e-pager .e-currentitem,
.work-page .e-grid .e-pager .e-currentitem:hover {
    color: var(--hd-surface);
    background: var(--hd-primary);
}

.secondary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: var(--hd-primary);
    background: var(--hd-surface);
    border: 1px solid var(--hd-divider);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.secondary-button:hover {
    color: var(--hd-project);
    border-color: var(--hd-project);
}

.empty-state {
    padding: 24px 0;
}

.empty-state h2 {
    margin: 0;
    color: #596670;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.incident-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-radius: 4px;
}

.incident-filter-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-radius: 4px;
}

.incident-filter-form .field {
    flex: 1 1 220px;
}

.incident-filter-form select {
    min-height: 42px;
    padding: 9px 11px;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #9daab3;
    border-radius: 4px;
}

.incident-filter-form .primary-button {
    flex: 0 0 auto;
}

.secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 9px 4px;
    font-weight: 650;
}

.incident-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.incident-table th,
.incident-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #dde3e7;
    white-space: nowrap;
}

.incident-table th {
    color: #596670;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.incident-table tbody tr:last-child td {
    border-bottom: 0;
}

.incident-number {
    margin: 0 0 5px;
    color: #596670;
    font-size: 0.86rem;
}

.incident-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.incident-detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.incident-detail-header-action-form {
    display: block;
}

.incident-status {
    display: inline-block;
    padding: 4px 8px;
    color: var(--hd-navy);
    background: #eff7f6;
    border: 1px solid #91aaa7;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.incident-status-large {
    margin-top: 5px;
    padding: 7px 11px;
}

.incident-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 20vw, 330px);
    gap: 32px;
    align-items: start;
}

.incident-detail-page {
    width: 100%;
    max-width: none;
}

.incident-detail-content {
    min-width: 0;
}

.incident-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 16px;
}

.status-transition-current,
.status-transition-available,
.status-transition-disabled {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 4px;
    font: inherit;
    font-weight: 650;
}

.status-transition-current {
    color: var(--hd-surface);
    background: var(--hd-navy);
    border: 1px solid var(--hd-navy);
}

.status-transition-available {
    color: var(--hd-primary);
    background: var(--hd-surface);
    border: 1px solid var(--hd-primary);
    cursor: pointer;
}

.status-transition-available:hover {
    color: var(--hd-surface);
    background: var(--hd-primary);
}

.status-transition-disabled {
    color: var(--hd-muted);
    background: var(--hd-canvas);
    border: 1px solid var(--hd-divider);
    cursor: not-allowed;
    opacity: 0.7;
}

.status-transition-available:focus-visible {
    outline: 3px solid var(--hd-focus);
    outline-offset: 2px;
}

.incident-codex-sidebar {
    position: sticky;
    top: 20px;
    padding: 20px;
    color: var(--hd-text);
    background: var(--hd-surface);
    border: 1px solid var(--hd-divider);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(18 59 83 / 8%);
}

.incident-codex-sidebar-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hd-divider);
}

.incident-codex-sidebar-title {
    margin: 0;
    color: var(--hd-project);
    font-size: 1.25rem;
}

.incident-codex-sidebar h3 {
    margin: 0;
    font-size: 1rem;
}

.incident-codex-sidebar-heading p {
    margin: 4px 0 0;
    color: var(--hd-muted);
}

.incident-codex-sidebar-section {
    padding: 18px 0;
    border-bottom: 1px solid var(--hd-divider);
}

.incident-codex-sidebar-section > h3 {
    margin-bottom: 12px;
}

.incident-codex-sidebar .incident-status-form {
    align-items: stretch;
}

.incident-codex-sidebar .incident-status-form + .incident-status-form {
    margin-top: 16px;
}

.incident-codex-sidebar .incident-status-form .field {
    flex-basis: 100%;
}

.incident-codex-sidebar-link {
    margin: 18px 0 0;
}

.incident-codex-sidebar-link a {
    font-weight: 700;
}

.incident-description,
.incident-timeline,
.incident-attachments,
.incident-workflow {
    margin-top: 20px;
    padding: 16px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--hd-divider);
    border-radius: 0;
}

.incident-description h2,
.incident-timeline h2,
.incident-attachments h2,
.incident-workflow h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.incident-description p,
.timeline-item p {
    margin: 0;
    line-height: 1.55;
    white-space: pre-wrap;
}

.timeline-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    padding: 12px 0 0;
    background: transparent;
    border-top: 1px solid var(--hd-divider);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    color: #596670;
    font-size: 0.85rem;
}

.timeline-meta strong {
    color: var(--hd-text);
}

.timeline-status {
    margin-bottom: 8px !important;
    color: var(--hd-project);
    font-size: 0.88rem;
    font-weight: 650;
}

.incident-attachments ul {
    margin: 0;
    padding-left: 20px;
}

.incident-back-link {
    margin-top: 20px;
}

.incident-status-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.incident-status-form .field {
    flex: 1 1 240px;
}

.incident-status-form select {
    min-height: 42px;
    padding: 9px 11px;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #9daab3;
    border-radius: 4px;
}

.incident-create-form {
    max-width: 760px;
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-radius: 4px;
}

.incident-create-form select,
.incident-create-form textarea {
    width: 100%;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #9daab3;
    border-radius: 4px;
}

.incident-create-form select {
    min-height: 42px;
    padding: 9px 11px;
}

.incident-create-form textarea {
    min-height: 180px;
    padding: 10px 11px;
    resize: vertical;
}

.incident-create-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.selected-file-list {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--hd-muted);
    font-size: 0.9rem;
}


.work-page-summary {
    margin: 8px 0 0;
    color: #596670;
}

.integration-create,
.integration-list {
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-radius: 4px;
}

.integration-create h2,
.integration-list h2,
.integration-token h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.integration-token {
    margin-top: 20px;
    padding: 18px;
    color: #174f38;
    background: #f0f8f4;
    border: 1px solid #acd3bf;
    border-radius: 4px;
}

.integration-token p {
    margin: 0 0 12px;
}

.integration-token code {
    display: block;
    padding: 12px;
    color: #17212b;
    background: #ffffff;
    border: 1px solid #acd3bf;
    overflow-wrap: anywhere;
    user-select: all;
}

.integration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integration-actions button,
.integration-create button {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--hd-navy);
    background: #ffffff;
    border: 1px solid #91aaa7;
    border-radius: 4px;
    cursor: pointer;
}

.integration-actions button:hover,
.integration-create button:hover {
    background: #eff7f6;
    border-color: var(--hd-project);
}

.work-page-summary {
    max-width: 680px;
    margin: 6px 0 0;
    color: #596670;
}

.admin-hub-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid var(--hd-divider);
}

.admin-hub-links a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 18px 16px;
    color: #17212b;
    text-decoration: none;
    border-bottom: 1px solid var(--hd-divider);
}

.admin-hub-links a:nth-child(odd) {
    border-right: 1px solid var(--hd-divider);
}

.admin-hub-links a:hover {
    color: var(--hd-navy);
    background: #f3f7f8;
}

.admin-hub-links strong,
.admin-hub-links span span {
    display: block;
}

.admin-hub-links strong {
    font-weight: 650;
}

.admin-hub-links span span {
    margin-top: 4px;
    color: #596670;
    line-height: 1.45;
}

.admin-return-link {
    align-self: start;
    color: var(--hd-navy);
    text-decoration: none;
}

.admin-return-link:hover {
    text-decoration: underline;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.dashboard-metric {
    display: grid;
    gap: 8px;
    min-height: 108px;
    padding: 16px;
    color: #17212b;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--hd-divider);
    border-top: 3px solid #0d5f80;
    border-radius: 4px;
}

.dashboard-metric:hover {
    color: var(--hd-navy);
    background: #f6fbfb;
    border-color: #91aaa7;
    border-top-color: var(--hd-project);
}

.dashboard-metric span {
    color: #596670;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.3;
}

.dashboard-metric strong {
    align-self: end;
    color: #17212b;
    font-size: 1.8rem;
    line-height: 1;
}

.project-settings-section {
    margin-top: 28px;
    padding: 16px 0 28px;
    border-top: 3px solid #0d5f80;
    border-bottom: 1px solid #dde3e7;
}

.project-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-top: 18px;
}

.project-settings-form > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.project-settings-form label {
    color: #17212b;
    font-weight: 650;
}

.project-settings-wide-field {
    grid-column: 1 / -1;
}

.project-settings-form button {
    justify-self: start;
}

.project-mail-profile {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
    min-width: 0;
    margin: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #c9d6dc;
}

.project-mail-profile legend {
    padding: 0 8px 0 0;
    color: #17212b;
    font-weight: 700;
}

.project-mail-profile > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.project-mail-password-status {
    color: var(--hd-project);
    font-size: 0.85rem;
}

.project-mail-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
}

.project-mail-profile-actions label {
    font-weight: 500;
}

.admin-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.admin-catalog-section {
    min-width: 0;
    padding-top: 16px;
    border-top: 3px solid var(--hd-project);
}

.admin-catalog-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.admin-catalog-header p {
    min-height: 3.2em;
    margin: 8px 0 16px;
    color: #596670;
    line-height: 1.55;
}

.catalog-create-form {
    display: grid;
    gap: 8px;
}

.catalog-create-form label {
    color: #17212b;
    font-weight: 650;
}

.catalog-create-form input {
    min-width: 0;
}

.catalog-create-form button {
    justify-self: start;
}

.catalog-list {
    display: grid;
    gap: 0;
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid #dde3e7;
    list-style: none;
}

.catalog-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    border-bottom: 1px solid #dde3e7;
}

.catalog-status {
    flex: 0 0 auto;
    color: var(--hd-navy);
    font-size: 0.82rem;
    font-weight: 650;
}

.catalog-empty {
    margin: 20px 0 0;
    color: #596670;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .incident-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .incident-codex-sidebar {
        position: static;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .admin-hub-links {
        grid-template-columns: 1fr;
    }

    .admin-hub-links a:nth-child(odd) {
        border-right: 0;
    }

    .admin-catalog-header p {
        min-height: 0;
    }

    .project-settings-form {
        grid-template-columns: 1fr;
    }

    .project-mail-profile {
        grid-template-columns: 1fr;
    }

    .project-mail-profile-actions {
        grid-template-columns: auto 1fr !important;
    }

    .project-mail-profile-actions button {
        grid-column: 1 / -1;
    }
}

.status-page {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .account-page {
        place-items: start center;
        padding: 16px 12px;
    }

    .account-surface {
        padding: 24px 20px 22px;
    }

    .notifier-qr-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .work-shell {
        display: block;
    }

    .work-rail {
        position: fixed;
        z-index: 40;
        top: 0;
        left: 0;
        width: min(248px, calc(100vw - 48px));
        max-width: none;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 180ms ease-out;
    }

    .work-shell.work-navigation-open .work-rail {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .work-navigation-close {
        display: inline-flex;
    }

    .work-navigation-backdrop {
        position: fixed;
        z-index: 30;
        inset: 0;
        display: block;
        width: 100%;
        padding: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgb(14 49 64 / 45%);
        border: 0;
        opacity: 0;
        transition: opacity 180ms ease-out;
    }

    .work-shell.work-navigation-open .work-navigation-backdrop {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }

    .work-context-bar {
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        min-height: auto;
    }

    .work-navigation-toggle {
        display: inline-flex;
    }

    .work-navigation-toggle:focus-visible {
        outline: 3px solid var(--hd-focus);
        outline-offset: 2px;
    }

    .account-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-page-wide {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .work-context-bar {
        padding: 12px 16px;
    }

    .work-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-actions {
        gap: 8px;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

.codex-incident-indicator {
    display: inline-flex;
    margin-right: 0.35rem;
    vertical-align: middle;
    color: var(--hd-project);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
