@font-face {
    font-family: "Luma Sans";
    src: url("../fonts/open_sans/OpenSans-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Luma Sans";
    src: url("../fonts/open_sans/OpenSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --luma-accent: #6d5ee8;
    --luma-accent-rgb: 109, 94, 232;
    --desktop-ink: #f7f7ff;
    --surface: rgba(250, 249, 255, .94);
    --surface-solid: #faf9ff;
    --surface-muted: #f0eef8;
    --surface-raised: #ffffff;
    --ink: #17182a;
    --ink-muted: #626478;
    --line: rgba(35, 37, 64, .1);
    --taskbar: rgba(237, 238, 255, .76);
    --taskbar-ink: #16182b;
    --window-shadow: 0 22px 70px rgba(13, 18, 46, .24), 0 3px 12px rgba(13, 18, 46, .12);
    --panel-shadow: 0 18px 54px rgba(13, 18, 46, .25), 0 2px 8px rgba(13, 18, 46, .12);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --taskbar-height: 64px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --surface: rgba(17, 26, 55, .95);
    --surface-solid: #111a37;
    --surface-muted: #1a2548;
    --surface-raised: #202d55;
    --ink: #f5f6ff;
    --ink-muted: #b9c2dd;
    --line: rgba(230, 235, 255, .12);
    --taskbar: rgba(12, 20, 44, .78);
    --taskbar-ink: #f5f6ff;
}

:root[data-theme="luma"] {
    color-scheme: dark;
    --surface: rgba(11, 27, 64, .93);
    --surface-solid: #0d214a;
    --surface-muted: #162f60;
    --surface-raised: #1b3970;
    --ink: #f6f8ff;
    --ink-muted: #c1cff0;
    --line: rgba(193, 217, 255, .14);
    --taskbar: rgba(13, 26, 59, .72);
    --taskbar-ink: #f7f8ff;
}

:root[data-density="compact"] {
    --taskbar-height: 58px;
}

:root[data-density="compact"] .taskbar { height: 46px; }
:root[data-density="compact"] .luma-window { grid-template-rows: 42px minmax(0, 1fr); }
:root[data-density="compact"] .document-row { min-height: 42px; }

:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: "Luma Sans", sans-serif;
    color: var(--ink);
    background: #0d1532 url("../../images/backgrounds/background-00.jpg") center / cover no-repeat;
    user-select: none;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

button:not(:disabled) {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--luma-accent), white 24%);
    outline-offset: 2px;
}

.icon-sprite {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

[hidden] {
    display: none !important;
}

.desktop,
.session-root {
    width: 100%;
    height: 100%;
}

.desktop {
    position: relative;
    isolation: isolate;
    color: var(--desktop-ink);
}

.desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(4, 10, 31, .14), transparent 45%, rgba(23, 14, 70, .12));
    pointer-events: none;
}

.desktop-brand {
    position: fixed;
    top: 22px;
    left: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(2, 6, 22, .5);
}

.desktop-brand .icon {
    width: 25px;
    height: 25px;
    color: #a9b4ff;
}

.desktop-shortcuts {
    position: fixed;
    top: 78px;
    left: 18px;
    display: grid;
    gap: 8px;
}

.desktop-shortcut {
    width: 86px;
    min-height: 88px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 8px 5px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: transparent;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .72);
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible {
    background: rgba(231, 235, 255, .16);
    backdrop-filter: blur(12px);
}

.desktop-shortcut > span:last-child {
    max-width: 80px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.app-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 7px 16px rgba(4, 7, 24, .2);
}

.app-icon .icon {
    width: 19px;
    height: 19px;
}

.app-icon--documents { background: linear-gradient(145deg, #42bde7, #5271df); }
.app-icon--settings { background: linear-gradient(145deg, #8d76ff, #5a4dcc); }
.app-icon--trash { background: linear-gradient(145deg, #6f86a5, #394d70); }
.app-icon--notepad { background: linear-gradient(145deg, #f0a85c, #dc704f); }
.app-icon--image { background: linear-gradient(145deg, #5fcbb7, #3976ce); }
.app-icon--activity { background: linear-gradient(145deg, #56c98f, #218c76); }
.app-icon--orbit { background: linear-gradient(145deg, #806cff, #356fd2); }
.app-icon--chip { background: linear-gradient(145deg, #f47a35, #a93225); }
.app-icon--calculator { background: linear-gradient(145deg, #ff9f6b, #e4578a); }
.app-icon--terminal { background: linear-gradient(145deg, #151c2e, #2f4a7a); }
.app-icon--calendar { background: linear-gradient(145deg, #5aa2f0, #3d5fd9); }
.app-icon--music { background: linear-gradient(145deg, #e257b0, #7a4adf); }
.app-icon--video { background: linear-gradient(145deg, #f06a4f, #b33a8f); }
.app-icon--power { background: linear-gradient(145deg, #56c98f, #218c76); }
.app-icon--timer { background: linear-gradient(145deg, #ff9f6b, #e4578a); }
.app-icon--image-logo { overflow: hidden; background: transparent; }
.app-icon--image-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }

.window-layer {
    position: fixed;
    inset: 0 0 var(--taskbar-height);
    overflow: hidden;
    pointer-events: none;
}

.luma-window {
    position: absolute;
    top: 8vh;
    left: 16vw;
    width: min(920px, calc(100vw - 48px));
    height: min(680px, calc(100vh - 112px));
    min-width: min(360px, calc(100vw - 16px));
    min-height: min(300px, calc(100vh - var(--taskbar-height) - 16px));
    display: grid;
    grid-template-rows: 46px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 15px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--window-shadow);
    backdrop-filter: blur(28px) saturate(128%);
    pointer-events: auto;
    animation: window-arrive 360ms var(--ease-out) both;
}

@keyframes window-arrive {
    from { opacity: .72; transform: translateY(14px) scale(.985); filter: blur(6px); box-shadow: 0 8px 28px rgba(13, 18, 46, .18); }
}

.luma-window[data-state="maximized"] {
    inset: 8px 8px 8px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px;
}

.luma-window[data-state="snap-left"] {
    inset: 8px calc(50% + 4px) 8px 8px !important;
    width: auto !important;
    height: auto !important;
}

.luma-window[data-state="snap-right"] {
    inset: 8px 8px 8px calc(50% + 4px) !important;
    width: auto !important;
    height: auto !important;
}

.luma-window[data-state="minimized"] {
    display: none;
}

.luma-window.is-active {
    box-shadow: 0 26px 76px rgba(4, 8, 30, .32), 0 3px 14px rgba(4, 8, 30, .16);
}

.window-titlebar {
    display: flex;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-solid) 54%, transparent);
    touch-action: none;
}

.window-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 13px;
    font-size: 13px;
    font-weight: 600;
}

.window-heading .app-icon {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    box-shadow: none;
}

.window-heading .icon {
    width: 15px;
    height: 15px;
}

.window-heading span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-drag-region {
    min-width: 24px;
    align-self: stretch;
    flex: 1;
}

.window-controls {
    align-self: stretch;
    display: flex;
}

.window-control {
    width: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.window-control .icon {
    width: 14px;
    height: 14px;
}

.window-control:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.window-control--close:hover { color: #fff; background: #d83a52; }

.window-content {
    min-height: 0;
    overflow: auto;
    background: var(--surface-solid);
    container-type: inline-size;
}

.window-resize {
    position: absolute;
    z-index: 4;
}
.window-resize--n, .window-resize--s { left: 12px; right: 12px; height: 7px; }
.window-resize--e, .window-resize--w { top: 12px; bottom: 12px; width: 7px; }
.window-resize--n { top: 0; cursor: ns-resize; }
.window-resize--s { bottom: 0; cursor: ns-resize; }
.window-resize--e { right: 0; cursor: ew-resize; }
.window-resize--w { left: 0; cursor: ew-resize; }
.window-resize--ne, .window-resize--se, .window-resize--sw, .window-resize--nw { width: 14px; height: 14px; }
.window-resize--ne { top: 0; right: 0; cursor: nesw-resize; }
.window-resize--se { right: 0; bottom: 0; cursor: nwse-resize; }
.window-resize--sw { bottom: 0; left: 0; cursor: nesw-resize; }
.window-resize--nw { top: 0; left: 0; cursor: nwse-resize; }
.luma-window[data-state]:not([data-state="normal"]) .window-resize { display: none; }

.taskbar {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 10px;
    min-width: 290px;
    max-width: calc(100vw - 24px);
    height: 52px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    color: var(--taskbar-ink);
    border-radius: 16px;
    background: var(--taskbar);
    box-shadow: 0 16px 38px rgba(4, 8, 30, .28), 0 2px 8px rgba(4, 8, 30, .12);
    backdrop-filter: blur(26px) saturate(150%);
    transform: translateX(-50%);
}

.taskbar-button,
.status-button,
.icon-button {
    position: relative;
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
}

.taskbar-button:hover,
.status-button:hover,
.icon-button:hover,
.taskbar-button[aria-pressed="true"] {
    background: color-mix(in srgb, var(--taskbar-ink) 9%, transparent);
}

.taskbar-launcher {
    color: color-mix(in srgb, var(--luma-accent), white 22%);
}

.taskbar-launcher .icon { width: 25px; height: 25px; }

.taskbar-apps {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    overflow: auto hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.taskbar-app {
    width: clamp(118px, 9vw, 172px);
    min-width: 118px;
    max-width: 172px;
    flex: 0 1 clamp(118px, 9vw, 172px);
    grid-template-columns: 28px minmax(0, 1fr);
    justify-content: start;
    gap: 8px;
    padding: 0 10px;
    transition: width 180ms var(--ease-out), min-width 180ms var(--ease-out), background 180ms var(--ease-out);
}

.taskbar-apps[data-layout="compact"] .taskbar-app {
    width: 104px;
    min-width: 92px;
    flex-basis: 104px;
    padding-inline: 8px;
    gap: 6px;
}

.taskbar-apps[data-layout="icons"] {
    flex: 0 1 auto;
}

.taskbar-apps[data-layout="icons"] .taskbar-app {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-basis: 44px;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 0 8px;
}

.taskbar-apps[data-layout="icons"] .taskbar-app > span:last-child { display: none; }

.taskbar-app.is-dragging {
    opacity: .55;
    transform: scale(.96);
    box-shadow: 0 10px 24px rgba(4, 8, 30, .28);
}
.taskbar-apps[data-dragging="true"] .taskbar-app { cursor: grabbing; }
.taskbar-app { cursor: grab; }
.taskbar-app:active { cursor: grabbing; }

.taskbar-app::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 24px;
    height: 3px;
    border-radius: 4px;
    background: var(--luma-accent);
    transform: translateX(-50%) scaleX(0);
    transition: transform 180ms var(--ease-out);
}

.taskbar-app.is-running::after { transform: translateX(-50%) scaleX(.32); opacity: .8; }
.taskbar-app.is-active::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
.taskbar-app.is-minimized { opacity: .76; }
.taskbar-app .app-icon { width: 27px; height: 27px; border-radius: 8px; box-shadow: none; }
.taskbar-app > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.taskbar-status {
    display: flex;
    align-items: center;
    align-self: stretch;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid color-mix(in srgb, var(--taskbar-ink) 12%, transparent);
}

.status-button { min-width: 34px; width: 34px; }
.status-button .icon { width: 17px; height: 17px; }

.battery-button {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    color: inherit;
    background: transparent;
}
.battery-button:hover { background: color-mix(in srgb, var(--taskbar-ink) 9%, transparent); }
.battery-button__percent { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.battery-button.is-charging .icon { color: #56c98f; }
.battery-button.is-low .icon { color: #f0a85c; }
.battery-button:focus-visible { outline: 2px solid var(--luma-accent); outline-offset: 1px; }

.update-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: inherit;
    background: transparent;
}
.update-button:hover { background: color-mix(in srgb, var(--taskbar-ink) 9%, transparent); }
.update-button:focus-visible { outline: 2px solid var(--luma-accent); outline-offset: 1px; }
.update-button[data-update-state="checking"] { opacity: .6; }
.update-button[data-update-state="available"] { color: #f0a85c; }
.update-button[data-update-state="updating"] { color: var(--luma-accent, #6d5ee8); }
.update-button[data-update-state="error"] { color: #d64545; }
.update-button[data-update-state="available"] .update-button__dot,
.update-button[data-update-state="updating"] .update-button__dot,
.update-button[data-update-state="error"] .update-button__dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--taskbar-bg, #111827);
    border-radius: 50%;
    background: currentColor;
}

.clock {
    min-width: 72px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 2px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    color: inherit;
    text-align: center;
    background: transparent;
}

.clock:hover { background: color-mix(in srgb, var(--taskbar-ink) 9%, transparent); }
.clock span { font-size: 12px; font-weight: 600; line-height: 1.1; }
.clock small { font-size: 10px; line-height: 1.1; color: color-mix(in srgb, var(--taskbar-ink) 72%, transparent); }

.start-panel {
    position: fixed;
    z-index: 999;
    left: 50%;
    bottom: 72px;
    width: min(560px, calc(100vw - 24px));
    max-height: min(640px, calc(100vh - 92px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 22px;
    overflow: hidden;
    color: var(--ink);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(30px) saturate(135%);
    transform: translateX(-50%);
    animation: panel-arrive 280ms var(--ease-out) both;
}

@keyframes panel-arrive {
    from { opacity: .55; transform: translate(-50%, 18px) scale(.98); filter: blur(6px); }
}

.start-search {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border-radius: 11px;
    background: var(--surface-muted);
}

.start-search .icon { width: 17px; height: 17px; color: var(--ink-muted); }
.start-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.start-search input::placeholder { color: var(--ink-muted); opacity: 1; }

.start-panel__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.start-panel__heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.start-panel__heading span { color: var(--ink-muted); font-size: 12px; }

.start-apps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: auto;
}

.start-app {
    min-width: 0;
    min-height: 86px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px 6px;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: transparent;
}

.start-app:hover { background: var(--surface-muted); }
.start-app span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

/* Recherche globale : résultats groupés en liste (le champ Démarrer filtre
   applications, Documents, événements et réglages). */
.start-apps--list { grid-template-columns: minmax(0, 1fr); gap: 2px; }

.start-group {
    grid-column: 1 / -1;
    margin: 10px 0 2px;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.start-app--row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    text-align: left;
}

.start-app--row .icon { width: 18px; height: 18px; }
.start-app--row span { font-size: 13px; }
.start-app--row small { margin-left: auto; color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.start-app--row.is-active { background: var(--surface-muted); }

.start-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -22px -22px;
    padding: 13px 22px;
    background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
}

.account-chip { min-width: 0; display: flex; align-items: center; gap: 10px; }
.account-chip > span:last-child { min-width: 0; display: grid; }
.account-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-chip small { color: var(--ink-muted); font-size: 11px; }

.account-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(145deg, var(--luma-accent), #31b8e6);
}

.avatar-image {
    object-fit: cover;
    background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
}

.session-actions { display: flex; align-items: center; gap: 4px; }
.session-actions > button:first-child { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; }
.session-actions > button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.toast-region {
    position: fixed;
    z-index: 2000;
    right: 18px;
    bottom: 78px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.toast {
    width: min(360px, calc(100vw - 36px));
    padding: 13px 16px;
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface-raised);
    box-shadow: var(--panel-shadow);
    animation: toast-arrive 260ms var(--ease-out) both;
}

@keyframes toast-arrive { from { opacity: .3; transform: translateY(12px); filter: blur(4px); } }

@media (max-width: 720px) {
    :root { --taskbar-height: 70px; }
    .desktop-brand { top: 14px; left: 16px; }
    .desktop-shortcuts { top: 58px; left: 8px; }
    .luma-window,
    .luma-window[data-state] {
        inset: 4px 4px 6px !important;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        border-radius: 12px;
    }
    .taskbar { bottom: 8px; width: calc(100vw - 16px); justify-content: center; }
    .taskbar-app { min-width: 42px; width: 42px; padding: 0 7px; grid-template-columns: 1fr; }
    .taskbar-app > span:last-child { display: none; }
    .taskbar-status { margin-left: auto; }
    .status-button { display: none; }
    .start-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .window-resize { display: none; }
}

@media (max-width: 430px) {
    .clock small { display: none; }
    .clock { min-width: 48px; }
    .taskbar { min-width: 0; }
    .session-actions > button:first-child { display: none; }
}

.context-menu {
    position: fixed;
    z-index: 3000;
    min-width: 216px;
    max-width: min(280px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: 0 18px 54px rgba(13, 18, 46, .28), 0 2px 8px rgba(13, 18, 46, .12);
    color: var(--ink);
    font-size: 13px;
}
.context-menu-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.context-menu-item:hover,
.context-menu-item:focus-visible {
    background: color-mix(in srgb, var(--luma-accent) 14%, transparent);
    outline: none;
}
.context-menu-item.is-danger { color: color-mix(in srgb, var(--ink) 70%, #d64545); }
.context-menu-item.is-danger:hover { background: color-mix(in srgb, #d64545 14%, transparent); }
.context-menu-separator {
    margin: 5px 8px;
    border: 0;
    border-top: 1px solid var(--line);
}

/* Écran de session — rendu unique par luma-shell.js (connexion Kyros + verrouillage). */
.session-root {
    display: grid;
    place-items: stretch;
}

.luma-boot {
    width: min(420px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 28px;
    color: #f8f8ff;
    border: 1px solid rgba(225, 230, 255, .14);
    border-radius: 20px;
    background: rgba(7, 16, 42, .74);
    box-shadow: 0 28px 80px rgba(2, 6, 24, .42);
    backdrop-filter: blur(30px) saturate(145%);
    animation: session-arrive 480ms var(--ease-out) both;
    transition: opacity 180ms ease, transform 180ms ease;
    place-self: center;
}

.luma-boot.is-leaving { opacity: 0; transform: scale(.985); }
.luma-boot__logo { width: 56px; height: 56px; display: grid; place-items: center; color: #d0d4ff; border-radius: 16px; background: linear-gradient(145deg, rgba(129, 111, 255, .46), rgba(50, 184, 230, .2)); }
.luma-boot__logo .icon { width: 32px; height: 32px; }
.luma-boot h1 { margin: 0 0 4px; font-size: 25px; letter-spacing: -.035em; }
.luma-boot p { margin: 0; color: #cbd3ec; font-size: 12px; }
.luma-boot__track { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(230, 234, 255, .14); }
.luma-boot__track i { width: 100%; height: 100%; display: block; transform: scaleX(.08); transform-origin: left; border-radius: inherit; background: linear-gradient(90deg, var(--luma-accent), #61d4e8); transition: transform 260ms var(--ease-out); }

.session-select {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 44px 28px 28px;
    color: #f8f8ff;
    text-align: center;
    background-image: url("../../images/backgrounds/luma-aurora.webp");
    background-size: cover;
    background-position: center;
    animation: session-arrive 480ms var(--ease-out) both;
}

@keyframes session-arrive {
    from { opacity: .45; transform: translateY(18px) scale(.985); filter: blur(8px); }
}

.session-select::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(6, 12, 38, .18), transparent 55%),
        linear-gradient(180deg, rgba(4, 8, 30, .34), rgba(4, 8, 30, .08) 40%, rgba(4, 8, 30, .3));
    pointer-events: none;
}

.session-select__top,
.session-select__main,
.session-select__bottom {
    position: relative;
    z-index: 1;
}

.session-select__top { display: flex; flex-direction: column; align-items: center; }

.session-clock { display: flex; flex-direction: column; align-items: center; gap: 4px; text-shadow: 0 2px 14px rgba(3, 7, 25, .35); }
.session-clock__time { font-size: 64px; font-weight: 620; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.session-clock__date { font-size: 15px; color: rgba(240, 244, 255, .86); }

.session-select__main { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.session-logo { width: 112px; height: 112px; display: block; filter: drop-shadow(0 10px 26px rgba(4, 8, 30, .35)); }

.session-select h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; text-shadow: 0 2px 14px rgba(3, 7, 25, .3); }

.session-select__intro { max-width: 34ch; margin: 0; color: rgba(236, 241, 255, .9); font-size: 14px; line-height: 1.55; }
.session-select__status { margin: 0; color: rgba(236, 241, 255, .78); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.session-select__offline { max-width: 34ch; margin: 0; padding: 12px 14px; color: #ffd9a6; font-size: 12.5px; line-height: 1.5; border: 1px solid rgba(255, 190, 110, .28); border-radius: 10px; background: rgba(255, 170, 60, .1); }

.luma-primary-button {
    min-height: 43px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    background: var(--luma-accent);
    box-shadow: 0 9px 24px rgba(var(--luma-accent-rgb), .35);
    backdrop-filter: blur(4px);
}
.luma-primary-button:not(:disabled):hover { background: color-mix(in srgb, var(--luma-accent), white 10%); }
.luma-primary-button:disabled { cursor: not-allowed; opacity: .55; }

.session-select__bottom {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.session-user { display: flex; align-items: center; gap: 10px; }
.session-user__avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(145deg, var(--luma-accent), color-mix(in srgb, var(--luma-accent), black 22%));
    box-shadow: 0 8px 22px rgba(4, 8, 30, .3), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.session-user__name { font-size: 14px; font-weight: 560; text-shadow: 0 1px 8px rgba(3, 7, 25, .4); }

.session-select__statusbar {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(6, 12, 34, .34);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .1);
}
.session-status-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(240, 244, 255, .9);
    background: rgba(255, 255, 255, .08);
}
.session-status-icon .icon { width: 17px; height: 17px; }
.session-status-icon[data-charging="true"] .icon { color: #56c98f; }
.session-status-icon[data-level]::after { content: attr(data-level); font-size: 11px; font-weight: 600; margin-left: 2px; }
.session-status-icon--battery { width: auto; padding: 0 10px; gap: 2px; }

@media (max-width: 480px) {
    .session-select { padding: 32px 20px 20px; }
    .session-clock__time { font-size: 48px; }
    .session-clock__date { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
