:root {
    color-scheme: light;
    --shell-background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(15, 118, 110, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
    --launcher-background: radial-gradient(circle at 12% 14%, rgba(46, 224, 214, 0.22), transparent 22%),
        radial-gradient(circle at 82% 24%, rgba(26, 101, 255, 0.22), transparent 24%),
        radial-gradient(circle at 66% 72%, rgba(255, 170, 84, 0.12), transparent 18%),
        linear-gradient(125deg, rgba(2, 81, 97, 0.98) 0%, rgba(8, 47, 101, 0.95) 44%, rgba(28, 23, 52, 0.94) 100%);
    --surface-border: rgba(148, 163, 184, 0.18);
    --surface-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --surface-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.06);
}

html,
body {
    margin: 0;
    height: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #06101f;
}

body {
    background-image: var(--shell-background);
    color: #0f172a;
}

a {
    color: inherit;
}

code {
    font-family: Consolas, "Courier New", monospace;
}

.centralhub-layout {
    min-height: 100dvh;
    background: #020617;
}

.centralhub-layout-app {
    background: linear-gradient(180deg, #e8eef8 0%, #dfe7f5 100%);
}

.centralhub-appbar {
    backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding-inline: 1rem;
}

.appbar-brand {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.appbar-tagline {
    opacity: 0.72;
    margin-left: 1rem;
}

.appbar-back-button {
    margin-right: 0.35rem;
}

.appbar-context {
    min-width: 0;
}

.appbar-context-label {
    opacity: 0.62;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appbar-context-title {
    font-weight: 700;
    line-height: 1.1;
}

.appbar-zoom-controls {
    margin-left: auto;
    padding-inline: 0.35rem;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.appbar-zoom-label {
    min-width: 3rem;
    text-align: center;
    font-weight: 600;
}

.appbar-user {
    margin-left: 0.75rem;
    padding: 0.2rem 0.35rem 0.2rem 0.75rem;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.appbar-user-name {
    max-width: min(18rem, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.appbar-login-button {
    margin-left: 0.75rem;
    border-color: rgba(248, 250, 252, 0.32) !important;
    color: #f8fafc !important;
    white-space: nowrap;
}

.appbar-logout-form {
    display: inline-flex;
    margin: 0;
}

.appbar-icon-submit {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.appbar-icon-submit:hover,
.appbar-icon-submit:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.auth-dialog .mud-dialog-content {
    padding: 0;
}

.auth-dialog-shell {
    width: min(100%, 28rem);
    padding: 1.25rem;
}

.auth-dialog-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #e8f2ff;
    color: #2563eb;
}

.auth-dialog-icon-warning {
    background: #fff3e7;
    color: #d65f00;
}

.account-dialog-shell {
    width: min(100%, 64rem);
    padding: 1rem 1.05rem 1.1rem;
}

.account-dialog .auth-dialog-heading {
    margin-bottom: 0.75rem;
}

.account-dialog-icon {
    background: #e8f2ff;
    color: #2563eb;
}

.auth-dialog-muted {
    color: #64748b;
}

.auth-dialog-alert {
    margin-bottom: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.account-dialog-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 5rem;
}

.account-dialog-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

.account-dialog-profile {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.account-dialog-profile > div {
    min-width: 0;
    padding: 0.58rem 0.65rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fafc;
}

.account-dialog-profile span {
    display: block;
    margin-bottom: 0.18rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-dialog-profile strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dialog-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin: 0;
}

.account-dialog-roles span {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0 0.62rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.account-dialog-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0.85rem;
    align-items: start;
}

.account-dialog-panel {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
}

.account-dialog-panel .auth-dialog-alert {
    margin-bottom: 0.65rem;
}

.account-dialog-section-heading {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

.account-dialog-section-heading .mud-icon-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #e8f2ff;
    color: #2563eb;
}

.account-dialog-section-heading-password .mud-icon-root {
    background: #e8f8f5;
    color: #0f766e;
}

.account-dialog-section-heading-wallpaper .mud-icon-root {
    background: #eef2ff;
    color: #4f46e5;
}

.account-dialog-divider {
    margin: 0.7rem 0;
    border-color: #e5edf4;
}

.account-dialog .auth-form {
    gap: 0.62rem;
}

.account-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.62rem;
}

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

.account-dialog .auth-field {
    gap: 0.25rem;
}

.account-dialog .auth-input-shell {
    min-height: 2.55rem;
    padding: 0 0.7rem;
}

.account-dialog .auth-dialog-actions {
    padding-top: 0.1rem;
}

.account-dialog .auth-secondary-button,
.account-dialog .auth-primary-submit {
    min-height: 2.35rem;
    padding: 0 0.9rem;
}

.account-validation-message {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
}

.account-wallpaper-manager {
    display: grid;
    gap: 0.65rem;
}

.account-wallpaper-preview {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 5.6rem;
    padding: 0.75rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: var(--launcher-background);
}

.account-wallpaper-preview.has-image {
    background:
        linear-gradient(125deg, rgba(2, 81, 97, 0.58), rgba(8, 10, 24, 0.62)),
        var(--account-wallpaper-image) center / cover no-repeat;
}

.account-wallpaper-preview span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 850;
}

.account-wallpaper-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.account-wallpaper-upload {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0 0.9rem;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 850;
    cursor: pointer;
}

.account-wallpaper-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.account-wallpaper-input:disabled {
    cursor: progress;
}

.account-wallpaper-progress {
    margin-top: -0.25rem;
}

.auth-field {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-input-shell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
}

.auth-input-shell:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.9rem;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.auth-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding-top: 0.3rem;
}

.auth-secondary-button,
.auth-primary-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-secondary-button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.auth-primary-submit {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.auth-danger-submit {
    border-color: #dc2626;
    background: #dc2626;
}

.centralhub-main {
    box-sizing: border-box;
    min-height: 100dvh;
    padding: 6.5rem 0 0;
    background: #020617;
}

.centralhub-main:not(.centralhub-main-app):not(.centralhub-main-config) {
    display: flex;
    flex-direction: column;
}

.centralhub-main-app {
    box-sizing: border-box;
    height: 100dvh;
    min-height: 100dvh;
    padding: 4.35rem 0 0;
    background: linear-gradient(180deg, #e8eef8 0%, #dfe7f5 100%);
    overflow: hidden;
}

.centralhub-main-config {
    min-height: 100dvh;
    padding: 6.25rem 0 2.5rem;
    background: var(--shell-background);
}

.centralhub-container {
    padding-inline: 1rem;
}

.centralhub-main:not(.centralhub-main-app):not(.centralhub-main-config) > .centralhub-container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.centralhub-container-app {
    height: 100%;
    min-height: 0;
    padding-inline: 0;
    overflow: hidden;
}

.centralhub-body {
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.centralhub-main:not(.centralhub-main-app):not(.centralhub-main-config) .centralhub-body {
    display: flex;
}

.centralhub-body-hidden {
    display: none;
}

.centralhub-container-config {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
}

.hero-panel,
.unknown-app-panel,
.host-header,
.iframe-shell,
.catalog-card,
.hero-stat-card,
.configuration-hero-panel,
.configuration-stat-card,
.configuration-panel {
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow-soft);
}

.launcher-page {
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: calc(100% + 2rem);
    margin: -2rem -1rem 0;
    padding: 2.3rem 2.1rem 0;
    border-radius: 0;
    background: var(--launcher-background);
}

.app-workspace-host-tabs-only + .centralhub-body .launcher-page {
    margin-top: 0;
}

.launcher-page-custom-background {
    background:
        linear-gradient(125deg, rgba(2, 81, 97, 0.76) 0%, rgba(8, 47, 101, 0.7) 44%, rgba(8, 10, 24, 0.76) 100%),
        var(--launcher-background-image) center / cover no-repeat;
}

.launcher-page::before {
    content: "";
    position: absolute;
    inset: auto -14% -10% -14%;
    height: 52%;
    background:
        radial-gradient(ellipse at 14% 74%, rgba(3, 8, 22, 0.92) 0 28%, transparent 29%),
        radial-gradient(ellipse at 38% 90%, rgba(4, 10, 24, 0.94) 0 26%, transparent 27%),
        radial-gradient(ellipse at 62% 85%, rgba(4, 11, 27, 0.95) 0 30%, transparent 31%),
        radial-gradient(ellipse at 85% 74%, rgba(5, 12, 30, 0.96) 0 24%, transparent 25%),
        linear-gradient(180deg, transparent 0%, rgba(4, 9, 22, 0.2) 28%, rgba(4, 9, 22, 0.96) 100%);
    opacity: 0.96;
    pointer-events: none;
}

.launcher-page-custom-background::before {
    inset: 0;
    height: auto;
    background:
        radial-gradient(circle at 12% 14%, rgba(46, 224, 214, 0.18), transparent 22%),
        radial-gradient(circle at 82% 24%, rgba(26, 101, 255, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.56) 100%);
    opacity: 1;
}

.launcher-page::after {
    content: "";
    position: absolute;
    left: 34%;
    bottom: 14%;
    width: 48%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(81, 206, 255, 0), rgba(81, 206, 255, 0.85), rgba(81, 206, 255, 0));
    box-shadow: 0 0 18px rgba(81, 206, 255, 0.48);
    opacity: 0.8;
    transform: rotate(-11deg);
    pointer-events: none;
}

.launcher-page-custom-background::after {
    display: none;
}

.launcher-content {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

.launcher-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.launcher-eyebrow {
    margin: 0 0 0.35rem;
    color: rgba(232, 248, 255, 0.84);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.launcher-title {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.04;
    text-shadow: 0 8px 24px rgba(4, 12, 31, 0.25);
}

h1:focus,
.launcher-title:focus {
    outline: none;
    box-shadow: none;
}

.launcher-subtitle {
    margin: 0.45rem 0 0;
    max-width: 42rem;
    color: rgba(226, 240, 249, 0.84);
    font-size: 1rem;
}

.launcher-alert {
    margin-bottom: 1.5rem;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 2.15rem 2.75rem;
    align-items: start;
}

.launcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    color: #f8fafc;
    text-align: center;
    backdrop-filter: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.launcher-item:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
}

.launcher-item-system .launcher-icon-card {
    outline: 0;
}

.launcher-icon-card {
    position: relative;
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    display: grid;
    place-items: center;
    border-radius: 1.3rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.launcher-item:hover .launcher-icon-card {
    transform: scale(1.04);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.launcher-icon-card-logo {
    overflow: visible;
}

.launcher-external-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.launcher-glyph {
    --tile-accent-soft: color-mix(in srgb, var(--tile-accent) 72%, white);
    --tile-accent-deep: color-mix(in srgb, var(--tile-accent) 72%, #35255c);
    --tile-accent-ring: color-mix(in srgb, var(--tile-accent) 78%, #0f172a);
    position: relative;
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 1.3rem;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.82), transparent 20%),
        linear-gradient(135deg, var(--tile-accent-soft), var(--tile-accent));
    color: white;
    box-shadow:
        0 0 0 0.28rem var(--tile-accent-ring),
        0 14px 22px rgba(0, 0, 0, 0.2),
        inset 0 -12px 20px rgba(15, 23, 42, 0.14);
}

.launcher-glyph-logo {
    width: 5rem;
    height: 5rem;
    border-radius: 1.3rem;
    background: transparent;
    box-shadow:
        0 0 0 0.28rem var(--tile-accent),
        0 14px 22px rgba(0, 0, 0, 0.24);
}

.glyph-layer {
    position: absolute;
    display: block;
}

.launcher-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1.3rem;
    filter: none;
}

.launcher-material-icon {
    width: 2.2rem !important;
    height: 2.2rem !important;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.22));
}

.launcher-glyph-0 .glyph-layer-a {
    top: 10px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 10px 14px 10px 14px;
    background: var(--tile-accent-soft);
}

.launcher-glyph-0 .glyph-layer-b {
    right: 6px;
    top: 4px;
    width: 18px;
    height: 46px;
    border-radius: 0 16px 6px 16px;
    background: var(--tile-accent);
}

.launcher-glyph-0 .glyph-layer-c {
    left: 14px;
    bottom: 8px;
    width: 36px;
    height: 10px;
    border-radius: 999px;
    background: var(--tile-accent-deep);
    transform: rotate(-36deg);
}

.launcher-glyph-1 .glyph-layer-a {
    left: 6px;
    top: 8px;
    width: 44px;
    height: 14px;
    border-radius: 999px;
    background: var(--tile-accent-soft);
}

.launcher-glyph-1 .glyph-layer-b {
    left: 6px;
    top: 22px;
    width: 44px;
    height: 14px;
    border-radius: 999px;
    background: var(--tile-accent-deep);
}

.launcher-glyph-1 .glyph-layer-c {
    left: 6px;
    top: 36px;
    width: 44px;
    height: 14px;
    border-radius: 999px;
    background: var(--tile-accent);
}

.launcher-glyph-2 .glyph-layer-a {
    left: 7px;
    top: 7px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: var(--tile-accent-soft);
}

.launcher-glyph-2 .glyph-layer-b {
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border: 6px solid white;
    border-radius: 999px;
    box-sizing: border-box;
}

.launcher-glyph-2 .glyph-layer-c {
    left: 25px;
    top: 31px;
    width: 24px;
    height: 7px;
    border-radius: 999px;
    background: var(--tile-accent-deep);
    transform: rotate(32deg);
}

.launcher-glyph-3 .glyph-layer-a {
    left: 6px;
    top: 8px;
    width: 20px;
    height: 40px;
    border-radius: 8px;
    background: var(--tile-accent-deep);
}

.launcher-glyph-3 .glyph-layer-b {
    left: 24px;
    top: 4px;
    width: 20px;
    height: 44px;
    border-radius: 8px;
    background: var(--tile-accent);
}

.launcher-glyph-3 .glyph-layer-c {
    left: 40px;
    top: 12px;
    width: 12px;
    height: 36px;
    border-radius: 999px 999px 4px 4px;
    background: var(--tile-accent-soft);
}

.launcher-glyph-4 .glyph-layer-a {
    left: 7px;
    top: 7px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--tile-accent-soft);
    transform: rotate(14deg);
}

.launcher-glyph-4 .glyph-layer-b {
    right: 7px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--tile-accent-deep);
    transform: rotate(-18deg);
}

.launcher-glyph-4 .glyph-layer-c {
    left: 14px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--tile-accent);
    transform: rotate(46deg);
}

.launcher-glyph-5 .glyph-layer-a {
    left: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 8px solid var(--tile-accent-soft);
    border-right-color: transparent;
    box-sizing: border-box;
}

.launcher-glyph-5 .glyph-layer-b {
    left: 18px;
    top: 18px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: white;
}

.launcher-glyph-5 .glyph-layer-c {
    right: 9px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--tile-accent-deep);
}

.launcher-item-copy {
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
    gap: 0.2rem;
}

.launcher-item-label {
    max-width: 8.5rem;
    overflow: hidden;
    color: rgba(248, 250, 252, 0.96);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
    white-space: nowrap;
}

.launcher-item-key {
    max-width: 8rem;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.44);
    white-space: nowrap;
}

.launcher-tech-footer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: 3rem -2.1rem 0;
    padding: 0.9rem 2.1rem;
    border-top: 1px solid rgba(45, 212, 191, 0.22);
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 145, 178, 0.24), transparent 24rem),
        #020617;
    color: #e5edf7;
    box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.38);
}

.launcher-tech-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0;
    min-width: 0;
}

.launcher-tech-line span:first-child {
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.launcher-tech-line strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.launcher-tech-line span:not(:first-child) {
    color: #f8fafc;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.configuration-page {
    display: grid;
    gap: 1.4rem;
}

.configuration-hero-panel,
.configuration-stat-card,
.configuration-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.configuration-hero-panel {
    padding: 2rem;
    overflow: hidden;
}

.configuration-hero-content {
    flex-wrap: wrap;
}

.configuration-hero-icon {
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.configuration-kicker {
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.configuration-title {
    margin: 0.15rem 0;
    font-weight: 800;
    color: #0f172a;
}

.configuration-subtitle,
.configuration-muted {
    color: #475569;
}

.configuration-stats,
.configuration-grid {
    margin-top: 0;
}

.configuration-stat-card,
.configuration-panel {
    padding: 1.35rem;
}

.configuration-stat-label,
.configuration-source-label {
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.configuration-stat-value {
    margin-top: 0.25rem;
    color: #0f172a;
    font-weight: 800;
}

.configuration-stat-help {
    color: #64748b;
}

.configuration-panel-heading {
    gap: 1rem;
}

.configuration-heading-actions,
.configuration-form-actions,
.configuration-row-actions {
    flex-wrap: wrap;
}

.configuration-divider {
    margin: 1.15rem 0;
}

.configuration-section-title {
    margin-bottom: 0.25rem;
    color: #0f172a;
    font-weight: 800;
}

.configuration-app-list {
    display: grid;
    gap: 0.85rem;
}

.configuration-app-table .mud-table-cell {
    vertical-align: middle;
}

.configuration-app-table-icon,
.configuration-editor-preview {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tile-accent) 68%, white), var(--tile-accent));
    color: white;
    box-shadow:
        0 0 0 0.12rem color-mix(in srgb, var(--tile-accent) 78%, #0f172a),
        0 10px 22px rgba(15, 23, 42, 0.16);
}

.configuration-visual-logo {
    background: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.22),
        0 10px 22px rgba(15, 23, 42, 0.12);
}

.configuration-logo {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 10px;
}

.configuration-app-table-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.configuration-editor-preview {
    width: 3.6rem;
    height: 3.6rem;
}

.configuration-app-dialog {
    min-width: min(100%, 42rem);
}

.configuration-app-dialog .mud-grid {
    margin-top: 0;
}

.configuration-editor-panel {
    position: sticky;
    top: 5.5rem;
}

.configuration-form-alert {
    margin-bottom: 1rem;
}

.configuration-app-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.78);
}

.configuration-app-accent {
    width: 0.45rem;
    align-self: stretch;
    min-height: 4rem;
    border-radius: 999px;
}

.configuration-app-main {
    min-width: 0;
    flex: 1;
}

.configuration-app-title {
    font-weight: 800;
    color: #0f172a;
}

.configuration-app-description {
    color: #475569;
}

.configuration-app-url {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configuration-order-controls {
    width: 8.2rem;
}

.configuration-order-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.configuration-app-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.configuration-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.configuration-badge-success {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.configuration-badge-info {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.configuration-badge-muted {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.app-access-dialog-content {
    min-width: min(100%, 58rem);
}

.app-access-note {
    margin: 0.85rem 0 1rem;
}

.app-access-panel {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    min-height: 22rem;
    padding: 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.app-access-chip-set {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2.35rem;
}

.app-access-chip,
.app-access-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
}

.app-access-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-access-chip button {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.app-access-chip button:hover {
    background: #fee2e2;
    color: #dc2626;
}

.app-access-chip-locked {
    border-color: rgba(15, 118, 110, 0.35);
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.app-access-empty {
    border-style: dashed;
    color: #64748b;
    font-weight: 600;
}

.app-access-picker-list {
    display: grid;
    gap: 0.45rem;
    max-height: 18rem;
    overflow: auto;
}

.app-access-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.app-access-picker-row:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.app-access-picker-row span {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.app-access-picker-row strong,
.app-access-picker-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-access-picker-row small {
    color: #64748b;
}

.configuration-side-panel {
    margin-top: 1rem;
}

.configuration-source-block {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.15rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: #f8fafc;
}

.configuration-source-block code {
    color: #0f172a;
    word-break: break-word;
}

.configuration-keycloak-status {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.configuration-keycloak-status > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.configuration-keycloak-status strong {
    color: #0f172a;
    font-weight: 900;
}

.configuration-keycloak-status span:last-child {
    color: #64748b;
    word-break: break-word;
}

.configuration-keycloak-status-dot {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 0.3rem rgba(148, 163, 184, 0.16);
}

.configuration-keycloak-status-dot.is-ready {
    background: #10b981;
    box-shadow: 0 0 0 0.3rem rgba(16, 185, 129, 0.16);
}

.configuration-keycloak-status-dot.is-warning {
    background: #f97316;
    box-shadow: 0 0 0 0.3rem rgba(249, 115, 22, 0.16);
}

.configuration-keycloak-status-dot.is-info {
    background: #2563eb;
    box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.16);
}

.configuration-keycloak-status-dot.is-error {
    background: #dc2626;
    box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.16);
}

.configuration-update-running {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: -0.25rem 0 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
}

.configuration-update-running > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.configuration-update-running strong {
    color: #1e3a8a;
    font-weight: 900;
}

.configuration-update-running span {
    color: #375985;
}

.configuration-update-running-icon {
    color: #2563eb;
    animation: configuration-spin 1s linear infinite;
}

@keyframes configuration-spin {
    to {
        transform: rotate(360deg);
    }
}

.configuration-keycloak-grid {
    margin-top: 0.25rem;
}

.configuration-keycloak-flow-panel {
    margin-top: 1rem;
}

.configuration-keycloak-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.configuration-keycloak-flow-step {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.configuration-keycloak-flow-step span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #075985;
    color: #ffffff;
    font-weight: 900;
}

.configuration-keycloak-flow-step strong {
    color: #0f172a;
    font-weight: 900;
}

.configuration-keycloak-flow-step p {
    margin: 0;
    color: #64748b;
}

.configuration-note {
    margin-top: 1.2rem;
}

.iframe-shell,
.unknown-app-panel {
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
}

.app-host-page {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.app-host-route-placeholder {
    pointer-events: none;
}

.app-workspace-host {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #ffffff;
}

.app-workspace-host.is-visible {
    display: flex;
}

.app-workspace-host-appbar {
    display: flex;
    flex: 0 1 auto;
    width: auto;
    max-width: min(34rem, 40vw);
    height: auto;
    min-width: 0;
    min-height: 0;
    margin-left: 0.75rem;
    background: transparent;
}

.app-workspace-host-appbar.is-empty {
    display: none;
}

.app-workspace-host-panels-only {
    display: flex;
    height: 100%;
    min-height: 0;
}

.app-workspace-host-panels-only:not(.is-visible) {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.app-workspace-host-tabs-only {
    display: flex;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    width: calc(100% + 2rem);
    margin-inline: -1rem;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 31, 54, 0.98) 52%, rgba(15, 23, 42, 0.98) 100%);
}

.app-workspace-host-tabs-only .app-workspace-panels {
    display: none;
}

.app-workspace-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
    min-height: 3rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #dbe6ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.app-workspace-host-appbar .app-workspace-tabs {
    flex-wrap: nowrap;
    gap: 0.18rem;
    min-height: 2.35rem;
    padding: 0.18rem 0.28rem;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.app-workspace-host-appbar .app-workspace-tabs::-webkit-scrollbar {
    display: none;
}

.app-workspace-host-tabs-only .app-workspace-tabs {
    width: 100%;
    padding-inline: 1.25rem;
    border-bottom-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 31, 54, 0.98) 52%, rgba(15, 23, 42, 0.98) 100%);
}

.app-workspace-tab {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    position: relative;
    min-width: 0;
    max-width: none;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    overflow: hidden;
}

.app-workspace-host-appbar .app-workspace-tab {
    width: 2.15rem;
    height: 2.15rem;
    border-color: transparent;
    border-radius: 0.65rem;
    background: transparent;
    color: #e5eefb;
    overflow: visible;
    transition: background 0.16s ease, transform 0.16s ease;
}

.app-workspace-host-tabs-only .app-workspace-tab {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.68);
    color: #e5eefb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-workspace-tab.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #172554;
}

.app-workspace-host-appbar .app-workspace-tab.is-active {
    border-color: transparent;
    background: rgba(15, 23, 42, 0.5);
    color: #f8fafc;
}

.app-workspace-host-appbar .app-workspace-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.18rem;
    height: 2px;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 0.65rem rgba(34, 211, 238, 0.55);
}

.app-workspace-host-tabs-only .app-workspace-tab.is-active {
    border-color: rgba(34, 211, 238, 0.78);
    background: rgba(8, 47, 73, 0.8);
    color: #f8fafc;
    box-shadow: 0 0.4rem 1rem rgba(34, 211, 238, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.app-workspace-tab-main,
.app-workspace-tab-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.app-workspace-tab-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 2.75rem;
    height: 2.35rem;
    padding: 0;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
}

.app-workspace-host-appbar .app-workspace-tab-main {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.app-workspace-tab-main img {
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
}

.app-workspace-host-appbar .app-workspace-tab-main img {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.4rem;
    filter: drop-shadow(0 0.15rem 0.25rem rgba(2, 6, 23, 0.28));
}

.app-workspace-host-appbar .app-workspace-tab-main .mud-icon-root {
    font-size: 1.45rem;
    filter: drop-shadow(0 0.15rem 0.25rem rgba(2, 6, 23, 0.28));
}

.app-workspace-tab-close {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    min-width: 1.85rem;
    border-left: 1px solid rgba(148, 163, 184, 0.45);
}

.app-workspace-host-appbar .app-workspace-tab-close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.95rem;
    min-width: 0.95rem;
    height: 0.95rem;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.94);
    color: #f8fafc;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.app-workspace-host-appbar .app-workspace-tab-close .mud-icon-root {
    font-size: 0.74rem;
}

.app-workspace-host-appbar .app-workspace-tab:hover .app-workspace-tab-close,
.app-workspace-host-appbar .app-workspace-tab:focus-within .app-workspace-tab-close {
    opacity: 1;
    pointer-events: auto;
}

.app-workspace-tab-main:hover,
.app-workspace-tab-close:hover {
    background: rgba(37, 99, 235, 0.08);
}

.app-workspace-host-appbar .app-workspace-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.app-workspace-host-appbar .app-workspace-tab-main:hover,
.app-workspace-host-appbar .app-workspace-tab-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-workspace-panels {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.app-workspace-panel {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.app-workspace-panel.is-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.app-workspace-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.iframe-shell-full {
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.iframe-shell-message {
    margin: 1rem;
}

.available-app-list {
    margin-top: 1rem;
}

.external-only-panel {
    min-height: 18rem;
    justify-content: center;
}

.external-only-text {
    max-width: 48rem;
    color: #475569;
}

.app-maintenance-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 6.35rem);
    background:
        radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--tile-accent, #2563eb) 15%, transparent), transparent 18rem),
        linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.app-maintenance-panel {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(100%, 42rem);
    padding: 1rem;
    color: #243243;
    text-align: center;
}

.app-maintenance-icon {
    display: inline-grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tile-accent, #2563eb) 14%, white);
    color: var(--tile-accent, #2563eb);
    box-shadow: 0 0.95rem 2rem color-mix(in srgb, var(--tile-accent, #2563eb) 18%, transparent);
}

.app-maintenance-icon .mud-icon-root {
    font-size: 2.25rem;
}

.app-maintenance-text {
    max-width: 32rem;
    color: #475569;
}

.app-maintenance-detail {
    max-width: 36rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.92);
    color: #667085;
}

.app-frame {
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: white;
}

.app-frame-viewport {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.app-frame-scaled {
    display: block;
    transform-origin: top left;
}

.app-embed-viewport {
    background: transparent;
}

.app-embed-scale {
    min-height: 0;
}

.app-embed-host {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.app-embed-host > iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

@media (max-width: 959.98px) {
    .centralhub-appbar {
        padding-inline: 0.5rem;
    }

    .appbar-tagline {
        display: none;
    }

    .appbar-user,
    .appbar-login-button {
        margin-left: 0.35rem;
    }

    .app-workspace-host-appbar {
        max-width: min(14rem, 34vw);
        margin-left: 0.35rem;
    }

    .app-workspace-host-appbar .app-workspace-tab {
        width: 2rem;
        height: 2rem;
    }

    .app-workspace-host-appbar .app-workspace-tab-main img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .appbar-user-name {
        display: none;
    }

    .account-dialog-profile {
        grid-template-columns: 1fr;
    }

    .account-dialog-summary,
    .account-dialog-columns,
    .account-profile-form {
        grid-template-columns: 1fr;
    }

    .account-dialog-roles {
        justify-content: flex-start;
    }

    .launcher-page {
        min-height: 0;
        width: calc(100% + 1rem);
        margin: -1rem -0.5rem 0;
        padding: 1.6rem 1.2rem 0;
    }

    .launcher-header {
        flex-direction: column;
        margin-bottom: 1.6rem;
    }

    .launcher-grid {
        grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
        gap: 1.8rem 1.6rem;
    }

    .launcher-tech-footer {
        margin: 2.25rem -1.2rem 0;
        padding: 0.85rem 1.2rem;
    }

    .centralhub-main-app {
        height: 100dvh;
        min-height: 100dvh;
        padding-top: 4rem;
    }

    .centralhub-main-config {
        padding-top: 5.35rem;
    }

    .centralhub-container-app,
    .app-host-page,
    .app-frame-viewport,
    .iframe-shell-full,
    .app-frame {
        min-height: 0;
        height: 100%;
    }

    .configuration-editor-panel {
        position: static;
    }
}

@media (max-width: 599.98px) {
    .centralhub-main {
        padding-top: 5.5rem;
    }

    .centralhub-main-config {
        padding-top: 5.35rem;
    }

    .hero-panel,
    .unknown-app-panel,
    .iframe-shell,
    .configuration-hero-panel,
    .configuration-stat-card,
    .configuration-panel {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .launcher-page {
        width: calc(100% + 1rem);
        margin: -1.1rem -0.5rem 0;
        min-height: 0;
        border-radius: 0;
    }

    .launcher-title {
        font-size: 1.85rem;
    }

    .launcher-subtitle {
        font-size: 0.95rem;
    }

    .launcher-icon-card {
        width: 4.3rem;
        height: 4.3rem;
        flex-basis: 4.3rem;
    }

    .launcher-glyph {
        width: 4.3rem;
        height: 4.3rem;
    }

    .launcher-glyph-logo {
        width: 4.3rem;
        height: 4.3rem;
    }

    .launcher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.45rem 0.9rem;
    }

    .launcher-item {
        min-height: 0;
        padding: 0;
        border-radius: 0;
    }

    .launcher-item-label {
        max-width: 6.5rem;
        font-size: 0.9rem;
    }

    .launcher-item-key {
        max-width: 6.25rem;
        font-size: 0.72rem;
    }

    .launcher-tech-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .iframe-shell-full {
        padding: 0;
        border-radius: 0;
    }

    .configuration-app-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .configuration-app-accent {
        width: 100%;
        height: 0.35rem;
        min-height: 0.35rem;
    }

    .configuration-app-actions {
        width: 100%;
        justify-content: space-between;
    }

    .configuration-heading-actions,
    .configuration-form-actions,
    .configuration-row-actions {
        width: 100%;
    }

}

.centralhub-layout-config {
    background: #f4f7fb;
}

.centralhub-main-config {
    min-height: 100dvh;
    padding: 4.35rem 0 0;
    background: #f4f7fb;
}

.centralhub-container-config {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.configuration-page {
    min-height: calc(100dvh - 4.35rem);
    display: block;
    gap: 0;
    background: #f4f7fb;
    color: #1f2937;
}

.configuration-admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: linear-gradient(90deg, #075985 0%, #00879a 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.configuration-admin-topbar-left,
.configuration-admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.configuration-admin-topbar-right {
    justify-content: flex-end;
}

.configuration-topbar-menu,
.configuration-topbar-action {
    border-radius: 0.4rem;
    background: rgba(8, 105, 138, 0.48);
}

.configuration-admin-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.configuration-admin-logo,
.configuration-admin-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0.2rem;
    background: #ffffff;
    color: #075985;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.configuration-admin-logo {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.86rem;
}

.configuration-admin-avatar {
    width: 3rem;
    height: 3rem;
    color: #0f766e;
}

.configuration-admin-company {
    justify-self: center;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.configuration-topbar-home {
    font-weight: 800;
}

.configuration-admin-shell {
    min-height: calc(100dvh - 4.35rem);
    display: grid;
    grid-template-columns: 18.25rem minmax(0, 1fr);
}

.configuration-admin-sidebar {
    min-width: 0;
    overflow: auto;
    background: #ffffff;
    border-right: 1px solid #dbe6ef;
    box-shadow: 8px 0 22px rgba(15, 23, 42, 0.06);
}

.configuration-menu-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 5.5rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #dbe6ef;
    color: #243243;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.configuration-menu-heading-icon {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #075985, #0093a2);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.28);
}

.configuration-admin-nav {
    display: grid;
    padding: 0.8rem 0;
}

.configuration-admin-nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0 1.45rem;
    color: #465466;
    font-size: 0.98rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.configuration-admin-nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 0;
    border-radius: 0 999px 999px 0;
    background: #075985;
    transition: width 0.18s ease;
}

.configuration-admin-nav-item:hover,
.configuration-admin-nav-item.is-active {
    background: #f0f6fb;
    color: #243243;
}

.configuration-admin-nav-item.is-active::before {
    width: 0.32rem;
}

.configuration-admin-nav-icon {
    color: #007d94;
}

.configuration-admin-nav-caret {
    color: #6b7280;
}

.configuration-admin-main {
    min-width: 0;
    padding: 1.35rem 1.6rem 2rem;
    overflow: auto;
    background:
        radial-gradient(circle at 95% 8%, rgba(8, 145, 178, 0.08), transparent 24rem),
        linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
}

.configuration-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 0.55rem 0.55rem 0 0;
    background: linear-gradient(105deg, #075985 0%, #00879a 100%);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(8, 47, 73, 0.16);
}

.configuration-admin-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 18rem;
}

.configuration-admin-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.configuration-admin-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 2.3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: 0.03em;
}

.configuration-admin-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.configuration-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
    gap: 0.9rem;
}

.configuration-hero-metric {
    display: grid;
    align-content: center;
    gap: 0.25rem;
    min-height: 5.8rem;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.94);
    color: #293241;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    border-left: 3px solid #00879a;
}

.configuration-hero-metric span {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.configuration-hero-metric strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}

.configuration-hero-metric-success {
    border-left-color: #10b981;
}

.configuration-hero-metric-info {
    border-left-color: #3b82f6;
}

.configuration-hero-metric-warning {
    border-left-color: #f97316;
}

.configuration-hero-metric-database {
    border-left-color: #8b5cf6;
}

.configuration-grid {
    margin-top: 1.25rem;
}

.configuration-panel {
    padding: 1.35rem;
    border: 1px solid #dce6ef;
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
}

.configuration-section-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.configuration-section-icon {
    color: #075985;
}

.configuration-section-title {
    color: #243243;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.configuration-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 1.6rem;
    margin-left: 0.65rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #075985;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.configuration-muted {
    color: #667085;
}

.configuration-divider {
    margin: 1.1rem 0;
    border-color: #e5edf4;
}

.configuration-app-table {
    overflow: hidden;
    border: 1px solid #e5edf4;
    border-radius: 0.85rem;
}

.configuration-app-table .mud-table-head .mud-table-cell {
    color: #1f2937;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.configuration-app-table .mud-table-row:hover {
    background: #f4fbfd;
}

.database-table-shell {
    overflow: hidden;
    border-radius: 0.85rem;
}

.database-table {
    margin-top: 0.85rem;
}

.database-row-actions {
    justify-content: flex-start;
}

.database-connection-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.database-storage-alert {
    overflow-wrap: anywhere;
}

.database-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-height: 11rem;
    padding: 1.4rem;
    border: 1px dashed rgba(8, 145, 178, 0.35);
    border-radius: 0.85rem;
    background: #f8fafc;
    text-align: center;
}

.database-empty-state .mud-icon-root {
    color: #007d94;
    font-size: 2.6rem;
}

.database-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.database-template-actions {
    margin: 0.8rem 0;
}

.database-dialog .mud-dialog-content {
    padding-bottom: 0.25rem;
}

.database-dialog-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.database-dialog-icon {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #e8f2ff;
    color: #2563eb;
}

.database-dialog-form {
    display: grid;
    gap: 0.75rem;
}

.database-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.database-validation-summary {
    color: #dc2626;
    font-size: 0.86rem;
    font-weight: 650;
}

.configuration-app-table-icon,
.configuration-editor-preview {
    border-radius: 0.7rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tile-accent) 68%, white), var(--tile-accent));
}

.configuration-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.configuration-badge-muted {
    background: #e5e7eb;
    color: #374151;
}

.configuration-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.configuration-editor-panel {
    position: sticky;
    top: 1rem;
}

.configuration-appearance-panel {
    margin-bottom: 1rem;
}

.configuration-background-preview {
    position: relative;
    min-height: 9.5rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 0.95rem;
    background: var(--launcher-background);
    color: #ffffff;
    box-shadow: inset 0 -48px 90px rgba(2, 6, 23, 0.36);
}

.configuration-background-preview.has-image {
    background:
        linear-gradient(125deg, rgba(2, 81, 97, 0.72), rgba(8, 10, 24, 0.72)),
        var(--configuration-background-preview-image) center / cover no-repeat;
}

.configuration-background-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(45, 212, 191, 0.22), transparent 24%),
        linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.48));
}

.configuration-background-preview > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.2rem;
}

.configuration-background-preview span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.configuration-background-preview strong {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.configuration-system-tile-preview {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.configuration-system-tile-preview > div:last-child {
    display: grid;
    gap: 0.15rem;
}

.configuration-system-tile-preview strong,
.configuration-system-tile-preview span {
    display: block;
}

.configuration-system-tile-preview strong {
    color: #243243;
    font-weight: 900;
}

.configuration-system-tile-preview span {
    color: #667085;
    font-size: 0.85rem;
    font-weight: 800;
}

.configuration-color-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.configuration-color-actions {
    min-width: 7.4rem;
}

.configuration-color-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0.65rem 1.35rem rgba(15, 23, 42, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.configuration-color-auto-button {
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #075985 !important;
    box-shadow: 0 0.65rem 1.35rem rgba(15, 23, 42, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.configuration-color-picker:hover,
.configuration-color-auto-button:hover {
    border-color: #00879a;
    box-shadow: 0 0.9rem 1.6rem rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.configuration-color-auto-button:disabled {
    opacity: 0.48;
    transform: none;
}

.configuration-color-picker input {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.configuration-color-picker-swatch {
    position: absolute;
    inset: 0.38rem;
    border-radius: 6px;
    background: var(--selected-color, #2563eb);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.configuration-color-picker .mud-icon-root {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.35));
}

.configuration-logo-upload {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 5.4rem;
    border: 1px dashed rgba(8, 145, 178, 0.48);
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(8, 145, 178, 0.12), transparent 12rem),
        #f8fafc;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.configuration-logo-upload:hover {
    border-color: #00879a;
    background:
        radial-gradient(circle at 12% 20%, rgba(8, 145, 178, 0.18), transparent 12rem),
        #f4fbfd;
    transform: translateY(-1px);
}

.configuration-background-upload {
    min-height: 6rem;
}

.configuration-site-logo-upload {
    min-height: 5.1rem;
}

.configuration-upload-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.configuration-upload-input:disabled {
    cursor: progress;
}

.configuration-logo-upload-copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem;
    color: #075985;
    pointer-events: none;
}

.configuration-logo-upload-copy strong,
.configuration-logo-upload-copy span {
    display: block;
}

.configuration-logo-upload-copy strong {
    color: #243243;
    font-size: 0.95rem;
    font-weight: 900;
}

.configuration-logo-upload-copy span {
    margin-top: 0.15rem;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.35;
}

.configuration-upload-progress {
    margin-top: -0.35rem;
}

.configuration-source-block {
    border: 1px solid #e5edf4;
    background: #f8fafc;
}

@media (max-width: 1439.98px) {
    .configuration-admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 1099.98px) {
    .configuration-page {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .configuration-admin-topbar {
        position: relative;
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

    .configuration-admin-company {
        justify-self: start;
    }

    .configuration-admin-shell {
        grid-template-columns: 1fr;
    }

    .configuration-admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #dbe6ef;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .configuration-menu-heading {
        min-height: auto;
        padding: 1rem;
    }

    .configuration-admin-nav {
        grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
        padding: 0 0.75rem 0.8rem;
    }

    .configuration-admin-nav-item {
        border-radius: 0.65rem;
    }

    .configuration-admin-nav-item::before {
        display: none;
    }

    .configuration-editor-panel {
        position: static;
    }
}

@media (max-width: 719.98px) {
    .database-dialog-grid {
        grid-template-columns: 1fr;
    }

    .database-row-actions {
        flex-wrap: wrap;
    }

    .configuration-admin-main {
        padding: 1rem;
    }

    .configuration-admin-topbar-left,
    .configuration-admin-topbar-right {
        flex-wrap: wrap;
    }

    .configuration-admin-brand {
        white-space: normal;
    }

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

    .configuration-admin-hero,
    .configuration-panel {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .configuration-keycloak-flow {
        grid-template-columns: 1fr;
    }
}
