:root {
    color-scheme: dark;
    --accent: #6d5dfc;
    --accent-hover: #5848e8;
    --surface: rgba(255, 255, 255, 0.86);
    --dark: #111827;
    --muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background: #060914;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

/* ========================= */
/* BOOT SCREEN               */
/* ========================= */

#boot {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(99, 102, 241, 0.32),
            transparent 30%
        ),
        #060914;
}

#logo,
.login-logo {
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    color: #c4b5fd;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.04)
        );
    box-shadow: 0 24px 80px rgba(88, 72, 232, 0.34);
    font-size: 64px;
}

#boot h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

#boot p {
    margin-top: 7px;
    color: #94a3b8;
}

.loader {
    width: min(230px, 60vw);
    height: 6px;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 999px;
    background: #1e293b;
}

.loader::before {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #818cf8,
            #c084fc
        );
    animation: load 2.3s ease forwards;
    content: "";
}

@keyframes load {
    to {
        width: 100%;
    }
}

/* ========================= */
/* LOGIN                     */
/* ========================= */

#login {
    position: fixed;
    z-index: 9998;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(37, 99, 235, 0.38),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(124, 58, 237, 0.4),
            transparent 35%
        ),
        linear-gradient(145deg, #07101f, #111b3c);
}

.login-box {
    width: min(390px, 100%);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    color: white;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(24px);
}

.login-logo {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 19px;
    font-size: 42px;
}

.login-box h2 {
    text-align: center;
    font-size: 1.65rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    margin: 8px 0 26px;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.45;
}

.login-box label {
    display: block;
    margin: 14px 0 7px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    outline: none;
    color: white;
    background: rgba(255, 255, 255, 0.09);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.login-box input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.18);
}

.login-box button,
.browser-content button {
    width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    border: 0;
    border-radius: 11px;
    color: white;
    background: var(--accent);
    cursor: pointer;
    font-weight: 650;
    transition:
        transform 0.2s,
        background 0.2s;
}

.login-box button:hover,
.browser-content button:hover {
    background: var(--accent-hover);
}

.login-box button:active,
.browser-content button:active {
    transform: scale(0.98);
}

#error {
    min-height: 20px;
    margin-top: 13px;
    color: #fecaca;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================= */
/* DESKTOP                   */
/* ========================= */

#desktop {
    position: relative;
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding: 54px 22px 100px;
    color: white;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(255, 255, 255, 0.23),
            transparent 24%
        ),
        linear-gradient(135deg, #2563eb, #7c3aed);
    background-size: cover;
    transition: background 0.45s ease;
}

/* ========================= */
/* TOP MENU BAR              */
/* ========================= */

#menubar {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 34px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    background: rgba(15, 23, 42, 0.24);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    font-size: 0.84rem;
}

#menu-left,
#menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nova-mark {
    color: #ddd6fe;
    font-size: 1.1rem;
}

.top-menu {
    position: relative;
}

.menu-button {
    padding: 4px 7px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: transparent;
    cursor: pointer;
    font-size: 0.84rem;
}

.menu-button:hover,
.top-menu.open .menu-button {
    background: rgba(255, 255, 255, 0.14);
}

.menu-dropdown {
    position: absolute;
    z-index: 6000;
    top: calc(100% + 7px);
    left: 0;
    display: none;
    width: 218px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    color: var(--dark);
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(24px);
}

.top-menu.open .menu-dropdown {
    display: grid;
    animation: menu-in 0.14s ease;
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
}

.menu-dropdown button {
    display: grid;
    width: 100%;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: #1e293b;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.menu-dropdown button:hover,
.menu-dropdown button:focus-visible {
    outline: none;
    color: white;
    background: var(--accent);
}

.menu-dropdown kbd {
    color: #64748b;
    font-family: inherit;
    font-size: 0.74rem;
}

.menu-dropdown button:hover kbd,
.menu-dropdown button:focus-visible kbd {
    color: #e0e7ff;
}

.menu-separator {
    height: 1px;
    margin: 5px 7px;
    background: #dbe2ea;
}

/* ========================= */
/* DESKTOP ICONS             */
/* ========================= */

#desktop-icons {
    display: flex;
    width: 90px;
    flex-direction: column;
    gap: 12px;
}

.icon {
    display: flex;
    width: 90px;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: transparent;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    transition:
        background 0.2s,
        transform 0.2s;
    user-select: none;
}

.icon:hover,
.icon:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.emoji {
    margin-bottom: 5px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
    font-size: 48px;
}

.icon > span:last-child {
    font-size: 0.84rem;
}

/* ========================= */
/* WINDOWS                   */
/* ========================= */

.window {
    position: absolute;
    z-index: 10;
    top: 105px;
    left: 210px;
    display: none;
    width: min(500px, calc(100vw - 32px));
    min-height: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 18px;
    color: var(--dark);
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(24px);
    animation: pop 0.2s ease;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
}

.titlebar {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.18);
    background: rgba(248, 250, 252, 0.72);
    cursor: grab;
    font-size: 0.92rem;
    font-weight: 700;
    touch-action: none;
    user-select: none;
}

.titlebar:active {
    cursor: grabbing;
}

.window .titlebar .close-button {
    display: grid;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #7f1d1d;
    background: #fb7185;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition:
        filter 0.2s,
        transform 0.2s;
}

.window .titlebar .close-button:hover {
    background: #f43f5e;
    filter: brightness(1.04);
    transform: scale(1.08);
}

.window-content {
    min-height: 276px;
    padding: 20px;
}

/* ========================= */
/* FILE EXPLORER             */
/* ========================= */

.files-window {
    width: min(760px, calc(100vw - 32px));
    height: min(530px, calc(100vh - 80px));
}

.files-toolbar {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-bottom: 1px solid #dbe3ef;
    background: rgba(248, 250, 252, 0.94);
}

.files-toolbar button,
.file-editor button {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d4ddea;
    border-radius: 9px;
    color: #334155;
    background: white;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.files-toolbar button:hover:not(:disabled),
.file-editor button:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
}

.files-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.files-toolbar .danger-button:not(:disabled) {
    color: #be123c;
}

#files-back {
    font-size: 1rem;
}

#files-path {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    padding: 8px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    color: #475569;
    background: white;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-content {
    position: relative;
    height: calc(100% - 128px);
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(165, 180, 252, 0.18),
            transparent 24%
        ),
        rgba(248, 250, 252, 0.72);
}

.files-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(112px, 1fr));
    align-content: start;
    gap: 10px;
}

.file-entry {
    display: grid;
    min-height: 108px;
    place-items: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--dark);
    background: transparent;
    cursor: default;
    text-align: center;
    user-select: none;
}

.file-entry:hover {
    border-color: rgba(129, 140, 248, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.file-entry.selected {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    box-shadow:
        0 0 0 2px rgba(129, 140, 248, 0.12);
}

.file-entry-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.file-entry strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.file-entry small {
    color: var(--muted);
    font-size: 0.69rem;
}

.files-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: #64748b;
    text-align: center;
}

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

.files-empty span {
    font-size: 3.5rem;
}

.files-empty small {
    max-width: 260px;
}

.files-statusbar {
    display: flex;
    height: 32px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-top: 1px solid #dbe3ef;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.72rem;
}

.file-editor {
    position: absolute;
    z-index: 4;
    inset: 44px 0 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #f8fafc;
}

.file-editor[hidden] {
    display: none;
}

.file-editor-heading,
.file-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #dbe3ef;
    background: white;
}

.file-editor-heading div {
    display: grid;
    gap: 2px;
}

.file-editor-heading small {
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

#file-editor-close {
    width: 31px;
    height: 31px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
}

#file-editor-content {
    width: 100%;
    min-height: 0;
    resize: none;
    padding: 18px;
    border: 0;
    outline: 0;
    color: #1e293b;
    background: #f8fafc;
    font:
        0.92rem/1.65
        "Cascadia Code",
        "Consolas",
        monospace;
}

.file-editor-actions {
    border-top: 1px solid #dbe3ef;
    border-bottom: 0;
    color: #64748b;
    font-size: 0.75rem;
}

#file-editor-save {
    color: white;
    border-color: var(--accent);
    background: var(--accent);
}

/* ========================= */
/* BROWSER                   */
/* ========================= */

.browser-content {
    text-align: center;
}

.browser-logo {
    margin: 8px 0 5px;
    font-size: 3.5rem;
}

.browser-content h2,
.settings-content h2 {
    font-size: 1.35rem;
}

#browser-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin-top: 24px;
}

.browser-content input {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.8);
}

.browser-content input:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.12);
}

.browser-content button {
    width: auto;
    margin: 0;
}

.hint,
.settings-content p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ========================= */
/* SETTINGS                  */
/* ========================= */

.settings-content {
    display: grid;
    gap: 20px;
}

.settings-window {
    width: min(720px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 80px));
}

.settings-window .settings-content {
    min-height: 0;
    max-height: calc(100% - 44px);
    overflow-y: auto;
}

/* ========================= */
/* SYSTEM PROMPT             */
/* ========================= */

.prompt-window {
    width: min(390px, calc(100vw - 32px));
    min-height: 270px;
}

.prompt-content {
    display: grid;
    min-height: 226px;
    place-items: center;
    text-align: center;
}

.prompt-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(145deg, #818cf8, #7c3aed);
    box-shadow:
        0 14px 28px rgba(109, 93, 252, 0.25);
    font-size: 2.2rem;
}

.prompt-content p {
    max-width: 310px;
    color: var(--muted);
    line-height: 1.5;
    white-space: pre-line;
}

.prompt-content .primary-button {
    min-width: 92px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--accent);
    cursor: pointer;
    font-weight: 650;
}

.prompt-content .primary-button:hover {
    background: var(--accent-hover);
}

/* ========================= */
/* WALLPAPER GALLERY         */
/* ========================= */

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

.wallpaper-grid .wallpaper {
    position: relative;
    height: 104px;
    overflow: hidden;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 13px;
    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.wallpaper-grid .wallpaper:hover,
.wallpaper-grid .wallpaper.selected {
    border-color: white;
    outline: 2px solid var(--accent);
    transform: translateY(-2px);
}

.wallpaper-name {
    position: absolute;
    right: 6px;
    bottom: 6px;
    left: 6px;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    color: white;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* ========================= */
/* DOCK                      */
/* ========================= */

#dock {
    position: fixed;
    z-index: 4000;
    bottom: 18px;
    left: 50%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.dock-icon {
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 2rem;
    transition:
        background 0.2s,
        transform 0.2s;
}

.dock-icon:hover,
.dock-icon:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-10px) scale(1.1);
}

.dock-line {
    width: 1px;
    height: 38px;
    align-self: center;
    background: rgba(255, 255, 255, 0.35);
}

.start-button {
    color: white;
    background:
        linear-gradient(145deg, #818cf8, #6d5dfc);
}

/* ========================= */
/* START MENU                */
/* ========================= */

#start-menu {
    position: fixed;
    z-index: 4500;
    bottom: 92px;
    left: 50%;
    display: none;
    width: min(540px, calc(100vw - 24px));
    min-height: 500px;
    overflow: hidden;
    padding: 24px 24px 78px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    color: var(--dark);
    background:
        linear-gradient(
            rgba(248, 250, 252, 0.94),
            rgba(238, 242, 255, 0.94)
        );
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(30px);
    transform: translateX(-50%);
}

#start-menu.open {
    display: block;
    animation: start-in 0.2s ease;
}

@keyframes start-in {
    from {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(14px)
            scale(0.97);
    }
}

#start-search,
#store-search {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-bottom: 3px solid var(--accent);
    border-radius: 10px;
    outline: none;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.82);
}

#start-search:focus,
#store-search:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.13);
}

.start-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 6px 14px;
}

.start-section-heading h2 {
    font-size: 1rem;
}

.start-section-heading button {
    padding: 6px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 7px;
    color: #334155;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.start-section-heading button:hover {
    background: white;
}

.start-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.start-app {
    display: grid;
    min-height: 92px;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 10px 5px;
    border: 0;
    border-radius: 12px;
    color: #1e293b;
    background: transparent;
    cursor: pointer;
}

.start-app:hover,
.start-app:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.72);
}

.start-app span {
    font-size: 2rem;
}

.start-app small {
    font-size: 0.77rem;
}

#start-empty,
#store-empty {
    margin-top: 30px;
    color: var(--muted);
    text-align: center;
}

.start-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(226, 232, 240, 0.62);
}

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

.start-user > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: white;
}

.start-footer > button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #1e293b;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
}

.start-footer > button:hover {
    background: rgba(255, 255, 255, 0.75);
}

/* ========================= */
/* NOVA STORE                */
/* ========================= */

.store-window {
    width: min(690px, calc(100vw - 32px));
    min-height: 520px;
}

.store-content {
    max-height: min(620px, calc(100vh - 110px));
    overflow-y: auto;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(165, 180, 252, 0.28),
            transparent 28%
        ),
        rgba(248, 250, 252, 0.86);
}

.store-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.store-heading h2 {
    font-size: 1.55rem;
}

.eyebrow {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.store-bag {
    font-size: 3rem;
}

.store-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.store-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
}

.store-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    font-size: 2rem;
}

.calculator-icon {
    background:
        linear-gradient(145deg, #dbeafe, #bfdbfe);
}

.notes-icon {
    background:
        linear-gradient(145deg, #fef3c7, #fde68a);
}

.paint-icon {
    background:
        linear-gradient(145deg, #fce7f3, #e9d5ff);
}

.store-details h3 {
    font-size: 1rem;
}

.store-details p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.store-details span {
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 700;
}

.install-button {
    min-width: 76px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: var(--accent);
    cursor: pointer;
    font-weight: 700;
}

.install-button:hover {
    background: var(--accent-hover);
}

.install-button.installed {
    color: #166534;
    background: #dcfce7;
}

.install-button.coming-soon {
    color: #64748b;
    background: #e2e8f0;
    cursor: default;
}

/* ========================= */
/* CALCULATOR                */
/* ========================= */

.calculator-window {
    width: min(360px, calc(100vw - 32px));
}

.calculator-content {
    background: #eef2ff;
}

#calculator-display {
    width: 100%;
    height: 64px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    outline: none;
    color: #111827;
    background: white;
    text-align: right;
    font-size: 1.8rem;
    font-weight: 650;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.calculator-grid button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    color: #1e293b;
    background: white;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.calculator-grid button:hover {
    filter: brightness(0.97);
}

.calculator-grid .calculator-operator {
    color: #4c1d95;
    background: #ede9fe;
}

.calculator-grid .calculator-special {
    color: #1d4ed8;
    background: #dbeafe;
}

.calculator-grid .calculator-equals {
    color: white;
    background: var(--accent);
}

/* ========================= */
/* NOTES                     */
/* ========================= */

.notes-window {
    height: 430px;
}

.notes-toolbar {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    background: #f8fafc;
}

#notes-status {
    color: #16a34a;
    font-size: 0.78rem;
}

#notes-textarea {
    width: 100%;
    height: calc(100% - 88px);
    resize: none;
    padding: 20px;
    border: 0;
    outline: none;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.92);
    font:
        1rem/1.6
        "Segoe UI",
        Arial,
        sans-serif;
}

/* ========================= */
/* SOON APPS                 */
/* ========================= */

.store-section-title {
    margin: 22px 2px 0;
    color: #1e293b;
    font-size: 1rem;
}

.soon-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dbe2ea;
}

.soon-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.soon-heading h3 {
    font-size: 1.45rem;
}

.soon-heading > span {
    font-size: 2rem;
}

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

.soon-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

.soon-card > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #eef2ff;
    font-size: 1.4rem;
}

.soon-card div {
    min-width: 0;
}

.soon-card strong,
.soon-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soon-card strong {
    color: #1e293b;
    font-size: 0.86rem;
}

.soon-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
}

.soon-card b {
    padding: 4px 7px;
    border-radius: 999px;
    color: #6d28d9;
    background: #ede9fe;
    font-size: 0.65rem;
}

/* ========================= */
/* NOVA PAINT                */
/* ========================= */

.paint-window {
    width: min(760px, calc(100vw - 32px));
    height: min(600px, calc(100vh - 70px));
}

.paint-toolbar {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    background: #f8fafc;
}

.paint-toolbar label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
}

#paint-colour {
    width: 38px;
    height: 32px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

#paint-size {
    width: 110px;
    accent-color: var(--accent);
}

.paint-toolbar button {
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    color: #334155;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 700;
}

.paint-toolbar button:last-child {
    margin-left: auto;
    color: white;
    background: var(--accent);
}

.paint-toolbar button:hover {
    filter: brightness(0.96);
}

.paint-canvas-wrap {
    height: calc(100% - 102px);
    overflow: hidden;
    padding: 14px;
    background:
        linear-gradient(
            45deg,
            #e2e8f0 25%,
            transparent 25%
        ),
        linear-gradient(
            -45deg,
            #e2e8f0 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            transparent 75%,
            #e2e8f0 75%
        ),
        linear-gradient(
            -45deg,
            transparent 75%,
            #e2e8f0 75%
        ),
        #f8fafc;
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
    background-size: 16px 16px;
}

#paint-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: white;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
    cursor: crosshair;
    touch-action: none;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width: 650px) {
    .top-menu:nth-of-type(2),
    .top-menu:nth-of-type(3),
    .top-menu:nth-of-type(4) {
        display: none;
    }

    #menu-left,
    #menu-right {
        gap: 10px;
    }

    #desktop {
        padding-inline: 12px;
    }

    .window {
        top: 64px !important;
        left: 16px !important;
        min-height: 300px;
    }

    #dock {
        bottom: 10px;
        max-width: calc(100vw - 20px);
        gap: 6px;
        padding: 8px 10px;
    }

    .dock-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    #start-menu {
        bottom: 70px;
        min-height: 460px;
        padding: 18px 16px 72px;
    }

    .start-app-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .store-card {
        grid-template-columns: 52px 1fr;
    }

    .store-icon {
        width: 48px;
        height: 48px;
    }

    .install-button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

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

    .wallpaper-grid .wallpaper {
        height: 88px;
    }

    .files-window {
        height: min(560px, calc(100vh - 80px));
    }

    .files-toolbar {
        flex-wrap: wrap;
    }

    #files-path {
        order: -1;
        flex-basis: calc(100% - 48px);
    }

    .files-content {
        height: calc(100% - 170px);
    }

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

    .paint-toolbar {
        flex-wrap: wrap;
    }

    .paint-toolbar button:last-child {
        margin-left: 0;
    }
}

/* ========================= */
/* REDUCED MOTION            */
/* ========================= */

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