:root{
  --dark-bg: #05070C;
  --panel-bg: #0F1420;
  --neon-blue: #00F0FF;
  --neon-pink: #fe53a6;
  --neon-purple: #B14EFF;
  --neon-green: #39FF88;
  --text-color: #DCEBFF;
  --dim-text: #7C93B8;
  --glow-line: rgba(0,240,255,0.25);
  --shadow-effect: 0 0 0 1px rgba(0,240,255,0.15), 0 18px 50px rgba(0,0,0,0.6);
  --round-corners: 4px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding:0;
    width: 100%;
    height: 100%;
    overflow:hidden;
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-color);
    user-select: none;
    background: var(--dark-bg);
}

#crt-overlay{
    position: fixed;
    inset:0;
    z-index: 8000;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, 
        rgba(0,240,255,0.05) 0px, 
        rgba(0,240,255,0.05) 1px, 
        transparent 1px, 
        transparent 3px
    );
    opacity: 0.5;
}

#vignette{
    position: fixed;
    inset: 0;
    z-index: 7999;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

#boot{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease;
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
}

#boot .glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--neon-blue);
    text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-purple);
    animation: flicker 2.2s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.55; }
}

#boot .sub {
    margin-top: 10px;
    font-size: 12px;
    color: var(--dim-text);
    letter-spacing: 2px;
}

#boot .bootlog {
    margin-top: 22px;
    width: 280px;
    font-size: 11px;
    line-height: 1.7;
    height: 150px;
    overflow: hidden;
}

#boot .bar{
    width: 280px;
    height: 6px;
    margin-top: 14px;
    background: rgba(0,240,255,0.1);
    border: 1px solid var(--glow-line);
}

#boot .bar-fill{
    height: 100%;
    width:0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    animation: loadBar 1.6s ease forwards;
}

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

#boot.hide {
    opacity: 0;
    pointer-events: none;
}

#desktop {
    position: fixed;
    inset: 0;
    bottom: 52px;
    background:
        linear-gradient(rgba(5,7,12,0.92), rgba(5,7,12,0.96)),
        repeating-linear-gradient(0deg, rgba(0,240,255,0.06) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0,240,255,0.06) 0px, transparent 1px, transparent 40px),
        radial-gradient(ellipse at 20% 100%, rgba(255,46,146,0.16), transparent 55%),
        radial-gradient(ellipse at 85% 0%, rgba(0,240,255,0.14), transparent 55%),
        var(--dark-bg);
    overflow: hidden;
}

#icons {
    position: absolute;
    top: 20px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-wrap: wrap;
    height: calc(100% - 40px);
}

.icon {
    width: 88px;
    padding: 10px 4px 8px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--round-corners);
}

.icon:hover {
    background: rgb(0, 240, 255, 0.07);
    border-color: var(--glow-line);
}

.icon:active {
    background: rgba(0,240,255,0.14);
}

.icon .emoji {
    width: 44px;
    height: 44px;
    border-radius: var(--round-corners);
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-transform: uppercase;
}

#context-menu {
    position: absolute;
    z-index: 5000;
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    box-shadow: var(--shadow-effect);
    padding: 5px;
    min-width: 200px;
    display: none;
    font-size: 13px;
}

#context-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    background: none;
    font-family: 'Rajdhani' sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    text-transform: uppercase;
}

#context-menu button:hover {
    background: rgba(0,240,255,0.1);
    color: var(--neon-blue);
}

#windows-layer {
    position: absolute;
    inset: 0;
}

.window {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border-radius: var(--round-corners);
    box-shadow: var(--shadow-effect);
    overflow: hidden;
    min-width: 260px;
    min-height: 180px;
    border: 1px solid var(--glow-line);
}

.window.maximized {
    left: 6px !important;
    top: 6px !important;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
}

.titlebar {
    background: linear-gradient(90deg, rgba(0,240,255,0.12), rgba(255,46,146,0.1));
    border-bottom: 1px solid var(--glow-line);
    padding: 9px 10px 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab; 
}

.titlebar:active {
    cursor: grabbing;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-blue);
    text-transform: uppercase;
}

.win-controls {
    display: flex;
    gap: 6px;
}

.win-btn {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid var(--glow-line);
    cursor: pointer;
    font-size: 11px;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-color);
}

.win-btn.min:hover {
    color: var(--amber);
    border-color: var(--amber);
}

.win-btn.max:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.win-btn.close:hover {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
}

.win-content {
    flex: 1;
    overflow: auto;
    padding: 14px;
    font-size: 14px;
    background: var(--panel-bg);
}

.resize-handle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, var(--neon-blue) 50%);
    opacity: 0.5;
}

#taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    z-index: 4000;
    background: var(--dark-bg);
    border-top: 1px solid var(--glow-line);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

#start-btn {
    background: var(--panel-bg);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    padding: 8px 16px;
    border-radius: var(--round-corners);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#start-btn:hover{
    background:rgba(0,240,255,0.12); 
}

#open-windows {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
}

.taskbtn {
    background: var(--panel-bg);
    color: var(--dim-text);
    border: 1px solid var(--glow-line);
    padding: 7px 12px;
    border-radius: var(--round-corners);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.taskbtn.active {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
}

#clock {
    color: var(--neon-pink);
    font-weight: 700;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    min-width: 78px;
    text-align: right;
}

#start-menu {
    position: fixed;
    left: 10px;
    bottom: 60px;
    width: 300px;
    max-width: 420px;
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    box-shadow: var(--shadow-effect);
    z-index: 4500;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#start-menu.show {
    display: flex;
}

#start-search {
    margin: 12px;
    padding: 9px 12px;
    border-radius: var(--round-corners);
    border: 1px solid var(--glow-line);
    background: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    outline: None;
}

#start-search::placeholder {
    color: var(--dim-text);
}

#start-apps {
    overflow-y: auto;
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--round-corners);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.start-item:hover {
    background: rgba(0,240,255,0.08);
    color: var(--neon-blue);
}

.start-item .emoji {
    font-size: 16px;
    width: 24px;
    text-align:center;
}

#start-footer {
    border-top: 1px solid var(--glow-line);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#start-footer .who {
    font-size: 11px;
    font-weight: 700;
    color: var(--dim-text);
    font-family: 'Share Tech Mono', monospace;
}

#shutdown-btn {
    background: none;
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
}

#shutdown-btn:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

#sleep-overlay {
    position: fixed;
    inset:0;
    background: #030407;
    color: var(--neon-blue);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
}

#sleep-overlay.show {
    display: flex;
}

#sleep-overlay .zzz {
  font-size: 34px;
  margin-bottom: 10px;
}

#sleep-overlay p {
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 1px;
}

.terminal {
    background: #03060A;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(57,255,136,0.2);
}

.term-output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.55;
}

.term-input-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.term-input-line span {
    color: var(--neon-pink);
    font-weight: 700;
}

.term-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--neon-green);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

#notes-area {
    width: 100%;
    height: calc(100% - 26px);
    border: 1px solid var(--glow-line);
    background: var(--dark-bg);
    color: var(--text-color);
    border-radius: var(--round-corners);
    padding: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    resize: none;
    outline: none;
}

.notes-status {
    font-size: 11px;
    color: var(--dim-text);
    margin-top: 4px;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
}

.paint-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.swatch {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 0 0 1px var(--glow-line);
    cursor: pointer;
}

.swatch.active {
    box-shadow: 0 0 0 2px var(--neon-blue);
}

#paint-canvas {
    background: #03040a;
    border-radius: var(--round-corners);
    border: 1px solid var(--glow-line);
    touch-action: none;
    display: block;
}

.music-player {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.music-art {
    height: 110px;
    border-radius: var(--round-corners);
    background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(255,46,146,0.18));
    border: 1px solid var(--glow-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.track-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-sub {
    text-align: center;
    font-size: 11px;
    color: var(--dim-text);
    font-family: 'Share Tech Mono', monospace;
}

.bar {
    display: flex;
    gap: 3px;
    height: 26px;
    align-items: flex-end;
    justify-content: center;
}

.bars span {
    width: 4px;
    background: var(--neon-pink);
    animation: barJump 1s ease-in-out infinite;
}

@keyframes barJump {
    0%, 100% { height: 6px; }
    50% { height: 24px; }
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

.music-controls button {
    border: 1px solid var(--glow-line);
    background: var(--panel-bg);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: var(--round-corners);
    font-size: 14px;
    cursor: pointer;
}

.music-controls button.play {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.track-list {
    overflow-y: auto;
}

.track-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 8px;
    border-radius: var(--round-corners);
    font-size: 12px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
}

.track-row:hover {
    background: rgba(0,240,255,0.07);
}

.track-row.playing {
    color: var(--neon-blue);
    border: 1px solid var(--glow-line);
}

gallery-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.gallery-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.folder-card {
    background: var(--dark-bg);
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
}

.folder-card:hover {
    border-color: var(--neon-blue);
    background: rgba(0,240,255,0.06);
}

.folder-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.folder-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

.folder-count {
    font-size: 10px;
    color: var(--dim-text);
    margin-top: 4px;
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.gallery-back {
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
    color: var(--text-color);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--round-corners);
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
}

.gallery-back:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.gallery-folder-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--neon-blue);
    text-transform: uppercase;
}

.gallery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
}

.photo-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--round-corners);
    overflow: hidden;
    border: 1px solid var(--glow-line);
    background: var(--dark-bg);
}

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

.photo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--dim-text);
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    padding: 4px;
}

.photo-fallback span {
    font-size: 20px;
    opacity: 0.6;
}

.photo-fallback small {
    font-size: 9px;
    word-break: break-all;
}

.photo-tile.broken img {
    display: none;
}

.photo-tile.broken .photo-fallback {
    display: flex;
}

.cybergram {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pg-topbar {
    padding: 6px 4px 12px;
    border-bottom: 1px solid var(--glow-line);
    flex-shrink: 0;
}

.pg-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pg-pages {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 -14px;
}

.pg-page {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 10px 14px;
}

.pg-page.active {
    display: flex;
}

.pg-post {
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    background: var(--dark-bg);
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.pg-post-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.pg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #03040a;
    flex-shrink: 0;
}

.pg-avatar.sm {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.pg-avatar.lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

.pg-post-user {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pg-post-user b {
    font-size: 12px;
    color: var(--text-color);
}

.pg-post-user small {
    font-size: 10px;
    color: var(--dim-text);
}

.pg-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.pg-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 2px;
    font-size: 17px;
}

.pg-like-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 19px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pg-like-btn.liked {
    color: var(--neon-pink);
}

.pg-likes {
    padding: 4px 10px 0;
    font-size: 12px;
    font-weight: 700;
}

.pg-caption {
    padding: 4px 10px 0;
    font-size: 12px;
    line-height: 1.4;
}

.pg-caption b {
    margin-right: 4px;
}

.pg-comments-link {
    padding: 4px 10px 10px;
    font-size: 11px;
    color: var(--dim-text);
}

.pg-msg-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(0,240,255,0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.pg-msg-row.unread .pg-msg-info b {
    color: var(--neon-blue);
}

.pg-msg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    min-width: 0;
}

.pg-msg-info b {
    font-size: 13px;
}

.pg-msg-info small {
    font-size: 11px;
    color: var(--dim-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-msg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pg-msg-meta small {
    font-size: 10px;
    color: var(--dim-text);
}

.pg-msg-meta .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-blue);
}
.pg-profile-tile {
    width: 100%;
    aspect-ratio: 1/1;
    background: #03040a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glow-line);
}

.pg-profile-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 4px 12px;
    flex-shrink: 0;
}

.pg-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.pg-stats div {
    display: flex;
    flex-direction: column;
}

.pg-stats b {
    font-size: 15px;
    color: var(--neon-blue);
}

.pg-stats small {
    font-size: 10px;
    color: var(--dim-text);
    margin-top: 2px;
}

.pg-profile-name {
    padding: 0 4px;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.pg-profile-bio {
    padding: 4px 4px 10px;
    font-size: 12px;
    color: var(--dim-text);
    line-height: 1.4;
    flex-shrink: 0;
}

.pg-edit-btn {
    margin: 0 4px 14px;
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
    color: var(--text-color);
    padding: 8px;
    border-radius: var(--round-corners);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    flex-shrink: 0;
}

.pg-edit-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.pg-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 4px;
}

.pg-tabbar {
    display: flex;
    border-top: 1px solid var(--glow-line);
    margin: 0 -14px -14px;
    flex-shrink: 0;
}

.pg-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--dim-text);
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
}

.pg-tab span {
    font-size: 16px;
}

.pg-tab small {
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pg-tab.active {
    color: var(--neon-blue);
}

.calc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

#calc-display {
    background: #03040a;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 22px;
    text-align: right;
    padding: 12px;
    border: 1px solid rgba(57,255,136,0.25);
    border-radius: var(--round-corners);
    min-height: 20px;
    word-break: break-all;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    flex: 1;
}

.calc-grid button {
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    background: var(--panel-bg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
}

.calc-grid button.op {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.calc-grid button.eq {
    color: var(--dark-bg);
    background: var(--neon-pink);
    grid-row: span 1;
    border-color: var(--neon-pink);
}

.calc-grid button:hover {
    filter: brightness(1.2);
}

.about-box{
    text-align: center;
}

.about-box .ascii {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    white-space: pre;
    line-height: 1.15;
    color: var(--neon-blue);
    text-align: left;
    background: #03040a;
    border: 1px solid var(--glow-line);
    border-radius: var(--round-corners);
    padding: 10px;
    margin-bottom: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 5px 2px;
    border-bottom: 1px dashed var(--glow-line);
    font-family: 'Share Tech Mono', monospace;
}

.spec-row span:first-child {
    color: var(--dim-text);
}

.trash-box {
    text-align: center;
    padding-top: 30px;
}

.trash-box .big {
    font-size: 40px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--panel-bg);
    border: 1px solid var(--glow-line);
}

@media (max-width: 640px) {
    #icons {
        top: 10px;
        left: 8px;
    }
    
    .icon {
        width: 72px;
    }
    
    #open-windows {
        display: none;
    }
}