@font-face {
    font-family: 'Pixel', sans-serif;
    src: local('MS Sans Serif'), local('Arial');
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: #5D8198;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    overflow: hidden;
}

.app-window {
    width: 1024px;
    height: 720px;
    background-color: #c0c0c0;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    /* border-right: 2px solid #000000;
    border-bottom: 2px solid #000000; */
    box-shadow: 1px 1px 0 #808080 inset, -1px -1px 0 #dfdfdf inset;
    position: absolute;

}

/* body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    pointer-events: none;
    background-size: 2px 2px;


    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 1px, transparent 1px);
} */

/* 
    body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 11000;
    pointer-events: none;
    
    background-size: 1.5px 2px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 1.5px, transparent 1.5px);
} */

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 11000;
    pointer-events: none;
    
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.03), rgba(0, 0, 255, 0.06));
    background-size: 100% 1.5px, 3px 100%;
}

#window-1 {
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#window-3 {
    top: 150px;
    left: 300px;
    width: 900px;
    height: 650px;
    min-width: 900px;
    min-height: 650px;
    z-index: 1000;

    resize: both;
    overflow: auto;
}

.title-bar {
    background-color: #000080;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    font-family: "Times New Roman", Times, serif;
    cursor: grab;
}

.title-bar:active {
    cursor: grabbing;
}

.title-left {
    font-size: 15px;
    font-weight: bold;
    pointer-events: none;
}

.title-center {
    font-size: 15px;
    margin-left: -50px;
    pointer-events: none;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.win-btn {
    width: 16px;
    height: 16px;
    background-color: #c0c0c0;
    color: #000;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
}

.win-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    background-color: #c0c0c0;
    border-bottom: 2px solid #808080;
    height: 30px;
}

.toolbar-group {
    display: flex;
    gap: 3px;
}

.tool-btn {
    background-color: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 2px 12px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    color: #000;
}

.tool-btn:active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

.status-banner {
    background-color: #003333;
    color: #00ff00;
    flex-grow: 1;
    margin: 0 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

.main-workspace {
    display: flex;
    flex-grow: 1;
    height: calc(100% - 50px);
}

.left-panel {
    width: 230px;
    background-color: #c0c0c0;
    border-right: 2px solid #808080;
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.smartness-section {
    background-color: #e0e0e0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
}

.smartness-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
    text-align: center;
}

.slider-container {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

.slider-label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
    color: #000;
}

.slider-track-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 12px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-top: -10px;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #000;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

.slider-ticks {
    width: 100%;
    height: 6px;
    background-image: repeating-linear-gradient(90deg, #000 0, #000 2px, transparent 2px, transparent 10%);
    margin-top: 2px;
    margin-bottom: 2px;
}

.bracket-btn {
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
}

.bracket-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.budget-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    border-top: 2px groove #fff;
    padding-top: 15px;
}

.budget-set {
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 2px 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    height: 24px;
}

.budget-set:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.iterations-box {
    background-color: #8fa8a8;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 5px;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin-bottom: 4px;
}

.iter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    color: #000;
}

.amount-box {
    background: #ffffe0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: bold;
}

.action-btns {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.action-btn {
    flex: 1;
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 5px 0;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
}

.action-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.like-box {
    background: #fff;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.like-box span {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    color: #000;
}

.thumb-icon {
    position: absolute;
    right: 0px;
    bottom: -5px;
    font-size: 65px;
    filter: drop-shadow(2px 2px 0px #000) drop-shadow(-1px -1px 0px #aa8800);
    transform: rotate(-10deg);
}

.center-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #000;
}

.cockpit-view {
    flex-grow: 1;
    background-color: #000;
    position: relative;
    border-bottom: 2px solid #c0c0c0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cockpit-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('./ezgif-5387f4cef5fc73d3.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-ui-bar {
    background: #c0c0c0;
    display: flex;
    flex-direction: column;
}

.tool-strip {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #c0c0c0;
    padding: 4px;
    border-bottom: 1px solid #808080;
}

.strip-btn {
    width: 22px;
    height: 22px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

.strip-btn.active-tool {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #dfdfdf;
}

.clock-display {
    background: #ffffcc;
    color: #000;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    padding: 2px 8px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    margin-left: auto;
}

.meetmeup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #c0c0c0;
    padding: 4px;
    border-bottom: 1px solid #808080;
}

.server-info {
    font-weight: bold;
    background: #ffffe0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 4px 10px;
    font-size: 13px;
    display: flex;
    gap: 15px;
}

.tiny-btn {
    width: 24px;
    height: 24px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.disconnect-btn {
    background: #e0e0e0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
}

.disconnect-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.avatar-box {
    width: 32px;
    height: 32px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    overflow: hidden;
}

.avatar-box.blue {
    background: #0044aa;
}

.avatar-box.grey {
    background: #333;
}

.avatar-box.blonde {
    background: #ccaa00;
}

.avatar-box.smoke {
    background: #111;
}

.chat-bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #c0c0c0;
}

.chat-input {
    flex-grow: 1;
    background: #ffffe0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 4px 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: #000;
}

.signal-check {
    background: #c0c0c0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 12px;
    color: #000;
}

.channel-btns {
    display: flex;
    gap: 2px;
    padding: 0 4px 4px 4px;
    background: #c0c0c0;
}

.ch-btn {
    flex: 1;
    background: #d4d0c8;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 4px 0;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    color: #000;
}

.ch-btn:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.right-panel {
    width: 215px;
    background-color: #c0c0c0;
    border-left: 2px solid #808080;
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
}

.ticker-box {
    background: #fff;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    height: 110px;
    overflow: hidden;
    padding: 2px;
}

.ticker-text {
    color: #ff00ff;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 9px;
    line-height: 1.1;
    font-weight: bold;
}

.control-cluster {
    background: #8fa8a8;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ctrl-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.led {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #333;
    flex-shrink: 0;
}

.led.red {
    background: radial-gradient(circle at 4px 4px, #ff8888, #aa0000);
    box-shadow: 0 0 4px #ff0000;
}

.led.yellow {
    background: radial-gradient(circle at 4px 4px, #ffff88, #aaaa00);
    box-shadow: 0 0 4px #ffff00;
}

.led.blue {
    background: radial-gradient(circle at 4px 4px, #8888ff, #0000aa);
    box-shadow: 0 0 4px #0000ff;
}

.main-btn {
    flex-grow: 1;
    background: linear-gradient(180deg, #b3d1ff 0%, #4d88ff 50%, #1a66ff 50%, #0044cc 100%);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    padding: 2px 0;
    border-radius: 4px;
    text-shadow: 1px 1px 0px #fff;
    cursor: pointer;
}

.main-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.sub-ctrl-row {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.sub-btn {
    flex: 1;
    background: linear-gradient(180deg, #b3d1ff 0%, #6699ff 100%);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    font-weight: bold;
    padding: 2px 0;
    cursor: pointer;
    border-radius: 2px;
    color: #000;
    text-shadow: 1px 1px 0px #fff;
}

.sub-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.graph-panel {
    background: #fff;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 1px;
    display: flex;
    flex-direction: column;
}

.graph-title {
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #808080;
    background: #fff;
    color: #000;
}

.graph-screen {
    background: #222;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.graph-line {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 45px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="45" viewBox="0 0 200 45"><path d="M0,20 Q5,5 15,25 T30,10 T45,35 T60,5 T75,20 T90,30 T105,5 T120,25 T135,10 T150,20 T165,30 T180,10 T200,25" fill="none" stroke="%23ffff00" stroke-width="1.5"/><path d="M0,25 Q10,10 20,30 T40,15 T60,35 T80,10 T100,25 T120,15 T140,25 T160,10 T180,30 T200,20" fill="none" stroke="%2300ff00" stroke-width="1" opacity="0.8"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.graph-line-growth {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 45px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="45" viewBox="0 0 200 45"><path d="M0,40 L30,35 L60,38 L90,15 L120,25 L150,5 L200,10" fill="none" stroke="%2300ffff" stroke-width="1.5"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 2px;
}

.tuning-row {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #557766;
    padding: 6px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.tune-box {
    width: 14px;
    height: 10px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.tune-box.y {
    background: #ffffaa;
}

.tune-box.g {
    background: #aaffaa;
}

.tuning-label {
    color: #000;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

.elon-btn {
    background: linear-gradient(180deg, #66a3cc 0%, #337799 100%);
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    padding: 4px 0;
    cursor: pointer;
    margin-top: auto;
    height: 28px;
}

.elon-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

/* =========================================
       Стили панели CDE
       ========================================= */
.cde-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #a0a0a0;
    border-top: 3px solid #e0e0e0;
    border-left: 3px solid #e0e0e0;
    border-right: 3px solid #505050;
    border-bottom: 3px solid #505050;
    display: flex;
    padding: 6px;
    gap: 15px;
    z-index: 10000;
    align-items: center;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
}

.cde-subpanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #a0a0a0;
    border-top: 2px solid #e0e0e0;
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #505050;
    border-bottom: 2px solid #505050;
    padding: 4px;
    cursor: pointer;
    width: 75px;
}

.cde-subpanel.cde-open, .cde-subpanel:active {
    border-top: 2px solid #505050;
    border-left: 2px solid #505050;
    border-right: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.cde-icon {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.cde-label {
    font-size: 10px;
    font-family: Arial, sans-serif;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
}

.cde-workspace-switcher {
    background-color: #909090;
    border-top: 2px solid #505050;
    border-left: 2px solid #505050;
    border-right: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cde-switch-row {
    display: flex;
    gap: 2px;
}

.cde-ws {
    width: 40px;
    height: 25px;
    background-color: #808080;
    color: #fff;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    cursor: pointer;
}

.cde-ws.active {
    background-color: #6080a0;
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

/* =========================================
       Стили для окна 3
       ========================================= */
.ns-menu-bar {
    display: flex;
    padding: 2px 6px;
    gap: 12px;
    background-color: #c0c0c0;
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif;
}

.ns-menu-bar span {
    cursor: pointer;
}

.ns-menu-bar span u {
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.ns-toolbar {
    display: flex;
    padding: 2px 4px 4px 4px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #808080;
    background-color: #c0c0c0;
}

.ns-btn {
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset -1px -1px #808080;
    padding: 3px 12px;
    font-size: 11px;
    font-family: "MS Sans Serif", sans-serif;
    color: #000;
    cursor: pointer;
    margin-right: 1px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-btn:active:not(.disabled) {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    box-shadow: inset 1px 1px #808080;
    padding: 4px 11px 2px 13px;
}

.ns-btn.gap-after {
    margin-right: 8px;
}

.ns-btn.disabled {
    color: #808080;
    text-shadow: 1px 1px 0px #fff;
    cursor: default;
}

.ns-location-row {
    display: flex;
    align-items: center;
    padding: 4px 2px 4px 6px;
    border-bottom: 1px solid #808080;
    background-color: #c0c0c0;
}


.ns-location-row label {
    margin-right: 4px;
    font-family: "MS Sans Serif", sans-serif;
}

.ns-location-input-wrapper {
    flex: 1;
    display: flex;
    background: #fff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    margin-right: 6px;
    height: 22px;
}

.ns-location-input-wrapper input {
    flex: 1;
    border: none;
    padding: 2px 4px;
    font-family: monospace;
    font-size: 12px;
    outline: none;
    user-select: text;
}

.ns-dropdown-btn {
    width: 20px;
    background-color: #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-top: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset -1px -1px #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.ns-dropdown-btn:active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    box-shadow: inset 1px 1px #000;
}

.ns-big-n-box {
    width: 38px;
    height: 38px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: linear-gradient(to bottom, #000000 65%, #004a4a 65%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-big-n-letter {
    font-family: "Times New Roman", serif;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    margin-top: -2px;
}

.ns-status-bar {
    padding: 2px 4px;
    display: flex;
    align-items: center;
    border-top: 1px solid #fff;
    height: 22px;
    background-color: #c0c0c0;
    font-family: "MS Sans Serif", sans-serif;
}

.ns-status-icon {
    width: 24px;
    text-align: center;
    border-right: 1px solid #808080;
    box-shadow: 1px 0 #fff;
    padding-right: 4px;
    margin-right: 4px;
}

.ns-status-text {
    flex: 1;
}

.ns-status-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    border-left: 1px solid #808080;
    box-shadow: inset 1px 0 #fff;
}

.myspace-workspace {
    flex-grow: 1;
    background-color: #E9E9E9;
    /* overflow-y: auto; */
    user-select: text;
    font-family: "Verdana", "Arial", sans-serif;
    color: #000;
    padding: 15px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;

    overflow-y: scroll;
}

.ms-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 2px solid #003399;
}

.ms-navbar {
    background-color: #003399;
    color: #FFFFFF;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 15px;
}

.ms-navbar a:hover {
    text-decoration: underline;
}

.ms-search-bar {
    max-width: 110px;
    background: #fff;
    border: 1px solid #000;
    padding: 2px;
    font-size: 10px;
}

.ms-header {
    text-align: center;
    padding: 20px;
    background: #6699CC;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #003399;
}

.ms-main-grid {
    display: flex;
    padding: 10px;
    gap: 15px;
}

.ms-left-col {
    width: 204px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ms-right-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ms-profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ms-profile-pic {
    width: 170px;
    height: 170px;
    border: 1px solid #000;
    background-image: url('./1221.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-bottom: 5px;
}

.ms-status {
    font-style: italic;
    font-size: 11px;
    margin-bottom: 15px;
}

.ms-contact-box {
    border: 2px solid #6699CC;
}

.ms-box-header {
    background-color: #6699CC;
    color: #FFFFFF;
    font-weight: bold;
    padding: 3px 5px;
    font-size: 12px;
}

.ms-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    gap: 5px;
    text-align: center;
    font-size: 11px;
}

.ms-contact-grid a {
    color: #003399;
    text-decoration: none;
}

.ms-contact-grid a:hover {
    color: #FF0000;
}

.ms-interests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.ms-interests-table th {
    background-color: #B1D8EB;
    color: #003399;
    text-align: left;
    padding: 5px;
    width: 35%;
    border-bottom: 1px solid #FFFFFF;
    vertical-align: top;
}

.ms-interests-table td {
    background-color: #D5E8FB;
    padding: 5px;
    border-bottom: 1px solid #FFFFFF;
}

.ms-blurbs h3 {
    color: #FF9900;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.ms-blurbs p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.ms-music-player {
    background: #000;
    border: 2px solid #333;
    padding: 10px;
    color: #0f0;
    font-family: "Courier New", Courier, monospace;
    margin-bottom: 15px;
    text-align: center;
    font-size: 11px;
}

.ms-top8-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
    margin-top: 10px;
}

.ms-friend {
    font-size: 11px;
    font-weight: bold;
    color: #003399;
}

.ms-friend-img {
    width: 80px;
    height: 80px;
    border: 1px solid #000;
    margin: 5px auto;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

/* Win95 Scrollbar Update */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: #dfdfdf;
}

::-webkit-scrollbar-track {
    background: #dfdfdf;
}

::-webkit-scrollbar-corner {
    background: #dfdfdf;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset -1px -1px #808080;
}

::-webkit-scrollbar-thumb:active {
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    box-shadow: inset 1px 1px #000;
}

::-webkit-scrollbar-button:single-button {
    background-color: #c0c0c0;
    display: block;
    height: 16px;
    width: 16px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset -1px -1px #808080;
}

::-webkit-scrollbar-button:single-button:active {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    box-shadow: inset 1px 1px #000;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4"><polygon points="4,0 8,4 0,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center 5px;
}

::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4"><polygon points="0,0 8,0 4,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center 5px;
}

::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="8"><polygon points="4,0 4,8 0,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: 4px center;
}

::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="8"><polygon points="0,0 0,8 4,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: 5px center;
}

@media (max-width: 900px) and (orientation: portrait) {
    body {
      position: fixed;
      top: 0; left: 0;
      
      width: 100vh; 
      height: 100vw;

      transform: rotate(-90deg);
      transform-origin: top left;
      translate: 0 100vh;
      overflow: hidden;
    }
  }
  

@media (max-width: 900px) {
    .app-window {
        /* scale: 0.5; */
        transform: scale(0.5);
      /* transform-origin: top left; */
      }
    #window-1 {
        top: -170px;
        left: -230px;
    }
    #window-3 {
        top: -120px;
        left: -145px;
    }
    .cde-panel {
        display: none;
    }
  }
  