html {
    color-scheme: dark;
}
body {
    margin: 0;
    background: #101114;
    font-family: Inter, "Segoe UI", sans-serif;
}
a {
    color: inherit;
}
.site-bar {
    border-bottom: 1px solid #24262c;
}
.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: #f0f1f3 !important;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.7px;
}
.brand-caption {
    letter-spacing: 0.11em;
    color: #8e949f;
}
.page-container {
    padding-top: 42px;
    padding-bottom: 72px;
    min-height: calc(100vh - 166px);
}
.catalog-heading {
    padding: 24px 0 40px;
}
.catalog-heading h1 {
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.1;
}
.muted-heading {
    color: #858c98;
}
.shelf {
    margin-bottom: 44px;
}
.app-shelf {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: #3a3e46 transparent;
}
.app-card {
    flex: 0 0 252px;
    min-width: 0;
    text-decoration: none;
    scroll-snap-align: start;
    border-radius: 10px;
}
.app-card-surface {
    height: 100%;
}
.app-card:hover .app-card-surface {
    background: #202329;
}
.app-card:focus-visible {
    outline: 2px solid #d3d7de;
    outline-offset: 3px;
}
.app-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.app-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b2f37;
    color: #b7bec9;
}
.app-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-short {
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}
.detail-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
}
.table-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    flex-shrink: 0;
}
.gallery-carousel {
    height: 440px;
    background: #191b20;
    border-radius: 10px;
    overflow: hidden;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.description-section {
    max-width: 860px;
}
.description-text {
    white-space: pre-wrap;
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
}
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.category-tags .material-symbols-rounded {
    font-size: 18px;
    margin-right: 6px;
}
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.editor-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.gallery-tile img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #111216;
    border-radius: 6px;
}
.media-preview {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #111216;
    border-radius: 6px;
}
.select-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}
.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 4px;
    max-height: 230px;
    overflow-y: auto;
}
.icon-option {
    min-width: 40px !important;
    width: 100%;
    padding: 10px !important;
}
.material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}
.site-footer {
    max-width: 1536px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #858c98;
}
.login-container {
    padding-top: 40px;
    padding-bottom: 60px;
}
.boot {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a4a9b3;
}
#blazor-error-ui {
    background: #333;
    bottom: 0;
    display: none;
    left: 0;
    padding: 16px;
    position: fixed;
    width: 100%;
    z-index: 10000;
}
.validation-message,
.validation-errors {
    color: #ff8a80;
    margin: 8px 0;
}
@media (max-width: 600px) {
    .brand-caption {
        display: none;
    }
    .page-container {
        padding-top: 24px;
    }
    .catalog-heading h1 {
        font-size: 2.6rem;
    }
    .catalog-heading {
        padding-top: 8px;
    }
    .app-card {
        flex-basis: 230px;
    }
    .gallery-carousel {
        height: 250px;
    }
    .site-footer {
        flex-direction: column;
    }
    .detail-icon {
        width: 72px;
        height: 72px;
    }
}
