/* desktop.css — "Windubs 98" chrome. Classic bevels built from box-shadows. */

:root {
    --face: #c0c0c0;
    --hilite: #ffffff;
    --light: #dfdfdf;
    --shadow: #808080;
    --dark: #0a0a0a;
    --title-a: #000080;
    --title-b: #1084d0;
    --title-ia: #808080;
    --title-ib: #b5b5b5;
    --select: #000080;
    --desk: #008080;
    --ui-font: "Microsoft Sans Serif", "MS Sans Serif", Tahoma, Geneva, sans-serif;
    --raised: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--hilite);
    --raised-btn: inset -1px -1px var(--dark), inset 1px 1px var(--hilite), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
    --pressed: inset -1px -1px var(--hilite), inset 1px 1px var(--dark), inset -2px -2px var(--light), inset 2px 2px var(--shadow);
    --sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
    --thin-sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow);
    --thin-raised: inset -1px -1px var(--shadow), inset 1px 1px var(--hilite);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #000; overflow: hidden; }
body.view-web99 { overflow: auto; }

img.px, .px { image-rendering: pixelated; image-rendering: crisp-edges; }

.view { display: none; }
body.view-desktop #desktop { display: block; }
body.view-web99 #web99 { display: block; }

/* ---------- Desktop ---------- */
#desktop {
    position: fixed; inset: 0;
    font-family: var(--ui-font); font-size: 11px; color: #000;
    background-color: var(--desk);
    background-repeat: no-repeat; background-position: center calc(50% - 14px);
    user-select: none; -webkit-user-select: none;
    -webkit-font-smoothing: none;
}
#desktop.wp-stretch { background-size: cover; }
#desktop.wp-tile { background-repeat: repeat; background-position: 0 0; }
#desktop.wp-pixel { background-size: cover; image-rendering: pixelated; }

#icons {
    position: absolute; top: 6px; left: 4px; bottom: 34px;
    display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start;
    gap: 6px 4px; z-index: 1;
}
.dicon {
    width: 76px; padding: 2px; text-align: center; cursor: default;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: 0; background: none; font: inherit; color: #fff;
}
.dicon img { width: 32px; height: 32px; }
.dicon span {
    padding: 1px 2px; line-height: 13px; text-shadow: none;
    border: 1px dotted transparent; overflow-wrap: break-word; max-width: 100%;
}
#icons .dicon { width: 86px; }
.dicon.sel img { filter: brightness(0.55) sepia(1) hue-rotate(190deg) saturate(5); }
.dicon.sel span { background: var(--select); border-color: #ff0; }
.dicon:focus { outline: none; }

/* ---------- Windows ---------- */
.win {
    position: absolute; background: var(--face); box-shadow: var(--raised);
    padding: 3px; display: flex; flex-direction: column; min-width: 180px; min-height: 80px;
}
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 30px) !important; }
.win.min { display: none; }
.titlebar {
    display: flex; align-items: center; gap: 3px; height: 18px; padding: 0 2px 0 3px;
    background: linear-gradient(90deg, var(--title-ia), var(--title-ib)); color: #dcdcdc;
    font-weight: bold; flex: none; cursor: default;
}
.win.active > .titlebar { background: linear-gradient(90deg, var(--title-a), var(--title-b)); color: #fff; }
.titlebar img { width: 16px; height: 16px; flex: none; }
.titlebar .tt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbtns { display: flex; flex: none; }
.tbtn {
    width: 16px; height: 14px; padding: 0; border: 0; background: var(--face); box-shadow: var(--raised-btn);
    position: relative; margin-left: 0;
}
.tbtn.close { margin-left: 2px; }
.tbtn:active { box-shadow: var(--pressed); }
.tbtn::before { content: ""; position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; }
.tbtn.min::before { background-image: linear-gradient(#000, #000); background-size: 6px 2px; background-position: 4px 9px; }
.tbtn.max::before { border: 1px solid #000; border-top-width: 2px; inset: 2px 3px 3px 3px; }
.tbtn.close::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0z'/%3E%3C/svg%3E");
}
.menubar { display: flex; padding: 1px 0; flex: none; }
.menubar > span { padding: 2px 6px; }
.menubar > span:hover, .menubar > span.open { box-shadow: var(--thin-raised); }
.menubar u { text-decoration: underline; }
.win-body { flex: 1; overflow: auto; position: relative; min-height: 0; }
.win-body.pad { padding: 8px; }
.statusbar { display: flex; gap: 2px; margin-top: 2px; flex: none; }
.statusbar > div { box-shadow: var(--thin-sunken); padding: 2px 4px; flex: 1; white-space: nowrap; overflow: hidden; }
.statusbar > div.fit { flex: none; }
.resizer { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 0 45%, #fff 45% 52%, #808080 52% 60%, transparent 60% 65%, #fff 65% 72%, #808080 72% 80%, transparent 80%); }
.win.max .resizer { display: none; }

/* ---------- Controls ---------- */
.btn {
    font: inherit; color: #000; background: var(--face); border: 0; box-shadow: var(--raised-btn);
    min-width: 75px; min-height: 23px; padding: 0 10px; cursor: default;
}
.btn:active, .btn.on { box-shadow: var(--pressed); }
.btn.on { background: repeating-conic-gradient(#fff 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn.def { box-shadow: inset 0 0 0 1px #000, inset -2px -2px var(--dark), inset 2px 2px var(--hilite), inset -3px -3px var(--shadow), inset 3px 3px var(--light); }
.btn:disabled { color: var(--shadow); text-shadow: 1px 1px #fff; }
.btn.sm { min-width: 0; min-height: 20px; padding: 0 6px; }
input[type=text], input[type=number], input[type=time], select, textarea, .field {
    font: inherit; background: #fff; border: 0; box-shadow: var(--sunken); padding: 3px 4px; color: #000;
    border-radius: 0; outline: none;
}
select { padding: 2px; }
textarea { resize: none; }
fieldset { border: 0; box-shadow: inset -1px -1px #fff, inset 1px 1px var(--shadow), inset -2px -2px var(--shadow), inset 2px 2px #fff; padding: 10px; margin: 0 0 8px; }
legend { padding: 0 3px; }
.sunken-box { background: #fff; box-shadow: var(--sunken); padding: 2px; overflow: auto; }
.row { display: flex; gap: 6px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.hr { height: 2px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px #fff; margin: 6px 0; }
.progress { height: 18px; box-shadow: var(--thin-sunken); padding: 2px; display: flex; gap: 2px; overflow: hidden; }
.progress i { display: block; width: 8px; flex: none; background: var(--select); }

/* ---------- Taskbar ---------- */
#taskbar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 9000;
    background: var(--face); box-shadow: inset 0 1px var(--light), inset 0 2px #fff;
    display: flex; align-items: center; gap: 3px; padding: 2px 2px 0;
}
#startBtn { display: flex; align-items: center; gap: 3px; font-weight: bold; min-width: 0; padding: 0 5px 0 3px; height: 22px; }
#startBtn img { width: 16px; height: 16px; }
.tb-sep { width: 2px; height: 22px; box-shadow: inset 1px 0 var(--shadow), inset -1px 0 #fff; flex: none; }
.ql { display: flex; gap: 1px; }
.ql button { width: 22px; height: 22px; border: 0; background: none; padding: 3px; }
.ql button:hover { box-shadow: var(--thin-raised); }
.ql button:active { box-shadow: var(--thin-sunken); }
.ql img { width: 16px; height: 16px; display: block; }
#tasks { flex: 1; display: flex; gap: 3px; overflow: hidden; min-width: 0; }
.task {
    display: flex; align-items: center; gap: 3px; height: 22px; flex: 0 1 160px; min-width: 40px;
    font: inherit; text-align: left; background: var(--face); border: 0; box-shadow: var(--raised-btn); padding: 0 4px;
    white-space: nowrap; overflow: hidden;
}
.task span { overflow: hidden; text-overflow: ellipsis; }
.task img { width: 16px; height: 16px; flex: none; }
.task.active { box-shadow: var(--pressed); font-weight: bold; background: repeating-conic-gradient(#fff 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; }
#tray { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 4px; box-shadow: var(--thin-sunken); flex: none; }
#tray img { width: 16px; height: 16px; cursor: default; }
#tray img.muted { opacity: 0.35; }
#clock { min-width: 52px; text-align: right; }

/* ---------- Start menu & menus ---------- */
#startMenu {
    position: absolute; left: 2px; bottom: 28px; z-index: 9500; display: none;
    background: var(--face); box-shadow: var(--raised); padding: 3px 3px 3px 26px; min-width: 210px;
}
#startMenu.open { display: block; }
#startMenu .banner {
    position: absolute; left: 3px; top: 3px; bottom: 3px; width: 21px;
    background: linear-gradient(0deg, #000080, #1084d0); color: #c0c0c0;
    writing-mode: vertical-rl; transform: rotate(180deg); font: bold 17px/21px Arial, sans-serif;
    padding-top: 6px; letter-spacing: 0.5px;
}
#startMenu .banner b { color: #fff; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; display: flex; align-items: center; gap: 6px; padding: 2px 18px 2px 4px; white-space: nowrap; min-height: 22px; cursor: default; }
#startMenu > .menu > li { padding: 4px 18px 4px 4px; min-height: 32px; font-size: 12px; }
#startMenu > .menu > li > img { width: 24px; height: 24px; }
#startMenu > .menu > li.sep { min-height: 0; padding: 0; }
.menu li img { width: 16px; height: 16px; flex: none; }
.menu li:hover, .menu li.hot { background: var(--select); color: #fff; }
.menu li.sub::after { content: ""; position: absolute; right: 6px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left-color: currentColor; border-right: 0; }
.menu li.sep { min-height: 0; padding: 0; margin: 3px 2px; height: 2px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px #fff; }
.menu li.sep:hover { background: none; }
.menu li.disabled { color: var(--shadow); text-shadow: 1px 1px #fff; }
.menu li.disabled:hover { background: none; color: var(--shadow); }
.menu li > .menu { display: none; position: absolute; left: 100%; top: -3px; background: var(--face); box-shadow: var(--raised); padding: 3px; color: #000; min-width: 170px; z-index: 2; }
.menu li:hover > .menu, .menu li.hot > .menu { display: block; }
.popmenu { position: absolute; z-index: 9600; background: var(--face); box-shadow: var(--raised); padding: 3px; min-width: 150px; }
.menu li .chk { width: 12px; text-align: center; }

/* ---------- Dialogs ---------- */
.dlg .win-body { padding: 12px 12px 10px; }
.dlg-msg { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; line-height: 1.35; }
.dlg-msg img { width: 32px; height: 32px; flex: none; }
.dlg-btns { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.modal-shield { position: absolute; inset: 0 0 30px 0; z-index: 8000; }

/* ---------- Explorer ---------- */
.explorer { display: flex; flex-direction: column; height: 100%; }
.explorer .toolbar { display: flex; gap: 2px; align-items: center; padding: 2px; flex: none; }
.explorer .addr { display: flex; gap: 4px; align-items: center; padding: 2px; flex: none; }
.explorer .addr .field { flex: 1; display: flex; gap: 4px; align-items: center; padding: 2px 4px; }
.explorer .addr img { width: 16px; height: 16px; }
.explorer .pane { flex: 1; display: flex; min-height: 0; }
.explorer .side { width: 150px; flex: none; padding: 10px; background: linear-gradient(180deg, #fff, #dfe8ff); border-right: 1px solid #ccc; overflow: hidden; color: #000; }
.explorer .side h3 { font: bold 16px Arial, sans-serif; margin: 34px 0 6px; color: #000; }
.explorer .side img.big { width: 32px; height: 32px; float: left; margin-right: 6px; }
.explorer .side .hr { margin: 8px 0; box-shadow: none; height: 2px; background: linear-gradient(90deg, #f60, #fc0, transparent); }
.explorer .items { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 4px; padding: 8px; }
.explorer .items .dicon { color: #000; width: 80px; }
.explorer .items .dicon.sel span { color: #fff; border-color: transparent; }
.explorer .tool { display: flex; flex-direction: column; align-items: center; font: inherit; border: 0; background: none; padding: 2px 6px; min-width: 44px; }
.explorer .tool:hover { box-shadow: var(--thin-raised); }
.explorer .tool:active { box-shadow: var(--thin-sunken); }
.explorer .tool b { font-size: 14px; line-height: 16px; font-weight: normal; }
.details { width: 100%; border-collapse: collapse; }
.details th { text-align: left; font-weight: normal; background: var(--face); box-shadow: var(--raised-btn); padding: 2px 6px; position: sticky; top: 0; }
.details td { padding: 2px 6px; white-space: nowrap; }
.details tr.sel td { background: var(--select); color: #fff; }
.details td img { width: 16px; height: 16px; vertical-align: -4px; margin-right: 4px; }

/* ---------- Notepad / WordPad ---------- */
.notepad { width: 100%; height: 100%; font: 13px/1.35 "Fixedsys", "Lucida Console", "Courier New", monospace; padding: 4px; white-space: pre-wrap; box-shadow: var(--sunken); }
.wordpad-tools { display: flex; gap: 4px; align-items: center; padding: 3px 2px; flex-wrap: wrap; }
.wordpad-page { background: #808080; padding: 12px; }
.wordpad-doc { background: #fff; max-width: 640px; margin: 0 auto; padding: 28px 36px; font: 14px/1.45 "Times New Roman", Times, serif; color: #000; user-select: text; box-shadow: 2px 2px 0 #000; }
.wordpad-doc h1 { font: bold 22px Arial, sans-serif; margin: 0 0 4px; }
.wordpad-doc h2 { font: bold 16px Arial, sans-serif; margin: 20px 0 4px; color: #000080; }
.wordpad-doc .sub { font-style: italic; color: #444; margin: 0 0 6px; }
.wordpad-doc ol { margin: 4px 0; padding-left: 26px; }
.wordpad-doc .vil { display: inline-block; min-width: 54px; font: bold 12px Arial, sans-serif; color: #800000; }
.wordpad-ruler { height: 18px; background: #fff; box-shadow: var(--thin-sunken); margin: 0 2px 2px;
    background-image: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 12px); background-size: 100% 4px; background-repeat: repeat-x; background-position: 0 14px; }

/* ---------- Rec Player ---------- */
.recplayer { display: flex; flex-direction: column; height: 100%; gap: 4px; background: var(--face); }
.recplayer .screen { position: relative; flex: 1; background: #000; box-shadow: var(--sunken); min-height: 180px; overflow: hidden; }
.recplayer canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.recplayer .subs { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #ff0; font: bold 14px Arial, sans-serif; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; padding: 0 12px; }
.recplayer .controls { display: flex; gap: 3px; align-items: center; }
.recplayer .controls .btn { min-width: 32px; padding: 0 6px; }
.recplayer .seek { flex: 1; height: 8px; box-shadow: var(--thin-sunken); position: relative; background: #fff; }
.recplayer .seek i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--select); }
.recplayer .playlist { height: 92px; }
.recplayer .playlist div { padding: 2px 4px; display: flex; justify-content: space-between; gap: 10px; }
.recplayer .playlist div.sel { background: var(--select); color: #fff; }
.lcd { font: 12px "Lucida Console", monospace; background: #000; color: #0f0; padding: 2px 6px; box-shadow: var(--thin-sunken); min-width: 120px; text-align: right; }

/* ---------- Wizard ---------- */
.wizard { display: flex; flex-direction: column; height: 100%; }
.wizard .wz-main { flex: 1; display: flex; min-height: 0; }
.wizard .wz-art { width: 150px; flex: none; background: linear-gradient(180deg, #000080, #008080); display: flex; align-items: center; justify-content: center; box-shadow: var(--thin-sunken); margin: 8px 0 0 8px; overflow: hidden; }
.wizard .wz-art img { width: 120px; image-rendering: auto; }
.wizard .wz-page { flex: 1; padding: 10px 14px; overflow: auto; line-height: 1.4; }
.wizard .wz-page h2 { font: bold 15px Arial, sans-serif; margin: 0 0 10px; }
.wizard .wz-btns { display: flex; justify-content: flex-end; gap: 6px; padding: 8px; flex: none; border-top: 1px solid var(--shadow); box-shadow: 0 -1px #fff inset; }
.wizard .eula { height: 130px; font-size: 11px; padding: 6px; user-select: text; }
.wizard label { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.wizard pre { font: 11px "Lucida Console", "Courier New", monospace; margin: 0; padding: 6px; user-select: text; }

/* ---------- Sweeper ---------- */
.sweeper { padding: 6px; background: var(--face); display: inline-block; box-shadow: var(--raised); }
.sw-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; box-shadow: var(--sunken); margin-bottom: 6px; }
.sw-lcd { background: #000; color: #f00; font: bold 20px/24px "Courier New", monospace; padding: 0 3px; letter-spacing: 1px; box-shadow: var(--thin-sunken); }
.sw-face { width: 28px; height: 28px; padding: 0; border: 0; background: var(--face); box-shadow: var(--raised-btn); display: flex; align-items: center; justify-content: center; }
.sw-face:active { box-shadow: var(--pressed); }
.sw-face img { width: 20px; height: 20px; }
.sw-grid { display: grid; box-shadow: var(--sunken); padding: 3px; }
.sw-cell { width: 18px; height: 18px; background: var(--face); box-shadow: var(--raised-btn); font: bold 12px/18px Arial, sans-serif; text-align: center; }
.sw-cell.open { box-shadow: inset 1px 1px var(--shadow); }
.sw-cell.boom { background: #f00; }
.sw-cell img { width: 16px; height: 16px; margin-top: 1px; }
.sw-n1 { color: #0000ff; } .sw-n2 { color: #008000; } .sw-n3 { color: #ff0000; } .sw-n4 { color: #000080; }
.sw-n5 { color: #800000; } .sw-n6 { color: #008080; } .sw-n7 { color: #000; } .sw-n8 { color: #808080; }

/* ---------- Display properties ---------- */
.dprops .monitor { width: 184px; margin: 4px auto 10px; }
.dprops .monitor .scr { height: 112px; margin: 0 14px; box-shadow: var(--sunken); background-size: cover; background-position: center; background-repeat: no-repeat; image-rendering: pixelated; }
.dprops .monitor .bezel { background: var(--face); box-shadow: var(--raised); padding: 10px 0 14px; }
.dprops .monitor .stand { width: 70px; height: 10px; margin: 0 auto; background: var(--face); box-shadow: var(--raised); }
.dprops .list { height: 110px; }
.dprops .list div { padding: 1px 4px; }
.dprops .list div.sel { background: var(--select); color: #fff; }

/* ---------- Boot / shutdown ---------- */
#boot { position: fixed; inset: 0; z-index: 20000; background: #000; color: #c0c0c0; font: 15px/1.3 "Lucida Console", "Courier New", monospace; display: none; cursor: default; }
#boot.on { display: block; }
#boot .bios { padding: 20px 24px; white-space: pre-wrap; }
#boot .splash { position: absolute; inset: 0; display: none; background: #000; flex-direction: column; align-items: center; justify-content: center; }
#boot.splash-on .splash { display: flex; }
#boot.splash-on .bios { display: none; }
#boot .splash-logos { width: min(86vw, 640px); }
#boot .splash-logos .logo-lockup { width: 100%; justify-content: center; }
#boot .splash-logos svg { width: 49%; height: auto; }
#boot .splash .os { font: italic bold 46px/1 "Arial Black", Arial, sans-serif; color: #fff; margin-top: 18px; letter-spacing: -1px; }
#boot .splash .os sup { font-size: 18px; color: #f2c230; font-style: normal; }
#boot .splash .os small { font: bold 18px Arial, sans-serif; color: #f2c230; margin-left: 8px; letter-spacing: 0; }
#boot .splash .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(90deg, #000080, #1084d0, #c82828, #f2c230, #3a9a2a, #000080); background-size: 200% 100%; animation: bootbar 1.2s linear infinite; }
#boot .skip { position: absolute; right: 16px; top: 12px; font: 12px Arial, sans-serif; color: #666; }
@keyframes bootbar { to { background-position: -200% 0; } }

#offscreen { position: fixed; inset: 0; z-index: 20001; background: #000; display: none; align-items: center; justify-content: center; text-align: center; font: bold 28px/1.4 Arial, sans-serif; color: #f08000; cursor: pointer; padding: 20px; }
#offscreen.on { display: flex; }
#offscreen small { display: block; font: 14px Arial, sans-serif; color: #888; margin-top: 24px; }

/* ---------- Sheepy ---------- */
#sheepy { position: absolute; right: 18px; bottom: 44px; z-index: 7000; display: none; align-items: flex-end; gap: 0; flex-direction: column; }
#sheepy.on { display: flex; }
#sheepy .bubble {
    background: #ffffe1; border: 1px solid #000; padding: 8px 10px; max-width: 270px; margin-bottom: 6px; position: relative;
    font-size: 11px; line-height: 1.35; border-radius: 8px; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
#sheepy .bubble::after { content: ""; position: absolute; right: 34px; bottom: -9px; border: 9px solid transparent; border-top-color: #000; border-bottom: 0; }
#sheepy .bubble::before { content: ""; position: absolute; right: 35px; bottom: -7px; border: 8px solid transparent; border-top-color: #ffffe1; border-bottom: 0; z-index: 1; }
#sheepy .bubble b { display: block; margin-bottom: 4px; }
#sheepy .bubble .row { margin-top: 8px; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
#sheepy .bubble .btn { white-space: nowrap; }
#sheepy .sheep { width: 72px; height: 72px; cursor: pointer; animation: bob 1.4s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ---------- Dialup ---------- */
.dialup .row { align-items: flex-start; }
.dialup .anim { display: flex; align-items: center; gap: 4px; }
.dialup .anim img { width: 32px; height: 32px; }
.dialup .dots { display: flex; gap: 3px; }
.dialup .dots i { width: 4px; height: 4px; background: #000; opacity: 0.15; }
.dialup .dots i.on { opacity: 1; }

/* ---------- Tooltip ---------- */
.tip { position: absolute; z-index: 9900; background: #ffffe1; border: 1px solid #000; padding: 2px 4px; pointer-events: none; white-space: nowrap; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
    #icons { flex-direction: row; flex-wrap: wrap; right: 4px; bottom: 34px; align-content: flex-start; }
    .dicon { width: 72px; }
    .win:not(.dlg) { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 30px) !important; }
    .win.dlg { max-width: calc(100vw - 12px); }
    .explorer .side { display: none; }
    .ql { display: none; }
    #clock { min-width: 0; }
    .task { flex-basis: 90px; }
}

/* ---------- Live apps ---------- */
.live-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px 16px; text-align: center; min-height: 160px; }
.live-wait img { width: 32px; height: 32px; }
.live-wait .note { color: #555; font-size: 10px; max-width: 320px; }
.progress.indet { width: 200px; position: relative; }
.progress.indet i { animation: indet 1.4s steps(14) infinite; }
@keyframes indet { from { transform: translateX(-30px); } to { transform: translateX(200px); } }
.note { color: #444; }
.crier { display: flex; height: 100%; gap: 3px; }
.crier-folders { width: 170px; flex: none; }
.crier-folders .fold { display: flex; gap: 4px; align-items: center; padding: 3px 4px; cursor: default; white-space: nowrap; }
.crier-folders .fold img { width: 16px; height: 16px; }
.crier-folders .fold.sel { background: var(--select); color: #fff; }
.crier-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crier-list { flex: 1; min-height: 120px; }
.crier-list td { white-space: normal; }
.crier-list td:first-child, .crier-list td:last-child { white-space: nowrap; }
.crier-preview { height: 150px; flex: none; padding: 8px 10px; user-select: text; line-height: 1.4; }
.crier-preview h3 { margin: 0 0 2px; font: bold 13px Arial, sans-serif; }
.crier-preview p { margin: 6px 0 8px; }
.ladder { display: flex; flex-direction: column; height: 100%; gap: 4px; }
.ladder-head { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.ladder-head .stat { box-shadow: var(--thin-sunken); padding: 4px 8px; background: #fff; }
.ladder-head .stat b { display: block; font-size: 15px; color: #000080; }
.ladder-table { flex: 1; }
.ladder-table td img { width: 16px; height: 16px; }
.hot { color: #008000; font-weight: bold; } .cold { color: #c00000; font-weight: bold; }
.details tr.sel .hot, .details tr.sel .cold { color: #fff; }
.dubs { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.dubs-hero { display: flex; gap: 10px; align-items: stretch; flex: none; background: linear-gradient(180deg, #3a1d00, #6a3a10); color: #fff; padding: 8px; box-shadow: var(--sunken); }
.dubs-hero .lbl { font: bold 11px Arial, sans-serif; color: #f2c230; letter-spacing: 1px; margin-bottom: 4px; }
.dubs-score { text-align: center; padding: 4px 10px; background: #000; box-shadow: var(--thin-sunken); display: flex; flex-direction: column; justify-content: center; }
.dubs-score .big { font: bold 30px "Lucida Console", monospace; color: #7f7; }
.dubs-list { flex: 1; padding: 4px; }
.dub { padding: 6px 8px; border-bottom: 1px solid #ddd; line-height: 1.45; }
.dub.big { background: #fffbe6; color: #000; border: 1px solid #b8860b; }
.dub-top { display: flex; align-items: center; gap: 4px; }
.drums { display: inline-flex; gap: 1px; }
.drums img { width: 16px; height: 16px; }
.drums img.off { opacity: 0.18; filter: grayscale(1); }
.mappool { display: flex; flex-direction: column; height: 100%; gap: 4px; }
.mp-tabs { display: flex; gap: 3px; align-items: center; flex: none; flex-wrap: wrap; }
.mp-body { flex: 1; padding: 6px 10px; }
.mp-lead { margin: 2px 0 8px; line-height: 1.4; }
.mp-foot { flex: none; padding: 2px 4px; }
.bars { width: 100%; border-collapse: collapse; }
.bars td { padding: 2px 4px; white-space: nowrap; }
.bars td.bar { width: 70%; }
.bars td.bar i { display: block; height: 12px; background: repeating-linear-gradient(90deg, #000080 0 6px, #1084d0 6px 8px); }
.bars td.num { text-align: right; width: 40px; }
.fav { display: flex; gap: 6px; align-items: center; padding: 3px 4px; cursor: pointer; }
.fav img { width: 16px; height: 16px; }
.fav:hover { text-decoration: underline; color: #000080; }
.fav.sel { background: var(--select); color: #fff; }
.logo-canvas { display: flex; align-items: center; justify-content: center; background: #1b2b2b; overflow: auto; padding: 10px; }
.logo-canvas svg { max-width: 100%; height: auto; }

/* ---------- Active Desktop widget ---------- */
#widget { position: absolute; right: 10px; top: 10px; width: 236px; z-index: 2; background: var(--face); box-shadow: var(--raised); padding: 3px; display: none; }
#widget.on { display: block; }
#widget .wtitle { height: 14px; background: linear-gradient(90deg, #808080, #b5b5b5); display: flex; justify-content: flex-end; align-items: center; padding: 0 2px; }
#widget .wtitle button { width: 12px; height: 10px; padding: 0; border: 0; background: var(--face); box-shadow: var(--raised-btn); font: bold 8px/8px Arial; }
#widget .wbody { background: #000 linear-gradient(180deg, #1a0d00, #000); color: #fff; padding: 6px 8px 8px; text-align: center; font: 11px Tahoma, sans-serif; }
#widget .wbody svg { width: 100%; height: auto; cursor: pointer; }
#widget .wrow { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-top: 1px dotted #444; text-align: left; cursor: pointer; }
#widget .wrow:hover { color: #f2c230; }
#widget .wrow b { color: #f2c230; white-space: nowrap; }
#widget .wrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
#wallLogos { position: absolute; inset: 0 0 30px 0; display: none; align-items: center; justify-content: center; pointer-events: none; background: radial-gradient(ellipse at center, #0d5050 0, #003a3a 60%, #001f1f 100%); }
#wallLogos.on { display: flex; }
#wallLogos svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
#tray .dubcount { display: flex; align-items: center; gap: 2px; cursor: default; }
@media (max-width: 700px) { #widget { display: none !important; } }
