/* Windows XP Luna — hand-built replica. Tahoma throughout. */
:root {
  --tb-top: #0058e6; --tb-mid: #3f8cf3; --tb-bot: #245edb;
  --tb-active-top: #3c81f0; --tb-active-bot: #1f4fc4;
  --title-top: #0058e6; --title-mid: #3f8cf3; --title-bottom: #0831d9;
  --title-text: #ffffff; --accent: #2f6fe4;
  --menu-bg: #ffffff; --sel: #316ac5; --sel-text: #ffffff;
  --btn-face: #ece9d8; --btn-hi: #ffffff; --btn-shadow: #aca899; --btn-dk: #716f64;
  --window-bg: #ece9d8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 11px; color: #000; background: #000; user-select: none;
  -webkit-user-select: none; cursor: default;
}
input, textarea { font-family: Tahoma, Verdana, sans-serif; font-size: 12px; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
button { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- wallpaper ---------- */
#wallpaper { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; background: #000; z-index: 10000; color: #fff; }
.boot-logo { position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.boot-word { font-size: 26px; letter-spacing: -1px; vertical-align: middle; margin-left: 14px; }
.boot-word b { font-weight: 600; }
.boot-word sup { font-size: 11px; }
.boot-flag { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: skewY(-7deg); vertical-align: middle; }
.boot-flag i { display: block; width: 30px; height: 26px; border-radius: 3px; }
.boot-flag i:nth-child(1) { background: #f65314; } .boot-flag i:nth-child(2) { background: #7cbb00; }
.boot-flag i:nth-child(3) { background: #00a1f1; } .boot-flag i:nth-child(4) { background: #ffbb00; }
.boot-flag.small i { width: 15px; height: 13px; }
.boot-bar { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); width: 156px; height: 16px; border: 1px solid #aaa; border-radius: 3px; overflow: hidden; padding: 2px; }
.boot-bar i { display: block; float: left; width: 10px; height: 10px; margin-right: 2px; background: linear-gradient(#7ba7f7, #2f5fdf); border-radius: 1px; animation: bootmove 1.4s linear infinite; }
@keyframes bootmove { 0% { transform: translateX(-16px); } 100% { transform: translateX(156px); } }
.boot-copy { position: absolute; bottom: 24px; width: 100%; text-align: center; font-size: 11px; color: #888; }

/* ---------- welcome ---------- */
#welcome { position: fixed; inset: 0; z-index: 9000; background: linear-gradient(180deg, #00309c 0%, #0058e6 18%, #0058e6 78%, #00309c 100%); color: #fff; }
.welcome-top { height: 13%; background: linear-gradient(180deg, #00309c, transparent); border-bottom: 1px solid rgba(255,255,255,.25); }
.welcome-mid { height: 74%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.welcome-brand { font-size: 26px; position: absolute; top: 22px; left: 28px; display: flex; align-items: center; gap: 10px; }
.welcome-rule { position: absolute; top: 84px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
.welcome-hint { position: absolute; right: 12%; top: 40%; font-size: 15px; }
.welcome-bottom { height: 13%; background: linear-gradient(0deg, #00309c, transparent); border-top: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 11px; }
.welcome-off { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.welcome-off:hover { text-decoration: underline; }
#welcome-users { display: flex; gap: 30px; margin-top: 20px; }
.wu { display: flex; align-items: center; gap: 12px; padding: 10px 26px 10px 12px; border-radius: 6px; cursor: pointer; }
.wu:hover { background: rgba(255,255,255,.16); }
.wu img, .wu canvas { width: 48px; height: 48px; border-radius: 5px; border: 2px solid rgba(255,255,255,.8); background: #fff; }
.wu .wu-name { font-size: 16px; }

/* ---------- desktop ---------- */
#desktop { position: fixed; inset: 0; z-index: 1; }
#icons { position: absolute; top: 0; left: 0; right: 0; bottom: 30px; z-index: 1; }
.dicon { position: absolute; width: 78px; padding: 4px 2px; text-align: center; color: #fff; text-shadow: 1px 1px 1px #000; cursor: default; }
.dicon .di-img { width: 34px; height: 34px; margin: 0 auto 3px; position: relative; }
.dicon .di-img svg { display: block; }
.dicon .di-label { display: inline; padding: 1px 3px; line-height: 14px; border: 1px solid transparent; }
.dicon.sel .di-img { filter: drop-shadow(0 0 2px #0b55c4); }
.dicon.sel .di-img svg { opacity: .65; }
.dicon.sel .di-label { background: #0b61c9; border: 1px dotted #ffe9a8; }
.dicon .rename { width: 76px; font-size: 11px; padding: 0; margin: 0; border: 1px solid #000; outline: none; text-shadow: none; color: #000; }
#marquee { position: absolute; border: 1px solid #0b61c9; background: rgba(49,106,197,.25); z-index: 2; pointer-events: none; }
#windows { position: absolute; inset: 0 0 30px 0; z-index: 3; pointer-events: none; }
#windows > * { pointer-events: auto; }

/* ---------- window chrome ---------- */
.win { position: absolute; min-width: 180px; min-height: 120px; background: var(--window-bg); border-radius: 8px 8px 0 0; box-shadow: 2px 3px 12px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: visible; }
.win.active { box-shadow: 3px 4px 16px rgba(0,0,0,.55); }
.titlebar { height: 28px; flex: 0 0 28px; border-radius: 7px 7px 0 0; display: flex; align-items: center; padding: 0 4px 0 6px; position: relative;
  background: linear-gradient(180deg, #9db9eb 0%, var(--title-mid) 12%, var(--title-top) 55%, var(--title-bottom) 100%); }
.win.inactive .titlebar { background: linear-gradient(180deg, #d6d3ce 0%, #b8b4ac 14%, #a6a29a 55%, #948f87 100%); }
.titlebar::before { content: ""; position: absolute; inset: 2px 3px auto 3px; height: 8px; border-radius: 5px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); }
.tb-icon { width: 16px; height: 16px; flex: 0 0 16px; margin-right: 4px; position: relative; }
.tb-icon svg { display: block; }
.tb-text { color: var(--title-text); font-weight: bold; font-size: 12px; text-shadow: 1px 1px 1px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; padding-right: 4px; }
.win.inactive .tb-text { color: #efece4; text-shadow: 1px 1px 1px rgba(0,0,0,.3); }
.tb-btns { display: flex; gap: 2px; flex: 0 0 auto; }
.tb-btn { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.65); border-radius: 3px; position: relative; cursor: default;
  background: linear-gradient(180deg, #7da5f7 0%, #3f76e4 50%, #2a5bd0 51%, #4a7fe8 100%); }
.tb-btn:hover { filter: brightness(1.14); }
.tb-btn:active { filter: brightness(.85); }
.tb-btn svg { position: absolute; inset: 0; margin: auto; }
.tb-btn.close { background: linear-gradient(180deg, #f3a48f 0%, #e3603c 45%, #d54419 50%, #e87b5c 100%); margin-left: 2px; }
.tb-btn.help { background: linear-gradient(180deg, #bce8ac 0%, #57b345 50%, #3a9427 51%, #6dc257 100%); }
.win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 3px solid var(--tb-bot); border-right: 3px solid var(--tb-bot); border-bottom: 3px solid var(--tb-bot); border-radius: 0 0 3px 3px; }
.win.maximized { border-radius: 0; }
.win.maximized .titlebar { border-radius: 0; }
.win.maximized .win-body { border-radius: 0; }
.win.minimizing { transition: transform .22s cubic-bezier(.5,0,.8,.4), opacity .22s; }
.win.restoring { transition: transform .2s cubic-bezier(.2,.7,.3,1), opacity .2s; }
.win.maxanim { transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
.win.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 50%{transform:translateX(6px)} 75%{transform:translateX(-4px)} }
.rs { position: absolute; z-index: 5; }
.rs.n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.rs.s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.rs.e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.rs.w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.rs.ne { top: -3px; right: -3px; width: 10px; height: 10px; cursor: ne-resize; }
.rs.nw { top: -3px; left: -3px; width: 10px; height: 10px; cursor: nw-resize; }
.rs.se { bottom: -3px; right: -3px; width: 10px; height: 10px; cursor: se-resize; }
.rs.sw { bottom: -3px; left: -3px; width: 10px; height: 10px; cursor: sw-resize; }

/* ---------- menus / buttons / controls ---------- */
.menubar { flex: 0 0 22px; display: flex; align-items: center; background: var(--btn-face); padding: 0 2px; border-bottom: 1px solid #d4d0c8; position: relative; z-index: 20; }
.menubar .m { padding: 3px 7px; cursor: default; }
.menubar .m.open, .menubar .m:hover.hot { background: var(--sel); color: #fff; }
.toolbar { flex: 0 0 28px; display: flex; align-items: center; gap: 2px; padding: 2px 4px; background: var(--btn-face); border-bottom: 1px solid #d4d0c8; }
.toolbar button, .xp-btn { background: var(--btn-face); border: 1px solid transparent; border-radius: 3px; padding: 3px 9px; font-size: 11px; cursor: default; min-height: 21px; }
.toolbar button:hover, .xp-btn:hover { border-color: #aca899; }
.xp-btn:active, .toolbar button:active, .xp-btn.pressed { border: 1px solid #716f64; box-shadow: inset 1px 1px 1px #aca899; }
.xp-btn:disabled { color: #aca899; }
.statusbar { flex: 0 0 20px; display: flex; align-items: center; gap: 3px; padding: 1px 5px; background: var(--btn-face); border-top: 1px solid #d4d0c8; font-size: 11px; }
.statusbar span { border: 1px solid; border-color: #aca899 #fff #fff #aca899; padding: 1px 5px; }
.menu-pop { position: absolute; background: var(--menu-bg); border: 1px solid #aca899; box-shadow: 2px 2px 4px rgba(0,0,0,.35); padding: 2px; z-index: 5000; font-size: 11px; min-width: 160px; }
.mi { display: flex; align-items: center; gap: 8px; padding: 4px 20px 4px 6px; cursor: default; white-space: nowrap; position: relative; }
.mi .mi-ico { width: 18px; height: 18px; flex: 0 0 18px; text-align: center; font-size: 14px; }
.mi .mi-key { margin-left: auto; padding-left: 22px; color: #555; }
.mi:hover:not(.disabled), .mi.sel { background: var(--sel); color: #fff; }
.mi:hover .mi-key { color: #fff; }
.mi.disabled { color: #b5b1a5; }
.mi.sep { height: 1px; padding: 0; margin: 3px 2px; background: #d4d0c8; pointer-events: none; }
.mi .sub { margin-left: auto; padding-left: 14px; }
.menu-banner { width: 25px; position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #3c74c7, #1d4aa5); color: #d9e6fb; overflow: hidden; }
.menu-banner span { position: absolute; bottom: 8px; left: 18px; transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap; font-weight: bold; font-size: 15px; letter-spacing: 1px; }
.start-menu { width: 392px; padding: 0; border: 1px solid #0a3ea8; border-radius: 6px 6px 0 0; overflow: hidden; }
.sm-head { height: 58px; background: linear-gradient(180deg, #3c81f3, #2463d6 60%, #1a4fb5); display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: #fff; }
.sm-head canvas, .sm-head img { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.75); border-radius: 5px; background: #fff; }
.sm-head b { font-size: 14px; text-shadow: 1px 1px 1px rgba(0,0,0,.4); }
.sm-cols { display: flex; background: #fff; }
.sm-left { flex: 1.12; background: #fff; padding: 5px 3px; }
.sm-right { flex: 1; background: #d3e5fa; border-left: 1px solid #95bdee; padding: 5px 3px; }
.sm-left .mi, .sm-right .mi { padding: 5px 8px; }
.sm-left .mi .mi-ico, .sm-right .mi .mi-ico { font-size: 22px; width: 26px; height: 26px; }
.sm-right .mi { color: #0b3a8c; }
.sm-right .mi .mi-ico { font-size: 17px; }
.mi small { display: block; color: #888; font-weight: normal; }
.sm-all { margin: 3px 2px 1px; text-align: center; font-weight: bold; padding: 5px; border-radius: 3px; cursor: default; }
.sm-all:hover, .sm-all.open { background: var(--sel); color: #fff; }
.sm-foot { height: 42px; background: linear-gradient(180deg, #2463d6, #1a4fb5); display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 12px; color: #fff; }
.sm-foot span { display: flex; align-items: center; gap: 5px; cursor: default; padding: 3px 4px; border-radius: 3px; }
.sm-foot span:hover { background: rgba(255,255,255,.18); }
.sm-foot .fico { font-size: 17px; }
.submenu { position: absolute; }

/* ---------- taskbar ---------- */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(180deg, var(--tb-mid) 0%, var(--tb-top) 9%, var(--tb-top) 85%, #1941a5 100%); display: flex; align-items: stretch; z-index: 4000; }
#startbtn { width: 100px; border: 0; border-radius: 0 12px 12px 0; cursor: default; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-style: italic; font-size: 17px; text-shadow: 1px 1px 1px rgba(0,0,0,.4); background: linear-gradient(180deg, #6db56d 0%, #3d9a44 10%, #2c8a35 50%, #247a2c 90%, #1b5e20 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 2px 0 4px rgba(0,0,0,.3); }
#startbtn:hover { filter: brightness(1.1); }
#startbtn.open, #startbtn:active { filter: brightness(.85); box-shadow: inset 1px 1px 3px rgba(0,0,0,.5); }
#startbtn .start-flag { transform: scale(.62) skewY(-7deg); margin-top: -2px; }
#quicklaunch { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 10px; margin-right: 4px; border-right: 1px solid rgba(0,0,0,0); position: relative; }
#quicklaunch::after { content: ""; position: absolute; right: 0; top: 5px; bottom: 5px; width: 1px; background: rgba(255,255,255,.22); }
#quicklaunch .ql { width: 22px; height: 22px; display: grid; place-items: center; font-size: 15px; cursor: default; border-radius: 2px; }
#quicklaunch .ql:hover { background: rgba(255,255,255,.2); }
#tasks { flex: 1; display: flex; gap: 3px; padding: 3px 4px; overflow: hidden; align-items: stretch; }
.task { max-width: 160px; min-width: 40px; flex: 1 1 160px; display: flex; align-items: center; gap: 4px; padding: 0 6px; color: #fff; font-size: 11px; cursor: default; border-radius: 3px;
  background: linear-gradient(180deg, #3c81f3 0%, #2c6ad8 9%, #245ed0 85%, #1c4fb4 100%); border: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 1px rgba(255,255,255,.25); }
.task .t-ico { width: 15px; height: 15px; flex: 0 0 15px; }
.task .t-ico svg { display: block; }
.task .t-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { filter: brightness(1.12); }
.task.active { background: linear-gradient(180deg, #16499f 0%, #1a479f 9%, #194aa2 85%, #123a85 100%); box-shadow: inset 1px 1px 3px rgba(0,0,0,.5); font-weight: bold; }
.task.min { opacity: .82; }
.task .t-count { background: rgba(0,0,0,.35); border-radius: 6px; padding: 0 4px; margin-left: auto; font-size: 10px; }
#tray { flex: 0 0 auto; min-width: 90px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 0 10px; color: #fff; font-size: 11px; background: linear-gradient(180deg, #1290e9 0%, #19b9f3 9%, #0ea5ec 85%, #0b86c8 100%); border-left: 1px solid #0b6bc4; box-shadow: inset 1px 0 rgba(255,255,255,.2); }
#tray-icons { display: flex; gap: 5px; font-size: 13px; align-items: center; }
#clock { white-space: nowrap; }
.balloon { position: absolute; right: 4px; bottom: 36px; width: 270px; background: #ffffe1; border: 1px solid #000; border-radius: 8px; padding: 10px 12px; box-shadow: 2px 2px 6px rgba(0,0,0,.4); z-index: 4500; font-size: 11px; }
.balloon b { display: block; margin-bottom: 4px; }
.balloon::after { content: ""; position: absolute; bottom: -10px; right: 18px; border: 8px solid transparent; border-top-color: #000; border-right-color: transparent; }

/* ---------- dialogs ---------- */
.dialog-shade { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; }
.dialog { width: 360px; background: #0b55c4; padding: 3px; border-radius: 9px; box-shadow: 4px 6px 22px rgba(0,0,0,.55); }
.dialog .dlg-head { color: #fff; font-weight: bold; font-size: 12px; padding: 6px 10px; text-shadow: 1px 1px 1px #000; }
.dialog .dlg-body { background: var(--btn-face); padding: 16px 14px; display: flex; gap: 12px; align-items: flex-start; }
.dialog .dlg-body .dlg-ico { font-size: 30px; flex: 0 0 36px; text-align: center; }
.dialog .dlg-btns { background: var(--btn-face); padding: 0 12px 12px; display: flex; gap: 8px; justify-content: center; }
.dialog .dlg-btns button { min-width: 78px; }
.dlg-input { width: 100%; margin-top: 8px; border: 1px solid #7f9db9; padding: 3px; }
#turnoff .dialog, #logoff .dialog { width: 420px; }
.to-row { display: flex; gap: 18px; justify-content: center; padding: 18px 10px 22px; background: var(--btn-face); }
.to-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: default; width: 86px; }
.to-opt .to-ico { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; font-size: 21px; border: 1px solid rgba(0,0,0,.25); }
.to-opt:hover .to-ico { filter: brightness(1.1); outline: 2px solid #f0c040; }
.to-opt.stand .to-ico { background: linear-gradient(#ffe68a, #e0a800); }
.to-opt.off .to-ico { background: linear-gradient(#f6a08a, #d84a22); }
.to-opt.restart .to-ico { background: linear-gradient(#a9d694, #3f9427); }
.to-opt span { font-size: 11px; text-align: center; }
#standby, #shutting-down { position: fixed; inset: 0; background: #000; z-index: 9500; color: #fff; display: grid; place-items: center; font-size: 18px; text-align: center; }
#shutting-down { background: linear-gradient(180deg, #00309c, #0058e6); }

/* ---------- app-specific ---------- */
.sink { background: #fff; border: 1px solid; border-color: #7f9db9 #fff #fff #7f9db9; overflow: auto; flex: 1; min-height: 0; }
textarea.np { width: 100%; height: 100%; border: 0; outline: none; resize: none; padding: 2px 4px; font: 13px "Lucida Console", Monaco, monospace; user-select: text; -webkit-user-select: text; background: #fff; }
.np-menu-open { position: relative; }
.pt-wrap { display: flex; flex: 1; min-height: 0; }
.pt-tools { flex: 0 0 56px; background: var(--btn-face); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; align-content: start; border-right: 1px solid #aca899; }
.pt-tools button { height: 25px; font-size: 14px; padding: 0; }
.pt-tools button.sel { border: 1px solid #716f64; box-shadow: inset 1px 1px 1px #aca899; background: #dcd8c8; }
.pt-canvas-area { flex: 1; overflow: auto; background: #808080; padding: 10px; display: grid; place-items: start center; }
.pt-canvas-area canvas { background: #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.6); cursor: crosshair; touch-action: none; }
.pt-colors { flex: 0 0 40px; background: var(--btn-face); border-top: 1px solid #aca899; display: flex; align-items: center; gap: 4px; padding: 3px 8px; }
.pt-swatch { width: 18px; height: 18px; border: 1px solid #555; cursor: default; }
.pt-current { width: 26px; height: 26px; border: 2px inset #fff; margin-right: 6px; }
.ms { background: var(--btn-face); padding: 6px; display: inline-block; border: 2px solid; border-color: #fff #7b7b7b #7b7b7b #fff; }
.ms-top { display: flex; justify-content: space-between; align-items: center; border: 2px inset #fff; padding: 4px 6px; margin-bottom: 6px; }
.ms-led { font-family: "Courier New", monospace; font-weight: bold; font-size: 20px; color: #f00; background: #000; padding: 0 3px; letter-spacing: 1px; }
.ms-face { width: 30px; height: 30px; font-size: 18px; border: 2px outset #fff; background: #c0c0c0; }
.ms-grid { display: grid; gap: 0; border: 3px inset #fff; }
.ms-cell { width: 20px; height: 20px; background: #c0c0c0; border: 2px outset #fff; font-weight: bold; font-size: 13px; text-align: center; line-height: 16px; cursor: default; font-family: Tahoma; }
.ms-cell.open { border: 1px solid #808080; background: #c0c0c0; cursor: default; }
.ms-cell.boom { background: #f00; }
.ms-n1 { color: #0000ff; } .ms-n2 { color: #008000; } .ms-n3 { color: #ff0000; } .ms-n4 { color: #000080; }
.ms-n5 { color: #800000; } .ms-n6 { color: #008080; } .ms-n7 { color: #000; } .ms-n8 { color: #808080; }
.ex { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ex-addr { flex: 0 0 24px; display: flex; gap: 4px; align-items: center; background: var(--btn-face); padding: 2px 5px; border-bottom: 1px solid #d4d0c8; }
.ex-addr input { flex: 1; border: 1px solid #7f9db9; padding: 2px 4px; font-size: 11px; }
.ex-main { display: flex; flex: 1; min-height: 0; }
.ex-side { flex: 0 0 180px; background: linear-gradient(180deg, #7ba2e7, #a9c4f0); padding: 8px; overflow: auto; }
.ex-card { background: #fff; border: 1px solid #8aa9df; border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.ex-card h4 { background: linear-gradient(90deg, #dbe9fc, #f4f8fd); color: #2153a4; padding: 4px 7px; font-size: 11px; cursor: default; }
.ex-card div { padding: 5px 9px; }
.ex-card a { display: block; color: #2153a4; padding: 2px 0; cursor: default; text-decoration: none; }
.ex-card a:hover { text-decoration: underline; color: #d04b00; }
.ex-view { flex: 1; background: #fff; overflow: auto; padding: 8px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; position: relative; }
.ex-item { width: 88px; text-align: center; padding: 5px 2px; border: 1px solid transparent; cursor: default; }
.ex-item .ex-ico { font-size: 30px; }
.ex-item .ex-lbl { display: inline; padding: 1px 2px; }
.ex-item.sel { background: #e8f0fb; }
.ex-item.sel .ex-lbl { background: var(--sel); color: #fff; }
.ex-thumb { font-size: 11px; color: #666; margin-top: 2px; }
.mp { background: linear-gradient(180deg, #1c1c2c, #101018); color: #cfd6ff; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mp-screen { flex: 1; margin: 8px; border: 2px solid #4a4a72; border-radius: 4px; background: #000; position: relative; overflow: hidden; }
.mp-screen canvas { width: 100%; height: 100%; display: block; }
.mp-controls { flex: 0 0 48px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.mp-controls button { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8890c0, #343454); border: 1px solid #666; color: #fff; font-size: 13px; }
.mp-track { flex: 1; }
.mp-track .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.mp-seek { height: 5px; background: #2a2a44; border-radius: 3px; margin-top: 5px; }
.mp-seek i { display: block; height: 100%; background: linear-gradient(90deg, #4a7bd0, #7fa8ef); border-radius: 3px; }
.cp-tabs { display: flex; gap: 1px; padding: 6px 6px 0; background: var(--btn-face); }
.cp-tab { padding: 3px 10px; border: 1px solid #aca899; border-bottom: 0; border-radius: 3px 3px 0 0; background: #e8e6d8; cursor: default; }
.cp-tab.sel { background: #fff; font-weight: bold; position: relative; top: 1px; }
.cp-page { flex: 1; background: #fff; margin: 0 6px 6px; border: 1px solid #aca899; padding: 12px; overflow: auto; }
.bg-opts { display: flex; gap: 14px; }
.bg-list { width: 170px; height: 150px; overflow: auto; border: 1px solid #7f9db9; background: #fff; }
.bg-list div { padding: 2px 6px; cursor: default; }
.bg-list div.sel { background: var(--sel); color: #fff; }
.monitor { width: 190px; height: 140px; border: 10px solid #cfcdc2; border-bottom-width: 22px; border-radius: 6px; background: #000; position: relative; }
.monitor canvas { width: 100%; height: 100%; display: block; }
.scheme-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ie-addr { flex: 0 0 26px; display: flex; gap: 4px; align-items: center; background: var(--btn-face); padding: 2px 4px; border-bottom: 1px solid #d4d0c8; }
.ie-addr input { flex: 1; border: 1px solid #7f9db9; padding: 2px 4px; font-size: 11px; }
.ie-page { flex: 1; overflow: auto; background: #fff; padding: 18px 26px; user-select: text; -webkit-user-select: text; }
.ie-page a { color: #0000cc; cursor: pointer; }
.ie-page.msn h1 { color: #0a58a8; font-size: 22px; }
.find-row { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.props { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.props .pr { display: flex; gap: 10px; }
.props .pr b { width: 80px; font-weight: normal; color: #444; }
.cm-item { position: relative; }
.cm-item.danger { color: #b00000; }
.cm-item.danger:hover { background: #b00000; color: #fff; }
