/* ==========================================================================
   Plan Apps — internal systems launcher
   Light (white) theme, config-driven card grid.
   ========================================================================== */

:root {
    --bg: #f3f6fa;
    --bg-accent: radial-gradient(1200px 500px at 15% -10%, #e3eefb 0%, rgba(227, 238, 251, 0) 60%);
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef2f8;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f1b2d;
    --text-muted: #51607a;
    --text-subtle: #8494ad;
    --primary: #0072ce;
    --primary-hover: #005b9f;
    --primary-soft: #e6f1fc;
    --sidebar: #ffffff;
    --topbar: rgba(255, 255, 255, 0.86);

    --live-fg: #15803d;
    --live-bg: #e7f6ec;
    --dev-fg: #b45309;
    --dev-bg: #fdf1dd;
    --planned-fg: #475569;
    --planned-bg: #eef1f6;

    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 27, 45, 0.08);
    --shadow-lg: 0 14px 34px rgba(15, 27, 45, 0.13);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --sidebar-width: 264px;
    --header-height: 64px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    background-image: var(--bg-accent);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

kbd {
    font-family: var(--font);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text-muted);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Shell ============================================================= */
.portal {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar =========================================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar__brand {
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--border);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar__brand img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
}

.sidebar__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.sidebar__close svg {
    width: 20px;
    height: 20px;
}

.sidebar__nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar__group + .sidebar__group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.sidebar__nav-label {
    padding: 0 0.75rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.15rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.sidebar__link span:not(.sidebar__count) {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.sidebar__link:hover {
    background: var(--surface-3);
    color: var(--text);
    text-decoration: none;
}

.sidebar__link--active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.sidebar__link--active svg {
    opacity: 1;
}

.sidebar__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar__count {
    flex-shrink: 0;
    min-width: 22px;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--text-subtle);
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
}

.sidebar__link--active .sidebar__count {
    background: var(--primary);
    color: #fff;
}

.sidebar__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.sidebar__support {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.sidebar__support:hover {
    color: var(--primary);
    text-decoration: none;
}

.sidebar__support svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar__copy {
    font-size: 0.6875rem;
    color: var(--text-subtle);
    line-height: 1.5;
}

/* ===== Main area ========================================================= */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: var(--header-height);
    background: var(--topbar);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap > svg {
    position: absolute;
    left: 0.9rem;
    width: 18px;
    height: 18px;
    color: var(--text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 3rem 0 2.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface-2);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.search-input::placeholder {
    color: var(--text-subtle);
}

.search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: var(--surface);
}

.search-kbd {
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
}

.search-input:focus ~ .search-kbd,
.search-input:not(:placeholder-shown) ~ .search-kbd {
    opacity: 0;
}

.topbar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.icon-btn:hover {
    background: var(--surface-3);
    color: var(--text);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.view-toggle__btn:hover {
    background: var(--surface-3);
    color: var(--text);
}

.view-toggle__btn--active {
    background: var(--primary-soft);
    color: var(--primary);
}

.view-toggle__btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Content =========================================================== */
.content {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    padding: 1.75rem 1.75rem 3rem;
}

.content:focus {
    outline: none;
}

/* Zero-height scroll-spy target for the sidebar's "All systems" link. */
.content-anchor {
    height: 0;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Visible to screen readers only (live search result announcements). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Sections ========================================================== */
.section {
    margin-bottom: 2.25rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section[hidden] {
    display: none;
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
}

.section__icon svg {
    width: 18px;
    height: 18px;
}

.section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section__desc {
    margin: 0.1rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.section__collapse {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-subtle);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.18s, color 0.18s;
}

.section__collapse:hover {
    background: var(--surface-3);
    color: var(--text);
}

.section__collapse svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.section--collapsed .section__collapse svg {
    transform: rotate(-90deg);
}

.section--collapsed .app-grid,
.section--collapsed .app-list {
    display: none;
}

.section--pinned .section__icon {
    background: #fff5d8;
    color: #b7791f;
}

/* ===== App grid ========================================================== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
    gap: 1rem;
}

.app-card {
    position: relative;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--tile, var(--primary));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.app-card:hover::before {
    opacity: 0.035;
}

.app-card:focus-within {
    border-color: var(--primary);
}

.app-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.15rem 1rem;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
}

.app-card__link:hover {
    text-decoration: none;
}

.app-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--tile, var(--primary));
    background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.12));
    color: #fff;
    box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--tile, #0072ce) 45%, transparent);
}

.app-card__icon svg {
    width: 23px;
    height: 23px;
}

.app-card__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.app-card__ext {
    display: inline-block;
    margin-left: 0.3rem;
    vertical-align: -1px;
    color: var(--text-subtle);
}

.app-card__ext svg {
    width: 13px;
    height: 13px;
}

.app-card__desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.95rem;
}

.app-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.app-card__go {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.app-card__go svg {
    width: 14px;
    height: 14px;
}

.app-card:hover .app-card__go,
.app-card:focus-within .app-card__go {
    opacity: 1;
    transform: translateX(0);
}

.app-card__go--muted {
    color: var(--text-subtle);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--live {
    background: var(--live-bg);
    color: var(--live-fg);
}

.badge--dev {
    background: var(--dev-bg);
    color: var(--dev-fg);
}

.badge--planned {
    background: var(--planned-bg);
    color: var(--planned-fg);
}

/* Favourite button */
.fav-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.fav-btn svg {
    width: 16px;
    height: 16px;
}

.app-card:hover .fav-btn,
.app-row:hover .fav-btn,
.fav-btn:focus-visible,
.fav-btn[aria-pressed="true"] {
    opacity: 1;
}

.fav-btn:hover {
    background: var(--surface-3);
    color: #d99100;
    transform: scale(1.08);
}

.fav-btn[aria-pressed="true"] {
    color: #e3a008;
}

.fav-btn[aria-pressed="true"] svg {
    fill: #f0b429;
    stroke: #d99100;
}

/* ===== List view ========================================================= */
.app-list {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.portal--list-view .app-grid {
    display: none;
}

.portal--list-view .app-list {
    display: flex;
}

.app-row {
    position: relative;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.app-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateX(2px);
}

.app-row__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    padding: 0.85rem 3rem 0.85rem 1rem;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
}

.app-row__link:hover {
    text-decoration: none;
}

.app-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--tile, var(--primary));
    background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.12));
    color: #fff;
}

.app-row__icon svg {
    width: 20px;
    height: 20px;
}

.app-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-row__name {
    font-size: 0.875rem;
    font-weight: 650;
    margin-bottom: 0.1rem;
}

.app-row__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row__cat {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-subtle);
}

.app-row__arrow {
    display: flex;
    color: var(--text-subtle);
    flex-shrink: 0;
}

.app-row__arrow svg {
    width: 18px;
    height: 18px;
}

.app-row .fav-btn {
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
}

.app-row .fav-btn:hover {
    transform: translateY(-50%) scale(1.08);
}

/* ===== Under development ================================================= */
.app-card--dev .app-card__icon,
.app-row--dev .app-row__icon {
    filter: saturate(0.45);
    opacity: 0.8;
}

.app-card--dev .app-card__link,
.app-row--dev .app-row__link {
    cursor: not-allowed;
}

/* ===== Empty state ======================================================= */
.no-results {
    display: none;
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.no-results--visible {
    display: block;
}

.no-results svg {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    opacity: 0.35;
}

.no-results h2 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
}

.no-results p {
    margin: 0;
    font-size: 0.875rem;
}

.link-btn {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* ===== Footer ============================================================ */
.content__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.content__footer p {
    margin: 0 0 0.5rem;
}

.content__hint {
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.inline-star {
    display: inline-flex;
    color: #e3a008;
}

.inline-star svg {
    width: 13px;
    height: 13px;
}

/* ===== Search / filter hiding =========================================== */
[data-hidden="true"] {
    display: none !important;
}

/* ===== Mobile nav ======================================================== */
.mobile-menu-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 24, 0.5);
    backdrop-filter: blur(2px);
    z-index: 90;
}

/* ===== Development modal ================================================= */
.dev-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dev-modal[hidden] {
    display: none;
}

.dev-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.55);
    backdrop-filter: blur(3px);
}

.dev-modal__panel {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.9rem 1.6rem 1.5rem;
    text-align: center;
    animation: modal-in 0.25s var(--ease);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
}

.dev-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--dev-bg);
    color: var(--dev-fg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-modal__icon svg {
    width: 24px;
    height: 24px;
}

.dev-modal__title {
    margin: 0 0 0.6rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.dev-modal__message {
    margin: 0 0 1.4rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.dev-modal__actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dev-modal__btn {
    min-width: 128px;
    height: 42px;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.18s;
}

.dev-modal__btn:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

.dev-modal__btn--ghost {
    background: var(--surface-3);
    color: var(--text);
}

.dev-modal__btn--ghost:hover {
    background: var(--border);
    color: var(--text);
}

/* ===== Toast ============================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(8px);
    z-index: 1200;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--text);
    color: var(--surface);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast[hidden] {
    display: none;
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ======================================================== */
@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s var(--ease);
        box-shadow: var(--shadow-lg);
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .sidebar__close {
        display: flex;
    }

    .sidebar-overlay--visible {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .topbar {
        padding: 0 1rem;
        gap: 0.6rem;
    }

    .search-kbd {
        display: none;
    }

    .content {
        padding: 1.25rem 1rem 2.5rem;
    }

    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.75rem;
    }

    .app-row__cat {
        display: none;
    }
}

@media (max-width: 600px) {
    .view-toggle {
        display: none;
    }

    .app-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .app-card__desc {
        display: none;
    }

    .app-card__link {
        padding: 0.9rem;
    }

    .app-card__foot {
        border-top: none;
        padding-top: 0.25rem;
    }

    .app-card__go {
        display: none;
    }

    .app-row__desc {
        display: none;
    }

}

@media (max-width: 380px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .app-card:hover {
        transform: none;
    }
}
