.desktop {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--shell-topbar-height) + 16px);
    padding-bottom: calc(var(--shell-taskbar-height) + 20px);
    overflow: hidden;
}

.desktop::before,
.desktop::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 220ms ease, opacity 220ms ease;
}

.desktop::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 118px 118px;
    opacity: var(--desktop-grid-layer-opacity);
}

.desktop-icons {
    position: absolute;
    inset: calc(var(--shell-topbar-height) + 18px) auto calc(var(--shell-taskbar-height) + 22px) 22px;
    width: max-content;
    max-height: calc(100vh - var(--shell-topbar-height) - var(--shell-taskbar-height) - 42px);
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--desktop-icon-rows), minmax(var(--desktop-shortcut-row), auto));
    grid-auto-columns: calc(var(--desktop-icon-size) + 48px);
    gap: var(--desktop-shortcut-gap) 8px;
    align-content: start;
    z-index: 2;
}

.desktop-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    min-height: var(--desktop-shortcut-row);
    padding: 6px 6px 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--shell-text);
    text-align: center;
    transition: transform 160ms ease;
}

.desktop-shortcut:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: 2px solid rgba(var(--accent-rgb), 0.5);
    outline-offset: 4px;
    border-radius: 6px;
}

.desktop-shortcut:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: transparent;
    box-shadow: none;
    transform: scale(1.05);
    border-radius: 8px;
}

.desktop-shortcut.is-dragging {
    opacity: 0.58;
    transform: scale(0.96);
}

.desktop-shortcut.is-drop-target {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(var(--accent-rgb), 0.32);
}

.shortcut-label {
    display: block;
    max-width: calc(var(--desktop-icon-size) + 72px);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.15;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.46);
}

.widgets-rail {
    position: absolute;
    top: calc(var(--shell-topbar-height) + 18px);
    right: 22px;
    width: min(var(--widgets-rail-width), calc(100vw - 188px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(14px * var(--widget-height-scale));
    z-index: 2;
    max-height: calc(100vh - var(--shell-topbar-height) - var(--shell-taskbar-height) - 48px);
    overflow: auto;
    padding-right: 4px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.widgets-rail::-webkit-scrollbar {
    width: 8px;
}

.widgets-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

body.widgets-hidden .widgets-rail {
    opacity: 0;
    pointer-events: none;
    transform: translateX(22px);
}

body.widgets-split .widgets-rail {
    width: min(max(calc(var(--widgets-rail-width) * 2.02), 820px), calc(100vw - 228px));
    height: calc(100vh - var(--shell-topbar-height) - var(--shell-taskbar-height) - 48px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
    overflow: auto;
}

body.widgets-split .hero-widget {
    grid-column: 1 / -1;
}

body.widgets-split .focus-widget,
body.widgets-split .quote-widget,
body.widgets-split .stats-widget {
    grid-column: 1 / -1;
    min-height: calc(184px * var(--widget-height-scale));
}

body.widgets-split .widgets-rail > .projects-widget {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-height: calc(220px * var(--widget-height-scale));
    min-width: 0;
    place-self: stretch;
    justify-self: stretch;
}

body.widgets-split .focus-widget,
body.widgets-split .quote-widget,
body.widgets-split .stats-widget,
body.widgets-split .projects-widget {
    height: 100%;
    min-height: 0;
}

body.widgets-split .projects-widget-list {
    grid-template-columns: 1fr;
    width: 100%;
}

body.widgets-split .projects-widget-item {
    height: auto;
}

.widget-card {
    position: relative;
    overflow: hidden;
    padding: calc(20px * var(--widget-height-scale));
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(248, 251, 255, 0.82), rgba(226, 236, 255, 0.5)),
        radial-gradient(circle at 86% 18%, rgba(111, 166, 255, 0.16), transparent 28%);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow:
        0 24px 52px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
    color: var(--ink);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.widget-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.06) 38%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%);
    pointer-events: none;
}

.widget-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -28% auto;
    width: 280px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 68%);
    pointer-events: none;
    opacity: 0.84;
    filter: blur(10px);
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.widget-card > * {
    position: relative;
    z-index: 1;
}

.widget-card .chip {
    color: rgba(29, 29, 29, 0.9);
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.widget-card .pill {
    color: rgba(29, 29, 29, 0.85);
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.46);
}

.hero-widget {
    min-height: calc(176px * var(--widget-height-scale));
    background: linear-gradient(145deg, rgba(91, 126, 211, 0.88), rgba(71, 106, 191, 0.78) 46%, rgba(60, 92, 170, 0.72) 100%);
}

.hero-widget::after {
    background: radial-gradient(circle at 82% 20%, rgba(132, 190, 255, 0.26), transparent 40%);
}

.hero-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: calc(18px * var(--widget-height-scale));
    align-items: start;
}

.hero-details {
    display: grid;
    align-content: start;
    width: 100%;
    min-width: 0;
}

.focus-widget {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-height: calc(190px * var(--widget-height-scale));
    background: linear-gradient(145deg, rgba(84, 118, 204, 0.84), rgba(64, 96, 179, 0.76) 50%, rgba(56, 86, 160, 0.72) 100%);
}

.focus-widget::after {
    background: radial-gradient(circle at 82% 18%, rgba(144, 200, 255, 0.24), transparent 38%);
}

.focus-widget-body {
    min-height: 0;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.focus-widget-body::-webkit-scrollbar,
.projects-widget-list::-webkit-scrollbar {
    width: 8px;
}

.focus-widget-body::-webkit-scrollbar-thumb,
.projects-widget-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.focus-widget-body::-webkit-scrollbar-track,
.projects-widget-list::-webkit-scrollbar-track {
    background: transparent;
}

.quote-widget {
    min-height: calc(190px * var(--widget-height-scale));
    background: linear-gradient(145deg, rgba(84, 118, 204, 0.84), rgba(64, 96, 179, 0.76) 50%, rgba(56, 86, 160, 0.72) 100%);
}

.quote-widget::after {
    background: radial-gradient(circle at 82% 18%, rgba(144, 200, 255, 0.24), transparent 38%);
}

.stats-widget {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    height: calc(248px * var(--widget-height-scale));
    min-height: calc(248px * var(--widget-height-scale));
    background: linear-gradient(145deg, rgba(84, 118, 204, 0.84), rgba(64, 96, 179, 0.76) 50%, rgba(56, 86, 160, 0.72) 100%);
}

.stats-widget::after {
    background: radial-gradient(circle at 82% 18%, rgba(144, 200, 255, 0.24), transparent 38%);
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    align-content: start;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.signals-grid::-webkit-scrollbar {
    width: 8px;
}

.signals-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.signals-grid::-webkit-scrollbar-track {
    background: transparent;
}

.signals-grid article {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 96px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.signals-grid strong {
    display: block;
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.signals-grid span {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(245, 248, 255, 0.92);
}

.hero-head {
    display: grid;
    gap: calc(6px * var(--widget-height-scale));
    text-align: left;
    width: 100%;
}

.avatar-orb {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 auto;
    border-radius: calc(24px * var(--widget-height-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: calc(1.9rem * var(--widget-height-scale));
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.7));
}

.avatar-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-orb.has-image span {
    display: none;
}

.hero-role {
    display: none;
}

.hero-summary {
    margin-top: calc(14px * var(--widget-height-scale));
    text-align: left;
    text-wrap: pretty;
}

.hero-widget .widget-actions {
    margin-top: calc(16px * var(--widget-height-scale));
}

.hero-widget .widget-actions .primary-button,
.hero-widget .widget-actions .secondary-button {
    flex: 1 1 150px;
}

.widget-card blockquote {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.75;
    text-wrap: balance;
}

.hero-role,
.hero-subrole,
.hero-summary {
    max-width: none;
    width: 100%;
}

.projects-widget-button {
    min-height: 32px;
    padding-inline: 12px;
    border-radius: 999px;
}

.projects-widget-list {
    display: grid;
    gap: calc(10px * var(--widget-height-scale));
    width: 100%;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.projects-widget-item {
    display: grid;
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 14px;
    padding: calc(16px * var(--widget-height-scale)) calc(18px * var(--widget-height-scale));
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14)),
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 26px rgba(15, 23, 42, 0.08);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.projects-widget-item:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.16)),
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.05));
    border-color: rgba(var(--accent-rgb), 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 18px 32px rgba(15, 23, 42, 0.1);
}

.projects-widget-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.projects-widget-index {
    min-width: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.projects-widget .project-tag {
    margin-bottom: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: rgba(var(--accent-rgb), 0.94);
    font-size: 0.72rem;
    line-height: 1;
}

.projects-widget-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-content: start;
}

.projects-widget-item h4 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.projects-widget-item p {
    margin: 0;
    color: rgba(29, 29, 29, 0.84);
    line-height: 1.55;
    text-wrap: pretty;
}

.projects-widget-arrow {
    width: 38px;
    height: 38px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
    color: rgba(var(--accent-rgb), 0.94);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.projects-widget-item:hover .projects-widget-arrow {
    transform: translate(1px, -1px);
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(var(--accent-rgb), 0.16);
}

.start-menu {
    position: fixed;
    left: 50%;
    bottom: calc(var(--shell-taskbar-height) + 12px);
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - var(--shell-taskbar-height) - 34px);
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.9), rgba(235, 242, 251, 0.8));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow:
        0 26px 64px rgba(15, 23, 42, 0.24),
        0 12px 26px rgba(15, 23, 42, 0.12);
    color: var(--ink);
    overflow: hidden auto;
    z-index: 120;
}

.start-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06) 30%, transparent 60%),
        radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 34%);
    pointer-events: none;
}

.start-menu > * {
    position: relative;
    z-index: 1;
}

.start-menu:not([hidden]) {
    animation: startMenuIn 180ms ease both;
}

.start-search {
    position: relative;
}

.start-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px 0 48px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.start-search-glyph {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    color: #c0c8d6;
}

.start-search-glyph i {
    font-size: 14px;
    line-height: 1;
}

.start-panel {
    display: grid;
    gap: 12px;
    padding: 11px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(244, 248, 253, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 12px 28px rgba(148, 163, 184, 0.1);
}

.launcher-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.launcher-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 253, 0.56));
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--ink);
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 10px 22px rgba(148, 163, 184, 0.1);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.launcher-copy {
    display: grid;
    gap: 2px;
}

.launcher-copy strong {
    font-size: 0.96rem;
}

.launcher-copy small {
    color: var(--muted-ink);
    font-size: 0.78rem;
}

.start-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.start-grid,
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
}

body[data-launcher-density="compact"] .start-grid,
body[data-launcher-density="compact"] .recommended-grid {
    gap: 10px 8px;
}

.start-app.app-tile,
.start-link-tile,
.recommended-item.start-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 108px;
    padding: 12px 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(242, 247, 253, 0.52));
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--ink);
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 12px 24px rgba(148, 163, 184, 0.1);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body[data-launcher-density="compact"] .start-app.app-tile,
body[data-launcher-density="compact"] .start-link-tile,
body[data-launcher-density="compact"] .recommended-item.start-card-link {
    min-height: 96px;
    padding: 12px 10px 14px;
}

.app-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.app-meta {
    display: block;
    font-size: 0.74rem;
    color: var(--muted-ink);
    line-height: 1.2;
}

.recommended-grid {
    padding-top: 2px;
}

.recommended-item.start-card-link {
    min-height: 98px;
}

.recommended-item.start-card-link strong {
    font-size: 0.9rem;
}

.recommended-item.start-card-link span:last-child {
    color: var(--muted-ink);
    font-size: 0.74rem;
    line-height: 1.3;
}

.launcher-chip:hover,
.start-app.app-tile:hover,
.start-link-tile:hover,
.recommended-item.start-card-link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 254, 0.68));
    border-color: rgba(148, 163, 184, 0.22);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 18px 30px rgba(148, 163, 184, 0.16);
}

.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.start-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-layout-list {
    display: grid;
    gap: 10px;
}

.desktop-layout-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.desktop-layout-row input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.start-user strong {
    display: block;
    font-size: 0.92rem;
}

.start-user span:last-child {
    color: var(--muted-ink);
    font-size: 0.78rem;
}

.taskbar {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(940px, calc(100vw - 28px));
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.76), rgba(229, 237, 247, 0.48));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.16),
        0 12px 28px rgba(148, 163, 184, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
    z-index: 110;
    overflow: hidden;
}

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

.taskbar::before {
    inset: 1px 1px auto 1px;
    height: 48%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
}

.taskbar::after {
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.18), transparent);
}

body[data-taskbar-align="left"] .taskbar {
    left: 16px;
    transform: none;
}

body[data-taskbar-align="left"] .start-menu {
    left: 16px;
    transform: none;
}

body[data-taskbar-align="left"] .start-menu:not([hidden]) {
    animation: startMenuInLeft 180ms ease both;
}

.taskbar-left,
.taskbar-center,
.taskbar-right,
.taskbar-pinned,
.taskbar-running {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-left,
.taskbar-center,
.taskbar-right {
    position: relative;
    z-index: 1;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.taskbar-center {
    justify-content: flex-start;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.24);
}

body[data-taskbar-align="left"] .taskbar-center {
    justify-content: flex-start;
}

.taskbar-pinned {
    flex: 0 0 auto;
    gap: 6px;
}

.taskbar-running {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    justify-content: center;
}

.taskbar-running.is-empty {
    justify-content: center;
}

.taskbar-empty-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 10px;
    color: rgba(241, 245, 249, 0.8);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.taskbar-empty-state[hidden] {
    display: none;
}

.taskbar-right {
    justify-content: flex-end;
    min-width: 138px;
    gap: 10px;
}

.taskbar-core,
.taskbar-app {
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 244, 252, 0.56));
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 10px 24px rgba(148, 163, 184, 0.14);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.taskbar-core {
    width: 50px;
    padding: 0;
}

.taskbar-app {
    width: 52px;
    padding: 0;
}

.taskbar-app::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.86);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.taskbar-app span:last-child {
    display: none;
}

.taskbar-app.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 233, 247, 0.8));
    border-color: rgba(var(--accent-rgb), 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        0 14px 28px rgba(148, 163, 184, 0.18);
}

.taskbar-app.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

.taskbar-core:hover,
.taskbar-app:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 242, 251, 0.68));
    border-color: rgba(255, 255, 255, 0.68);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 28px rgba(148, 163, 184, 0.2);
}

.taskbar-core:focus-visible,
.taskbar-app:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.42);
    outline-offset: 3px;
}

.taskbar .app-icon,
.taskbar .app-icon--sm {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.taskbar .app-icon svg,
.taskbar .app-icon--sm svg {
    width: 16px;
    height: 16px;
}

.taskbar .app-icon i,
.taskbar .app-icon--sm i {
    font-size: 16px;
}

#start-button {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.98), rgba(var(--accent-rgb), 0.72));
    border-color: rgba(255, 255, 255, 0.32);
    color: #f8fbff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 28px rgba(var(--accent-rgb), 0.22);
}

#start-button:hover,
#start-button:focus-visible {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent-rgb), 0.78));
}

.taskbar-launcher {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 226, 172, 0.78));
}

.windows-glyph,
.widgets-glyph {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
}

.windows-glyph i,
.widgets-glyph i {
    font-size: 16px;
    line-height: 1;
}

.start-shutdown-button,
.tray-power-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(235, 242, 250, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: var(--ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 10px 24px rgba(148, 163, 184, 0.14);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.start-shutdown-button {
    min-height: 46px;
    padding: 0 18px;
}

.tray-power-button {
    width: 40px;
    height: 40px;
    padding: 0;
}

.tray-power-button:hover,
.tray-power-button:focus-visible {
    transform: translateY(-1px);
    color: #dc2626;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(254, 226, 226, 0.78));
    border-color: rgba(248, 113, 113, 0.3);
}

.power-glyph {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
}

.power-glyph i {
    font-size: 14px;
    line-height: 1;
}

.system-clock {
    display: grid;
    justify-items: end;
    color: var(--ink);
    min-width: 88px;
    padding-right: 2px;
    font-size: 0.7rem;
    line-height: 1.1;
}

.system-clock strong {
    font-size: 0.92rem;
    letter-spacing: -0.03em;
}

#taskbar-date {
    opacity: 0.72;
}

@keyframes startMenuIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes startMenuInLeft {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.boot-screen,
.shutdown-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 200;
}

.boot-screen {
    background:
        radial-gradient(circle at center, rgba(59, 130, 246, 0.14), transparent 28%),
        linear-gradient(180deg, #02050c 0%, #020617 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

body.is-booting .boot-screen {
    opacity: 1;
    pointer-events: auto;
}

.boot-shell {
    width: min(480px, 100%);
    text-align: center;
    color: #e5edf8;
    transform: translateY(12px);
    animation: bootRise 500ms ease forwards;
}

.boot-kicker {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.78);
}

.boot-shell h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #f8fafc;
}

.boot-shell p:last-of-type {
    margin: 0 auto 22px;
    max-width: 380px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.82);
}

.boot-mark {
    width: 104px;
    height: 104px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
}

.boot-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.boot-mark .xp-mark {
    margin: 0;
}

.xp-mark {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.xp-pane {
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 10px 18px rgba(0, 0, 0, 0.18);
}

.xp-pane--red {
    background: linear-gradient(145deg, #f97316, #ef4444);
}

.xp-pane--green {
    background: linear-gradient(145deg, #84cc16, #22c55e);
}

.xp-pane--blue {
    background: linear-gradient(145deg, #38bdf8, #2563eb);
}

.xp-pane--gold {
    background: linear-gradient(145deg, #facc15, #f59e0b);
}

.xp-loader {
    width: min(320px, 100%);
    height: 24px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.xp-loader span {
    display: block;
    width: 140px;
    height: 100%;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent),
        linear-gradient(90deg, #0ea5e9, #60a5fa 35%, #2563eb 72%, #1d4ed8);
    animation: xpLoad 1.2s linear infinite;
}

.shutdown-screen {
    background:
        radial-gradient(circle at center, rgba(var(--accent-rgb), 0.2), transparent 30%),
        linear-gradient(180deg, #02050c 0%, #020617 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 200;
}

body.is-powering-off .shutdown-screen,
body.is-shutdown .shutdown-screen {
    opacity: 1;
    pointer-events: auto;
}

.shutdown-progress,
.shutdown-card {
    width: min(440px, 100%);
    text-align: center;
    color: #e2e8f0;
}

.shutdown-progress {
    display: none;
}

body.is-powering-off .shutdown-progress {
    display: block;
    animation: bootRise 420ms ease forwards;
}

body.is-powering-off .shutdown-card {
    display: none;
}

.shutdown-card {
    display: none;
    padding: 36px 30px;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

body.is-shutdown .shutdown-card {
    display: block;
    animation: bootRise 420ms ease forwards;
}

.shutdown-card h2 {
    margin: 10px 0 12px;
    font-size: 2rem;
    color: #f8fafc;
}

.shutdown-card p {
    margin: 0 0 20px;
    line-height: 1.7;
}

.shutdown-mark-shell {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
}

.shutdown-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.96), rgba(15, 23, 42, 0.9));
    color: #f8fafc;
}

.shutdown-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.shutdown-mark .windows-glyph {
    width: 24px;
    height: 24px;
}

.xp-loader--shutdown {
    margin-top: 22px;
}

body.is-booting .desktop,
body.is-booting .taskbar,
body.is-booting .start-menu,
body.is-booting .toast-stack,
body.is-booting .tour-overlay,
body.is-booting .shutdown-screen,
body.is-powering-off .desktop,
body.is-powering-off .taskbar,
body.is-powering-off .start-menu,
body.is-powering-off .toast-stack,
body.is-powering-off .tour-overlay,
body.is-shutdown .desktop,
body.is-shutdown .taskbar,
body.is-shutdown .start-menu,
body.is-shutdown .toast-stack,
body.is-shutdown .tour-overlay {
    opacity: 0;
    pointer-events: none;
}

@keyframes bootRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes xpLoad {
    from {
        transform: translateX(-150px);
    }
    to {
        transform: translateX(330px);
    }
}
