:root {
    --panel-height: 34px;
    --dock-width: 82px;
    --dock-height: 88px;
    --dock-safe-offset: calc(var(--dock-height) + 26px);
    --bg-deep: #140c1f;
    --bg-mid: #2b0f37;
    --bg-soft: #4d1d52;
    --ubuntu-orange: #e95420;
    --ubuntu-orange-soft: rgba(233, 84, 32, 0.18);
    --ubuntu-purple: #77216f;
    --window-bg: rgba(30, 30, 36, 0.96);
    --window-muted: rgba(45, 45, 52, 0.92);
    --window-border: rgba(255, 255, 255, 0.12);
    --window-shadow: 0 26px 60px rgba(0, 0, 0, 0.44);
    --text-main: #f6f2fb;
    --text-soft: #c9c0d5;
    --text-mute: #9186a0;
    --success: #58d68d;
    --warning: #f6c64e;
    --danger: #ff6b6b;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    font-family: "Ubuntu", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 16% 18%, rgba(233, 84, 32, 0.22), transparent 20%),
        radial-gradient(circle at 84% 14%, rgba(119, 33, 111, 0.48), transparent 24%),
        radial-gradient(circle at 50% 86%, rgba(119, 33, 111, 0.32), transparent 22%),
        linear-gradient(140deg, #13091a 0%, #1f0e29 28%, #34133e 60%, #20081d 100%);
}

body.is-booting {
    cursor: progress;
}

body.is-booting .desktop-root {
    filter: saturate(0.85) blur(1px);
}

body.is-booting .top-panel,
body.is-booting .desktop-shell {
    pointer-events: none;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: #fff6f2;
    background: rgba(233, 84, 32, 0.9);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 14, 0.28);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
}

.desktop-root {
    position: relative;
    height: 100vh;
}

.top-panel,
.dock,
.desktop-note,
.desktop-icon {
    transition:
        opacity 320ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 260ms ease;
}

body:not(.is-desktop-ready) .top-panel {
    opacity: 0;
    transform: translateY(-12px);
}

body:not(.is-desktop-ready) .dock {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
}

body:not(.is-desktop-ready) .desktop-note {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
}

body:not(.is-desktop-ready) .desktop-icon {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(6px);
}

body.is-desktop-ready .desktop-icon:nth-child(1) {
    transition-delay: 60ms;
}

body.is-desktop-ready .desktop-icon:nth-child(2) {
    transition-delay: 110ms;
}

body.is-desktop-ready .desktop-icon:nth-child(3) {
    transition-delay: 160ms;
}

body.is-desktop-ready .desktop-icon:nth-child(4) {
    transition-delay: 210ms;
}

body.is-desktop-ready .desktop-icon:nth-child(5) {
    transition-delay: 260ms;
}

body.is-desktop-ready .desktop-icon:nth-child(6) {
    transition-delay: 310ms;
}

body.is-desktop-ready .desktop-icon:nth-child(7) {
    transition-delay: 360ms;
}

.boot-screen[hidden],
.context-menu[hidden] {
    display: none !important;
}

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 38%, rgba(233, 84, 32, 0.22), transparent 24%),
        linear-gradient(180deg, rgba(16, 12, 22, 0.9), rgba(8, 7, 12, 0.96));
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

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

.boot-screen__content {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(540px, 100%);
    padding: 34px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background: rgba(19, 16, 26, 0.64);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    text-align: center;
}

.boot-screen__logo {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(233, 84, 32, 0.4), rgba(233, 84, 32, 0.08));
    color: #ffb392;
    font-size: 2.3rem;
    box-shadow:
        0 0 0 10px rgba(233, 84, 32, 0.06),
        0 22px 40px rgba(0, 0, 0, 0.35);
    animation: boot-pulse 1.4s ease-in-out infinite;
}

.boot-screen__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.boot-screen__status,
.boot-screen__score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
}

.boot-screen__score strong {
    color: #ffd0bc;
    font-size: 0.92rem;
}

.boot-screen__content h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 0.02em;
}

.boot-screen__content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.boot-screen__progress {
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.boot-screen__progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb88c, var(--ubuntu-orange));
    animation: boot-progress 1.1s ease-in-out infinite;
}

.boot-screen.is-ready .boot-screen__progress span {
    width: 100%;
    animation: none;
    transform: none;
}

.boot-game {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 178px;
    touch-action: manipulation;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 16%, rgba(233, 84, 32, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(44, 37, 61, 0.96), rgba(21, 18, 30, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.boot-screen:not(.is-ready) .boot-game {
    filter: saturate(0.78) brightness(0.86);
}

.boot-game__sky {
    position: absolute;
    inset: 0;
}

.boot-game__sun {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd7a8;
    box-shadow: 0 0 0 8px rgba(255, 215, 168, 0.08);
}

.boot-game__cloud {
    position: absolute;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.boot-game__cloud::before,
.boot-game__cloud::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 999px;
    background: inherit;
}

.boot-game__cloud::before {
    left: 6px;
    width: 12px;
    height: 12px;
}

.boot-game__cloud::after {
    right: 7px;
    width: 14px;
    height: 14px;
}

.boot-game__cloud--one {
    top: 36px;
    left: 54px;
    width: 44px;
}

.boot-game__cloud--two {
    top: 62px;
    left: 182px;
    width: 38px;
    opacity: 0.74;
}

.boot-game__track {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    height: 3px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 18px, transparent 18px 36px);
    background-size: 36px 100%;
}

.boot-game__track::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -18px;
    left: 0;
    height: 18px;
    background: linear-gradient(180deg, rgba(18, 18, 25, 0.18), rgba(10, 10, 14, 0.46));
}

.boot-game__runner,
.boot-game__obstacle {
    position: absolute;
    bottom: 31px;
}

.boot-game__runner {
    left: 28px;
    width: 54px;
    height: 46px;
    transform-origin: bottom left;
    transition: transform 90ms linear;
}

.boot-screen:not(.is-ready) .boot-game__runner {
    animation: boot-runner-idle 1.05s ease-in-out infinite;
}

.boot-game__runner-head,
.boot-game__runner-body,
.boot-game__runner-tail,
.boot-game__runner-leg,
.boot-game__runner-eye,
.boot-game__cactus {
    position: absolute;
    display: block;
}

.boot-game__runner-body {
    bottom: 10px;
    left: 12px;
    width: 28px;
    height: 20px;
    border-radius: 7px 9px 6px 6px;
    background: linear-gradient(180deg, #c1ffad, #7cd467);
}

.boot-game__runner-head {
    top: 2px;
    left: 26px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #d4ffbf, #8ae26d);
}

.boot-game__runner-eye {
    top: 8px;
    left: 38px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1a1b20;
}

.boot-game__runner-tail {
    bottom: 17px;
    left: 4px;
    width: 14px;
    height: 8px;
    border-radius: 8px 0 0 8px;
    background: #72ca60;
    transform: rotate(-12deg);
}

.boot-game__runner-leg {
    bottom: 0;
    width: 8px;
    height: 16px;
    border-radius: 0 0 4px 4px;
    background: #5da84d;
}

.boot-game__runner-leg--front {
    left: 24px;
}

.boot-game__runner-leg--back {
    left: 12px;
}

.boot-game__obstacle {
    left: 0;
    width: 34px;
    height: 44px;
}

.boot-game__cactus {
    bottom: 0;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #ffb76d, #e95420);
}

.boot-game__cactus--main {
    left: 10px;
    width: 14px;
    height: 44px;
}

.boot-game__cactus--arm {
    bottom: 14px;
    left: 0;
    width: 12px;
    height: 18px;
}

.boot-game__cactus--side {
    right: 0;
    bottom: 20px;
    width: 12px;
    height: 16px;
}

.boot-game__flash {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.83rem;
    font-family: "JetBrains Mono", monospace;
    text-align: left;
}

.boot-screen__skip {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.boot-screen__skip:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes boot-progress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(360%);
    }
}

@keyframes boot-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes boot-runner-idle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.top-panel {
    position: relative;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--panel-height);
    padding: 0 14px;
    background: rgba(14, 14, 18, 0.66);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.92rem;
}

.top-panel__left,
.top-panel__right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.top-panel__center {
    justify-self: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.top-panel__right {
    justify-self: end;
}

.ubuntu-mark {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(233, 84, 32, 0.2);
    color: #ffb089;
}

.panel-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.locale-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.desktop-shell {
    position: relative;
    height: calc(100vh - var(--panel-height));
}

.dock {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-height: var(--dock-height);
    padding: 12px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(21, 18, 29, 0.86), rgba(12, 11, 18, 0.72));
    box-shadow:
        0 28px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.dock::after {
    content: "";
    position: absolute;
    inset: 10px 14px auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    opacity: 0.85;
}

.dock-app {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: transparent;
}

.dock-app::after {
    content: attr(data-dock-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    min-width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff7f2;
    background: rgba(14, 13, 18, 0.92);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dock-app__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.dock-app:hover .dock-app__icon,
.dock-app:focus-visible .dock-app__icon,
.dock-app.is-active .dock-app__icon {
    transform: translateY(-8px) scale(1.08);
    filter: saturate(1.05);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.dock-app:hover::after,
.dock-app:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dock-app__icon--home {
    background: linear-gradient(180deg, #f28c48, #d65424);
}

.dock-app__icon--browser {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.3), transparent 26%),
        linear-gradient(135deg, #e65425 0%, #eaad31 32%, #2ca6df 68%, #1f5eff 100%);
}

.dock-app__icon--terminal {
    background: linear-gradient(180deg, #2b3138, #171a1e);
}

.dock-app__icon--folder {
    background: linear-gradient(180deg, #ffcd6d, #f2aa2f);
    color: #40260e;
}

.dock-app__icon--doc {
    background: linear-gradient(180deg, #f5f7fb, #b9c4d3);
    color: #2b3340;
}

.dock-app__icon--mail {
    background: linear-gradient(180deg, #9f7aea, #6b46c1);
}

.dock-app__icon--trash {
    background: linear-gradient(180deg, #dce3ec, #9ea9ba);
    color: #26303c;
}

.dock-app__icon--github {
    background: linear-gradient(180deg, #2c2f3a, #111319);
}

.dock-app--external {
    margin-left: 8px;
}

.dock-app--external::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.dock-app__dot {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: var(--ubuntu-orange);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dock-app.is-open .dock-app__dot {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.workspace {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.workspace.is-refreshing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(255, 255, 255, 0.08));
    animation: workspace-refresh 420ms ease;
}

@keyframes workspace-refresh {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.wallpaper-orb,
.wallpaper-noise {
    position: absolute;
    pointer-events: none;
}

.wallpaper-orb {
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.wallpaper-orb--one {
    top: -140px;
    right: 8%;
    background: radial-gradient(circle, rgba(233, 84, 32, 0.9), transparent 68%);
}

.wallpaper-orb--two {
    bottom: -200px;
    left: 16%;
    background: radial-gradient(circle, rgba(119, 33, 111, 0.9), transparent 68%);
}

.wallpaper-noise {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
    opacity: 0.45;
}

.desktop-icons {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 12;
    display: grid;
    gap: 16px;
}

.desktop-icon {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 92px;
    padding: 8px 6px;
    border: none;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.94);
    background: transparent;
    transition: background-color 180ms ease, transform 180ms ease;
    z-index: 1;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.desktop-icon__art {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.desktop-icon__art--home {
    background: linear-gradient(180deg, rgba(245, 178, 105, 0.98), rgba(233, 84, 32, 0.95));
}

.desktop-icon__art--browser {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, rgba(230, 84, 37, 0.98), rgba(234, 173, 49, 0.98) 34%, rgba(44, 166, 223, 0.98) 68%, rgba(31, 94, 255, 0.98));
}

.desktop-icon__art--folder {
    background: linear-gradient(180deg, rgba(255, 221, 127, 0.98), rgba(241, 161, 28, 0.95));
    color: #37230d;
}

.desktop-icon__art--doc {
    background: linear-gradient(180deg, rgba(250, 250, 252, 0.98), rgba(180, 192, 210, 0.96));
    color: #343b49;
}

.desktop-icon__art--terminal {
    background: linear-gradient(180deg, rgba(49, 53, 59, 0.98), rgba(16, 17, 20, 0.98));
}

.desktop-icon__art--mail {
    background: linear-gradient(180deg, rgba(160, 118, 241, 0.98), rgba(107, 70, 193, 0.95));
}

.desktop-icon__art--trash {
    background: linear-gradient(180deg, rgba(232, 238, 246, 0.98), rgba(151, 165, 184, 0.95));
    color: #2a3340;
}

.desktop-icon__label {
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.desktop-note {
    position: absolute;
    left: 28px;
    bottom: calc(var(--dock-safe-offset) + 12px);
    z-index: 7;
    isolation: isolate;
    width: min(380px, calc(100% - 140px));
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(18, 15, 28, 0.54);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.desktop-note::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%);
    pointer-events: none;
}

.desktop-note > * {
    position: relative;
    z-index: 1;
}

.desktop-note__label,
.mini-label {
    display: inline-block;
    margin: 0 0 8px;
    color: #ffbfad;
    font-size: 0.78rem;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.desktop-note h1 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.15;
}

.desktop-note p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.context-menu {
    position: fixed;
    z-index: 95;
    display: grid;
    min-width: 244px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(26, 22, 34, 0.94);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.context-menu__item {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    text-align: left;
}

.context-menu__item:hover {
    background: rgba(233, 84, 32, 0.16);
}

.context-menu__divider {
    height: 1px;
    margin: 8px 2px;
    background: rgba(255, 255, 255, 0.08);
}

.window-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.app-window {
    position: absolute;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--window-border);
    border-radius: var(--radius-lg);
    background: var(--window-bg);
    box-shadow: var(--window-shadow);
    min-width: 320px;
    min-height: 220px;
    pointer-events: auto;
}

.app-window.is-open {
    display: flex;
}

.app-window.is-minimized {
    display: none;
}

.app-window.is-active {
    border-color: rgba(255, 255, 255, 0.2);
}

.app-window.is-maximized {
    inset: 12px 16px calc(var(--dock-safe-offset)) 16px !important;
    width: auto !important;
    height: auto !important;
}

.window-titlebar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 0 14px;
    background: linear-gradient(180deg, #3f3d46 0%, #2d2c33 100%);
    user-select: none;
    cursor: grab;
}

.window-controls {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.window-control {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    overflow: visible;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 160ms ease, filter 160ms ease;
}

.window-control::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transition: opacity 160ms ease;
    content: "";
}

.window-control::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -34px;
    left: 50%;
    min-width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff7f3;
    background: rgba(15, 13, 20, 0.92);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.window-controls:hover .window-control::before {
    opacity: 0.85;
}

.window-control:hover {
    transform: scale(1.08);
    filter: brightness(1.06);
}

.window-control:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.window-control[data-window-action="close"]::before {
    content: "\00d7";
}

.window-control[data-window-action="minimize"]::before {
    content: "\2212";
}

.window-control[data-window-action="maximize"]::before {
    content: "\002b";
}

.window-control--close {
    background: var(--danger);
}

.window-control--minimize {
    background: var(--warning);
}

.window-control--maximize {
    background: var(--success);
}

.window-title {
    justify-self: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.browser-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(54, 51, 62, 0.98), rgba(37, 35, 43, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-toolbar__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.browser-toolbar__button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
}

.browser-toolbar__button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.browser-toolbar__button.is-disabled {
    opacity: 0.4;
    cursor: default;
}

.browser-toolbar__address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    background: var(--window-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
}

.toolbar-meta {
    color: var(--text-mute);
    font-size: 0.84rem;
}

.window-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.browser-layout {
    display: block;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(233, 84, 32, 0.14), transparent 20%),
        linear-gradient(180deg, rgba(248, 246, 252, 0.07), rgba(255, 255, 255, 0.03));
}

.browser-page {
    display: none;
    gap: 16px;
    align-content: start;
}

.browser-page.is-active {
    display: grid;
    animation: browser-page-in 280ms ease;
}

.browser-page.is-refreshing {
    animation: browser-page-refresh 320ms ease;
}

@keyframes browser-page-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes browser-page-refresh {
    0% {
        opacity: 0.84;
        transform: scale(0.99);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.browser-hero,
.browser-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.browser-hero {
    padding: 22px;
}

.browser-hero h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.browser-hero p:last-of-type {
    margin: 14px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.browser-card {
    padding: 18px;
}

.browser-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.browser-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.browser-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
}

.browser-link:hover {
    border-color: rgba(233, 84, 32, 0.42);
    background: rgba(233, 84, 32, 0.12);
}

.about-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
}

.profile-card,
.content-card,
.compact-card,
.project-inspector__panel,
.cv-sheet,
.contact-overview,
.mail-form {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-card__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 240px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(233, 84, 32, 0.18), rgba(119, 33, 111, 0.24));
}

.profile-card__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.profile-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 245, 240, 0.9);
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(233, 84, 32, 0.58), rgba(119, 33, 111, 0.62));
}

.profile-card__photo.has-image .profile-card__fallback {
    opacity: 0;
    pointer-events: none;
}

.profile-card__body {
    min-width: 0;
    padding: 16px;
}

.profile-card__body h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.profile-card__body p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.profile-links {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.profile-links a,
.contact-overview a {
    color: #f7c9b3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-copy {
    display: grid;
    gap: 14px;
}

.content-card {
    padding: 16px;
}

.content-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.stat-chip {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(233, 84, 32, 0.08);
}

.stat-chip strong {
    display: block;
    font-size: 1.05rem;
}

.stat-chip span {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    line-height: 1.45;
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
}

.timeline-row span {
    color: #ffbfad;
    font-size: 0.84rem;
    font-family: "JetBrains Mono", monospace;
}

.timeline-row strong {
    display: block;
    margin-bottom: 4px;
}

.timeline-row p {
    margin: 0;
}

.project-browser {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 330px;
    height: 100%;
}

.project-sidebar,
.project-main,
.project-inspector {
    min-height: 0;
}

.project-sidebar {
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-filter-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.sidebar-filter {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.sidebar-filter.is-active {
    color: #fff7f3;
    background: rgba(233, 84, 32, 0.16);
    border-color: rgba(233, 84, 32, 0.4);
}

.compact-card {
    padding: 14px;
}

.plain-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
    line-height: 1.6;
}

.project-main {
    padding: 18px;
    overflow: auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.project-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 84, 32, 0.42);
}

.project-card.is-selected {
    border-color: rgba(233, 84, 32, 0.5);
    background: rgba(233, 84, 32, 0.1);
}

.project-card__thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(233, 84, 32, 0.18), rgba(119, 33, 111, 0.18));
}

.project-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.44);
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.meta-pill--accent {
    color: #ffd8c7;
    background: rgba(233, 84, 32, 0.16);
}

.project-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.project-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.project-tech-preview,
.inspector-tech,
.inspector-thumbs,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 0.78rem;
}

.project-inspector {
    padding: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: auto;
}

.project-inspector__empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: var(--text-mute);
    text-align: center;
    line-height: 1.7;
}

.project-inspector__panel {
    padding: 16px;
}

.inspector-image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.inspector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspector-image__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

.inspector-thumbs {
    margin-top: 10px;
}

.thumb-button {
    overflow: hidden;
    width: 72px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.thumb-button.is-active {
    border-color: rgba(233, 84, 32, 0.5);
}

.thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-inspector__panel h3 {
    margin: 14px 0 8px;
    font-size: 1.16rem;
}

.project-inspector__panel p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.inspector-block + .inspector-block {
    margin-top: 16px;
}

.inspector-block h4,
.cv-block h3 {
    margin: 0 0 10px;
    font-size: 0.96rem;
}

.inspector-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(233, 84, 32, 0.44);
    border-radius: 12px;
    color: #fff9f6;
    background: linear-gradient(180deg, rgba(233, 84, 32, 0.92), rgba(201, 72, 28, 0.92));
    font-weight: 700;
}

.action-button--ghost {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.terminal-shell {
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(233, 84, 32, 0.14), transparent 18%),
        #111217;
    font-family: "JetBrains Mono", monospace;
    color: #d7fbe8;
}

.terminal-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: #f8d8c5;
}

.terminal-prompt {
    color: #8ae7af;
}

.terminal-output {
    margin: 0 0 18px 0;
    color: #c8d0d8;
    line-height: 1.7;
}

.terminal-output--block {
    display: grid;
    gap: 6px;
}

.terminal-output--block p {
    margin: 0;
}

.terminal-output--success {
    color: #94e2af;
}

.terminal-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.terminal-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f6f5f8;
    font-size: 0.78rem;
}

.cv-layout,
.contact-layout {
    padding: 20px;
}

.cv-sheet {
    padding: 22px;
}

.cv-sheet__header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cv-sheet__header p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.cv-block + .cv-block {
    margin-top: 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
}

.contact-overview,
.mail-form {
    padding: 16px;
}

.contact-overview {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 10px;
}

.contact-overview a {
    display: block;
}

.contact-overview__mail {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
}

.contact-overview p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.mail-form {
    display: grid;
    gap: 12px;
}

.mail-field {
    display: grid;
    gap: 6px;
}

.mail-field span {
    color: #ffbfad;
    font-size: 0.82rem;
}

.mail-field input,
.mail-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.mail-field input::placeholder,
.mail-field textarea::placeholder {
    color: rgba(201, 192, 213, 0.55);
}

.mail-field input:focus,
.mail-field textarea:focus {
    outline: none;
    border-color: rgba(233, 84, 32, 0.4);
    box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.12);
}

.mail-status {
    min-height: 22px;
    margin: 0;
    color: #ffd6c6;
}

.trash-layout {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.trash-header p:last-child {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.trash-list {
    display: grid;
    gap: 12px;
    align-content: start;
}

.trash-item,
.trash-empty {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.trash-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.trash-item__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #2b3340;
    background: linear-gradient(180deg, rgba(232, 238, 246, 0.96), rgba(171, 181, 197, 0.96));
}

.trash-item__copy {
    min-width: 0;
}

.trash-item__copy strong,
.trash-item__copy span {
    display: block;
}

.trash-item__copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-item__copy span {
    margin-top: 6px;
    color: var(--text-soft);
}

.trash-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 24px;
    text-align: center;
}

.trash-empty i {
    font-size: 2.3rem;
    color: #ffb392;
}

.trash-empty h3,
.trash-empty p {
    margin: 0;
}

.trash-empty p {
    color: var(--text-soft);
    line-height: 1.6;
}

@media (max-width: 1360px) {
    .project-browser {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .project-inspector {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 1180px) {
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .browser-grid,
    .browser-links {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .desktop-note {
        width: min(360px, calc(100% - 130px));
    }
}

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    body:not(.is-desktop-ready) .dock {
        transform: translateY(18px);
    }

    body.is-mobile-app-open {
        overflow: hidden;
    }

    .top-panel {
        position: sticky;
        top: 0;
    }

    .top-panel__center {
        font-size: 0.86rem;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .desktop-shell {
        display: block;
        min-height: calc(100vh - var(--panel-height));
    }

    .dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        transform: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: auto;
        gap: 4px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(18, 16, 27, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .dock::-webkit-scrollbar {
        display: none;
    }

    .dock::after {
        display: none;
    }

    .dock-app::after {
        display: none;
    }

    .dock-app {
        width: 46px;
        height: 46px;
        flex: 0 0 auto;
    }

    .dock-app__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .dock-app__dot {
        left: 50%;
        bottom: -6px;
        width: 18px;
        height: 4px;
        transform: translateX(-50%) scaleX(0.4);
    }

    .dock-app.is-open .dock-app__dot {
        transform: translateX(-50%) scaleX(1);
    }

    .workspace {
        min-height: calc(100vh - var(--panel-height));
        padding: 0 0 calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .desktop-icons {
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
        align-content: start;
        padding: 18px 16px 28px;
        gap: 14px 8px;
    }

    .desktop-icon {
        width: 100%;
        max-width: 96px;
        min-height: 108px;
        padding: 8px 4px;
    }

    .desktop-note {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 0 16px 24px;
        padding: 16px 18px;
        width: auto;
        border-radius: 20px;
        background: rgba(15, 14, 22, 0.82);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.is-mobile-app-open .desktop-icons,
    body.is-mobile-app-open .desktop-note {
        display: none;
    }

    .window-layer {
        position: fixed;
        inset: var(--panel-height) 0 0;
        z-index: 55;
        pointer-events: none;
    }

    .app-window {
        position: fixed !important;
        top: calc(var(--panel-height) + 6px) !important;
        right: 0 !important;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        min-height: 0;
        border: none;
        border-radius: 24px 24px 0 0;
        background: #171920;
        box-shadow: 0 -20px 38px rgba(0, 0, 0, 0.34);
    }

    .app-window.is-maximized {
        inset: calc(var(--panel-height) + 6px) 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0 !important;
    }

    .window-titlebar {
        grid-template-columns: auto 1fr;
        position: sticky;
        top: 0;
        z-index: 4;
        min-height: 48px;
        padding: 0 16px;
    }

    .window-title {
        justify-self: start;
    }

    .window-toolbar {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 14px;
    }

    .window-content {
        background: #171920;
    }

    .browser-toolbar {
        grid-template-columns: auto auto;
        align-items: start;
        padding: 10px 14px;
    }

    .browser-toolbar__address {
        grid-column: 1 / -1;
        order: 3;
    }

    .browser-layout {
        gap: 14px;
        padding: 16px;
        background:
            radial-gradient(circle at top right, rgba(233, 84, 32, 0.16), transparent 22%),
            linear-gradient(180deg, rgba(24, 26, 34, 0.98), rgba(18, 19, 25, 0.98));
    }

    .browser-hero,
    .browser-card,
    .profile-card,
    .content-card,
    .compact-card,
    .project-card,
    .project-inspector__panel,
    .cv-sheet,
    .contact-overview,
    .mail-form,
    .trash-item,
    .trash-empty,
    .stat-chip {
        background: rgba(255, 255, 255, 0.06);
    }

    .project-browser {
        display: block;
        height: auto;
        min-height: max-content;
    }

    .project-sidebar {
        display: grid;
        align-content: start;
        justify-items: center;
        gap: 14px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px;
    }

    .project-sidebar .mini-label {
        margin-bottom: 0;
    }

    .project-sidebar > *,
    .project-main > *,
    .project-inspector > * {
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .sidebar-filter-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .sidebar-filter-list::-webkit-scrollbar {
        display: none;
    }

    .sidebar-filter {
        flex: 0 0 auto;
        width: auto;
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .project-sidebar .compact-card {
        display: none;
    }

    .project-main,
    .project-inspector {
        display: block;
        padding: 14px 16px 16px;
        min-height: auto;
        overflow: visible;
    }

    .project-main {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
    }

    .project-card {
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
        max-width: 420px;
        margin-inline: auto;
    }

    .project-card__thumb {
        aspect-ratio: 16 / 9;
        max-height: 180px;
    }

    .project-card h3 {
        font-size: 0.98rem;
    }

    .project-card p {
        font-size: 0.92rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-tech-preview {
        gap: 6px;
    }

    .project-inspector {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .project-inspector__panel {
        display: grid;
        gap: 12px;
        padding: 0;
        border: none;
        background: transparent;
        max-width: 420px;
        margin-inline: auto;
    }

    .inspector-image,
    .inspector-thumbs {
        display: none;
    }

    .project-inspector__panel h3 {
        margin-top: 0;
    }

    .inspector-block {
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .about-layout {
        gap: 14px;
        padding: 16px;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .profile-card__photo {
        min-height: 168px;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px 16px 0 0;
    }

    .profile-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0 14px 14px;
    }

    .profile-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
    }

    .dock-app--external {
        display: none;
    }

    .dock-app--external::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-panel {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 0 10px;
        font-size: 0.84rem;
    }

    .top-panel__left span:not(.ubuntu-mark) {
        display: none;
    }

    .panel-icons {
        display: none;
    }

    .locale-pill {
        display: none;
    }

    .desktop-icon__art {
        width: 52px;
        height: 52px;
    }

    .desktop-icon__label {
        font-size: 0.8rem;
    }

    .dock {
        left: 8px;
        right: 8px;
        gap: 3px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .dock-app {
        width: 42px;
        height: 42px;
    }

    .dock-app__icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 0.88rem;
    }

    .boot-screen__content {
        padding: 28px 18px 18px;
    }

    .boot-screen__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .boot-screen__logo {
        width: 74px;
        height: 74px;
        font-size: 2rem;
    }

    .boot-game {
        height: 160px;
    }

    .boot-game__runner {
        left: 20px;
    }

    .browser-toolbar__address {
        font-size: 0.84rem;
    }

    .sidebar-filter {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .project-main,
    .project-inspector {
        padding: 12px 14px 14px;
    }

    .project-card__thumb {
        max-height: 164px;
    }

    .stats-grid,
    .timeline-row {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card__photo {
        min-height: 148px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-links {
        grid-template-columns: 1fr;
    }

    .action-button {
        width: 100%;
    }

    .trash-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .trash-item__icon {
        width: 42px;
        height: 42px;
    }
}
