.estab-login-cta,
.estab-auth-shell,
.estab-session-bar {
    box-sizing: border-box;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

.estab-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.estab-session-bar {
    background: #172f4d;
    border-bottom: 3px solid #e5b247;
    box-shadow: 0 3px 10px rgba(23, 32, 51, 0.24);
    color: #ffffff;
    display: block;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.estab-session-topline {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: 0.55rem 1rem;
}

.estab-session-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    min-height: 2.75rem;
    text-decoration: none;
}

.estab-session-brand:hover,
.estab-session-brand:focus {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.estab-session-identity {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    line-height: 1.35;
}

.estab-session-prefix {
    color: #dbe8f5;
}

.estab-session-detail {
    border-left: 1px solid #8da2bd;
    padding-left: 0.7rem;
}

.estab-session-admin-context {
    border-left: 1px solid #8da2bd;
    color: #dbe8f5;
    padding-left: 0.7rem;
}

.estab-session-admin-note {
    color: #b9cbe0;
}

.estab-session-logout {
    flex: 0 0 auto;
    margin: 0;
}

.estab-session-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.estab-session-bar .estab-button-login {
    background: transparent;
    border-color: #dbe8f5;
    color: #ffffff;
}

.estab-session-bar .estab-button-login:hover,
.estab-session-bar .estab-button-login:focus {
    background: #294b70;
    border-color: #ffffff;
}

.estab-session-bar .estab-button-logout {
    background: #ffffff;
    border-color: #ffffff;
    color: #7a1b18;
    min-width: 7.5rem;
}

.estab-session-bar .estab-button-logout:hover,
.estab-session-bar .estab-button-logout:focus {
    background: #fff1f0;
    border-color: #ffffff;
}

.estab-session-anonymous {
    color: #dbe8f5;
    flex: 1 1 auto;
}

.estab-navigation {
    background: #102641;
    border-top: 1px solid #45627f;
    color: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

.estab-navigation-content {
    align-items: stretch;
    box-sizing: border-box;
    display: flex;
    gap: 0.4rem;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 100rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0.65rem;
    scrollbar-width: thin;
    width: 100%;
}

.estab-navigation-list {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.estab-navigation-item {
    display: flex;
    min-width: 0;
}

.estab-navigation-link {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #ffffff;
    display: flex;
    font-size: 0.84rem;
    font-weight: 700;
    min-height: 2.8rem;
    padding: 0.35rem 0.55rem;
    text-decoration: none;
    white-space: nowrap;
}

.estab-navigation-link:hover,
.estab-navigation-link:focus {
    background: #294b70;
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.estab-navigation-link[aria-current="page"] {
    background: #294b70;
    border-bottom-color: #e5b247;
}

.estab-navigation-item[data-estab-navigation-locked] .estab-navigation-link {
    color: #d2dce8;
}

.estab-navigation-item[data-estab-navigation-locked] .estab-navigation-label::after {
    content: "  🔒";
    font-size: 0.7rem;
}

.estab-navigation-login-hint {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.estab-navigation-services {
    align-items: center;
    border-left: 1px solid #45627f;
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 0.4rem;
}

.estab-navigation-services-label,
.estab-navigation-hint {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.estab-session-bar-compact {
    border-bottom-width: 2px;
    display: block;
    font-size: 0.82rem;
    padding: 0;
    position: static;
    text-align: left;
}

.estab-session-bar-compact .estab-session-topline {
    align-items: stretch;
    display: grid;
    gap: 0.45rem;
    min-height: 0;
    padding: 0.65rem;
}

.estab-session-bar-compact .estab-session-identity {
    align-items: stretch;
    display: grid;
    gap: 0.2rem;
}

.estab-session-bar-compact .estab-session-prefix,
.estab-session-bar-compact [data-estab-user-name] {
    display: block;
}

.estab-session-bar-compact .estab-session-detail {
    border-left: 0;
    padding-left: 0;
}

.estab-session-bar-compact .estab-session-logout {
    margin: 0;
}

.estab-session-bar-compact .estab-session-actions {
    align-items: stretch;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 1fr;
    margin-top: 0.15rem;
}

.estab-session-bar-compact .estab-button-login,
.estab-session-bar-compact .estab-button-logout {
    font-size: 0.88rem;
    min-width: 0;
    padding: 0.5rem;
    width: 100%;
}

.estab-session-bar-compact .estab-navigation {
    border-top-color: #6b8199;
}

.estab-navigation-disclosure > summary {
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 2.75rem;
    padding: 0.75rem;
}

.estab-navigation-disclosure > summary:hover,
.estab-navigation-disclosure > summary:focus {
    background: #294b70;
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.estab-navigation-compact .estab-navigation-content,
.estab-navigation-compact .estab-navigation-list,
.estab-navigation-compact .estab-navigation-services {
    align-items: stretch;
    display: grid;
    gap: 0;
    padding: 0;
}

.estab-navigation-compact .estab-navigation-services {
    border-left: 0;
    border-top: 1px solid #45627f;
}

.estab-navigation-compact .estab-navigation-item {
    display: block;
}

.estab-navigation-compact .estab-navigation-link {
    border-bottom: 0;
    border-left: 4px solid transparent;
    justify-content: flex-start;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
}

.estab-navigation-compact .estab-navigation-link[aria-current="page"] {
    border-bottom: 0;
    border-left-color: #e5b247;
}

.estab-navigation-frame {
    margin: 0;
    min-width: 0;
}

.estab-message-workspace-document,
.estab-message-workspace {
    height: 100%;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.estab-message-workspace {
    background: #111516;
}

.estab-message-workspace-grid {
    display: grid;
    grid-template-columns: clamp(17rem, 20vw, 19rem) minmax(0, 1fr);
    height: 100dvh;
    margin: 0;
    min-height: 0;
    min-width: 0;
}

.estab-message-sidebar-frame,
.estab-message-content-frame {
    border: 0;
    box-sizing: border-box;
    display: block;
    height: 100%;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.estab-message-sidebar-frame {
    background: #0b1d31;
    border-right: 2px solid #45627f;
}

.estab-message-content-frame {
    background: #111516;
}

.estab-mobile-sidebar-return {
    display: none;
}

.estab-mobile-sidebar-return[hidden] {
    display: none;
}

.estab-message-sidebar-page {
    background: #0b1d31;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100%;
}

.estab-message-sidebar {
    box-sizing: border-box;
    display: grid;
    gap: 0.75rem;
    min-height: 100dvh;
    padding: 0.75rem;
}

.estab-sidebar-status,
.estab-session-bar-sidebar,
.estab-sidebar-workflow {
    background: #172f4d;
    border: 1px solid #45627f;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(5, 14, 26, 0.3);
    box-sizing: border-box;
    color: #ffffff;
    min-width: 0;
}

.estab-sidebar-status {
    padding: 0.75rem;
}

.estab-sidebar-status-notification {
    animation: estab-sidebar-notification 0.8s ease-out 2;
    border-color: #f2c966;
    box-shadow:
        0 0 0 3px rgba(242, 201, 102, 0.32),
        0 3px 10px rgba(5, 14, 26, 0.3);
}

.estab-sidebar-status-stale {
    border-color: #f0a4a4;
    box-shadow:
        0 0 0 3px rgba(222, 75, 75, 0.24),
        0 3px 10px rgba(5, 14, 26, 0.3);
}

@keyframes estab-sidebar-notification {
    0%,
    100% {
        background: #172f4d;
    }

    50% {
        background: #4b3d18;
    }
}

.estab-sidebar-status-top {
    align-items: start;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.estab-sidebar-queue {
    border: 1px solid transparent;
    border-radius: 5px;
    display: grid;
    gap: 0.1rem;
    margin: -0.35rem;
    padding: 0.35rem;
}

.estab-sidebar-queue.has-work {
    background: #4b3d18;
    border-color: #e5b247;
}

.estab-sidebar-queue.has-work .estab-sidebar-eyebrow {
    color: #ffe29b;
}

.estab-sidebar-queue.has-work strong {
    color: #ffd36b;
}

.estab-sidebar-eyebrow {
    color: #c5d6e8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.estab-sidebar-queue strong {
    font-size: 2rem;
    line-height: 1;
}

.estab-sidebar-queue.unavailable strong {
    color: #b9cbe0;
}

.estab-sidebar-time {
    align-items: end;
    display: grid;
    gap: 0.1rem;
    text-align: right;
}

.estab-sidebar-time strong {
    font-size: 1.4rem;
    line-height: 1;
}

.estab-sidebar-time span {
    color: #c5d6e8;
    font-size: 0.76rem;
}

.estab-sidebar-freshness {
    align-items: center;
    color: #c5d6e8;
    display: flex;
    font-size: 0.72rem;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.estab-sidebar-freshness i {
    background: #67d5aa;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.5rem;
    width: 0.5rem;
}

.estab-sidebar-freshness[data-estab-status-freshness="stale"] {
    color: #ffe0e0;
    font-weight: 700;
}

.estab-sidebar-freshness[data-estab-status-freshness="partial"] {
    color: #ffe29b;
    font-weight: 700;
}

.estab-sidebar-freshness[data-estab-status-freshness="unavailable"] {
    color: #ffe0e0;
    font-weight: 700;
}

.estab-sidebar-freshness[data-estab-status-freshness="stale"] i,
.estab-sidebar-freshness[data-estab-status-freshness="unavailable"] i {
    background: #ff8e8e;
}

.estab-sidebar-freshness[data-estab-status-freshness="partial"] i {
    background: #f2c966;
}

.estab-sidebar-presence-heading {
    align-items: baseline;
    border-top: 1px solid #45627f;
    display: flex;
    gap: 0.4rem;
    justify-content: space-between;
    margin-top: 0.7rem;
    padding-top: 0.65rem;
}

.estab-sidebar-presence-heading h2 {
    font-size: 0.86rem;
    margin: 0;
}

.estab-sidebar-presence-heading > span {
    color: #c5d6e8;
    font-size: 0.7rem;
    white-space: nowrap;
}

.estab-sidebar-presence-grid {
    display: grid;
    gap: 0.3rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

.estab-sidebar-presence {
    align-items: center;
    background: #263f5d;
    border: 1px solid #5d7692;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.25rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 0;
    padding: 0.25rem;
}

.estab-sidebar-presence > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.estab-sidebar-presence-dot,
.estab-sidebar-presence-legend i {
    background: #8da2bd;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.48rem;
    width: 0.48rem;
}

.estab-sidebar-presence-online {
    background: #163e35;
    border-color: #49b68d;
}

.estab-sidebar-presence-online .estab-sidebar-presence-dot,
.estab-sidebar-presence-legend i.online {
    background: #67d5aa;
}

.estab-sidebar-presence-current {
    background: #4b3d18;
    border-color: #e5b247;
}

.estab-sidebar-presence-current .estab-sidebar-presence-dot,
.estab-sidebar-presence-legend i.current {
    background: #f2c966;
}

.estab-sidebar-presence-offline {
    color: #d2dce8;
}

.estab-sidebar-presence-legend {
    color: #c5d6e8;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.35rem 0.65rem;
    margin-top: 0.55rem;
}

.estab-sidebar-presence-legend span {
    align-items: center;
    display: inline-flex;
    gap: 0.25rem;
}

.estab-sidebar-sound-control {
    border-top: 1px solid #45627f;
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.estab-sidebar-sound-toggle {
    align-items: center;
    background: #183654;
    border: 1px solid #6f89a5;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.estab-sidebar-sound-toggle:hover,
.estab-sidebar-sound-toggle:focus-visible {
    background: #294b70;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.estab-sidebar-sound-toggle[aria-pressed="true"] {
    background: #163e35;
    border-color: #67d5aa;
}

.estab-sidebar-sound-toggle[data-estab-sound-state="blocked"],
.estab-sidebar-sound-toggle[data-estab-sound-state="unsupported"] {
    background: #4b3d18;
    border-color: #f2c966;
}

.estab-sidebar-sound-feedback {
    color: #f3f7fb;
    display: block;
    font-size: 0.75rem;
    line-height: 1.35;
}

audio[data-estab-sidebar-audio] {
    display: none;
}

.estab-session-bar-sidebar {
    border-bottom-width: 1px;
    box-shadow: 0 3px 10px rgba(5, 14, 26, 0.3);
    overflow: hidden;
}

.estab-session-bar-sidebar .estab-session-topline {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.75rem;
}

.estab-session-bar-sidebar .estab-session-brand {
    font-size: 1.2rem;
    grid-column: 1;
    grid-row: 1;
}

.estab-session-bar-sidebar .estab-session-identity,
.estab-session-bar-sidebar .estab-session-anonymous {
    display: grid;
    gap: 0.12rem;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
}

.estab-session-bar-sidebar .estab-session-prefix {
    font-size: 0.72rem;
}

.estab-session-bar-sidebar [data-estab-user-name] {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.estab-session-bar-sidebar .estab-session-detail {
    border-left: 0;
    color: #c5d6e8;
    font-size: 0.8rem;
    padding-left: 0;
}

.estab-session-bar-sidebar .estab-session-actions {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.estab-session-bar-sidebar .estab-button-login,
.estab-session-bar-sidebar .estab-button-logout {
    font-size: 0.78rem;
    min-height: 2.75rem;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    width: auto;
}

.estab-session-bar-sidebar .estab-navigation {
    border-top: 1px solid #45627f;
}

.estab-navigation-sidebar-heading {
    padding: 0.75rem 0.75rem 0.45rem;
}

.estab-navigation-sidebar-heading h2 {
    font-size: 0.95rem;
    margin: 0;
}

.estab-navigation-sidebar-heading p {
    color: #c5d6e8;
    font-size: 0.8rem;
    margin: 0.18rem 0 0;
}

.estab-navigation-sidebar .estab-navigation-content {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    max-width: none;
    overflow: visible;
    padding: 0 0.65rem 0.7rem;
}

.estab-navigation-sidebar .estab-navigation-list {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}

.estab-navigation-sidebar .estab-navigation-item {
    display: block;
    min-width: 0;
}

.estab-navigation-sidebar .estab-navigation-link {
    align-items: center;
    background: #183654;
    border: 1px solid #45627f;
    border-left: 4px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 0.82rem;
    justify-content: flex-start;
    line-height: 1.2;
    min-height: 3rem;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.45rem 0.5rem;
    white-space: normal;
}

.estab-navigation-sidebar .estab-navigation-link:hover,
.estab-navigation-sidebar .estab-navigation-link:focus-visible {
    background: #294b70;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.estab-navigation-sidebar .estab-navigation-link[aria-current="page"] {
    background: #294b70;
    border-bottom-color: #45627f;
    border-left-color: #e5b247;
}

.estab-navigation-sidebar .estab-navigation-services {
    border-left: 0;
    border-top: 1px solid #45627f;
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0.6rem 0 0;
}

.estab-navigation-sidebar .estab-navigation-services-label {
    clip: auto;
    clip-path: none;
    color: #c5d6e8;
    font-size: 0.75rem;
    font-weight: 700;
    height: auto;
    overflow: visible;
    position: static;
    text-transform: uppercase;
    white-space: normal;
    width: auto;
}

.estab-sidebar-workflow {
    padding: 0.75rem;
}

.estab-sidebar-section-heading h2 {
    font-size: 0.95rem;
    margin: 0;
}

.estab-sidebar-section-heading p {
    color: #c5d6e8;
    font-size: 0.8rem;
    margin: 0.18rem 0 0;
}

.estab-sidebar-action-form {
    margin: 0.65rem 0 0;
}

.estab-sidebar-actions {
    display: grid;
    gap: 0.45rem;
}

.estab-sidebar-action {
    align-items: flex-start;
    background: #183654;
    border: 1px solid #5d7692;
    border-left: 4px solid #e5b247;
    border-radius: 6px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.55rem 0.65rem;
    text-align: left;
    width: 100%;
}

.estab-sidebar-action:hover,
.estab-sidebar-action:focus-visible {
    background: #294b70;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.estab-sidebar-action-title {
    font-size: 0.86rem;
    font-weight: 700;
}

.estab-sidebar-action-description {
    color: #c5d6e8;
    font-size: 0.78rem;
    line-height: 1.25;
    margin-top: 0.12rem;
}

.estab-sidebar-empty {
    color: #c5d6e8;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.65rem 0 0;
}

.estab-root-header,
.estab-root-menu {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 100%;
}

.estab-root-page {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
}

.estab-root-header {
    align-items: center;
    background: var(--estab-menu-background, #f0f0f0);
    border: 3px solid #969696;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(4rem, 8rem) minmax(0, 1fr) minmax(4rem, 8rem);
    margin: 1rem auto 0;
    max-width: 64rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

.estab-root-header p {
    font-size: clamp(1.65rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
}

.estab-root-header img,
.estab-root-menu img {
    height: auto;
    max-width: 100%;
}

.estab-root-main {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 70rem;
    padding: 0 1rem 2rem;
}

.estab-login-cta {
    background: #ffffff;
    border: 2px solid #355b8c;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(23, 32, 51, 0.12);
    margin: 2rem auto;
    max-width: 46rem;
    padding: 1.5rem 2rem;
    text-align: center;
}

.estab-login-cta h1,
.estab-auth-card h1,
.estab-auth-card h2 {
    margin-top: 0;
}

.estab-login-cta p,
.estab-auth-help {
    line-height: 1.5;
}

.estab-auth-shell {
    margin: 1.5rem auto;
    max-width: 52rem;
    padding: 0 1rem 2rem;
}

.estab-auth-card {
    background: #ffffff;
    border: 1px solid #8da2bd;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.12);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding: 1.5rem;
}

.estab-auth-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.estab-auth-actions form {
    margin: 0;
}

.estab-root-auth-actions {
    justify-content: center;
}

.estab-menu-section {
    margin: 2rem auto;
}

.estab-menu-section h2 {
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 0 0.8rem;
    text-align: center;
}

.estab-root-menu {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.estab-menu-card {
    background: #ffffff;
    border: 1px solid #8da2bd;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(23, 32, 51, 0.1);
    display: grid;
    min-width: 0;
}

.estab-menu-link {
    align-items: center;
    border-radius: inherit;
    box-sizing: border-box;
    color: #183454;
    display: grid;
    gap: 1rem;
    grid-template-columns: 5rem minmax(0, 1fr);
    padding: 1rem;
    text-decoration: none;
}

.estab-menu-link:hover,
.estab-menu-link:focus {
    background: #eef3f8;
    outline: 3px solid #111827;
    outline-offset: 2px;
}

.estab-menu-icon {
    align-items: center;
    display: flex;
    justify-content: center;
}

.estab-menu-icon img {
    max-height: 4.5rem;
}

.estab-menu-copy {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.estab-menu-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.estab-menu-description {
    color: #3b4a5d;
    font-size: 0.9rem;
    line-height: 1.35;
}

.estab-menu-badge {
    background: #e6edf5;
    border-radius: 999px;
    color: #183454;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    justify-self: start;
    padding: 0.3rem 0.55rem;
}

.estab-menu-card-locked {
    background: #f4f5f6;
    border-style: dashed;
}

.estab-menu-card-locked .estab-menu-link {
    color: #4d5968;
}

.estab-menu-card-locked .estab-menu-badge {
    background: #fff3cd;
    color: #664d03;
}

.estab-menu-card-administration {
    border-color: #8b5d28;
}

.estab-menu-card-administration .estab-menu-badge {
    background: #f6e5d0;
    color: #623b0e;
}

.estab-button {
    background: #eef3f8;
    border: 2px solid #355b8c;
    border-radius: 6px;
    box-sizing: border-box;
    color: #183454;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
}

.estab-button:hover,
.estab-button:focus {
    background: #dbe8f5;
    outline: 3px solid #111827;
    outline-offset: 2px;
}

.estab-button-primary {
    background: #245a92;
    color: #ffffff;
}

.estab-button-primary:hover,
.estab-button-primary:focus {
    background: #184471;
}

.estab-button[disabled] {
    background: #e5e5e5;
    border-color: #888888;
    color: #555555;
    cursor: not-allowed;
}

.estab-auth-error {
    background: #fff1f0;
    border: 2px solid #a9231d;
    border-radius: 6px;
    color: #711712;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
}

.estab-auth-note {
    background: #f4f7fa;
    border-left: 4px solid #355b8c;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
}

.estab-auth-form {
    border: 0;
    margin: 0;
    padding: 0;
}

.estab-auth-form legend {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.estab-auth-fields {
    border-collapse: collapse;
    width: 100%;
}

.estab-auth-fields th,
.estab-auth-fields td {
    padding: 0.45rem 0.35rem;
    text-align: left;
    vertical-align: top;
}

.estab-auth-fields th {
    width: 13rem;
}

.estab-auth-fields label {
    display: inline-block;
    font-weight: 700;
    padding-top: 0.55rem;
}

.estab-auth-fields input,
.estab-auth-fields select {
    border: 1px solid #5f6f82;
    border-radius: 4px;
    box-sizing: border-box;
    font: inherit;
    max-width: 100%;
    padding: 0.55rem;
    width: 24rem;
}

.estab-auth-fields input:focus,
.estab-auth-fields select:focus {
    outline: 3px solid #111827;
    outline-offset: 1px;
}

.estab-account-list {
    border-collapse: collapse;
    margin-top: 0.75rem;
    width: 100%;
}

.estab-account-list th,
.estab-account-list td {
    border: 1px solid #7f8da0;
    padding: 0.55rem;
    text-align: left;
}

.estab-account-list th {
    background: #e6edf5;
}

.estab-account-active {
    background: #e3f6d5;
}

.estab-account-inactive {
    background: #f0f0f0;
}

.estab-admin-dashboard-page {
    background: #f3f6f9;
    color: #17263a;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.estab-admin-dashboard {
    box-sizing: border-box;
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 82rem;
    padding: 2rem 1rem 3rem;
}

.estab-admin-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(17, 47, 79, 0.97), rgba(39, 86, 130, 0.94));
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 38, 63, 0.18);
    color: #ffffff;
    padding: clamp(1.35rem, 3vw, 2.3rem);
}

.estab-admin-dashboard-hero h1,
.estab-admin-dashboard-hero p,
.estab-admin-dashboard-section h2,
.estab-admin-dashboard-section p {
    margin-top: 0;
}

.estab-admin-dashboard-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 0.7rem;
}

.estab-admin-dashboard-hero > p:last-child {
    color: #e5eef7;
    margin-bottom: 0;
    max-width: 54rem;
}

.estab-admin-dashboard-eyebrow {
    color: #f4ca70;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.estab-admin-dashboard-notice {
    background: #fff8dd;
    border: 1px solid #d5b45a;
    border-left: 5px solid #b47a05;
    border-radius: 10px;
    color: #5b430e;
    padding: 1rem 1.1rem;
}

.estab-admin-dashboard-section {
    background: #ffffff;
    border: 1px solid #c5d1dd;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31, 58, 86, 0.08);
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.estab-admin-dashboard-section-heading {
    margin-bottom: 1rem;
}

.estab-admin-dashboard-section-heading h2 {
    color: #153c64;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.estab-admin-dashboard-section-heading p {
    color: #52657a;
    margin-bottom: 0;
    max-width: 58rem;
}

.estab-admin-dashboard-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.estab-admin-dashboard-card {
    align-items: center;
    background: #f8fafc;
    border: 2px solid #c3d0de;
    border-radius: 10px;
    box-sizing: border-box;
    color: #17263a;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    min-height: 9.5rem;
    padding: 1rem;
    text-decoration: none;
}

.estab-admin-dashboard-card:hover {
    background: #eef5fc;
    border-color: #2b659a;
    box-shadow: 0 7px 18px rgba(31, 75, 116, 0.15);
}

.estab-admin-dashboard-card:focus-visible {
    outline: 4px solid #e5b247;
    outline-offset: 3px;
}

.estab-admin-dashboard-number {
    align-items: center;
    background: #173f67;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.estab-admin-dashboard-card-content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.estab-admin-dashboard-card-content strong {
    color: #123a62;
    font-size: 1.12rem;
    line-height: 1.25;
}

.estab-admin-dashboard-card-content > span:last-child {
    color: #506176;
    overflow-wrap: anywhere;
}

.estab-admin-dashboard-badge {
    color: #7a5100;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.estab-admin-dashboard-arrow {
    color: #245c91;
    font-size: 1.6rem;
    font-weight: 800;
}

.estab-admin-dashboard-footer {
    align-items: baseline;
    color: #5b6a7c;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.estab-admin-dashboard-footer a {
    color: #214f7d;
    font-weight: 800;
    min-height: 2.75rem;
    padding: 0.55rem 0;
}

.estab-export-page {
    background: #f3f6f9;
    color: #17263a;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.estab-export-main {
    box-sizing: border-box;
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 82rem;
    padding: 2rem 1rem 3rem;
}

.estab-export-hero {
    background:
        linear-gradient(135deg, rgba(17, 47, 79, 0.96), rgba(39, 86, 130, 0.94));
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 38, 63, 0.18);
    color: #ffffff;
    padding: clamp(1.35rem, 3vw, 2.3rem);
}

.estab-export-hero h1,
.estab-export-hero p,
.estab-export-create h2,
.estab-export-create p,
.estab-export-section-heading h2,
.estab-export-section-heading p,
.estab-export-card h3,
.estab-export-card p {
    margin-top: 0;
}

.estab-export-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.estab-export-hero > p:last-child {
    color: #e4edf7;
    margin-bottom: 0;
    max-width: 65rem;
}

.estab-export-eyebrow,
.estab-export-card-kicker {
    color: #47627f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.estab-export-hero .estab-export-eyebrow {
    color: #c4dbf0;
}

.estab-export-alert {
    border: 2px solid;
    border-radius: 10px;
    font-weight: 700;
    margin: 0;
    padding: 0.9rem 1rem;
}

.estab-export-alert-success {
    background: #e7f6eb;
    border-color: #2b7a42;
    color: #174d2a;
}

.estab-export-alert-error {
    background: #fff0ef;
    border-color: #b52a24;
    color: #741a16;
}

.estab-incident-export-main {
    max-width: 68rem;
}

.estab-incident-export-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
}

.estab-incident-export-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.estab-incident-export-field {
    display: grid;
    gap: 0.35rem;
}

.estab-incident-export-field > span,
.estab-incident-export-sections legend {
    color: #183454;
    font-weight: 800;
}

.estab-incident-export-field select {
    background: #ffffff;
    border: 1px solid #7d91a7;
    border-radius: 8px;
    box-sizing: border-box;
    color: #17263a;
    font: inherit;
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.estab-incident-export-field select:focus-visible,
.estab-incident-export-option input:focus-visible {
    outline: 3px solid #f0b429;
    outline-offset: 2px;
}

.estab-incident-export-sections {
    border: 1px solid #c6d2df;
    border-radius: 10px;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 1rem;
}

.estab-incident-export-sections legend {
    padding: 0 0.35rem;
}

.estab-incident-export-option {
    align-items: start;
    background: #f4f7fa;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 3rem;
    padding: 0.75rem;
}

.estab-incident-export-option:hover {
    background: #eaf1f8;
    border-color: #7d91a7;
}

.estab-incident-export-option input {
    height: 1.35rem;
    margin: 0.1rem 0 0;
    width: 1.35rem;
}

.estab-incident-export-option span {
    display: grid;
    gap: 0.15rem;
}

.estab-incident-export-option small,
.estab-incident-export-limit {
    color: #42546a;
}

.estab-incident-export-limit {
    background: #eef4fa;
    border-left: 5px solid #2b6397;
    margin: 0;
    padding: 0.8rem 0.9rem;
}

.estab-incident-indicator {
    align-items: center;
    border: 2px solid;
    border-radius: 10px;
    box-sizing: border-box;
    display: grid;
    gap: 0.2rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0.75rem 1rem;
    padding: 0.7rem 0.85rem;
}

.estab-incident-indicator-label {
    font-size: 0.72rem;
    font-weight: 800;
    grid-column: 1 / -1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estab-incident-indicator strong {
    font-size: 0.98rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.estab-incident-indicator > span:last-child,
.estab-incident-indicator > a {
    font-size: 0.84rem;
    justify-self: end;
}

.estab-incident-indicator-active {
    background: #163c2a;
    border-color: #4fbd7a;
    color: #f0fff5;
}

.estab-incident-indicator-active .estab-incident-indicator-label {
    color: #9ee0b7;
}

.estab-incident-indicator-alert {
    background: #5b1f24;
    border-color: #ff737b;
    color: #fff5f5;
}

.estab-incident-indicator-alert .estab-incident-indicator-label {
    color: #ffb7bb;
}

.estab-incident-indicator-alert > a {
    background: #ffffff;
    border-radius: 7px;
    color: #721c24;
    font-weight: 800;
    min-height: 2.4rem;
    padding: 0.55rem 0.7rem;
    text-align: center;
    text-decoration: none;
}

.estab-incident-indicator-alert > a:hover,
.estab-incident-indicator-alert > a:focus-visible {
    background: #fff0f0;
    outline: 3px solid #f0b429;
    outline-offset: 2px;
}

.estab-incident-indicator-compact {
    grid-template-columns: 1fr;
    margin: 0.6rem 0.75rem;
}

.estab-incident-indicator-compact > span:last-child,
.estab-incident-indicator-compact > a {
    justify-self: stretch;
}

.estab-incident-indicator-sidebar {
    margin: 0.75rem 0 0;
}

form[data-estab-incident-disabled="true"] {
    opacity: 0.58;
}

form[data-estab-incident-disabled="true"]::before {
    background: #fff0ef;
    border: 2px solid #b52a24;
    border-radius: 8px;
    color: #741a16;
    content: "Kein aktiver Einsatz – Eingaben sind gesperrt.";
    display: block;
    font: 700 0.95rem/1.4 Arial, Helvetica, sans-serif;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
}

@media (max-width: 44rem) {
    .estab-incident-indicator {
        grid-template-columns: 1fr;
        margin: 0.6rem 0.75rem;
    }

    .estab-incident-indicator > span:last-child,
    .estab-incident-indicator > a {
        justify-self: stretch;
    }
}

.estab-export-create {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c6d2df;
    border-left: 6px solid #2b6397;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(26, 50, 76, 0.08);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.25rem;
}

.estab-export-create h2 {
    margin-bottom: 0.3rem;
}

.estab-export-create p {
    color: #42546a;
    margin-bottom: 0;
    max-width: 58rem;
}

.estab-export-create form {
    margin: 0;
}

.estab-export-overview {
    display: grid;
    gap: 1rem;
}

.estab-export-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.estab-export-section-heading h2 {
    margin-bottom: 0;
}

.estab-export-count {
    align-items: center;
    background: #173a60;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 0.65rem;
}

.estab-export-empty {
    align-items: center;
    background: #ffffff;
    border: 2px dashed #9aabbd;
    border-radius: 10px;
    color: #42546a;
    display: grid;
    gap: 0.3rem;
    justify-items: center;
    padding: 2.4rem 1rem;
    text-align: center;
}

.estab-export-empty strong {
    color: #183454;
    font-size: 1.1rem;
}

.estab-export-list {
    display: grid;
    gap: 1rem;
}

.estab-export-card {
    background: #ffffff;
    border: 1px solid #c6d2df;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(26, 50, 76, 0.08);
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.estab-export-card-new {
    border: 3px solid #2f7a46;
    box-shadow: 0 7px 22px rgba(34, 105, 57, 0.16);
}

.estab-export-card-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.estab-export-card h3 {
    color: #183454;
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 0;
}

.estab-export-state {
    background: #e4f4e8;
    border: 1px solid #77a783;
    border-radius: 999px;
    color: #1d5b31;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.estab-export-state-warning {
    background: #fff3cf;
    border-color: #bd8b1c;
    color: #6c4b00;
}

.estab-export-metadata {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    margin: 0;
}

.estab-export-metadata > div {
    background: #f4f7fa;
    border-radius: 7px;
    min-width: 0;
    padding: 0.65rem 0.75rem;
}

.estab-export-metadata dt {
    color: #56677a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.estab-export-metadata dd {
    color: #17263a;
    font-weight: 700;
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.estab-export-actions {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.estab-export-actions .estab-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.75rem;
}

.estab-button-danger,
.estab-button-danger-outline {
    border-color: #a9231d;
}

.estab-button-danger {
    background: #a9231d;
    color: #ffffff;
}

.estab-button-danger:hover,
.estab-button-danger:focus {
    background: #7e1713;
}

.estab-button-danger-outline {
    background: #ffffff;
    color: #851c17;
}

.estab-button-danger-outline:hover,
.estab-button-danger-outline:focus {
    background: #fff0ef;
}

.estab-export-delete-confirm {
    max-width: 34rem;
}

.estab-export-delete-confirm > summary {
    cursor: pointer;
    list-style-position: inside;
}

.estab-export-delete-label-close {
    display: none;
}

.estab-export-delete-confirm[open] .estab-export-delete-label-open {
    display: none;
}

.estab-export-delete-confirm[open] .estab-export-delete-label-close {
    display: inline;
}

.estab-export-delete-panel {
    background: #fff4f3;
    border: 2px solid #b52a24;
    border-radius: 8px;
    color: #641713;
    margin-top: 0.65rem;
    padding: 0.9rem;
}

.estab-export-delete-panel p {
    margin: 0.35rem 0 0.8rem;
}

.estab-export-delete-panel form {
    margin: 0;
}

.estab-export-card-note {
    background: #fff8dd;
    border-left: 4px solid #bd8b1c;
    color: #664a09;
    margin-bottom: 0;
    padding: 0.7rem 0.8rem;
}

.estab-export-card-note-warning {
    max-width: 38rem;
}

.estab-export-manifest {
    border-top: 1px solid #c6d2df;
    padding-top: 0.85rem;
}

.estab-export-manifest > summary {
    color: #214f7d;
    cursor: pointer;
    font-weight: 800;
    min-height: 2.75rem;
    padding: 0.55rem 0;
}

.estab-export-manifest > summary:hover,
.estab-export-manifest > summary:focus-visible {
    color: #102f50;
    outline: 3px solid #e5b247;
    outline-offset: 2px;
}

.estab-export-manifest-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.estab-export-manifest-list li {
    align-items: start;
    background: #f4f7fa;
    border-radius: 7px;
    display: grid;
    gap: 0.25rem 0.8rem;
    grid-template-columns: minmax(8rem, 1fr) auto;
    padding: 0.65rem 0.75rem;
}

.estab-export-manifest-list code {
    color: #3c4d60;
    font-size: 0.78rem;
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

.estab-export-back {
    margin: 0;
}

.estab-export-back a {
    color: #214f7d;
    font-weight: 700;
}

/*
 * Shared administration and utility-page language.
 *
 * These classes deliberately mirror the administration dashboard and export
 * surfaces. Standalone tools therefore keep one visual hierarchy instead of
 * introducing page-local colour systems, controls and responsive behaviour.
 */
.estab-tool-page {
    background: #f3f6f9;
    color: #17263a;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.estab-tool-main {
    box-sizing: border-box;
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 82rem;
    padding: 2rem 1rem 3rem;
}

.estab-tool-main-wide {
    max-width: 90rem;
}

.estab-tool-main-narrow {
    max-width: 58rem;
}

.estab-tool-main *,
.estab-tool-main *::before,
.estab-tool-main *::after {
    box-sizing: border-box;
}

.estab-tool-main .estab-button {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.estab-tool-hero {
    background:
        linear-gradient(135deg, rgba(17, 47, 79, 0.97), rgba(39, 86, 130, 0.94));
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 38, 63, 0.18);
    color: #ffffff;
    padding: clamp(1.35rem, 3vw, 2.3rem);
}

.estab-tool-hero h1,
.estab-tool-hero p,
.estab-tool-panel h2,
.estab-tool-panel h3,
.estab-tool-card h3 {
    margin-top: 0;
}

.estab-tool-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.estab-tool-hero > p:last-child {
    color: #e5eef7;
    margin-bottom: 0;
    max-width: 65rem;
}

.estab-tool-eyebrow {
    color: #47627f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.estab-tool-hero .estab-tool-eyebrow {
    color: #f4ca70;
}

.estab-tool-panel,
.estab-tool-card,
.estab-tool-table-wrap {
    background: #ffffff;
    border: 1px solid #c5d1dd;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31, 58, 86, 0.08);
}

.estab-tool-panel {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.estab-tool-panel > .estab-tool-form {
    margin-top: 1rem;
}

.estab-tool-panel-heading {
    margin-bottom: 1rem;
}

.estab-tool-panel-heading h2 {
    color: #153c64;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.estab-tool-panel-heading > :last-child {
    color: #52657a;
    margin-bottom: 0;
    max-width: 62rem;
}

.estab-tool-notice,
.estab-tool-feedback,
.estab-tool-status {
    border: 2px solid;
    border-radius: 10px;
    margin: 0;
    padding: 0.9rem 1rem;
}

.estab-tool-notice {
    background: #eef4fa;
    border-color: #7d9bbb;
    border-left: 6px solid #2b6397;
    color: #29435f;
}

.estab-tool-notice > :first-child,
.estab-tool-notice > :last-child {
    margin-top: 0;
}

.estab-tool-notice > :last-child {
    margin-bottom: 0;
}

.estab-tool-notice-warning {
    background: #fff8dd;
    border-color: #d5b45a;
    border-left-color: #b47a05;
    color: #5b430e;
}

.estab-tool-feedback {
    font-weight: 700;
}

.estab-tool-feedback-success {
    background: #e7f6eb;
    border-color: #2b7a42;
    color: #174d2a;
}

.estab-tool-feedback-error {
    background: #fff0ef;
    border-color: #b52a24;
    color: #741a16;
}

.estab-tool-status {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.estab-tool-status-active {
    background: #e7f6eb;
    border-color: #2b7a42;
    color: #174d2a;
}

.estab-tool-status-danger {
    background: #fff0ef;
    border-color: #b52a24;
    color: #741a16;
}

.estab-tool-status strong,
.estab-tool-status span {
    display: block;
}

.estab-tool-status strong {
    font-size: 1.08rem;
}

.estab-tool-status form {
    margin: 0;
}

.estab-tool-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.estab-tool-form-grid,
.estab-tool-counter-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estab-tool-counter-grid {
    border: 0;
    margin: 0;
    padding: 0;
}

.estab-tool-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.estab-tool-field-wide {
    grid-column: 1 / -1;
}

.estab-tool-field > label,
.estab-tool-field > span:first-child,
.estab-tool-field legend {
    color: #183454;
    font-weight: 800;
}

.estab-tool-field input:not([type="checkbox"]):not([type="radio"]),
.estab-tool-field textarea,
.estab-tool-field select,
.estab-tool-action-stack input[type="password"] {
    background: #ffffff;
    border: 1px solid #7d91a7;
    border-radius: 8px;
    color: #17263a;
    font: inherit;
    min-height: 2.8rem;
    padding: 0.6rem 0.7rem;
    width: 100%;
}

.estab-tool-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.estab-tool-field input:focus-visible,
.estab-tool-field textarea:focus-visible,
.estab-tool-field select:focus-visible,
.estab-tool-action-stack input:focus-visible {
    outline: 3px solid #e5b247;
    outline-offset: 2px;
}

.estab-tool-field small,
.estab-tool-help {
    color: #52657a;
}

.estab-tool-field:is(details),
.estab-tool-field details,
.estab-tool-details,
.estab-tool-action-stack details {
    background: #f8fafc;
    border: 1px solid #c5d1dd;
    border-radius: 9px;
    padding: 0.35rem 0.65rem;
}

.estab-tool-field summary,
.estab-tool-details > summary,
.estab-tool-action-stack summary {
    color: #214f7d;
    cursor: pointer;
    font-weight: 800;
    min-height: 2.75rem;
    padding: 0.55rem 0.25rem;
}

.estab-tool-field summary:focus-visible,
.estab-tool-details > summary:focus-visible,
.estab-tool-action-stack summary:focus-visible {
    outline: 3px solid #e5b247;
    outline-offset: 2px;
}

.estab-tool-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.estab-tool-check {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 0.55rem;
    min-height: 2.75rem;
}

.estab-tool-check input {
    height: 1.3rem;
    width: 1.3rem;
}

.estab-tool-list,
.estab-tool-action-stack {
    display: grid;
    gap: 0.85rem;
}

.estab-tool-card {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1.1rem;
}

.estab-tool-card h3 {
    margin-bottom: 0.45rem;
}

.estab-tool-card p {
    overflow-wrap: anywhere;
}

.estab-tool-card-active {
    border: 2px solid #2b7a42;
}

.estab-tool-card-code {
    color: #214f7d;
    display: inline-block;
    font: 800 0.85rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

.estab-tool-card-meta {
    color: #52657a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.93rem;
    gap: 0.35rem 1rem;
}

.estab-tool-card-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-width: 9rem;
}

.estab-tool-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}

.estab-tool-badge-success {
    background: #ddf5e6;
    color: #145d35;
}

.estab-tool-badge-danger {
    background: #ffe3e7;
    color: #8c1424;
}

.estab-tool-badge-neutral {
    background: #e8edf3;
    color: #455368;
}

.estab-tool-table-wrap {
    overflow-x: auto;
}

.estab-tool-table {
    border-collapse: collapse;
    min-width: 54rem;
    width: 100%;
}

.estab-tool-table th,
.estab-tool-table td {
    border-bottom: 1px solid #cbd5e1;
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.estab-tool-table thead th {
    background: #e8eef6;
    color: #24344a;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.estab-tool-table tbody tr:last-child > * {
    border-bottom: 0;
}

.estab-tool-table-number {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
    white-space: nowrap;
}

.estab-tool-identity strong,
.estab-tool-identity span {
    display: block;
}

.estab-tool-identity span {
    color: #52657a;
    font-size: 0.9rem;
}

.estab-tool-action-stack {
    min-width: 20rem;
}

.estab-tool-action-stack form {
    display: grid;
    gap: 0.65rem;
    margin: 0.45rem 0;
}

.estab-tool-action-stack label {
    display: grid;
    font-weight: 700;
    gap: 0.25rem;
}

.estab-tool-empty {
    color: #52657a;
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
}

.estab-tool-footer {
    align-items: baseline;
    color: #5b6a7c;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.estab-tool-footer a {
    color: #214f7d;
    font-weight: 800;
    min-height: 2.75rem;
    padding: 0.55rem 0;
}

.estab-tool-main code {
    overflow-wrap: anywhere;
}

.estab-tool-matrix-table {
    min-width: 68rem;
}

.estab-tool-matrix-options {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.estab-tool-matrix-options .estab-tool-check {
    font-weight: 700;
    min-height: 2.5rem;
}

.estab-tool-logbook-table {
    min-width: 56rem;
}

.estab-tool-legacy-content {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.estab-tool-legacy-content > :first-child {
    margin-top: 0;
}

.estab-tool-legacy-content > :last-child {
    margin-bottom: 0;
}

.estab-tool-legacy-content table {
    border-collapse: collapse;
}

.estab-tool-legacy-content th,
.estab-tool-legacy-content td {
    padding: 0.45rem;
}

.estab-tool-legacy-content input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
.estab-tool-legacy-content textarea,
.estab-tool-legacy-content select {
    box-sizing: border-box;
    font: inherit;
    max-width: 100%;
    min-height: 2.5rem;
}

.estab-tool-legacy-content button,
.estab-tool-legacy-content input[type="submit"] {
    min-height: 2.75rem;
}

.estab-tool-legacy-content a:focus-visible,
.estab-tool-legacy-content button:focus-visible,
.estab-tool-legacy-content input:focus-visible,
.estab-tool-legacy-content select:focus-visible,
.estab-tool-legacy-content textarea:focus-visible {
    outline: 3px solid #e5b247;
    outline-offset: 2px;
}

@media (max-width: 42rem) {
    .estab-message-workspace-document,
    .estab-message-workspace {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    .estab-message-workspace-grid {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 100dvh 100dvh;
    }

    .estab-message-sidebar-frame {
        border-bottom: 2px solid #45627f;
        border-right: 0;
    }

    .estab-mobile-sidebar-return {
        align-items: center;
        background: #172f4d;
        border: 2px solid #ffffff;
        border-radius: 999px;
        bottom: 1rem;
        box-shadow: 0 4px 14px rgba(5, 14, 26, 0.45);
        color: #ffffff;
        cursor: pointer;
        display: inline-flex;
        font: 700 0.95rem Arial, Helvetica, sans-serif;
        gap: 0.4rem;
        justify-content: center;
        min-height: 2.75rem;
        min-width: 6.5rem;
        padding: 0.55rem 0.85rem;
        position: fixed;
        right: 1rem;
        z-index: 2000;
    }

    .estab-mobile-sidebar-return:hover,
    .estab-mobile-sidebar-return:focus-visible {
        background: #294b70;
        outline: 3px solid #e5b247;
        outline-offset: 2px;
    }

    .estab-session-topline {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .estab-session-brand {
        align-self: center;
    }

    .estab-session-identity,
    .estab-session-anonymous {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .estab-session-detail {
        border-left: 0;
        padding-left: 0;
    }

    .estab-session-admin-context {
        border-left: 0;
        padding-left: 0;
    }

    .estab-session-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .estab-navigation-content {
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0;
        scrollbar-width: thin;
    }

    .estab-navigation-list {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .estab-navigation-link {
        min-height: 2.9rem;
        white-space: nowrap;
    }

    .estab-navigation-services {
        flex: 0 0 auto;
    }

    .estab-login-cta {
        margin: 1rem auto;
        max-width: 100%;
        overflow-wrap: anywhere;
        padding: 1.1rem;
        width: 100%;
    }

    .estab-root-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .estab-root-auth-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .estab-root-auth-actions .estab-button {
        width: 100%;
    }

    .estab-auth-fields,
    .estab-auth-fields tbody,
    .estab-auth-fields tr,
    .estab-auth-fields th,
    .estab-auth-fields td {
        display: block;
        width: 100%;
    }

    .estab-auth-fields th {
        padding-bottom: 0;
    }

    .estab-root-menu {
        grid-template-columns: 1fr;
    }

    .estab-menu-link {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .estab-admin-dashboard {
        padding: 1rem 0.75rem 2rem;
    }

    .estab-admin-dashboard-card {
        align-items: start;
        gap: 0.75rem;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        min-height: 0;
        padding: 0.9rem;
    }

    .estab-admin-dashboard-number {
        height: 2.75rem;
        width: 2.75rem;
    }

    .estab-admin-dashboard-arrow {
        display: none;
    }

    .estab-admin-dashboard-footer {
        align-items: stretch;
        display: grid;
    }

    .estab-export-main {
        padding: 1rem 0.75rem 2rem;
    }

    .estab-export-create {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .estab-export-create .estab-button,
    .estab-export-actions > .estab-button,
    .estab-export-delete-confirm {
        box-sizing: border-box;
        width: 100%;
    }

    .estab-export-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .estab-export-state {
        align-self: flex-start;
    }

    .estab-export-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .estab-export-delete-confirm > summary,
    .estab-export-delete-panel .estab-button {
        box-sizing: border-box;
        width: 100%;
    }

    .estab-export-manifest-list li {
        grid-template-columns: 1fr;
    }

    .estab-export-manifest-list code {
        grid-column: 1;
    }

    .estab-tool-main {
        padding: 1rem 0.75rem 2rem;
    }

    .estab-tool-form-grid,
    .estab-tool-counter-grid,
    .estab-tool-status,
    .estab-tool-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .estab-tool-field-wide {
        grid-column: 1;
    }

    .estab-tool-status .estab-button,
    .estab-tool-actions .estab-button {
        width: 100%;
    }

    .estab-tool-card-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .estab-tool-table-responsive {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .estab-tool-table-responsive .estab-tool-table,
    .estab-tool-table-responsive .estab-tool-table tbody,
    .estab-tool-table-responsive .estab-tool-table tr,
    .estab-tool-table-responsive .estab-tool-table th,
    .estab-tool-table-responsive .estab-tool-table td {
        display: block;
        min-width: 0;
        width: auto;
    }

    .estab-tool-table-responsive .estab-tool-table thead {
        border: 0;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .estab-tool-table-responsive .estab-tool-table tbody {
        display: grid;
        gap: 1rem;
    }

    .estab-tool-table-responsive .estab-tool-table tbody tr {
        background: #ffffff;
        border: 1px solid #c5d1dd;
        border-radius: 10px;
        box-shadow: 0 5px 18px rgba(31, 58, 86, 0.08);
        overflow: hidden;
    }

    .estab-tool-table-responsive .estab-tool-table td {
        border-bottom: 1px solid #cbd5e1;
        padding: 0.75rem 1rem;
        text-align: left !important;
    }

    .estab-tool-table-responsive .estab-tool-table td:last-child {
        border-bottom: 0;
    }

    .estab-tool-table-responsive .estab-tool-table td::before {
        color: #52657a;
        content: attr(data-label);
        display: block;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        margin-bottom: 0.2rem;
        text-transform: uppercase;
    }

    .estab-tool-action-stack {
        min-width: 0;
    }

    .estab-tool-footer {
        align-items: stretch;
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estab-sidebar-status-notification {
        animation: none;
    }
}

@media (max-width: 64rem) {
    .estab-root-header {
        gap: 0.5rem;
        grid-template-columns: minmax(2.75rem, 5rem) minmax(0, 1fr) minmax(2.75rem, 5rem);
        padding: 0.6rem;
        width: calc(100% - 1.5rem);
    }
}

@media print {
    .estab-session-bar {
        display: none !important;
    }

    .estab-export-create,
    .estab-export-actions,
    .estab-export-back,
    .estab-admin-dashboard-notice,
    .estab-tool-actions,
    .estab-tool-footer {
        display: none !important;
    }
}

/* Responsive BOS information workspace and its persistent document sidebar. */
.estab-bos-sidebar {
    align-content: start;
}

.estab-bos-document-navigation {
    background: #172f4d;
    border: 1px solid #45627f;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(5, 14, 26, 0.3);
    box-sizing: border-box;
    color: #ffffff;
    min-width: 0;
    padding: 0.75rem;
}

.estab-bos-document-navigation .estab-sidebar-section-heading h1 {
    font-size: 0.95rem;
    margin: 0;
}

.estab-bos-document-list {
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
}

.estab-bos-document-list li {
    min-width: 0;
}

.estab-bos-document-link {
    align-items: flex-start;
    background: #183654;
    border: 1px solid #5d7692;
    border-left: 4px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.5rem;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    width: 100%;
}

.estab-bos-document-link:hover,
.estab-bos-document-link:focus-visible {
    background: #294b70;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.estab-bos-document-link[aria-current="page"] {
    background: #294b70;
    border-left-color: #e5b247;
}

.estab-bos-document-link strong {
    font-size: 0.86rem;
    line-height: 1.25;
}

.estab-bos-document-link span {
    color: #c5d6e8;
    font-size: 0.76rem;
    line-height: 1.3;
    margin-top: 0.12rem;
}

.estab-bos-embedded-document {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.estab-bos-embedded-content {
    background: #f4f7fa !important;
    box-sizing: border-box;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: 100% !important;
    min-width: 0;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    padding: clamp(0.75rem, 2.5vw, 2rem);
    width: auto !important;
}

.estab-bos-embedded-content *,
.estab-bos-embedded-content *::before,
.estab-bos-embedded-content *::after {
    box-sizing: border-box;
    max-width: 100%;
}

.estab-bos-embedded-content img {
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    width: auto !important;
}

.estab-bos-embedded-content table {
    max-width: 100% !important;
}

.estab-bos-embedded-content pre {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.estab-bos-welcome-page {
    align-items: center;
    display: grid;
    min-height: 100dvh;
}

.estab-bos-welcome {
    background: #ffffff;
    border: 1px solid #8da2bd;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(23, 32, 51, 0.12);
    margin: 0 auto;
    max-width: 48rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.estab-bos-welcome-kicker {
    color: #214f7d;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.estab-bos-welcome h1 {
    color: #172f4d;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin: 0.35rem 0 0.75rem;
}

.estab-bos-welcome p {
    line-height: 1.55;
    margin: 0;
}

.estab-bos-welcome-hint {
    background: #eef3f8;
    border-left: 4px solid #e5b247;
    border-radius: 5px;
    color: #3b4a5d;
    margin-top: 1.25rem !important;
    padding: 0.8rem 0.9rem;
}

@media (max-width: 42rem) {
    .estab-bos-embedded-content {
        padding: 0.65rem;
    }

    .estab-bos-embedded-content table {
        height: auto !important;
        table-layout: fixed;
        width: 100% !important;
    }

    .estab-bos-embedded-content td,
    .estab-bos-embedded-content th {
        height: auto !important;
        overflow-wrap: anywhere;
        width: auto !important;
    }

    .estab-bos-welcome {
        border-radius: 8px;
        padding: 1.25rem;
    }
}
