/* Sys Monitor — flat Virtual_OS style (no glow) */

#win-sys.sm-window {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    font-family: "Segoe UI", "Ubuntu", system-ui, sans-serif;
    color: #d4d4d4;
}

#win-sys.sm-window .w-header.sm-header {
    background: #222 !important;
    border-bottom: 1px solid #3a3a3a !important;
    color: #ccc !important;
    text-shadow: none !important;
    font-family: "Segoe UI", system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    height: 36px;
    min-height: 36px;
    padding: 0 12px !important;
}

.sm-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.sm-header__icon {
    width: 22px;
    height: 22px;
    background: #3a7ca5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sm-header__ver {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

#win-sys .w-close {
    color: #999 !important;
    text-shadow: none !important;
}

#win-sys .w-close:hover {
    color: #fff !important;
}

.sm-shell {
    padding: 0 !important;
    background: #1e1e1e !important;
    height: calc(100% - 36px) !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.sm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #222;
    border-bottom: 1px solid #333;
    font-size: 11px;
    color: #888;
}

.sm-toolbar__live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #66bb6a;
    font-size: 10px;
    font-weight: 600;
}

.sm-toolbar__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #66bb6a;
}

.sm-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    overflow: hidden;
}

.sm-col {
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-col--right {
    border-left: 1px solid #333;
    background: #1a1a1a;
}

.sm-card {
    background: #252525;
    border: 1px solid #363636;
    border-radius: 6px;
    padding: 12px;
}

.sm-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.sm-card__head-val {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    color: #ccc;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.sm-kv {
    font-size: 11px;
    line-height: 1.55;
    color: #aaa;
}

.sm-kv b,
.sm-kv .sm-kv__val {
    color: #e0e0e0;
    font-weight: 600;
}

.sm-kv__mono {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
}

.sm-core-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-core-row__meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #777;
    margin-bottom: 3px;
}

.sm-bar {
    height: 5px;
    background: #141414;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #333;
}

.sm-bar__fill {
    height: 100%;
    transition: width 0.35s ease;
    border-radius: 2px;
}

.sm-bar__fill--cpu { background: #3a7ca5; }
.sm-bar__fill--ram { background: #66bb6a; }
.sm-bar__fill--disk { background: #c9a227; }
.sm-bar__fill--trace { background: linear-gradient(90deg, #8b4513, #c0392b); }

.sm-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sm-stat-box {
    text-align: center;
}

.sm-stat-box__big {
    font-size: 15px;
    font-weight: 700;
    font-family: "JetBrains Mono", Consolas, monospace;
    margin: 8px 0 4px;
}

.sm-stat-box__big--ram { color: #81c784; }
.sm-stat-box__big--disk { color: #d4b86a; }

.sm-stat-box__sub {
    font-size: 10px;
    color: #666;
}

.sm-asset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-asset-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 8px;
}

.sm-asset-row__label {
    color: #888;
}

.sm-status {
    font-size: 10px;
    font-weight: 600;
    font-family: "JetBrains Mono", Consolas, monospace;
}

.sm-status--muted { color: #666; }
.sm-status--ok { color: #81c784; }
.sm-status--warn { color: #ffb74d; }
.sm-status--info { color: #64b5f6; }
.sm-status--gold { color: #d4b86a; }
.sm-status--bad { color: #e57373; }

.sm-trace {
    margin-top: auto;
}

.sm-trace__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.sm-trace__val {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    color: #e57373;
    font-weight: 700;
}

#win-sys ::-webkit-scrollbar {
    width: 6px;
}

#win-sys ::-webkit-scrollbar-track {
    background: #141414;
}

#win-sys ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

#win-sys ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dev Studio — WIP placeholder */
.ds-wip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    background: #1e1e1e !important;
    gap: 8px;
}

.ds-wip__icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 4px;
}

.ds-wip__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}

.ds-wip__text {
    margin: 0;
    font-size: 12px;
    color: #999;
    max-width: 320px;
    line-height: 1.5;
}

.ds-wip__hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #666;
}

/* Desktop icon WIP sticker */
.d-icon--wip {
    position: relative;
    overflow: visible;
}

.d-icon-wip-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%) rotate(-10deg);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
    padding: 3px 7px;
    background: linear-gradient(180deg, #ffd866 0%, #e6a817 100%);
    color: #1a1408;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.01em;
    font-family: "Segoe UI", system-ui, sans-serif;
    text-transform: uppercase;
}

.d-icon--wip .d-img {
    opacity: 0.88;
    filter: grayscale(0.15);
}

.d-icon--wip:hover .d-icon-wip-badge {
    transform: translateX(-50%) rotate(-6deg) scale(1.03);
}
