:root {
    --lma-bg: #050a12;
    --lma-bg-soft: #07111f;
    --lma-panel: rgba(10, 22, 38, 0.9);
    --lma-panel-solid: #0a1626;
    --lma-panel-strong: #0d1c2f;
    --lma-border: rgba(142, 169, 204, 0.18);
    --lma-border-strong: rgba(255, 165, 54, 0.34);
    --lma-text: #f6f8fb;
    --lma-text-soft: #bdc7d5;
    --lma-text-muted: #7f8da2;
    --lma-orange: #ff8d2a;
    --lma-orange-light: #ffbd45;
    --lma-orange-deep: #ff6428;
    --lma-green: #37d989;
    --lma-red: #ff6b70;
    --lma-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --lma-radius-xl: 28px;
    --lma-radius-lg: 20px;
    --lma-radius-md: 14px;
    --lma-sidebar-width: 252px;
    --lma-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.lma-fullscreen-page {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--lma-bg);
}

body.lma-fullscreen-page,
body.lma-fullscreen-page button,
body.lma-fullscreen-page input {
    font-family: var(--lma-font);
}

.lma-fullscreen-content {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.lma-fullscreen-content > p:empty {
    display: none;
}

.lma-portal *,
.lma-login * {
    box-sizing: border-box;
}

.lma-portal,
.lma-login {
    color: var(--lma-text);
    font-family: var(--lma-font);
    -webkit-font-smoothing: antialiased;
}

.lma-portal a,
.lma-login a {
    color: inherit;
    text-decoration: none;
}

.lma-portal button,
.lma-login button,
.lma-portal input,
.lma-login input {
    font: inherit;
}

.lma-portal :focus-visible,
.lma-login :focus-visible {
    outline: 3px solid rgba(255, 177, 65, 0.75);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Login */
.lma-login {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 42px 24px;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 115, 32, 0.11), transparent 30%),
        radial-gradient(circle at 84% 26%, rgba(28, 84, 139, 0.16), transparent 34%),
        linear-gradient(145deg, #03070d 0%, #07111e 54%, #04080e 100%);
}

.lma-login::before,
.lma-login::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lma-login::before {
    inset: 0;
    opacity: 0.33;
    background-image:
        radial-gradient(circle at 8% 14%, rgba(255,255,255,.8) 0 1px, transparent 1.4px),
        radial-gradient(circle at 74% 12%, rgba(255,255,255,.7) 0 1px, transparent 1.3px),
        radial-gradient(circle at 89% 62%, rgba(255,255,255,.65) 0 1px, transparent 1.4px),
        radial-gradient(circle at 36% 80%, rgba(255,255,255,.52) 0 1px, transparent 1.4px);
    background-size: 210px 210px, 310px 310px, 270px 270px, 370px 370px;
}

.lma-login::after {
    left: 50%;
    bottom: -410px;
    width: min(1120px, 130vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 157, 45, 0.2);
    background:
        radial-gradient(circle at 50% 5%, rgba(255, 152, 41, 0.45), rgba(40, 76, 112, 0.16) 18%, #06101d 46%, #02050a 70%);
    box-shadow: 0 -28px 100px rgba(255, 112, 26, 0.2);
}

.lma-login__ambient {
    position: absolute;
    width: 700px;
    height: 700px;
    top: -440px;
    right: -260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 162, 50, 0.14);
    box-shadow: 0 0 130px rgba(255, 117, 31, 0.08);
}

.lma-login__panel {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    display: grid;
    justify-items: center;
    gap: 28px;
}

.lma-login__logo {
    width: min(420px, 88vw);
    height: auto;
}

.lma-login__card {
    width: 100%;
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid var(--lma-border);
    border-radius: var(--lma-radius-xl);
    background: linear-gradient(160deg, rgba(11, 24, 41, 0.94), rgba(4, 12, 23, 0.94));
    box-shadow: var(--lma-shadow), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(18px);
}

.lma-eyebrow {
    margin: 0 0 10px;
    color: var(--lma-orange-light);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lma-login h1,
.lma-welcome h1 {
    margin: 0;
    color: var(--lma-text);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.lma-login h1 {
    font-size: clamp(1.9rem, 6vw, 2.55rem);
    text-align: center;
}

.lma-login__intro {
    margin: 12px 0 28px;
    color: var(--lma-text-soft);
    text-align: center;
    line-height: 1.55;
}

.lma-login .lma-eyebrow {
    text-align: center;
}

.lma-login__form {
    display: grid;
    gap: 18px;
}

.lma-field {
    display: grid;
    gap: 8px;
    color: var(--lma-text-soft);
    font-size: 0.88rem;
    font-weight: 650;
}

.lma-field > input,
.lma-password-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--lma-border);
    border-radius: 13px;
    background: rgba(12, 29, 49, 0.92);
    color: var(--lma-text);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lma-field > input {
    padding: 0 16px;
}

.lma-field > input:hover,
.lma-password-control:hover,
.lma-password-control:focus-within {
    border-color: rgba(255, 165, 54, 0.48);
    background: rgba(14, 34, 57, 0.98);
}

.lma-field > input:focus,
.lma-password-control:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 142, 39, 0.1);
}

.lma-password-control {
    display: flex;
    align-items: center;
}

.lma-password-control input {
    min-width: 0;
    flex: 1;
    align-self: stretch;
    padding: 0 12px 0 16px;
    border: 0;
    outline: 0;
    color: var(--lma-text);
    background: transparent;
}

.lma-password-toggle {
    align-self: stretch;
    padding: 0 14px;
    border: 0;
    color: var(--lma-orange-light);
    background: transparent;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
}

.lma-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--lma-text-soft);
    font-size: .84rem;
}

.lma-login__options a {
    color: var(--lma-orange-light);
}

.lma-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lma-check input {
    accent-color: var(--lma-orange);
}

.lma-alert {
    padding: 13px 15px;
    margin: 0 0 20px;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.45;
}

.lma-alert--error {
    border: 1px solid rgba(255, 107, 112, .34);
    color: #ffd7d9;
    background: rgba(118, 31, 38, .28);
}

.lma-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 760;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

.lma-button:hover {
    transform: translateY(-1px);
}

.lma-button--primary {
    color: #1a0e03 !important;
    background: linear-gradient(110deg, var(--lma-orange-deep), var(--lma-orange-light));
    box-shadow: 0 10px 30px rgba(255, 119, 28, .18);
}

.lma-button--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 36px rgba(255, 119, 28, .28);
}

.lma-button--wide {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
}

.lma-button--disabled {
    color: var(--lma-text-muted);
    border-color: var(--lma-border);
    background: rgba(255,255,255,.025);
    cursor: not-allowed;
}

.lma-login__notice {
    margin: 22px 0 0;
    color: var(--lma-text-muted);
    font-size: .76rem;
    text-align: center;
}

/* Portal shell */
.lma-portal {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--lma-sidebar-width) minmax(0, 1fr);
    overflow: clip;
    background:
        radial-gradient(circle at 78% -8%, rgba(31, 80, 126, .18), transparent 34%),
        radial-gradient(circle at 98% 64%, rgba(255, 116, 29, .08), transparent 30%),
        var(--lma-bg);
}

.lma-portal__ambient {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    width: 720px;
    height: 720px;
    right: -480px;
    bottom: -420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 152, 42, .14);
    box-shadow: 0 0 150px rgba(255, 104, 30, .08);
}

.lma-sidebar {
    position: sticky;
    z-index: 5;
    top: 0;
    height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 18px;
    border-right: 1px solid var(--lma-border);
    background: rgba(3, 9, 17, .88);
    backdrop-filter: blur(22px);
}

.admin-bar .lma-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

.lma-sidebar__brand {
    display: block;
    padding: 4px 8px 18px;
}

.lma-sidebar__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.lma-sidebar__nav {
    display: grid;
    gap: 5px;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 0;
}

.lma-sidebar__label {
    margin: 22px 12px 7px;
    color: var(--lma-text-muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lma-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--lma-text-soft) !important;
    font-size: .85rem;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.lma-nav-link:hover,
.lma-nav-link.is-current {
    color: var(--lma-text) !important;
    border-color: var(--lma-border);
    background: rgba(255,255,255,.035);
}

.lma-nav-link.is-active {
    color: #1a0d03 !important;
    background: linear-gradient(110deg, var(--lma-orange-deep), var(--lma-orange-light));
    box-shadow: 0 9px 26px rgba(255, 116, 28, .15);
}

.lma-nav-icon {
    width: 22px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
}

.lma-sidebar__footer {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--lma-border);
}

.lma-workspace {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lma-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(22px, 3vw, 42px);
    border-bottom: 1px solid var(--lma-border);
    background: rgba(5, 12, 22, .68);
    backdrop-filter: blur(18px);
}

.lma-search {
    width: min(520px, 55vw);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 15px;
    border: 1px solid var(--lma-border);
    border-radius: 999px;
    color: var(--lma-text-muted);
    background: rgba(11, 25, 43, .74);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.lma-search:focus-within {
    border-color: var(--lma-border-strong);
    box-shadow: 0 0 0 4px rgba(255, 143, 38, .08);
}

.lma-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--lma-text);
    background: transparent;
}

.lma-search input::placeholder {
    color: #738197;
}

.lma-search kbd {
    min-width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--lma-border);
    border-radius: 7px;
    color: var(--lma-text-muted);
    background: rgba(255,255,255,.03);
    font: 600 .72rem var(--lma-font);
}

.lma-user {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.lma-user img {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 171, 55, .52);
    border-radius: 50%;
    object-fit: cover;
}

.lma-user div {
    display: grid;
    gap: 2px;
}

.lma-user strong {
    font-size: .86rem;
}

.lma-user span {
    color: var(--lma-text-muted);
    font-size: .7rem;
}

.lma-main {
    width: min(1540px, 100%);
    flex: 1;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 48px) 56px;
}

.lma-welcome {
    margin-bottom: 28px;
}

.lma-welcome h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.lma-welcome > p:last-child {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--lma-text-soft);
    font-size: clamp(.94rem, 2vw, 1.05rem);
    line-height: 1.65;
}

.lma-stats {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(180px, .7fr) minmax(300px, 1.5fr);
    gap: 14px;
    margin-bottom: 38px;
}

.lma-stat {
    min-width: 0;
    min-height: 102px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    border: 1px solid var(--lma-border);
    border-radius: var(--lma-radius-md);
    background: linear-gradient(145deg, rgba(14, 31, 52, .88), rgba(8, 20, 35, .9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.lma-stat__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 164, 47, .2);
    border-radius: 14px;
    color: var(--lma-orange-light);
    background: rgba(255, 135, 35, .09);
}

.lma-stat div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.lma-stat strong {
    overflow: hidden;
    color: var(--lma-text);
    font-size: 1.28rem;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.lma-stat span:not(.lma-stat__icon) {
    color: var(--lma-text-muted);
    font-size: .75rem;
}

.lma-results-summary {
    margin: 0 0 12px;
    color: var(--lma-text-muted);
    font-size: .76rem;
    text-align: right;
}

.lma-app-groups {
    display: grid;
    gap: 24px;
}

.lma-app-group {
    scroll-margin-top: 24px;
    border: 1px solid var(--lma-border);
    border-radius: var(--lma-radius-lg);
    overflow: hidden;
    background: rgba(7, 17, 30, .72);
    box-shadow: 0 16px 46px rgba(0,0,0,.18);
}

.lma-app-group[hidden],
.lma-app-card[hidden] {
    display: none !important;
}

.lma-app-group__header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--lma-border);
    background: linear-gradient(90deg, rgba(14, 34, 57, .94), rgba(10, 25, 43, .86));
}

.lma-app-group__header > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lma-app-group__header h2 {
    margin: 0;
    overflow: hidden;
    font-size: clamp(1rem, 2vw, 1.18rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lma-app-group__header > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--lma-border);
    border-radius: 999px;
    color: var(--lma-text-muted);
    background: rgba(255,255,255,.025);
    font-size: .67rem;
}

.lma-category-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #1c0e02;
    background: linear-gradient(145deg, var(--lma-orange), var(--lma-orange-light));
    box-shadow: 0 8px 24px rgba(255, 118, 27, .14);
}

.lma-category-icon::before {
    font-size: 1rem;
    font-weight: 900;
}

.lma-category-icon--palette::before { content: "◉"; }
.lma-category-icon--calendar::before { content: "▣"; }
.lma-category-icon--grid::before { content: "▦"; }

.lma-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

.lma-app-card {
    min-width: 0;
    min-height: 224px;
    display: grid;
    grid-template-columns: minmax(145px, .72fr) minmax(0, 1.6fr);
    border: 1px solid var(--lma-border);
    border-radius: 17px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(13, 30, 50, .9), rgba(7, 19, 33, .96));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lma-app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 166, 50, .32);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.lma-app-card--disabled {
    opacity: .72;
}

.lma-app-card__visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 137, 36, .2), transparent 45%),
        #07101d;
}

.lma-app-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 62%, rgba(7, 19, 33, .9));
}

.lma-app-card__visual img {
    width: 100%;
    height: 100%;
    min-height: 224px;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.lma-app-card:hover .lma-app-card__visual img {
    transform: scale(1.035);
}

.lma-app-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.lma-app-card__heading {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lma-app-card__heading > div {
    min-width: 0;
}

.lma-app-card__category {
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--lma-orange-light);
    font-size: .66rem;
    font-weight: 760;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.lma-app-card h3 {
    margin: 0;
    color: var(--lma-text);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.23;
}

.lma-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--lma-green);
    box-shadow: 0 0 0 5px rgba(55, 217, 137, .09), 0 0 16px rgba(55, 217, 137, .36);
}

.lma-app-card__description {
    display: -webkit-box;
    margin: 13px 0 20px;
    overflow: hidden;
    color: var(--lma-text-soft);
    font-size: .82rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lma-app-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.lma-chip {
    max-width: 55%;
    overflow: hidden;
    padding: 5px 9px;
    border: 1px solid rgba(88, 165, 221, .2);
    border-radius: 999px;
    color: #9dc9e8;
    background: rgba(37, 100, 151, .1);
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lma-empty-state,
.lma-no-results {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(36px, 7vw, 78px) 24px;
    border: 1px dashed var(--lma-border);
    border-radius: var(--lma-radius-lg);
    color: var(--lma-text-soft);
    background: rgba(8, 19, 33, .62);
    text-align: center;
}

.lma-empty-state img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.lma-empty-state h2,
.lma-no-results h2 {
    margin: 0;
    color: var(--lma-text);
}

.lma-empty-state p,
.lma-no-results p {
    max-width: 620px;
    margin: 0 0 8px;
    line-height: 1.6;
}

.lma-no-results[hidden] {
    display: none;
}

.lma-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(20px, 4vw, 48px);
    border-top: 1px solid var(--lma-border);
    color: var(--lma-text-muted);
    font-size: .7rem;
}

.lma-mobile-nav {
    display: none;
}

@media (max-width: 1180px) {
    :root {
        --lma-sidebar-width: 220px;
    }

    .lma-app-grid {
        grid-template-columns: 1fr;
    }

    .lma-app-card {
        grid-template-columns: minmax(180px, .62fr) minmax(0, 1.45fr);
    }
}

@media (max-width: 900px) {
    .lma-portal {
        display: block;
        padding-bottom: 72px;
    }

    .lma-sidebar {
        display: none;
    }

    .lma-workspace {
        min-height: calc(100vh - 72px);
    }

    .lma-topbar {
        position: sticky;
        z-index: 9;
        top: 0;
        min-height: 70px;
        padding: 11px 18px;
    }

    .admin-bar .lma-topbar {
        top: 32px;
    }

    .lma-search {
        width: min(100%, 520px);
    }

    .lma-user div {
        display: none;
    }

    .lma-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lma-stat--wide {
        grid-column: 1 / -1;
    }

    .lma-mobile-nav {
        position: fixed;
        z-index: 20;
        left: 12px;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        min-height: 60px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 6px;
        border: 1px solid var(--lma-border);
        border-radius: 18px;
        background: rgba(5, 13, 23, .94);
        box-shadow: 0 18px 52px rgba(0,0,0,.46);
        backdrop-filter: blur(18px);
    }

    .lma-mobile-nav a,
    .lma-mobile-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        border: 0;
        border-radius: 13px;
        color: var(--lma-text-soft);
        background: transparent;
        font-size: .65rem;
        cursor: pointer;
    }

    .lma-mobile-nav span {
        color: var(--lma-orange-light);
        font-size: 1rem;
    }
}

@media (max-width: 680px) {
    .lma-main {
        padding-top: 28px;
    }

    .lma-topbar {
        gap: 10px;
    }

    .lma-search kbd {
        display: none;
    }

    .lma-user img {
        width: 38px;
        height: 38px;
    }

    .lma-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lma-stat--wide {
        grid-column: auto;
    }

    .lma-stat {
        min-height: 82px;
        padding: 14px;
    }

    .lma-stat__icon {
        width: 42px;
        height: 42px;
    }

    .lma-app-card {
        display: block;
    }

    .lma-app-card__visual,
    .lma-app-card__visual img {
        min-height: 190px;
        max-height: 230px;
    }

    .lma-app-card__visual::after {
        background: linear-gradient(0deg, rgba(7, 19, 33, .95), transparent 55%);
    }

    .lma-results-summary {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .lma-login {
        align-items: start;
        padding: 24px 14px 42px;
    }

    .lma-login__panel {
        gap: 18px;
    }

    .lma-login__logo {
        width: min(340px, 92vw);
    }

    .lma-login__card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .lma-login__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .lma-topbar {
        padding-inline: 12px;
    }

    .lma-main {
        padding-inline: 13px;
    }

    .lma-welcome h1 {
        font-size: 2rem;
    }

    .lma-app-group {
        border-radius: 16px;
    }

    .lma-app-group__header {
        padding-inline: 13px;
    }

    .lma-app-grid {
        gap: 10px;
        padding: 10px;
    }

    .lma-app-card__body {
        padding: 17px;
    }

    .lma-app-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .lma-chip {
        max-width: 100%;
        align-self: flex-start;
    }

    .lma-button {
        width: 100%;
    }

    .lma-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 14px 90px;
    }
}

@media (max-width: 360px) {
    .lma-main {
        padding-inline: 9px;
    }

    .lma-app-grid {
        padding: 8px;
    }

    .lma-app-card__visual,
    .lma-app-card__visual img {
        min-height: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lma-portal *,
    .lma-login * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
