:root {
    color-scheme: light;
    --launcher-theme-primary: #2563eb;
    --launcher-theme-secondary: #0f766e;
    --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%, color-mix(in srgb, var(--launcher-theme-secondary) 34%, transparent), transparent 22%),
        radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--launcher-theme-primary) 32%, transparent), transparent 24%),
        radial-gradient(circle at 66% 72%, rgba(255, 170, 84, 0.12), transparent 18%),
        linear-gradient(125deg,
            color-mix(in srgb, var(--launcher-theme-secondary) 48%, #020617) 0%,
            color-mix(in srgb, var(--launcher-theme-primary) 54%, #071a3a) 44%,
            color-mix(in srgb, var(--launcher-theme-primary) 24%, #1c1734) 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;
}

.centralhub-appbar .mud-toolbar {
    min-width: 0;
}

.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 {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

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

.appbar-context-title {
    max-width: min(28rem, 36vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    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-group-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    max-width: min(12rem, 24vw);
    height: 2rem;
    padding: 0 0.35rem 0 0.55rem;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.appbar-group-picker select {
    min-width: 0;
    width: 100%;
    padding: 0 1.05rem 0 0;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.appbar-group-picker option {
    color: #0f172a;
    background: #ffffff;
}

.appbar-group-picker .mud-icon-root {
    flex: 0 0 auto;
    opacity: 0.85;
}

.appbar-group-picker-arrow {
    margin-left: -1.05rem;
    pointer-events: none;
}

.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%, 52rem);
    margin: 0 auto;
    padding: 0.9rem 0.95rem 1rem;
}

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

.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;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

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

.account-dialog-profile > div {
    min-width: 0;
    padding: 0.5rem 0.6rem;
    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.35rem;
    justify-content: flex-start;
    margin: 0;
}

.account-dialog-roles span {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0 0.55rem;
    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: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
}

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

.account-dialog-wallpaper-panel {
    margin-top: 0.65rem;
}

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

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

.account-dialog-section-heading .mud-icon-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    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,
.account-dialog-section-heading-appearance .mud-icon-root {
    background: #eef2ff;
    color: #4f46e5;
}

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

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

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

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

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

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

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

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

.account-wallpaper-manager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: end;
}

.account-appearance-manager {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.account-group-list {
    display: grid;
    gap: 0.45rem;
}

.account-group-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 2.35rem;
    width: 100%;
    padding: 0 0.7rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.account-group-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-group-button.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.account-appearance-editor {
    display: grid;
    gap: 0.75rem;
}

.account-appearance-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

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

.account-color-picker {
    width: 2.4rem;
    height: 2.4rem;
    box-shadow: none;
}

.account-wallpaper-preview {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 4.2rem;
    padding: 0.65rem;
    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-appearance-preview {
    min-height: 5.4rem;
    background: var(--launcher-background);
}

.account-appearance-preview.has-image {
    background:
        linear-gradient(125deg,
            color-mix(in srgb, var(--launcher-theme-secondary) 58%, rgba(2, 6, 23, 0.76)) 0%,
            color-mix(in srgb, var(--launcher-theme-primary) 54%, rgba(8, 10, 24, 0.72)) 44%,
            rgba(8, 10, 24, 0.76) 100%),
        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;
    justify-content: flex-end;
    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,
.auth-input-shell select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
}

.auth-input-shell select {
    cursor: pointer;
}

.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-provider-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    margin: 1rem 0 0.85rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-provider-divider::before,
.auth-provider-divider::after {
    height: 1px;
    background: #dbe4ef;
    content: "";
}

.auth-provider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.65rem;
    padding: 0 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.auth-provider-button:hover,
.auth-provider-button:focus-visible {
    border-color: #2563eb;
    color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.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,
            color-mix(in srgb, var(--launcher-theme-secondary) 58%, rgba(2, 6, 23, 0.76)) 0%,
            color-mix(in srgb, var(--launcher-theme-primary) 54%, rgba(8, 10, 24, 0.72)) 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%, color-mix(in srgb, var(--launcher-theme-secondary) 32%, transparent), transparent 22%),
        radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--launcher-theme-primary) 30%, transparent), 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, transparent, color-mix(in srgb, var(--launcher-theme-secondary) 78%, #ffffff), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--launcher-theme-secondary) 52%, transparent);
    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-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 2.25rem;
    color: rgba(232, 248, 255, 0.88);
}

.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 {
    position: relative;
    isolation: isolate;
    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::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -0.55rem 0.15rem -0.45rem;
    border: 2px dashed transparent;
    border-radius: 1rem;
    background: transparent;
    pointer-events: none;
    transition: border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.launcher-grid-reorderable .launcher-item-draggable {
    cursor: grab;
}

.launcher-grid-reorderable .launcher-item-draggable:active {
    cursor: grabbing;
}

.launcher-grid-reorderable .launcher-item.is-dragging {
    opacity: 0.42;
    transform: scale(0.96);
    filter: saturate(0.8);
}

.launcher-grid-reorderable .launcher-item.is-drop-target::before {
    border-color: rgba(236, 254, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.launcher-grid-reorderable .launcher-item.is-drop-target .launcher-icon-card {
    transform: translateY(-3px) scale(1.07);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
}

.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;
    z-index: 3;
    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);
}

.launcher-config-card,
.launcher-neon-card {
    filter: none;
}

.launcher-item:hover .launcher-config-card,
.launcher-item:hover .launcher-neon-card {
    filter: none;
}

.launcher-config-glyph,
.launcher-neon-glyph {
    --logo-primary: var(--tile-primary, var(--tile-accent));
    --config-accent-dark: color-mix(in srgb, var(--logo-primary) 66%, #061421);
    --config-accent-line: color-mix(in srgb, var(--logo-primary) 82%, #e0f2fe);
    --config-accent-fill: color-mix(in srgb, var(--logo-primary) 18%, #061421);
    --config-neon: color-mix(in srgb, var(--logo-primary) 76%, #67e8f9);
    --config-neon-soft: color-mix(in srgb, var(--logo-primary) 32%, transparent);
    overflow: hidden;
    border-radius: 1rem;
    border: 2px solid var(--config-accent-line);
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--config-neon) 30%, transparent) 0 18%, color-mix(in srgb, var(--config-neon) 14%, transparent) 18% 38%, transparent 62%),
        linear-gradient(90deg, transparent 0 14%, color-mix(in srgb, var(--config-neon) 34%, transparent) 14% 16%, transparent 16% 48%, color-mix(in srgb, var(--config-neon) 24%, transparent) 48% 50%, transparent 50%),
        linear-gradient(0deg, transparent 0 18%, color-mix(in srgb, var(--config-neon) 30%, transparent) 18% 20%, transparent 20% 70%, color-mix(in srgb, var(--config-neon) 22%, transparent) 70% 72%, transparent 72%),
        linear-gradient(135deg, #061421 0%, var(--config-accent-dark) 100%);
    color: #ecfeff;
    box-shadow:
        0 0 0 0.13rem color-mix(in srgb, var(--logo-primary) 32%, #020617),
        0 0 1.1rem var(--config-neon-soft),
        0 12px 18px rgba(0, 0, 0, 0.2);
}

.launcher-item:hover .launcher-config-glyph,
.launcher-item:hover .launcher-neon-glyph {
    box-shadow:
        0 0 0 0.13rem color-mix(in srgb, var(--logo-primary) 40%, #020617),
        0 0 1.45rem color-mix(in srgb, var(--config-neon) 42%, transparent),
        0 12px 18px rgba(0, 0, 0, 0.2);
}

.launcher-config-glyph::before,
.launcher-config-glyph::after,
.launcher-neon-glyph::before,
.launcher-neon-glyph::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.launcher-config-glyph::before,
.launcher-neon-glyph::before {
    inset: 0.55rem;
    border: 1px solid var(--config-neon);
    border-radius: 0.62rem;
    clip-path: polygon(0 0, 38% 0, 38% 10%, 62% 10%, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 90%, 38% 90%, 38% 100%, 0 100%);
    box-shadow: inset 0 0 0.8rem color-mix(in srgb, var(--config-neon) 18%, transparent);
}

.launcher-config-glyph::after,
.launcher-neon-glyph::after {
    left: 0.78rem;
    right: 0.78rem;
    top: 50%;
    height: 2px;
    background: var(--config-neon);
    box-shadow:
        0 0 0.65rem color-mix(in srgb, var(--config-neon) 38%, transparent),
        0 -1.05rem 0 color-mix(in srgb, var(--config-neon) 56%, transparent),
        0 1.05rem 0 color-mix(in srgb, var(--config-neon) 46%, transparent);
}

.launcher-config-glyph .launcher-material-icon,
.launcher-neon-glyph .launcher-material-icon {
    z-index: 1;
    width: 2.35rem !important;
    height: 2.35rem !important;
    padding: 0.34rem;
    border: 2px solid var(--config-neon);
    border-radius: 0.8rem;
    background: var(--config-accent-fill);
    color: #f8feff;
    filter: drop-shadow(0 0 0.55rem color-mix(in srgb, var(--config-neon) 42%, transparent));
}

.launcher-config-glyph-logo,
.launcher-neon-glyph-logo {
    border-color: var(--logo-primary);
    box-shadow:
        0 0 0 0.13rem color-mix(in srgb, var(--logo-primary) 38%, #020617),
        0 0 1.1rem color-mix(in srgb, var(--logo-primary) 28%, transparent),
        0 12px 18px rgba(0, 0, 0, 0.2);
}

.launcher-config-glyph-logo .launcher-logo,
.launcher-neon-glyph-logo .launcher-logo {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 0.55rem color-mix(in srgb, var(--logo-primary) 30%, transparent));
}

.launcher-neon-glyph-logo .launcher-logo {
    width: min(3.75rem, 74%);
    max-width: min(3.75rem, 74%);
    max-height: 3rem;
    padding: 0.22rem 0.24rem;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--config-neon) 46%, white);
    border-radius: 0.62rem;
    background: rgba(248, 250, 252, 0.94);
    object-fit: contain;
    filter:
        drop-shadow(0 0 0.9rem color-mix(in srgb, var(--config-neon) 62%, transparent))
        drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

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

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

.launcher-azylis-mark {
    position: relative;
    z-index: 1;
    width: min(3.75rem, 74%);
    max-height: 3rem;
    padding: 0.22rem 0.24rem;
    box-sizing: border-box;
    border: 1px solid rgba(236, 254, 255, 0.42);
    border-radius: 0.62rem;
    background: rgba(248, 250, 252, 0.94);
    object-fit: contain;
    pointer-events: none;
    filter:
        drop-shadow(0 0 0.5rem color-mix(in srgb, var(--tile-accent) 22%, transparent))
        drop-shadow(0 8px 10px rgba(15, 23, 42, 0.24));
}

.launcher-config-glyph .launcher-azylis-mark,
.launcher-neon-glyph .launcher-azylis-mark {
    border-color: color-mix(in srgb, var(--config-neon) 46%, white);
    box-shadow:
        0 0 0.75rem color-mix(in srgb, var(--config-neon) 56%, transparent),
        0 0 1.65rem color-mix(in srgb, var(--config-neon) 38%, transparent),
        0 0 2.7rem color-mix(in srgb, var(--config-neon) 22%, transparent),
        inset 0 0 0.7rem rgba(255, 255, 255, 0.12);
    filter:
        drop-shadow(0 0 0.9rem color-mix(in srgb, var(--config-neon) 62%, transparent))
        drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.launcher-material-icon {
    position: absolute;
    right: 0.58rem;
    bottom: 0.58rem;
    z-index: 2;
    width: 1.38rem !important;
    height: 1.38rem !important;
    padding: 0.15rem;
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.22));
}

.launcher-config-glyph .launcher-material-icon,
.launcher-neon-glyph .launcher-material-icon {
    z-index: 2;
    right: 0.58rem;
    bottom: 0.58rem;
    width: 1.38rem !important;
    height: 1.38rem !important;
    padding: 0.15rem;
    border-width: 1px;
    border-radius: 0.45rem;
}

.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;
    min-height: 2.4rem;
    gap: 0;
}

.launcher-item-label {
    display: -webkit-box;
    max-width: 8.5rem;
    min-height: 2.4rem;
    overflow: hidden;
    color: rgba(248, 250, 252, 0.96);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.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;
}

.launcher-page-mobile {
    min-height: calc(100dvh - 5.5rem);
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
}

.launcher-page-mobile::before {
    inset: 0;
    height: auto;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.64) 100%),
        radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--launcher-theme-secondary) 28%, transparent), transparent 16rem),
        radial-gradient(circle at 82% 26%, color-mix(in srgb, var(--launcher-theme-primary) 26%, transparent), transparent 14rem);
    opacity: 1;
}

.launcher-page-mobile::after {
    display: none;
}

.launcher-page-mobile .launcher-header {
    margin-bottom: 1.25rem;
}

.launcher-page-mobile .launcher-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.launcher-page-mobile .launcher-title {
    font-size: 1.7rem;
}

.launcher-page-mobile .launcher-subtitle {
    max-width: 18rem;
    font-size: 0.9rem;
}

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

.launcher-item-mobile {
    gap: 0.62rem;
}

.launcher-grid-mobile .launcher-icon-card,
.launcher-grid-mobile .launcher-glyph,
.launcher-grid-mobile .launcher-glyph-logo {
    width: 4.1rem;
    height: 4.1rem;
}

.launcher-grid-mobile .launcher-icon-card {
    flex-basis: 4.1rem;
}

.launcher-grid-mobile .launcher-item-label {
    max-width: 5.8rem;
    min-height: 2rem;
    font-size: 0.82rem;
    line-height: 1.18;
}

.launcher-page-mobile .launcher-tech-footer {
    display: none;
}

.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-native-action-form {
    display: inline-flex;
    margin: 0;
}

.configuration-native-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0 0.95rem;
    border: 1px solid #2563eb;
    border-radius: 4px;
    background: #ffffff;
    color: #1d4ed8;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.configuration-native-action:hover,
.configuration-native-action:focus-visible {
    border-color: #1d4ed8;
    background: #eff6ff;
    outline: none;
}

.configuration-native-action-secondary {
    border-color: #7c3aed;
    color: #6d28d9;
}

.configuration-native-action-secondary:hover,
.configuration-native-action-secondary:focus-visible {
    border-color: #6d28d9;
    background: #f5f3ff;
}

.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 {
    position: relative;
    overflow: hidden;
    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 {
    position: relative;
    z-index: 1;
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 10px;
}

.configuration-azylis-mark {
    position: relative;
    z-index: 1;
    width: 78%;
    max-height: 72%;
    padding: 0.12rem;
    box-sizing: border-box;
    border: 1px solid rgba(236, 254, 255, 0.42);
    border-radius: 0.42rem;
    background: rgba(248, 250, 252, 0.94);
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 0.35rem color-mix(in srgb, var(--tile-accent) 24%, transparent));
}

.configuration-visual-azylis .mud-icon-root {
    position: absolute;
    right: 0.22rem;
    bottom: 0.22rem;
    z-index: 2;
    width: 0.96rem !important;
    height: 0.96rem !important;
    padding: 0.1rem;
    border-radius: 0.32rem;
    background: rgba(15, 23, 42, 0.76);
    color: #f8fafc;
}

.configuration-editor-preview.configuration-visual-azylis .mud-icon-root {
    width: 1.12rem !important;
    height: 1.12rem !important;
}

.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-git-wizard-panel {
    margin-bottom: 1rem;
    border: 1px solid #c7d2fe;
    background: #ffffff;
}

.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-warning {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

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

.configuration-app-update-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    color: #475569;
    font-size: 0.78rem;
}

.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;
}

.microsoft365-import-dialog .mud-dialog-content {
    max-height: min(78vh, 58rem);
}

.microsoft365-import-table .mud-table-container {
    scrollbar-gutter: stable;
}

.microsoft365-import-groups {
    min-height: auto;
}

.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-chip-public {
    border-color: rgba(37, 99, 235, 0.38);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.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);
}

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

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

.deployment-status-band strong {
    color: #0f172a;
    font-weight: 900;
}

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

.deployment-app-cell,
.deployment-resource-stack {
    display: grid;
    gap: 0.2rem;
}

.deployment-app-cell strong {
    color: #0f172a;
    font-weight: 900;
}

.deployment-app-cell span,
.deployment-resource-stack span {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.25;
}

.deployment-linked-panel {
    margin-top: 1rem;
}

.deployment-linked-list {
    display: grid;
    gap: 0.75rem;
}

.deployment-linked-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.deployment-linked-item > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.deployment-linked-item strong {
    color: #0f172a;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deployment-linked-item span:not(.configuration-badge) {
    color: #64748b;
    font-size: 0.82rem;
}

.deployment-link-dialog-content {
    display: grid;
    gap: 1rem;
}

.deployment-lxc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.deployment-lxc-summary > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.deployment-lxc-summary strong {
    color: #0f172a;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deployment-lxc-summary span:not(.configuration-badge) {
    color: #64748b;
    font-size: 0.84rem;
}

.deployment-ssh-commands {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.deployment-command-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.deployment-command-heading > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.deployment-command-heading .mud-typography-subtitle1 {
    color: #0f172a;
    font-weight: 900;
}

.deployment-command-block {
    max-height: 22rem;
    margin: 0;
    padding: 0.9rem;
    overflow: auto;
    border-radius: 8px;
    background: #0f172a;
}

.deployment-command-block code {
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre;
}

.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;
}

.configuration-update-execution-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.configuration-update-execution-status,
.configuration-update-execution-item {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    background: #ffffff;
}

.configuration-update-execution-status {
    display: flex;
    align-items: center;
    grid-column: span 2;
    gap: 0.75rem;
}

.configuration-update-execution-status > div,
.configuration-update-execution-item {
    display: grid;
    gap: 0.18rem;
}

.configuration-update-execution-status span:not(.configuration-keycloak-status-dot),
.configuration-update-execution-item span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.configuration-update-execution-status strong,
.configuration-update-execution-item strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configuration-update-execution-status small {
    color: #64748b;
    font-size: 0.84rem;
    word-break: break-word;
}

.configuration-update-execution-log-path {
    grid-column: span 2;
}

.configuration-update-execution-log-path strong {
    white-space: normal;
    word-break: break-word;
}

.configuration-update-log-panel {
    display: grid;
    gap: 0.9rem;
}

.configuration-update-log-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.configuration-update-log-heading > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.configuration-update-log-heading span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.configuration-update-terminal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #1e293b;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #111827;
    color: #cbd5e1;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.configuration-update-terminal-heading span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configuration-update-terminal {
    min-height: 22rem;
    max-height: 32rem;
    margin: 0;
    overflow: auto;
    padding: 0.85rem;
    border: 1px solid #1e293b;
    border-radius: 0 0 8px 8px;
    background: #0b1020;
    color: #e2e8f0;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.48;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 700px) {
    .configuration-update-execution-status,
    .configuration-update-execution-log-path {
        grid-column: 1 / -1;
    }

    .configuration-update-log-heading {
        align-items: stretch;
        flex-direction: column;
    }
}

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

.update-monitor-page {
    min-height: calc(100vh - 4rem);
    padding: 1.5rem;
    background: #eef3f8;
}

.update-monitor-shell {
    display: grid;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}

.update-monitor-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #162238;
    color: #f8fafc;
}

.update-monitor-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.update-monitor-heading .mud-icon-root {
    width: 2.4rem;
    height: 2.4rem;
    color: #93c5fd;
}

.update-monitor-heading .mud-typography-body2 {
    color: #cbd5e1;
    word-break: break-word;
}

.update-monitor-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.update-monitor-progress {
    border-radius: 999px;
}

.update-monitor-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.update-monitor-status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #ffffff;
}

.update-monitor-status-item > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.update-monitor-status-item span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.update-monitor-status-item strong {
    overflow: hidden;
    color: #0f172a;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-monitor-status-item .mud-icon-root {
    flex: 0 0 auto;
    color: #2563eb;
}

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

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

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

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

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

.update-monitor-terminal-panel {
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #0b1020;
}

.update-monitor-terminal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
}

.update-monitor-terminal-heading span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-monitor-terminal {
    min-height: 58vh;
    max-height: 68vh;
    margin: 0;
    overflow: auto;
    padding: 1rem;
    background: #0b1020;
    color: #e2e8f0;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .update-monitor-page {
        padding: 1rem;
    }

    .update-monitor-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .update-monitor-actions {
        justify-content: flex-start;
    }

    .update-monitor-status-grid {
        grid-template-columns: 1fr;
    }
}

.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;
    }

    .centralhub-appbar .mud-toolbar {
        min-width: 0;
        padding-inline: 0;
    }

    .appbar-tagline {
        display: none;
    }

    .appbar-context {
        flex: 1 1 auto;
    }

    .appbar-context-title {
        max-width: min(18rem, 34vw);
    }

    .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;
    }

    .appbar-group-picker {
        max-width: min(10rem, 42vw);
    }

    .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;
    }

    .account-wallpaper-manager {
        grid-template-columns: 1fr;
    }

    .account-appearance-manager,
    .account-appearance-fields {
        grid-template-columns: 1fr;
    }

    .account-wallpaper-actions {
        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-appbar {
        padding-inline: 0.35rem;
    }

    .centralhub-appbar .mud-toolbar {
        height: 3.25rem;
        min-height: 3.25rem;
        gap: 0;
        overflow: hidden;
    }

    .appbar-back-button {
        flex: 0 0 auto;
        margin-right: 0.15rem;
    }

    .appbar-context {
        flex: 1 1 auto;
        max-width: none;
        margin-right: 0.15rem;
    }

    .appbar-context-label {
        display: none;
    }

    .appbar-context-title {
        max-width: 100%;
        font-size: 1rem !important;
        line-height: 1.1;
    }

    .appbar-zoom-controls {
        display: none !important;
    }

    .app-workspace-host-appbar {
        max-width: 4.8rem;
        margin-left: 0.2rem;
    }

    .app-workspace-host-appbar .app-workspace-tabs {
        max-width: 4.8rem;
        padding-inline: 0.18rem;
    }

    .appbar-user {
        flex: 0 0 auto;
        gap: 0.05rem;
        margin-left: 0.2rem;
        padding: 0;
        border-color: transparent;
        background: transparent;
    }

    .appbar-group-picker {
        position: relative;
        justify-content: center;
        width: 2.15rem;
        max-width: 2.15rem;
        height: 2.15rem;
        padding: 0;
        overflow: hidden;
    }

    .appbar-group-picker select {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        opacity: 0;
    }

    .appbar-group-picker-arrow {
        display: none;
    }

    .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;
        min-height: 2.16rem;
        font-size: 0.9rem;
    }

    .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-search-row {
    display: grid;
    grid-template-columns: minmax(14rem, 30rem) auto;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.configuration-app-search-field {
    width: 100%;
}

.configuration-app-search-summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-height: 2.5rem;
}

.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-visual-neon {
    --visual-primary: var(--tile-primary, var(--tile-accent));
    --visual-neon: color-mix(in srgb, var(--visual-primary) 76%, #67e8f9);
    position: relative;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--visual-primary) 82%, #e0f2fe);
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--visual-neon) 34%, transparent) 0 19%, color-mix(in srgb, var(--visual-neon) 16%, transparent) 19% 42%, transparent 66%),
        linear-gradient(90deg, transparent 0 18%, color-mix(in srgb, var(--visual-neon) 30%, transparent) 18% 21%, transparent 21% 62%, color-mix(in srgb, var(--visual-neon) 22%, transparent) 62% 64%, transparent 64%),
        linear-gradient(0deg, transparent 0 23%, color-mix(in srgb, var(--visual-neon) 26%, transparent) 23% 26%, transparent 26% 72%, color-mix(in srgb, var(--visual-neon) 18%, transparent) 72% 75%, transparent 75%),
        linear-gradient(135deg, #061421 0%, color-mix(in srgb, var(--visual-primary) 66%, #061421) 100%);
    color: #ecfeff;
    box-shadow:
        0 0 0 0.1rem color-mix(in srgb, var(--visual-primary) 34%, #020617),
        0 0 0.95rem color-mix(in srgb, var(--visual-neon) 26%, transparent),
        0 10px 22px rgba(15, 23, 42, 0.16);
}

.configuration-visual-neon::before,
.configuration-visual-neon::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.configuration-visual-neon::before {
    inset: 0.42rem;
    border: 1px solid color-mix(in srgb, var(--visual-neon) 72%, transparent);
    border-radius: 0.48rem;
    box-shadow: inset 0 0 0.52rem color-mix(in srgb, var(--visual-neon) 16%, transparent);
}

.configuration-visual-neon::after {
    left: 0.52rem;
    right: 0.52rem;
    top: 50%;
    height: 1px;
    background: color-mix(in srgb, var(--visual-neon) 82%, transparent);
    box-shadow:
        0 0 0.5rem color-mix(in srgb, var(--visual-neon) 36%, transparent),
        0 -0.72rem 0 color-mix(in srgb, var(--visual-neon) 46%, transparent),
        0 0.72rem 0 color-mix(in srgb, var(--visual-neon) 38%, transparent);
}

.configuration-visual-neon .mud-icon-root,
.configuration-visual-neon svg,
.configuration-visual-neon .configuration-logo {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 0.45rem color-mix(in srgb, var(--visual-neon) 36%, transparent));
}

.configuration-visual-neon .configuration-azylis-mark {
    border-color: color-mix(in srgb, var(--visual-neon) 46%, white);
    box-shadow:
        0 0 0.5rem color-mix(in srgb, var(--visual-neon) 58%, transparent),
        0 0 1.05rem color-mix(in srgb, var(--visual-neon) 36%, transparent),
        inset 0 0 0.5rem rgba(255, 255, 255, 0.12);
    filter: drop-shadow(0 0 0.62rem color-mix(in srgb, var(--visual-neon) 54%, transparent));
}

.configuration-visual-neon.configuration-visual-azylis .mud-icon-root {
    position: absolute;
    right: 0.22rem;
    bottom: 0.22rem;
    border: 1px solid color-mix(in srgb, var(--visual-neon) 64%, transparent);
    background: color-mix(in srgb, var(--visual-primary) 24%, #061421);
}

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

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

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

.configuration-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.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-actions-single {
    min-width: 3.5rem;
}

.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-group-theme {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.6rem;
}

.configuration-group-theme > span {
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    background: var(--group-color);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.configuration-group-theme .mud-icon-root {
    color: #475569;
}

.group-theme-preview {
    min-height: 7.25rem;
    margin-bottom: 0.9rem;
    background: var(--launcher-background);
}

.group-theme-preview.has-image {
    background:
        linear-gradient(125deg,
            color-mix(in srgb, var(--launcher-theme-secondary) 58%, rgba(2, 6, 23, 0.76)) 0%,
            color-mix(in srgb, var(--launcher-theme-primary) 54%, rgba(8, 10, 24, 0.72)) 44%,
            rgba(8, 10, 24, 0.76) 100%),
        var(--configuration-background-preview-image) center / cover no-repeat;
}

.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-app-search-row {
        grid-template-columns: 1fr;
    }

    .configuration-app-search-summary {
        justify-content: flex-start;
    }

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