﻿/*
============================================================
PULSAR OS // BUILD 1.0
Made by N1K
============================================================

SOURCE MAP
------------------------------------------------------------
[C1] GLOBAL FOUNDATION
[C2] TOP BAR / SYSTEM MENU
[C3] DESKTOP / WALLPAPERS
[C4] WINDOW SYSTEM
[C5] CORE APPLICATIONS
[C6] BOOT INTERFACE
[C7] SERIAL MONITOR / DEVICE MANAGER
[C8] GUIDE
[C9] RESPONSIVE / UTILITIES

Search "[Cx]" to navigate directly to a module.
============================================================
*/

/* ============================================================
   [C1] GLOBAL FOUNDATION
============================================================ */
* {

    box-sizing: border-box;

}


html,

body {

    margin: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

}


body {

    background: #030305;

    color: #eeeef5;


    font-family:

        "Courier New",

        Courier,

        monospace;

}


/* ============================================================
   [C2] TOP BAR / SYSTEM MENU
============================================================ */

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

.network-indicator {
    width: 18px;
    height: 14px;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    opacity: 0.8;
}

.network-bar {
    width: 2px;
    background: currentColor;
    transition:
        opacity 0.2s ease,
        height 0.2s ease;
}

.network-bar:nth-child(1) {
    height: 4px;
}

.network-bar:nth-child(2) {
    height: 7px;
}

.network-bar:nth-child(3) {
    height: 10px;
}

.network-bar:nth-child(4) {
    height: 13px;
}

.network-indicator.offline .network-bar {
    opacity: 0.15;
}


/* ========================================
   PULSAR OS // TOP BAR
======================================== */

.top-bar {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: 42px;

    background: rgba(8, 8, 13, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #292936;

    font-size: 0.7rem;
    letter-spacing: 0.12em;
}


/* LEFT */

.top-left {
    position: absolute;
    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #eeeef5;

    font: inherit;
    letter-spacing: inherit;

    cursor: pointer;
}

.top-left:hover,
.top-left.active {
    color: #ffffff;
}

.top-logo {
    display: block;

    width: 19px;
    height: 19px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 5px rgba(180, 190, 255, 0.45));
}


/* CENTER */

.top-center {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: #696979;

    white-space: nowrap;
}


/* RIGHT */

.top-right {
    position: absolute;

    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 10px;

    color: #8e8e9c;

    white-space: nowrap;
}

#clock {
    color: #eeeef5;
}


/* ========================================

   SYSTEM MENU

======================================== */


.system-menu {

    width: 330px;


    position: fixed;

    top: 42px;

    left: 8px;


    z-index: 1200;


    display: none;


    background:

        rgba(5, 5, 9, 0.97);


    backdrop-filter:

        blur(18px);


    border:

        1px solid #383847;


    box-shadow:

        0 25px 70px rgba(0, 0, 0, 0.75);

}


.system-menu.open {

    display: block;


    animation:

        menuOpen 0.15s ease-out;

}


@keyframes menuOpen {


    from {

        opacity: 0;


        transform:

            translateY(-6px);

    }


    to {

        opacity: 1;


        transform:

            translateY(0);

    }

}


.menu-header {

    height: 44px;

    padding: 0 14px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    border-bottom:

        1px solid #30303c;


    color: #eeeef5;


    font-size: 1.02rem;

    letter-spacing: 0.12em;

}


.menu-brand {

    display: flex;

    align-items: center;

    gap: 9px;

}


.menu-logo {

    width: 17px;

    height: 17px;


    object-fit: contain;

}


.menu-status {

    color: #696979;

    font-size: 0.5rem;

}


.menu-section {

    padding: 14px 10px;


    border-bottom:

        1px solid #20202a;

}


.menu-section-title {

    margin:

        0 8px 10px;


    color: #4e4e5d;


    font-size: 0.5rem;

    letter-spacing: 0.22em;

}


.menu-item {

    width: 100%;

    min-height: 40px;


    padding: 0 10px;


    display: grid;


    grid-template-columns:

        34px 1fr auto;


    align-items: center;


    border:

        1px solid transparent;


    background:

        transparent;


    color: #8e8e9c;


    font-family: inherit;

    font-size: 1.02rem;

    letter-spacing: 0.1em;


    text-align: left;


    cursor: pointer;

}


.menu-item:hover {

    border-color: #343440;


    background:

        rgba(150, 150, 255, 0.05);


    color: #eeeef5;

}


.menu-item.disabled {

    opacity: 0.3;

    cursor: default;

}


.menu-item.disabled:hover {

    border-color: transparent;

    background: transparent;

    color: #8e8e9c;

}


.menu-icon {

    color: #eeeef5;

    font-size: 0.72rem;

}


.menu-tag {

    color: #4e4e5d;

    font-size: 0.48rem;

}


.menu-arrow {

    color: #656574;

}


.menu-footer {

    height: 34px;

    padding: 0 12px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    color: #454553;


    font-size: 0.48rem;

    letter-spacing: 0.12em;

}


/* ========================================

   SCREEN TRANSITION

======================================== */


.screen-fade {

    position: fixed;

    inset: 0;


    z-index: 1100;


    background: #000;


    opacity: 0;


    pointer-events: none;


    transition:

        opacity 0.22s ease;

}


.screen-fade.active {

    opacity: 1;

}


/* ============================================================
   [C3] DESKTOP / WALLPAPERS
============================================================ */

/* ========================================

   DESKTOP

======================================== */


.desktop {

    --wallpaper:

        url("images/Wallpapers/Pulsar-wllp.png");


    width: 100vw;


    height:

        calc(100vh - 42px);


    position: relative;


    overflow: hidden;


    background-image:

        linear-gradient(rgba(2, 2, 7, 0.30),

            rgba(2, 2, 7, 0.46)),

        var(--wallpaper);


    background-position:

        center;


    background-size:

        cover;


    background-repeat:

        no-repeat;

}


/* ========================================

   WALLPAPERS

======================================== */


.desktop.wallpaper-pulsar {

    --wallpaper:

        url("images/Wallpapers/Pulsar-wllp.png");

}


.desktop.wallpaper-galaxy {

    --wallpaper:

        url("Wallpapers/galaxy-wllp.png");

}


.desktop.wallpaper-saturn {

    --wallpaper:

        url("Wallpapers/saturn-wllp.png");

}


.desktop.wallpaper-void {

    --wallpaper:

        url("Wallpapers/void-wllp.png");

}


.desktop.wallpaper-grid {

    --wallpaper:

        radial-gradient(circle at 50% 45%,

            #11111b 0%,

            #08080d 38%,

            #030305 75%);

}


/* GRID OVERLAY */


.desktop::before {

    content: "";


    position: absolute;

    inset: 0;


    z-index: 0;


    background-image:

        linear-gradient(rgba(255, 255, 255, 0.018) 1px,

            transparent 1px),

        linear-gradient(90deg,

            rgba(255, 255, 255, 0.018) 1px,

            transparent 1px);


    background-size:

        40px 40px;


    pointer-events: none;

}


/* ========================================

   DESKTOP INFORMATION

======================================== */


.desktop-label {

    position: absolute;


    top: 18px;

    left: 22px;

    right: 22px;


    z-index: 1;


    display: flex;

    justify-content: space-between;


    color:

        rgba(170, 170, 190, 0.45);


    font-size: 1.02rem;

    letter-spacing: 0.15em;


    pointer-events: none;


    text-shadow:

        0 1px 5px #000;

}


/* ========================================

   DESKTOP APPS

======================================== */


.desktop-app {

    width: 100px;


    position: absolute;


    z-index: 2;


    display: flex;

    flex-direction: column;


    align-items: center;


    gap: 8px;


    padding: 10px;


    color: #a1a1b0;


    font-size: 0.58rem;

    letter-spacing: 0.12em;


    cursor: pointer;

    user-select: none;


    text-shadow:

        0 2px 6px #000;

}


#signalLogIcon {

    top: 55px;

    left: 25px;

}


.customization-icon {

    top: 155px;

    left: 25px;

}


.desktop-app:hover {

    color: #fff;

}


.desktop-app.selected {

    background:

        rgba(150, 150, 255, 0.08);


    outline:

        1px solid rgba(160, 160, 190, 0.4);

}


.app-icon {

    width: 58px;

    height: 58px;


    display: flex;

    flex-direction: column;


    align-items: center;

    justify-content: center;


    border:

        1px solid rgba(180, 180, 205, 0.5);


    background:

        rgba(4, 4, 10, 0.72);


    backdrop-filter:

        blur(8px);


    color: #eeeef5;


    font-size: 0.9rem;


    box-shadow:

        0 10px 30px rgba(0, 0, 0, 0.35);

}


.settings-icon {

    font-size: 1.35rem;

}


.desktop-app.selected .app-icon {

    border-color: #aaaabb;


    box-shadow:

        0 0 30px rgba(160, 160, 255, 0.18);

}


.app-icon-lines {

    margin-top: 3px;


    color: #696979;


    font-size: 0.55rem;

    letter-spacing: 0.25em;

}


.app-name {

    text-align: center;

}


/* ============================================================
   [C4] WINDOW SYSTEM
============================================================ */

/* ========================================

   WINDOWS

======================================== */


.window {

    width:

        min(720px, 88vw);


    height:

        min(650px, 82vh);


    position: absolute;


    top: 10%;


    left:

        calc(50% - 360px);


    z-index: 10;


    display: flex;

    flex-direction: column;


    background:

        rgba(5, 5, 9, 0.94);


    backdrop-filter:

        blur(18px);


    border:

        1px solid #454554;


    box-shadow:

        0 30px 90px rgba(0, 0, 0, 0.72);

}


.window.window-exit {

    animation:

        windowExit 0.22s ease forwards;

}


@keyframes windowExit {


    to {

        opacity: 0;


        transform:

            scale(0.985);

    }

}


/* ========================================

   WINDOW BAR

======================================== */


.window-bar {

    height: 38px;


    flex-shrink: 0;


    padding: 0 12px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    border-bottom:

        1px solid #30303c;


    color: #8e8e9c;


    font-size: 1.05rem;

    letter-spacing: 0.12em;


    cursor: grab;

    user-select: none;


    touch-action: none;

}


.window-bar:active {

    cursor: grabbing;

}


.window-controls {

    display: flex;

    align-items: center;


    gap: 15px;


    color: #656574;


    font-size: 0.8rem;

}


.close-button {

    padding: 0;


    border: none;


    background:

        transparent;


    color: #656574;


    font-family: inherit;

    font-size: 0.8rem;


    line-height: 1;


    cursor: pointer;

}


.close-button:hover {

    color: #fff;

}


/* ========================================

   WELCOME

======================================== */


.window-content {

    flex: 1;


    padding:

        26px 40px;


    text-align: center;


    overflow: auto;

}


.welcome-content {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.system-code {

    margin:

        0 0 18px;


    color: #737382;


    font-size: 1.02rem;

    letter-spacing: 0.28em;

}


.welcome-logo {

    width: 120px;

    height: 120px;


    margin:

        0 0 14px;


    object-fit:

        contain;


    filter:

        drop-shadow(0 0 15px rgba(180, 190, 255, 0.38));

}


.status {

    margin:

        0 0 10px;


    color: #9999aa;


    font-size: 1.02rem;

    letter-spacing: 0.3em;

}


h1 {

    margin: 0;


    font-family:

        Arial,

        Helvetica,

        sans-serif;


    font-size:

        clamp(3rem, 7vw, 5rem);


    line-height: 0.95;

    letter-spacing: 0.16em;

}


.os-label {

    margin:

        14px 0 20px;


    color: #7e7e8c;


    font-size: 0.58rem;

    letter-spacing: 0.5em;

}


.separator {

    width: 65%;


    margin:

        0 auto 18px;


    display: flex;

    align-items: center;


    gap: 10px;


    color: #4e4e5d;

}


.line {

    height: 1px;


    flex: 1;


    background: #343440;

}


.description {

    max-width: 520px;


    margin: 0 auto;


    color: #aaaab5;


    font-size: 0.72rem;

    line-height: 1.7;

}


.quote {

    margin:

        16px 0 22px;


    color: #696979;


    font-size: 1.02rem;

    letter-spacing: 0.22em;

}


.enter-button {

    display: inline-block;


    padding:

        10px 18px;


    border:

        1px solid #656574;


    background:

        transparent;


    color: #eeeef5;


    font-family: inherit;


    font-size: 1.05rem;

    letter-spacing: 0.15em;


    cursor: pointer;

}


.enter-button:hover {

    background: #eeeef5;

    color: #050507;

}


/* ========================================

   WINDOW FOOTER

======================================== */


.window-footer {

    height: 36px;


    flex-shrink: 0;


    padding:

        0 14px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    border-top:

        1px solid #292936;


    color: #555563;


    font-size: 0.56rem;

    letter-spacing: 0.12em;

}


/* ========================================

   SIGNAL LOG

======================================== */


.signal-window {

    width:

        min(760px, 86vw);


    height:

        min(520px, 72vh);


    top: 16%;

    left: 28%;


    display: none;

}


.signal-content {

    min-height: 0;


    flex: 1;


    display: flex;


    overflow: hidden;

}


.signal-index {

    width: 210px;


    flex-shrink: 0;


    padding:

        20px 14px;


    overflow-y: auto;


    border-right:

        1px solid #292936;


    background:

        rgba(8, 8, 13, 0.55);

}


.signal-index-title {

    margin-bottom: 18px;


    color: #555563;


    font-size: 0.58rem;

    letter-spacing: 0.2em;

}


.signal-entry {

    margin-bottom: 8px;


    padding: 11px;


    border:

        1px solid transparent;


    color: #777786;


    cursor: pointer;


    transition:

        0.15s ease;

}


.signal-entry:hover {

    border-color: #343440;

    color: #eeeef5;

}


.signal-entry.active {

    border-color: #555566;


    background:

        rgba(150, 150, 255, 0.05);


    color: #eeeef5;

}


.signal-entry-title {

    margin-bottom: 5px;


    font-size: 1.05rem;

    letter-spacing: 0.1em;

}


.signal-entry-code {

    color: #555563;


    font-size: 0.5rem;

    letter-spacing: 0.12em;

}


.signal-reader {

    min-width: 0;


    flex: 1;


    padding: 28px;


    overflow-y: auto;

}


.signal-reader-status {

    margin-bottom: 30px;


    color: #555563;


    font-size: 0.55rem;

    letter-spacing: 0.2em;

}


#signalReader h2 {

    margin:

        0 0 22px;


    color: #eeeef5;


    font-family:

        "Courier New",

        Courier,

        monospace;


    font-size: 1.1rem;

    letter-spacing: 0.15em;

}


#signalReader p {

    color: #aaaab5;


    font-size: 0.7rem;

    line-height: 1.8;

}


#signalReader .signal-muted {

    margin-top: 25px;


    color: #555563;


    font-size: 0.58rem;

    letter-spacing: 0.1em;

}


.signal-data {

    margin-top: 24px;


    padding: 14px;


    border:

        1px solid #292936;


    color: #777786;


    font-size: 1.0rem;

    line-height: 1.8;

}


/* ========================================

   CUSTOMIZATION

======================================== */


.customization-window {

    width:

        min(860px, 88vw);


    height:

        min(560px, 76vh);


    top: 13%;

    left: 24%;


    display: none;

}


.customization-content {

    min-height: 0;


    flex: 1;


    display: flex;


    overflow: hidden;

}


.customization-sidebar {

    width: 175px;


    flex-shrink: 0;


    padding:

        18px 10px;


    border-right:

        1px solid #292936;


    background:

        rgba(8, 8, 13, 1.02);

}


.custom-nav {

    width: 100%;


    padding:

        12px 10px;


    border:

        1px solid transparent;


    background:

        transparent;


    color: #686879;


    font-family: inherit;


    font-size: 0.55rem;

    letter-spacing: 0.18em;


    text-align: left;


    cursor: pointer;

}


.custom-nav.active {

    border-color: #39394a;


    background:

        rgba(150, 150, 255, 0.08);


    color: #eeeef5;

}


.custom-nav.disabled {

    opacity: 0.3;

    cursor: default;

}


.customization-main {

    min-width: 0;


    flex: 1;


    padding: 26px;


    overflow-y: auto;

}


.customization-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;


    gap: 20px;

}


.customization-heading h2 {

    margin:

        6px 0 0;


    font-size: 1rem;

    letter-spacing: 0.18em;

}


.customization-code {

    color: #555563;


    font-size: 0.5rem;

    letter-spacing: 0.2em;

}


#wallpaperStatus {

    color: #686879;


    font-size: 0.5rem;

    letter-spacing: 0.12em;

}


.customization-description {

    margin:

        14px 0 22px;


    color: #626271;


    font-size: 0.55rem;

    letter-spacing: 0.12em;


    line-height: 1.7;

}


.wallpaper-grid {

    display: grid;


    grid-template-columns:

        repeat(2,

            minmax(0, 1fr));


    gap: 14px;

}


.wallpaper-card {

    min-width: 0;


    padding: 0;


    overflow: hidden;


    border:

        1px solid #343440;


    background:

        #050509;


    color: #aaaab5;


    font-family: inherit;


    text-align: left;


    cursor: pointer;


    transition:

        transform 0.16s ease,

        border-color 0.16s ease,

        box-shadow 0.16s ease;

}


.wallpaper-card:hover {

    transform:

        translateY(-2px);


    border-color: #69697d;


    box-shadow:

        0 10px 30px rgba(0, 0, 0, 0.4);

}


.wallpaper-card.active {

    border-color: #aaaac0;


    box-shadow:

        0 0 0 1px rgba(200, 200, 255, 0.12),

        0 0 30px rgba(150, 150, 255, 0.1);

}


.wallpaper-card img,

.grid-preview {

    width: 100%;

    height: 120px;


    display: block;


    object-fit: cover;

}


.grid-preview {

    background:

        linear-gradient(rgba(170, 170, 255, 0.05) 1px,

            transparent 1px),

        linear-gradient(90deg,

            rgba(170, 170, 255, 0.05) 1px,

            transparent 1px),

        radial-gradient(circle at center,

            #11111b,

            #030305 70%);


    background-size:

        25px 25px,

        25px 25px,

        auto;

}


.wallpaper-card-info {

    padding:

        10px 12px 11px;


    display: flex;

    flex-direction: column;


    gap: 5px;

}


.wallpaper-card-info strong {

    color: #b0b0bd;


    font-size: 0.58rem;

    letter-spacing: 0.14em;

}


.wallpaper-card-info small {

    color: #555563;


    font-size: 0.48rem;

    letter-spacing: 0.13em;

}


/* ============================================================
   [C9] RESPONSIVE / UTILITIES
============================================================ */

/* ========================================

   MOBILE

======================================== */


@media (max-width: 700px) {


    .top-center {

        display: none;

    }


    .top-right>span:first-child {

        display: none;

    }


    .system-menu {

        width:

            calc(100vw - 16px);

    }


    .window,

    .signal-window,

    .customization-window {

        width: 92vw;

        height: 82vh;


        left: 4vw;

    }


    .window-content {

        padding:

            20px 18px;

    }


    .window-footer {

        gap: 5px;


        font-size: 0.46rem;

    }


    .desktop-label {

        display: none;

    }


    .signal-index {

        width: 125px;


        padding:

            14px 8px;

    }


    .signal-reader {

        padding: 18px;

    }


    .customization-sidebar {

        width: 120px;

    }


    .customization-main {

        padding: 16px;

    }


    .customization-heading {

        display: block;

    }


    #wallpaperStatus {

        display: block;


        margin-top: 10px;

    }


    .wallpaper-grid {

        grid-template-columns:

            1fr;

    }


    .wallpaper-card img,

    .grid-preview {

        height: 100px;

    }

}


/**/

/* ========================================
   PULSAR BOOT SEQUENCE // BUILD 1.0
======================================== */

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    color: #d9d9e2;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-acquisition {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.boot-acquisition.hide {
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
}

.boot-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(190, 195, 255, 0.34));
    animation: bootLogoPulse 1.6s ease-in-out infinite;
}

.boot-brand {
    margin-top: 17px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.48em;
    text-indent: 0.48em;
}

.boot-acquiring {
    margin-top: 34px;
    color: #5f5f6d;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
}

@keyframes bootLogoPulse {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.98);
    }

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

.boot-console {
    width: min(660px, calc(100vw - 40px));
    border: 1px solid #353541;
    background: rgba(4, 4, 8, 0.96);
    box-shadow: 0 0 80px rgba(90, 90, 150, 0.08);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.boot-console.show {
    opacity: 1;
    transform: translateY(0);
}

.boot-console-bar {
    height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a35;
    color: #8c8c9b;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
}

.boot-console-body {
    padding: 26px 30px 24px;
}

.boot-meta {
    color: #70707f;
    font-size: 0.57rem;
    line-height: 1.75;
    letter-spacing: 0.17em;
}

.boot-init {
    margin: 22px 0 17px;
    color: #c4c4ce;
    font-size: 1.01rem;
    letter-spacing: 0.14em;
}

.boot-checks {
    display: grid;
    gap: 8px;
}

.boot-check {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 9px;
    min-height: 14px;
    color: #777786;
    font-size: 0.57rem;
    letter-spacing: 0.11em;
}

.boot-check i {
    min-width: 20px;
    height: 1px;
    border-bottom: 1px dotted #343440;
}

.boot-check strong {
    min-width: 88px;
    color: #555563;
    font: inherit;
    text-align: right;
}

.boot-check.done strong {
    color: #b0b0bd;
}

.boot-check.warn strong {
    color: #777786;
}

.boot-message {
    min-height: 14px;
    margin-top: 22px;
    color: #6c6c7c;
    font-size: 0.55rem;
    letter-spacing: 0.13em;
}

.boot-orbit {
    position: absolute;
    left: 50%;
    bottom: 116px;
    width: 88px;
    height: 58px;
    transform: translateX(-50%);
    color: #555563;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boot-console.show~.boot-orbit {
    opacity: 1;
}

.orbit-dot,
.orbit-star {
    position: absolute;
    line-height: 1;
}

.orbit-star {
    left: 50%;
    top: 50%;
    color: #d7d7e2;
    transform: translate(-50%, -50%);
    animation: bootStarPulse 1.2s ease-in-out infinite;
}

.orbit-top {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.orbit-bottom {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.orbit-left {
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.orbit-right {
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes bootStarPulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 14px rgba(210, 210, 255, 0.55);
    }
}

.boot-progress {
    position: absolute;
    left: 50%;
    bottom: 45px;
    width: min(330px, calc(100vw - 60px));
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boot-console.show~.boot-progress {
    opacity: 1;
}

.boot-percent {
    margin-bottom: 10px;
    color: #bdbdc8;
    font-size: 1.06rem;
    letter-spacing: 0.16em;
}

.boot-progress-track {
    width: 100%;
    height: 1px;
    display: block;
    overflow: hidden;
    background: #24242d;
}

.boot-progress-track span {
    width: 0;
    height: 100%;
    display: block;
    background: #bcbcca;
    transition: width 0.28s ease;
}

.boot-progress-label {
    margin-top: 10px;
    color: #4f4f5c;
    font-size: 0.48rem;
    letter-spacing: 0.22em;
}

.boot-star-flash {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-star-flash.active {
    visibility: visible;
    animation: pulsarFlash 0.48s ease forwards;
}

.boot-star-flash img {
    width: 105px;
    height: 105px;
    object-fit: contain;
    filter: brightness(2.2) drop-shadow(0 0 34px rgba(225, 225, 255, 0.75));
}

@keyframes pulsarFlash {
    0% {
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    58% {
        opacity: 0.92;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

body.pulsar-booting .top-bar,
body.pulsar-booting .desktop {
    visibility: hidden;
}

@media (max-width: 700px) {
    .boot-console-body {
        padding: 21px 18px;
    }

    .boot-console-bar {
        font-size: 0.46rem;
    }

    .boot-check {
        font-size: 0.49rem;
    }

    .boot-check strong {
        min-width: 72px;
    }
}

/* ========================================
   PULSAR WINDOW MANAGER // BUILD 1.0
   ======================================== */

.window-maximized {
    border-radius: 0 !important;
    transition:
        width 0.18s ease,
        height 0.18s ease,
        left 0.18s ease,
        top 0.18s ease;
}

.window-minimized {
    pointer-events: none;
}

.window-controls {
    display: flex;
    align-items: center;
}

.window-control {
    cursor: pointer;
    user-select: none;
}

/* ========================================
   PULSAR // WALLPAPER ENGINE FIX
======================================== */

#desktop {
    background-image:
        var(--wallpaper-image,
            url("images/Wallpapers/Pulsar-wllp.png")) !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

#desktop.wallpaper-pulsar {
    --wallpaper-image: url("images/Wallpapers/Pulsar-wllp.png");
}

#desktop.wallpaper-galaxy {
    --wallpaper-image: url("images/Wallpapers/galaxy-wllp.png");
}

#desktop.wallpaper-saturn {
    --wallpaper-image: url("images/Wallpapers/saturn-wllp.png");
}

#desktop.wallpaper-void {
    --wallpaper-image: url("images/Wallpapers/void-wllp.png");
}

/* ========================================
   PULSAR OS // BOOT 1.0
   LINUX STYLE INITIALIZATION
======================================== */
.pulsar-boot {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(30, 30, 45, .16), transparent 32%), #020204;
    color: #b8b8c5;
    font-family: "Courier New", monospace;
    opacity: 1;
    visibility: visible;
    transition: opacity .85s ease, visibility .85s ease
}

.pulsar-boot.boot-finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.pulsar-boot-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    transition: opacity .45s ease, transform .45s ease
}

.pulsar-boot-brand.boot-brand-leaving {
    opacity: 0;
    transform: translate(-50%, -54%)
}

.pulsar-boot-main-logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    opacity: .92;
    filter: drop-shadow(0 0 14px rgba(190, 190, 255, .12));
    animation: pulsarBootMainPulse 1.4s ease-in-out infinite
}

.pulsar-boot-name {
    margin-top: 20px;
    color: #ededf4;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .55em;
    text-indent: .55em
}

.pulsar-boot-status {
    margin-top: 12px;
    color: #525261;
    font-size: .48rem;
    letter-spacing: .28em;
    text-indent: .28em
}

@keyframes pulsarBootMainPulse {

    0%,
    100% {
        opacity: .48;
        filter: drop-shadow(0 0 4px rgba(220, 220, 255, .06));
        transform: scale(.985)
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(220, 220, 255, .22));
        transform: scale(1)
    }
}

.pulsar-boot-terminal {
    position: absolute;
    left: 34px;
    top: 30px;
    width: min(850px, calc(100vw - 68px));
    height: calc(100vh - 145px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none
}

.pulsar-boot-terminal.active {
    opacity: 1;
    transform: translateY(0)
}

.pulsar-boot-lines {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%
}

.pulsar-boot-line {
    display: flex;
    align-items: baseline;
    min-height: 18px;
    color: #767684;
    font-size: .58rem;
    line-height: 1.45;
    letter-spacing: .055em;
    opacity: 0;
    transform: translateX(-4px);
    animation: pulsarBootLineIn .12s ease forwards
}

@keyframes pulsarBootLineIn {
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.pulsar-boot-prefix {
    display: inline-block;
    min-width: 62px;
    margin-right: 9px;
    color: #9292a0
}

.pulsar-boot-prefix.ok {
    color: #c8c8d3
}

.pulsar-boot-prefix.info {
    color: #777786
}

.pulsar-boot-prefix.warn {
    color: #92929e
}

.pulsar-boot-line-text {
    color: #686876
}

.pulsar-boot-line-important .pulsar-boot-line-text {
    color: #c2c2ce
}

.pulsar-boot-corner {
    position: absolute;
    left: 32px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 13px;
    opacity: 0;
    transition: opacity .35s ease
}

.pulsar-boot-corner.active {
    opacity: 1
}

.pulsar-boot-corner-logo {
    width: 37px;
    height: 37px;
    object-fit: contain;
    animation: pulsarCornerPulse .95s ease-in-out infinite;
    filter: drop-shadow(0 0 7px rgba(220, 220, 255, .15))
}

@keyframes pulsarCornerPulse {

    0%,
    100% {
        opacity: .3;
        filter: drop-shadow(0 0 2px rgba(220, 220, 255, .04))
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(220, 220, 255, .32))
    }
}

.pulsar-boot-corner-info {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.pulsar-boot-corner-info strong {
    color: #aaaab7;
    font-size: .5rem;
    font-weight: 400;
    letter-spacing: .22em
}

.pulsar-boot-corner-info span {
    color: #444451;
    font-size: .43rem;
    letter-spacing: .18em
}

.pulsar-boot-build {
    position: absolute;
    right: 31px;
    bottom: 31px;
    color: #353540;
    font-size: .43rem;
    letter-spacing: .18em
}

.pulsar-boot.blackout .pulsar-boot-terminal,
.pulsar-boot.blackout .pulsar-boot-corner,
.pulsar-boot.blackout .pulsar-boot-build {
    opacity: 0
}

@media(max-width:700px) {
    .pulsar-boot-terminal {
        left: 18px;
        top: 20px;
        width: calc(100vw - 36px);
        height: calc(100vh - 125px)
    }

    .pulsar-boot-line {
        min-height: 16px;
        font-size: .48rem
    }

    .pulsar-boot-prefix {
        min-width: 54px;
        margin-right: 5px
    }

    .pulsar-boot-corner {
        left: 18px;
        bottom: 18px
    }

    .pulsar-boot-build {
        right: 18px;
        bottom: 20px;
        font-size: .37rem
    }
}

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

.notes-window {
    width: min(720px, 85vw);
    height: min(520px, 72vh);
    left: 120px;
    top: 80px;
    flex-direction: column;
}

.notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 11px;
}

#clearNotes {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

#clearNotes:hover {
    background: rgba(255, 255, 255, 0.08);
}

#notesEditor {
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

#notesEditor::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.notes-footer {
    padding: 7px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 10px;
    opacity: 1.0;
}

/* ========================================
   PULSAR CALCULATOR
======================================== */
.calculator-window {
    width: min(420px, 90vw);
    height: min(560px, 78vh);
    left: 180px;
    top: 90px;
    flex-direction: column;
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 10px;
    opacity: 0.7;
}

.calculator-display {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 8px;
    padding: 16px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    overflow: hidden;
}

.calculator-expression {
    min-height: 18px;
    width: 100%;
    text-align: right;
    font-size: 12px;
    opacity: 0.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-result {
    width: 100%;
    text-align: right;
    font-size: 34px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.12);
    min-height: 0;
}

.calculator-button {
    border: 0;
    background: rgba(0, 0, 0, 0.92);
    color: inherit;
    font-family: monospace;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.calculator-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.calculator-button:active {
    background: rgba(255, 255, 255, 0.16);
}

.calculator-action,
.calculator-operator {
    font-weight: bold;
}

.calculator-equals {
    grid-row: span 2;
    font-weight: bold;
}

.calculator-zero {
    grid-column: span 2;
}

.calculator-footer {
    padding: 7px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 10px;
    opacity: 1.0;
}

/* ========================================
   PULSAR TERMINAL
======================================== */
.terminal-window {
    width: min(760px, 88vw);
    height: min(540px, 74vh);
    left: 150px;
    top: 90px;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 10px;
    opacity: 0.7;
}

.terminal-output {
    flex: 1;
    min-height: 0;
    padding: 14px 16px;
    overflow-y: auto;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.22);
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-line {
    margin-bottom: 4px;
}

.terminal-muted {
    opacity: 0.45;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 13px;
}

.terminal-prompt {
    flex-shrink: 0;
    opacity: 0.75;
}

.terminal-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    caret-color: currentColor;
}

.terminal-footer {
    padding: 7px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 10px;
    opacity: 1.0;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   PULSAR WEB
======================================== */

.web-window {
    width: min(980px, calc(100vw - 40px));
    height: min(680px, calc(100vh - 100px));
    left: max(20px, calc(50% - 490px));
    top: 50px;
    flex-direction: column;
}

.web-window [hidden] {
    display: none !important;
}

/* TOOLBAR */

.web-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.24);
}

.web-nav-button,
.web-go-button {
    height: 32px;
    min-width: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    font-family: monospace;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease;
}

.web-nav-button:hover,
.web-go-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.web-nav-button:active,
.web-go-button:active {
    background: rgba(255, 255, 255, 0.14);
}

.web-nav-button:disabled {
    opacity: 0.25;
    cursor: default;
}

.web-address-wrapper {
    flex: 1;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.42);
}

.web-address-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.38);
}

.web-address-prefix {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 10px;
    opacity: 0.4;
}

.web-address {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-family: monospace;
    font-size: 12px;
    caret-color: currentColor;
}

.web-address::placeholder {
    color: inherit;
    opacity: 0.25;
}

.web-go-button {
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* STATUS */

.web-status-bar {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0.58;
}

/* CONTENT */

.web-content {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.web-view {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 255, 255, 0.035),
            transparent 38%
        ),
        rgba(0, 0, 0, 0.42);
}

/* HOME */

.web-home-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: monospace;
}

.web-home-mark {
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1;
    opacity: 0.8;
}

.web-home-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: bold;
    letter-spacing: 0.18em;
}

.web-home-subtitle {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    opacity: 0.42;
}

.web-home-line {
    width: min(420px, 70%);
    height: 1px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.15);
}

.web-home-text {
    font-size: 10px;
    letter-spacing: 0.12em;
    opacity: 0.52;
}

/* WEB FRAME */

.web-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #ffffff;
}

/* HISTORY */

.web-history-panel {
    width: 250px;
    max-width: 40%;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.58);
    font-family: monospace;
}

.web-history-header {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 9px;
    letter-spacing: 0.14em;
    opacity: 0.58;
}

.web-history-list {
    height: calc(100% - 38px);
    overflow-y: auto;
}

.web-history-empty {
    padding: 18px 12px;
    font-size: 9px;
    line-height: 1.6;
    opacity: 0.3;
}

.web-history-item {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: inherit;
    font-family: monospace;
    text-align: left;
    cursor: pointer;
}

.web-history-item:hover {
    background: rgba(255, 255, 255, 0.055);
}

.web-history-item-title {
    margin-bottom: 5px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-history-item-url {
    font-size: 8px;
    opacity: 0.38;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* EMBED FALLBACK */

.web-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    font-family: monospace;
}

.web-fallback-code {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 0.18em;
    opacity: 0.42;
}

.web-fallback-title {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.web-fallback-text {
    margin-top: 12px;
    font-size: 10px;
    opacity: 0.46;
}

.web-fallback-url {
    max-width: 70%;
    margin: 20px 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 10px;
    opacity: 1.02;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-external-button {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: inherit;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.web-external-button:hover {
    background: rgba(255, 255, 255, 0.09);
}

/* FOOTER */

.web-footer {
    min-height: 30px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

/* SCROLLBARS */

.web-history-list::-webkit-scrollbar {
    width: 7px;
}

.web-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.web-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
}

/* SMALL SCREENS */

@media (max-width: 700px) {
    .web-window {
        left: 12px;
        top: 45px;
        width: calc(100vw - 24px);
        height: calc(100vh - 70px);
    }

    .web-address-prefix {
        display: none;
    }

    .web-history-panel {
        width: 190px;
        max-width: 55%;
    }

    .web-status-bar,
    .web-footer {
        font-size: 8px;
    }
}

/* ========================================
   PULSAR SERIAL MONITOR
======================================== */

.serial-window {
    width: min(1160px, calc(100vw - 40px));
    height: min(760px, calc(100vh - 90px));
    left: max(20px, calc(50% - 580px));
    top: 44px;
    flex-direction: column;
}

/* CONNECTION BAR */

.serial-connection-bar {
    min-height: 58px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        190px
        160px
        auto;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.15);
    background:
        rgba(0, 0, 0, 0.24);
}

.serial-port-display,
.serial-baud-control {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border:
        1px solid rgba(255, 255, 255, 0.14);
    background:
        rgba(0, 0, 0, 0.34);
    font-family: monospace;
    font-size: 11px;
}

.serial-label,
.serial-baud-control > span {
    opacity: 0.45;
    flex-shrink: 0;
}

.serial-baud-control select {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.serial-baud-control select option {
    background: #08080c;
    color: #eeeef5;
}

/* STATE */

.serial-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.serial-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.serial-state[data-state="connected"]
.serial-state-dot {
    background: #5fe08b;
    box-shadow:
        0 0 10px rgba(95, 224, 139, 0.55);
}

.serial-state[data-state="connecting"]
.serial-state-dot,
.serial-state[data-state="requesting"]
.serial-state-dot {
    background: #d9c46a;
    box-shadow:
        0 0 10px rgba(217, 196, 106, 0.45);
}

.serial-state[data-state="error"]
.serial-state-dot {
    background: #d86a6a;
    box-shadow:
        0 0 10px rgba(216, 106, 106, 0.45);
}

.serial-connection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.serial-button {
    height: 34px;
    padding: 0 13px;
    border:
        1px solid rgba(255, 255, 255, 0.18);
    background:
        rgba(255, 255, 255, 0.025);
    color: inherit;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.serial-button:hover:not(:disabled) {
    background:
        rgba(255, 255, 255, 0.08);
    border-color:
        rgba(255, 255, 255, 0.34);
}

.serial-button:disabled {
    opacity: 0.25;
    cursor: default;
}

.serial-danger:not(:disabled) {
    border-color:
        rgba(218, 99, 72, 1.05);
}

/* DEVICE INFORMATION */

.serial-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-shrink: 0;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.15);
}

.serial-device-info,
.serial-settings {
    min-width: 0;
    padding: 12px 15px;
}

.serial-device-info {
    border-right:
        1px solid rgba(255, 255, 255, 0.12);
}

.serial-section-title {
    margin-bottom: 11px;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.45;
}

.serial-info-row {
    display: grid;
    grid-template-columns:
        130px 18px minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 7px;
    font-family: monospace;
    font-size: 10px;
}

.serial-info-row > span {
    opacity: 0.5;
}

.serial-info-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: normal;
}

/* SETTINGS */

.serial-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
}

.serial-setting-static,
.serial-settings-grid label {
    min-height: 24px;
    display: grid;
    grid-template-columns:
        minmax(90px, 1fr)
        minmax(80px, 0.8fr);
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 10px;
}

.serial-setting-static span,
.serial-settings-grid label > span {
    opacity: 0.48;
}

.serial-setting-static strong {
    font-weight: normal;
}

.serial-settings-grid select {
    width: 100%;
    height: 24px;
    padding: 0 7px;
    border:
        1px solid rgba(255, 255, 255, 0.15);
    outline: 0;
    background:
        rgba(0, 0, 0, 0.35);
    color: inherit;
    font-family: monospace;
    font-size: 9px;
    cursor: pointer;
}

.serial-settings-grid select option {
    background: #08080c;
    color: #eeeef5;
}

/* CONSOLE HEADER */

.serial-console-header {
    min-height: 30px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    opacity: 1.05;
}

.serial-console-action {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    opacity: 1.05;
}

.serial-console-action:hover {
    opacity: 1;
}

/* SERIAL STREAM */

.serial-console {
    flex: 1;
    min-height: 0;
    padding: 12px 16px;
    overflow-y: auto;
    background:
        rgba(0, 0, 0, 0.48);
    font-family: monospace;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.serial-line {
    min-height: 17px;
}

.serial-system {
    opacity: 0.8;
}

.serial-muted {
    opacity: 0.35;
}

.serial-rx {
    color: #d8d8df;
}

.serial-tx {
    color: #d7c36b;
}

.serial-error {
    color: #db7777;
}

.serial-console::-webkit-scrollbar {
    width: 8px;
}

.serial-console::-webkit-scrollbar-track {
    background: transparent;
}

.serial-console::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.15);
}

.serial-console::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 255, 255, 0.25);
}

/* TRANSMIT */

.serial-transmit {
    min-height: 52px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-top:
        1px solid rgba(255, 255, 255, 0.15);
    background:
        rgba(0, 0, 0, 0.22);
}

.serial-tx-label {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 11px;
    opacity: 1.05;
}

.serial-tx-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border:
        1px solid rgba(255, 255, 255, 0.18);
    outline: 0;
    background:
        rgba(0, 0, 0, 0.4);
    color: inherit;
    font-family: monospace;
    font-size: 11px;
}

.serial-tx-input:focus {
    border-color:
        rgba(255, 255, 255, 0.38);
}

.serial-tx-input:disabled {
    opacity: 0.3;
}

.serial-tx-input::placeholder {
    color: inherit;
    opacity: 0.22;
}

.serial-send-button {
    height: 34px;
    min-width: 86px;
    border:
        1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: inherit;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.serial-send-button:hover:not(:disabled) {
    background:
        rgba(255, 255, 255, 0.08);
}

.serial-send-button:disabled {
    opacity: 0.25;
    cursor: default;
}

/* FOOTER */

.serial-footer {
    min-height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-shrink: 0;
    border-top:
        1px solid rgba(255, 255, 255, 0.12);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
}

.serial-counters,
.serial-footer-status {
    display: flex;
    align-items: center;
    gap: 18px;
}

.serial-footer strong {
    font-weight: normal;
}

#serialLinkStatus,
#serialCoreStatus {
    opacity: 0.8;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .serial-window {
        width: calc(100vw - 24px);
        height: calc(100vh - 70px);
        left: 12px;
        top: 34px;
    }

    .serial-connection-bar {
        grid-template-columns:
            1fr 150px;
    }

    .serial-state {
        justify-content: flex-start;
    }

    .serial-connection-actions {
        justify-content: flex-start;
    }

    .serial-information {
        grid-template-columns: 1fr;
        overflow-y: auto;
        max-height: 210px;
    }

    .serial-device-info {
        border-right: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 620px) {
    .serial-connection-bar {
        grid-template-columns: 1fr;
    }

    .serial-settings-grid {
        grid-template-columns: 1fr;
    }

    .serial-counters {
        gap: 8px;
    }

    .serial-footer {
        font-size: 8px;
    }

    .serial-footer-status {
        display: none;
    }
}

/* ========================================
   PULSAR // DEVICE MANAGER
======================================== */

.device-manager-window {
    width: min(900px, 92vw);
    height: min(610px, 82vh);
    min-width: 620px;
    min-height: 470px;
}

.device-manager-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            transparent 30%
        ),
        #07070a;
    color: #d7d7dc;
    font-family: inherit;
}

.device-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #29292f;
    background: rgba(255, 255, 255, 0.015);
}

.device-manager-title {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.device-manager-label {
    font-size: 10px;
    letter-spacing: 1.3px;
    color: #66666f;
}

#deviceManagerName {
    overflow: hidden;
    color: #e8e8eb;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-manager-state {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: #9a9aa1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.device-manager-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b4b50;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.device-manager-state.connected {
    color: #dadade;
}

.device-manager-state.connected .device-manager-state-dot {
    background: #50e68a;
    box-shadow:
        0 0 5px rgba(80, 230, 138, 0.7),
        0 0 12px rgba(80, 230, 138, 0.25);
}

.device-manager-state.error .device-manager-state-dot {
    background: #d26b6b;
    box-shadow:
        0 0 5px rgba(210, 107, 107, 1.0);
}

.device-manager-section {
    padding: 18px 20px 20px;
    border-bottom: 1px solid #242429;
}

.device-manager-section-title {
    margin-bottom: 16px;
    color: #66666f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

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

.device-manager-field {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    align-items: center;
    min-height: 30px;
}

.device-manager-field > span {
    color: #6d6d75;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.device-manager-field > strong {
    overflow: hidden;
    color: #d6d6db;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-manager-field > strong::before {
    content: "//";
    margin-right: 11px;
    color: #66666d;
}

.device-manager-field-wide {
    grid-column: span 1;
}

#deviceManagerAlias {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #33333a;
    outline: none;
    background: #08080b;
    color: #dddddf;
    font: inherit;
    font-size: 10px;
    letter-spacing: 0.5px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

#deviceManagerAlias::placeholder {
    color: #46464d;
}

#deviceManagerAlias:hover {
    border-color: #484850;
}

#deviceManagerAlias:focus {
    border-color: #74747e;
    background: #0b0b0f;
}

.device-manager-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #242429;
}

.device-manager-actions button {
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #35353c;
    background: #09090c;
    color: #c7c7cc;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.device-manager-actions button:hover:not(:disabled) {
    border-color: #666670;
    background: #101014;
    color: #ffffff;
}

.device-manager-actions button:active:not(:disabled) {
    background: #17171c;
}

.device-manager-actions button:disabled {
    border-color: #202025;
    color: #34343a;
    cursor: default;
}

#deviceManagerOpenSerial {
    margin-left: auto;
}

.device-manager-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 20px;
    border-top: 1px solid #242429;
    background: #08080b;
    color: #777780;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.0px;
}

/* ========================================
   DEVICE MANAGER // RESPONSIVE
======================================== */

@media (max-width: 760px) {
    .device-manager-window {
        min-width: 0;
        width: calc(100vw - 24px);
        height: calc(100vh - 90px);
    }

    .device-manager-grid {
        grid-template-columns: 1fr;
    }

    .device-manager-field {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .device-manager-actions {
        flex-wrap: wrap;
    }

    #deviceManagerOpenSerial {
        width: 100%;
        margin-left: 0;
    }
}

/* ========================================
   PULSAR GUIDE
========================================= */

.guide-window {
    width: min(1050px, 82vw);
    height: min(680px, 78vh);
}

.guide-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: calc(100% - 64px);
    min-height: 0;
}

.guide-sidebar {
    border-right: 1px solid var(--border);
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-sidebar-title {
    padding: 0 12px 14px;
    font-size: 10px;
    opacity: 0.45;
    letter-spacing: 1px;
}

.guide-nav {
    background: transparent;
    border: 0;
    color: inherit;
    text-align: left;
    padding: 11px 12px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    opacity: 0.55;
}

.guide-nav:hover,
.guide-nav.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
}

.guide-nav.active::before {
    content: "> ";
}

.guide-content {
    overflow-y: auto;
    padding: 46px 54px;
}

.guide-page {
    display: none;
    max-width: 680px;
}

.guide-page.active {
    display: block;
}

.guide-kicker {
    display: block;
    opacity: 0.4;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.guide-page h1 {
    margin: 0 0 28px;
    font-size: 28px;
    letter-spacing: 3px;
}

.guide-page p {
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 20px;
}

.guide-block {
    border: 1px solid var(--border);
    margin: 30px 0;
    display: grid;
    grid-template-columns: 160px 1fr;
}

.guide-block strong,
.guide-block span {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.guide-block strong {
    opacity: 0.55;
}

.guide-command {
    border: 1px solid var(--border);
    padding: 11px 14px;
    margin: 7px 0;
    font-size: 11px;
}

.guide-command::before {
    content: "> ";
    opacity: 0.4;
}

.guide-muted {
    opacity: 0.4 !important;
    font-size: 11px;
}

.guide-footer {
    height: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 9px;
    opacity: 0.45;
}

@media (max-width: 700px) {
    .guide-layout {
        grid-template-columns: 150px 1fr;
    }

    .guide-content {
        padding: 30px 24px;
    }

    .guide-block {
        grid-template-columns: 1fr;
    }
}


/* FINAL OF THE CSS FILE */