/* =====================================================================
   smirkOS stylesheet
   ===================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: Tahoma, 'Segoe UI', Verdana, sans-serif; font-size: 11px; color: #000; user-select: none; -webkit-user-select: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; }
svg { display: block; width: 100%; height: 100%; }
button { font-family: inherit; }

/* ------------------------------------------------------------- themes */
body {
  --frame: #0831d9; --frame-in: #7b96df;
  --title: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7);
  --title-in: linear-gradient(180deg, #7697e7, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7996de 25%, #7b99e1 56%, #82a9e9 81%, #80a5e7 89%, #7b96e1 94%, #7a93df 97%, #abbae3);
  --title-text: #fff; --title-shadow: 1px 1px #0f1089;
  --tbtn: radial-gradient(circle at 90% 90%, #0054e9 0, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%);
  --taskbar: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
  --tray: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9);
  --task: #3c81f3; --task-active: #1e52b7; --task-text: #fff;
  --sm-head: linear-gradient(180deg, #1868ce 0, #0e60cb 12%, #0e60cb 20%, #1164cf 32%, #1667cf 33%, #1b6cd3 47%, #1e70d9 54%, #2476dc 60%, #297ae0 65%, #3482e3 77%, #3786e5 79%, #428ee9 90%, #4791eb);
  --sm-foot: linear-gradient(180deg, #4282d6, #3b85e0 3%, #418ae3 5%, #418ae3 17%, #3c87e2 21%, #3786e4 26%, #3482e3 29%, #2e7ee1 39%, #2374df 49%, #2072db 57%, #196edb 62%, #176bd8 72%, #1468d6 75%, #1165d2 83%, #0f61cb 88%);
  --sm-right: #d3e5fa; --sm-border: #1854c2;
  --pane: linear-gradient(180deg, #7ba2e7, #6375d6); --pane-head: linear-gradient(90deg, #fff, #c6d3f7); --pane-body: #d6dff7; --pane-link: #215dc6;
  --sel: #316ac5;
}
body[data-theme=olive] {
  --frame: #8ba169; --frame-in: #c2cfa5;
  --title: linear-gradient(180deg, #d6e3b0, #a7bd7c 8%, #94ad66 40%, #8ca560 88%, #7e9852 95%, #627e38);
  --title-in: linear-gradient(180deg, #e8eecf, #d3ddb4 10%, #c9d5a7 60%, #bccb94);
  --title-shadow: 1px 1px #4d5f30;
  --tbtn: radial-gradient(circle at 90% 90%, #6f8f3a 0, #87a650 55%, #a2bc72 70%, #dbe7c2 90%, #fff 100%);
  --taskbar: linear-gradient(180deg, #e6edcf, #b8c98e 6%, #a3b878 25%, #97ae6a 65%, #8aa25c 90%, #7a904e);
  --tray: linear-gradient(180deg, #dbe3c0, #c4d39b 20%, #b5c78a 80%, #a4b878);
  --task: #a4b879; --task-active: #7d9550; --task-text: #fff;
  --sm-head: linear-gradient(180deg, #b7c98b, #a5ba76 40%, #98ae68 70%, #8ca25c);
  --sm-foot: linear-gradient(180deg, #b0c283, #9db270 50%, #8ca25c);
  --sm-right: #e9eedb; --sm-border: #8ba169;
  --pane: linear-gradient(180deg, #ccd9ad, #a7bb7f); --pane-head: linear-gradient(90deg, #fff, #e0e8cb); --pane-body: #f0f3e4; --pane-link: #4e6a24;
  --sel: #93a070;
}
body[data-theme=olive] #tray { color: #26310f; }
body[data-theme=silver] {
  --frame: #b5b5c8; --frame-in: #d8d8e2;
  --title: linear-gradient(180deg, #fff, #ececf3 8%, #d7d7e2 40%, #c9c9d8 88%, #b4b4c8 95%, #9898b0);
  --title-in: linear-gradient(180deg, #fff, #f1f1f5 30%, #e8e8ee);
  --title-text: #222; --title-shadow: 1px 1px #fff;
  --tbtn: radial-gradient(circle at 90% 90%, #9a9ab2 0, #b5b5c9 55%, #cfcfdd 70%, #eee 90%, #fff 100%);
  --taskbar: linear-gradient(180deg, #fff, #e8e8ee 10%, #d4d4de 50%, #c4c4d2 90%, #a6a6b9);
  --tray: linear-gradient(180deg, #fafafc, #e4e4ec 50%, #d0d0dc);
  --task: #e6e6ee; --task-active: #b8b8cb; --task-text: #111;
  --sm-head: linear-gradient(180deg, #d9d9e3, #c4c4d2 50%, #b0b0c4);
  --sm-foot: linear-gradient(180deg, #d4d4de, #bdbdcd 50%, #a6a6b9);
  --sm-right: #ebebf1; --sm-border: #9b9bb0;
  --pane: linear-gradient(180deg, #e2e2ea, #c3c3d3); --pane-head: linear-gradient(90deg, #fff, #e4e4ec); --pane-body: #f2f2f6; --pane-link: #3b3b6b;
  --sel: #8e8eb0;
}
body[data-theme=silver] #tray, body[data-theme=silver] .sm-head, body[data-theme=silver] .sm-fbtn { color: #222; text-shadow: none; }
body[data-theme=silver] .t-btns .tbtn:not(.t-close)::before, body[data-theme=silver] .t-btns .tbtn:not(.t-close)::after { border-color: #333; background-color: transparent; }
body[data-theme=silver] .t-min::before { background: #333 !important; }

/* ------------------------------------------------------------- screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: flex; }

/* power */
/* a beige PC on a desk in a dark room. Everything is sized in em, so the
   whole scene scales with the window from the font-size on .pc-scene. */
#power { align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 22%, #2b2f38, #14161b 45%, #050506 80%); }
.pc-scene { position: relative; flex: none; width: 100em; height: 62.5em; font-size: min(1vw, 1.6vh); transition: transform 1.05s cubic-bezier(.6, 0, .85, .4); }
.pc-black { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s .8s; }
.pc-zoom .pc-black { opacity: 1; }

/* desk */
.pc-desk { position: absolute; left: -200em; right: -200em; top: 45em; height: 120em; background: linear-gradient(180deg, #4a3423, #2c1e14 14%, #171009 40%); box-shadow: 0 -.1em 0 #6b4d34; }
.pc-desk::before { content: ''; position: absolute; inset: 0; opacity: .3; background: repeating-linear-gradient(91deg, transparent 0 3em, rgba(0, 0, 0, .3) 3em 3.1em, transparent 3.1em 7em, rgba(255, 220, 170, .05) 7em 7.2em); }
.pc-roomglow { position: absolute; left: -40em; right: -40em; top: -10em; bottom: -20em; opacity: 0; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 43% 50%, rgba(120, 170, 255, .28), transparent 70%); transition: opacity .5s; }
.pc-vignette { position: absolute; left: -200em; right: -200em; top: -60em; bottom: -60em; pointer-events: none; background: radial-gradient(ellipse 62em 46em at 50% 55%, transparent 55%, rgba(0, 0, 0, .55)); }

/* monitor */
.pc-monitor { position: absolute; left: 16em; top: 3.5em; width: 50em; height: 47em; }
.pc-bezel { position: absolute; inset: 0 0 5.5em; padding: 2.6em 2.8em 0; border-radius: 2.6em 2.6em 3em 3em; background: linear-gradient(160deg, #e0d8bf, #c6bda2 45%, #9f967c); box-shadow: inset .25em .25em .3em rgba(255, 255, 255, .55), inset -.3em -.4em .5em rgba(70, 60, 40, .5), 0 1.6em 3em rgba(0, 0, 0, .65); }
.pc-glass { position: relative; height: 31.6em; overflow: hidden; border-radius: 2.2em / 2.6em; background: radial-gradient(ellipse at 45% 40%, #2a2f2c, #101412 75%); box-shadow: 0 0 0 .55em #8f8770, 0 0 0 .7em #6d6653, inset 0 0 3.5em #000; }
.pc-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 26%, transparent 40%), radial-gradient(ellipse 34% 20% at 26% 16%, rgba(255, 255, 255, .13), transparent 70%); }
.pc-beam { position: absolute; inset: 0; opacity: 0; background: #e6f1ff; }
.pc-cursor { position: absolute; left: 1.6em; top: 1.2em; display: none; color: #d8d8d8; font: 2em 'Lucida Console', Consolas, monospace; animation: pc-blink .5s steps(1) infinite; }
@keyframes pc-blink { 50% { opacity: 0; } }
.pc-chin { position: relative; display: flex; align-items: center; gap: 1em; height: 5.4em; padding: .6em 1em 0; }
.pc-brand { margin-right: auto; color: #6d6552; font: bold 1.7em 'Trebuchet MS', Arial, sans-serif; letter-spacing: .03em; text-shadow: 0 .05em 0 rgba(255, 255, 255, .45); }
.pc-brand b { color: #b8651a; }
.pc-mon-led { width: .8em; height: .8em; border-radius: 50%; background: #ff9c26; box-shadow: 0 0 .8em #ff9c26; }
.pc-mon-btn { width: 2.4em; height: 1em; border-radius: .25em; background: linear-gradient(#cfc7ae, #a39a80); box-shadow: 0 .12em .15em rgba(0, 0, 0, .5), inset 0 .08em 0 rgba(255, 255, 255, .5); }
.pc-neck { position: absolute; left: 50%; bottom: 2em; width: 18em; height: 5em; margin-left: -9em; background: linear-gradient(90deg, #7c745e, #b5ac92 30%, #c5bca2 55%, #7c745e); }
.pc-base { position: absolute; left: 50%; bottom: 0; width: 30em; height: 3.2em; margin-left: -15em; border-radius: 1.2em 1.2em .6em .6em; background: linear-gradient(#c9c0a6, #8b8269); box-shadow: 0 1.2em 1.6em rgba(0, 0, 0, .7); }

/* sticky note */
.pc-note { position: absolute; right: -4.4em; bottom: 8.2em; z-index: 2; width: 13.5em; padding: 1em 1.1em 1.2em; transform: rotate(3deg); transform-origin: 50% 0; color: #2a3a78; background: linear-gradient(170deg, #fff58a, #f4e25e); box-shadow: .2em .5em .7em rgba(0, 0, 0, .55); font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; }
.pc-note b { display: block; margin-bottom: .4em; font-size: 1.4em; line-height: 1.2; }
.pc-note span { display: block; font-size: 1.1em; line-height: 1.4; opacity: .85; }

/* tower */
.pc-tower { position: absolute; left: 70em; top: 7.5em; width: 17.5em; height: 42em; padding: 1.3em 1.5em; border-radius: .8em .8em .4em .4em; background: linear-gradient(100deg, #e0d8bf, #c9c0a6 50%, #a79e84); box-shadow: inset .2em .2em .3em rgba(255, 255, 255, .55), inset -.3em -.3em .4em rgba(70, 60, 40, .5), 1.2em 1.4em 2.4em rgba(0, 0, 0, .7); }
.pc-bay { position: relative; height: 3.5em; margin-bottom: .3em; border-radius: .2em; background: linear-gradient(#d4ccb3, #b5ac92); box-shadow: 0 .1em .1em rgba(0, 0, 0, .4), inset 0 .08em 0 rgba(255, 255, 255, .5); }
.pc-cd i { position: absolute; left: .7em; right: .7em; top: 1.7em; height: .12em; background: #7c745e; }
.pc-cd u { position: absolute; right: .9em; bottom: .3em; width: 1.5em; height: .5em; border-radius: .1em; background: #a39a80; box-shadow: 0 .08em .1em rgba(0, 0, 0, .5); }
.pc-floppy { height: 2.5em; }
.pc-floppy i { position: absolute; left: 1.4em; right: 1.4em; top: .75em; height: .55em; border-radius: .2em; background: #24211b; box-shadow: inset 0 .1em .15em #000; }
.pc-floppy u { position: absolute; right: 1.5em; bottom: .3em; width: 1.2em; height: .45em; border-radius: .1em; background: #a39a80; }
.pc-panel { display: flex; align-items: center; gap: 1.5em; margin-top: 1.5em; }
#power-btn { position: relative; flex: none; width: 7em; height: 7em; padding: 1.7em; border: 0; border-radius: 50%; cursor: pointer; font-size: inherit; background: radial-gradient(circle at 38% 32%, #ede5cd, #c0b79d 60%, #958c73); box-shadow: 0 0 0 .3em #8f8770, 0 .35em .5em rgba(0, 0, 0, .55), inset 0 .1em .15em rgba(255, 255, 255, .7); transition: transform .08s, box-shadow .08s; }
#power-btn::after { content: ''; position: absolute; inset: -.55em; border-radius: 50%; animation: pc-pulse 2s ease-in-out infinite; pointer-events: none; }
#power-btn:hover::after, #power-btn:focus-visible::after { animation: none; box-shadow: 0 0 0 .22em #68b4ff, 0 0 2.6em .5em rgba(80, 160, 255, .85); }
#power-btn:focus { outline: none; }
#power-btn:active, .pc-on #power-btn { transform: scale(.94) translateY(.1em); box-shadow: 0 0 0 .3em #8f8770, 0 .08em .15em rgba(0, 0, 0, .6), inset 0 .15em .3em rgba(0, 0, 0, .35); }
.pc-on #power-btn::after { display: none; }
#power-btn span, #power-btn svg { display: block; width: 100%; height: 100%; }
@keyframes pc-pulse { 0%, 100% { box-shadow: 0 0 0 .14em rgba(80, 160, 255, .35), 0 0 1em .1em rgba(80, 160, 255, .2); } 50% { box-shadow: 0 0 0 .2em rgba(104, 180, 255, .9), 0 0 2.2em .4em rgba(80, 160, 255, .6); } }
.pc-side { display: flex; flex-direction: column; gap: 1em; align-items: center; }
.pc-led { width: 1em; height: 1em; border-radius: 50%; box-shadow: inset 0 .1em .2em rgba(0, 0, 0, .6), 0 .05em 0 rgba(255, 255, 255, .4); }
.pc-led.pwr { background: #2e4a2c; }
.pc-led.hdd { background: #4e3a1e; }
.pc-reset { width: 1.3em; height: 1.3em; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #d4ccb3, #8f8770); box-shadow: 0 .1em .15em rgba(0, 0, 0, .55); }
.pc-sticker { display: inline-flex; flex-direction: column; margin-top: 1.6em; padding: .6em .9em; border-radius: .25em; color: #e8ecf5; font: bold 1.3em 'Trebuchet MS', Arial, sans-serif; line-height: 1; background: linear-gradient(135deg, #1f3c8f, #0e1d52); box-shadow: 0 .05em .12em rgba(0, 0, 0, .5); }
.pc-sticker b { color: #ff9a2e; }
.pc-sticker small { margin-top: .25em; font-size: .5em; letter-spacing: .34em; opacity: .75; }
.pc-vents { position: absolute; left: 1.8em; right: 1.8em; bottom: 1.6em; height: 7em; background: repeating-linear-gradient(180deg, #5b5442 0 .32em, transparent .32em .9em); opacity: .75; }

/* keyboard + mouse */
.pc-keyboard { position: absolute; left: 21em; top: 51.5em; width: 40em; height: 9.5em; padding: .6em .8em; border-radius: .6em; background: linear-gradient(#d3cbb2, #a79e84); box-shadow: 0 1.2em 1.6em rgba(0, 0, 0, .7), inset 0 .12em 0 rgba(255, 255, 255, .5); transform: perspective(40em) rotateX(38deg); transform-origin: 50% 100%; }
.pc-keys { height: 100%; border-radius: .2em; background-image: repeating-linear-gradient(90deg, #3a362c 0 .16em, transparent .16em 2.1em), repeating-linear-gradient(180deg, #e0d9c3 0 1.45em, #3a362c 1.45em 1.6em); }
.pc-mouse { position: absolute; left: 66em; top: 52.5em; width: 4.2em; height: 6.6em; border-radius: 2.1em 2.1em 2.4em 2.4em; background: linear-gradient(120deg, #e0d8bf, #a79e84); box-shadow: .3em .9em 1em rgba(0, 0, 0, .7); }
.pc-mouse::before { content: ''; position: absolute; left: 50%; top: 0; width: .1em; height: 2.6em; background: #6d6552; }

/* powering on */
.pc-on .pc-led.pwr { background: #54ff5e; box-shadow: 0 0 1.1em #3dff4c, 0 0 .3em #b8ffbd; }
.pc-on .pc-led.hdd { animation: pc-hdd .55s steps(1) infinite; }
@keyframes pc-hdd { 0%, 30%, 70% { background: #ffae2e; box-shadow: 0 0 1em #ff9c26; } 20%, 50%, 90% { background: #4e3a1e; box-shadow: none; } }
.pc-crt .pc-mon-led { background: #54ff5e; box-shadow: 0 0 .9em #3dff4c; }
.pc-crt .pc-glass { background: #000; animation: pc-shake .24s linear 2; }
.pc-crt .pc-sheen { opacity: .4; }
.pc-crt .pc-beam { animation: pc-beam .6s ease-out both; }
.pc-crt .pc-roomglow { opacity: 1; }
.pc-crt .pc-note { animation: pc-fall .9s .1s cubic-bezier(.5, 0, .9, .5) forwards; }
.pc-lit .pc-cursor { display: block; }
.pc-lit .pc-roomglow { opacity: .35; }
@keyframes pc-beam { 0% { opacity: 1; transform: scale(0, .004); } 30% { opacity: 1; transform: scale(1, .006); } 62% { opacity: .9; transform: scale(1, 1); } 100% { opacity: 0; transform: scale(1, 1); } }
@keyframes pc-shake { 25% { transform: translate(.08em, -.05em); } 75% { transform: translate(-.08em, .05em); } }
@keyframes pc-fall { to { transform: translate(-1em, 42em) rotate(-24deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pc-scene { transition: none; } #power-btn::after { animation: none; box-shadow: 0 0 0 .2em #68b4ff; } .pc-crt .pc-beam, .pc-crt .pc-glass, .pc-crt .pc-note { animation: none; } .pc-crt .pc-note { opacity: 0; } }

/* bios */
#bios { display: none; background: #000; color: #c0c0c0; font: 16px/1.3 'Lucida Console', 'Courier New', monospace; padding: 24px 30px; cursor: default; }
#bios.active { display: block; }
#bios-text { margin: 0; white-space: pre-wrap; font: inherit; }
#bios-foot { position: absolute; left: 30px; bottom: 22px; margin: 0; font: inherit; white-space: pre; }
#bios-logo { position: absolute; right: 30px; top: 24px; display: flex; align-items: center; gap: 8px; border: 2px solid #4fa3ff; padding: 6px 12px; color: #4fa3ff; font: bold 20px/1.05 Arial, sans-serif; }
#bios-logo small { font-size: 11px; letter-spacing: 1px; color: #9fd0ff; }
.bl-face { width: 44px; height: 44px; }

/* bios setup */
#setup { background: #0000aa; align-items: center; justify-content: center; font: 16px/1.4 'Lucida Console', 'Courier New', monospace; color: #fff; }
.su-wrap { width: min(860px, 96vw); border: 3px double #fff; padding: 0 0 6px; }
.su-title { background: #aaa; color: #0000aa; text-align: center; padding: 3px; }
.su-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(7, auto); padding: 14px 26px; gap: 4px 30px; border-bottom: 3px double #fff; color: #ffff55; }
.su-item { padding: 1px 6px; cursor: pointer; }
.su-item.sel { background: #aa0000; color: #fff; }
.su-keys { display: flex; justify-content: space-around; padding: 8px; border-bottom: 3px double #fff; }
.su-desc { text-align: center; padding: 8px; color: #fff; min-height: 34px; }

/* boot */
#boot { background: #000; align-items: center; justify-content: center; cursor: default; }
.boot-center { display: flex; flex-direction: column; align-items: center; gap: 70px; opacity: 0; transition: opacity .6s; }
#boot.ready .boot-center, #boot.ready .boot-copy, #boot.ready .boot-corp { opacity: 1; }
.boot-bar { width: 164px; height: 22px; border: 2px solid #b2b2b2; border-radius: 6px; position: relative; overflow: hidden; }
.boot-blocks { position: absolute; top: 2px; left: 0; display: flex; gap: 2px; animation: bootbar 2.2s linear infinite; }
.boot-blocks i { width: 9px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #2838c7, #5979ef 40%, #869ef3 50%, #5979ef 60%, #2838c7); }
@keyframes bootbar { from { transform: translateX(-36px); } to { transform: translateX(168px); } }
.boot-copy { position: absolute; left: 26px; bottom: 22px; color: #fff; font-size: 13px; opacity: 0; transition: opacity .6s; }
.boot-corp { position: absolute; right: 26px; bottom: 16px; color: #fff; font: italic bold 22px 'Trebuchet MS', sans-serif; opacity: 0; transition: opacity .6s; }

/* logo block (boot, login, about) */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-face { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.logo-corp { font: bold 13px 'Trebuchet MS', Arial; opacity: .9; margin-left: 2px; }
.logo-word { font: bold 46px 'Trebuchet MS', Arial, sans-serif; letter-spacing: -1px; }
.logo-word span { color: #ff9a2e; }
.logo-ed { font: italic 16px 'Trebuchet MS', Arial; align-self: flex-end; color: #fff; }
.boot-logo .logo-face { width: 76px; height: 76px; }
.boot-logo .logo-word { font-size: 54px; }

/* login + shutdown screens */
#login, #shutscreen { flex-direction: column; background: #5a7edc; }
.lg-top { height: 12%; min-height: 56px; background: #00309c; position: relative; }
.lg-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #00309c, #9cb6ee 25%, #fff 50%, #9cb6ee 75%, #00309c); }
.lg-bot { height: 13%; min-height: 70px; background: #00309c; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.lg-bot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #00309c, #f99736 25%, #ffd9a6 50%, #f99736 75%, #00309c); }
.lg-mid { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; background: radial-gradient(circle at 8% 8%, #a4c0f4 0, #7a9be6 22%, #5a7edc 50%); }
.lg-left { flex: 1; display: flex; flex-direction: column; align-items: flex-end; padding-right: 36px; gap: 16px; color: #fff; }
.lg-hint { font-size: 17px; color: #fff; }
.lg-div { width: 1px; align-self: stretch; margin: 6% 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.9) 25%, rgba(255,255,255,.9) 75%, transparent); }
.lg-right { flex: 1; padding-left: 36px; }
.lg-user { display: flex; align-items: center; gap: 14px; padding: 8px 40px 8px 8px; border-radius: 8px; cursor: pointer; background: none; border: 0; color: #fff; font: 20px Tahoma, sans-serif; width: 340px; text-align: left; }
.lg-user:hover { background: linear-gradient(90deg, #00309c, rgba(90,126,220,0)); }
.lg-user .pic { width: 58px; height: 58px; border: 3px solid #fff; border-radius: 6px; background: #fff6cf; padding: 4px; box-shadow: 1px 1px 4px rgba(0,0,0,.4); flex: none; }
.lg-user:hover .pic { border-color: #ffcc33; }
.lg-user .sub { font-size: 12px; color: #c9d9ff; margin-top: 3px; }
.lg-welcome { display: none; font: italic bold 60px 'Trebuchet MS', sans-serif; color: #fff; text-shadow: 3px 3px 5px #1c3d8c; }
#login.welcoming .lg-left, #login.welcoming .lg-right, #login.welcoming .lg-div { display: none; }
#login.welcoming .lg-welcome { display: block; animation: fadein .6s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lg-off { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font: 14px Tahoma, sans-serif; cursor: pointer; }
.lg-off .ic { width: 28px; height: 28px; }
.lg-off:hover { text-decoration: underline; }
.lg-note { color: #fff; font-size: 12px; text-align: right; line-height: 1.5; }
.sd-mid-screen { flex-direction: column; gap: 30px; }
#shut-msg { color: #fff; font-size: 18px; }

/* off */
#off { background: #000; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; }
.off-msg { color: #ff9a2e; font: bold 30px 'Trebuchet MS', Arial, sans-serif; text-align: center; line-height: 1.3; }
.off-hint { color: #555; font-size: 12px; }
#standby { position: fixed; inset: 0; background: #000; z-index: 5000001; display: none; cursor: none; }
#standby.on { display: block; }
#screensaver { position: fixed; inset: 0; background: #000; z-index: 5000000; display: none; cursor: none; }
#screensaver.on { display: block; }
#screensaver canvas { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------- desktop */
#desktop { display: none; background-color: #3a6ea5; background-size: cover; background-position: center; }
#desktop.active { display: block; }
#desktop.graying { filter: grayscale(1) brightness(.9); transition: filter 1.4s; }
#workarea { position: absolute; left: 0; top: 0; right: 0; bottom: 30px; overflow: hidden; }
#icons { position: absolute; inset: 0; transition: opacity .1s; }
.dicon { position: absolute; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px; cursor: default; }
.dicon .ic { width: 36px; height: 36px; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35)); }
.dicon .lbl { color: #fff; text-align: center; text-shadow: 1px 1px 1px #000, 0 0 3px #000; font-size: 11px; padding: 1px 3px; line-height: 1.25; max-width: 78px; overflow-wrap: break-word; }
.dicon.selected .lbl { background: #0b61ff; text-shadow: none; outline: 1px dotted #fff; }
.dicon.selected .ic { filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35)) sepia(1) hue-rotate(180deg) saturate(3) brightness(.8); }
.dicon.dragging-icon { opacity: .7; z-index: 5; }
.sel-rect { position: absolute; border: 1px solid #3a6ccf; background: rgba(49,106,197,.25); pointer-events: none; z-index: 4; }

/* taskbar */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--taskbar); display: flex; align-items: center; z-index: 900000; }
#start-btn { height: 30px; padding: 0 22px 0 8px; border: 0; border-radius: 0 12px 12px 0; cursor: pointer; display: flex; align-items: center; gap: 5px; color: #fff; font: italic bold 19px 'Franklin Gothic Medium', 'Trebuchet MS', Arial, sans-serif; text-shadow: 1px 1px 2px #222; background: radial-gradient(ellipse at 50% 0%, #79d46f 0, transparent 60%), linear-gradient(180deg, #3c9b3c 0, #55c055 10%, #3fae3f 22%, #36a336 50%, #2f962f 80%, #217a21); box-shadow: inset -3px 0 4px rgba(0,0,0,.25), 2px 0 3px rgba(0,0,0,.35); flex: none; }
#start-btn:hover { filter: brightness(1.1); }
#start-btn.pressed { filter: brightness(.82); box-shadow: inset 2px 2px 4px rgba(0,0,0,.5); }
.sb-ic { width: 22px; height: 22px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5)); }
.sb-tx { margin-right: 2px; padding-bottom: 2px; }
#quick { display: flex; gap: 1px; padding: 0 6px 0 8px; border-right: 1px solid rgba(0,0,0,.25); box-shadow: 1px 0 rgba(255,255,255,.2); height: 22px; align-items: center; flex: none; }
.ql { width: 22px; height: 22px; padding: 2px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; }
.ql:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
#tasks { flex: 1; display: flex; gap: 3px; padding: 0 6px; overflow: hidden; min-width: 0; }
.task { flex: 0 1 165px; min-width: 36px; height: 24px; border: 0; border-radius: 3px; background: var(--task); color: var(--task-text); display: flex; align-items: center; gap: 5px; padding: 0 8px; box-shadow: inset -1px -1px rgba(0,0,0,.3), inset 1px 1px rgba(255,255,255,.35); font-size: 11px; cursor: default; text-align: left; }
.task:hover { filter: brightness(1.1); }
.task.active { background: var(--task-active); box-shadow: inset 1px 1px 3px rgba(0,0,0,.55); }
.task .ti { width: 16px; height: 16px; flex: none; }
.task .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tray { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; background: var(--tray); border-left: 1px solid #092e51; box-shadow: inset 1px 0 1px #18bbff; color: #fff; flex: none; }
#tray-icons { display: flex; gap: 5px; }
.tray-ic { width: 16px; height: 16px; cursor: pointer; }
#clock { font-size: 11px; white-space: nowrap; cursor: default; }

/* balloon */
.balloon { position: absolute; right: 10px; bottom: 42px; width: 290px; background: #ffffe1; border: 1px solid #000; border-radius: 8px; padding: 9px 26px 10px 11px; box-shadow: 2px 3px 6px rgba(0,0,0,.4); z-index: 900002; font-size: 11px; line-height: 1.4; animation: fadein .3s; }
.balloon::after { content: ''; position: absolute; right: 52px; bottom: -11px; border: 11px solid transparent; border-top-color: #ffffe1; border-bottom: 0; border-right: 0; filter: drop-shadow(1px 1px 0 #000); }
.balloon h4 { margin: 0 0 5px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.balloon .ic { width: 16px; height: 16px; }
.bl-x { position: absolute; right: 6px; top: 5px; width: 16px; height: 16px; padding: 0; border: 1px solid #b8b8a0; border-radius: 3px; background: #fff; line-height: 12px; cursor: pointer; font-size: 13px; }
.bl-x:hover { background: #e9573b; color: #fff; border-color: #a33; }

/* start menu */
#startmenu { position: absolute; left: 0; bottom: 30px; width: 392px; z-index: 900001; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 3px 3px 10px rgba(0,0,0,.5); border: 1px solid var(--sm-border); border-bottom: 0; background: #fff; display: flex; flex-direction: column; animation: smopen .12s ease-out; }
#startmenu[hidden] { display: none; }
@keyframes smopen { from { transform: translateY(8px); } to { transform: none; } }
.sm-head { height: 62px; display: flex; align-items: center; gap: 9px; padding: 6px 9px; background: var(--sm-head); color: #fff; font: bold 15px 'Trebuchet MS', Tahoma, sans-serif; text-shadow: 1px 1px 2px rgba(0,0,0,.7); }
.sm-pic { width: 48px; height: 48px; border: 2px solid #fff; border-radius: 4px; background: #fff6cf; box-shadow: 0 0 3px rgba(0,0,0,.6); padding: 3px; flex: none; }
.sm-line { height: 2px; background: linear-gradient(90deg, transparent, #f2a13b 40%, #f2a13b 60%, transparent); }
.sm-body { display: flex; min-height: 330px; }
.sm-left { flex: 1; background: #fff; padding: 6px 0 4px; display: flex; flex-direction: column; }
.sm-right { width: 188px; background: var(--sm-right); border-left: 1px solid #95bdee; padding: 6px 0; }
.sm-item { display: flex; align-items: center; gap: 7px; padding: 3px 6px; margin: 1px 4px; cursor: default; color: #000; border-radius: 2px; }
.sm-item:hover { background: var(--sel); color: #fff; }
.sm-item:hover .sm-sub { color: #dbe6fa; }
.sm-left .sm-item > .ic { width: 32px; height: 32px; flex: none; }
.sm-right .sm-item > .ic { width: 22px; height: 22px; flex: none; }
.sm-right .sm-item { color: #0a246a; }
.sm-right .sm-item:hover { color: #fff; }
.sm-item.bold .sm-lbl, .sm-item.pinned .sm-lbl { font-weight: bold; }
.sm-txt { display: flex; flex-direction: column; }
.sm-sub { color: #777; font-size: 10px; }
.sm-sep { height: 1px; margin: 5px 10px; background: linear-gradient(90deg, transparent, #c5c5c5 20%, #c5c5c5 80%, transparent); }
.sm-grow { flex: 1; }
.sm-all { justify-content: center; gap: 8px; font-weight: bold; padding: 5px; }
.sm-all .ic { width: 20px; height: 20px; }
.sm-foot { height: 40px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 0 8px; background: var(--sm-foot); }
.sm-fbtn { display: flex; align-items: center; gap: 5px; color: #fff; background: none; border: 0; font-size: 11px; padding: 3px 6px; cursor: pointer; border-radius: 3px; }
.sm-fbtn .ic { width: 22px; height: 22px; }
.sm-fbtn:hover { background: rgba(255,255,255,.18); }

/* ------------------------------------------------------------- windows */
.window { position: absolute; display: flex; flex-direction: column; background: #ece9d8; border: 3px solid var(--frame); border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 2px 4px 14px rgba(0,0,0,.4); animation: winopen .14s ease-out; }
.window.inactive { --frame: var(--frame-in); box-shadow: 1px 2px 8px rgba(0,0,0,.25); }
@keyframes winopen { from { transform: scale(.96); } to { transform: none; } }
.window.minimized { display: none; }
.window.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.window.maximized .titlebar { border-radius: 0; }
.titlebar { height: 30px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 5px 0 7px; margin: 0 -3px; background: var(--title); border-radius: 8px 8px 0 0; color: var(--title-text); font: bold 13px 'Trebuchet MS', Tahoma, sans-serif; text-shadow: var(--title-shadow); cursor: default; }
.inactive .titlebar { background: var(--title-in); color: #d8e4f8; }
body[data-theme=silver] .inactive .titlebar { color: #888; }
.t-icon { width: 16px; height: 16px; flex: none; }
.t-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 2px; }
.t-btns { display: flex; gap: 2px; flex: none; }
.tbtn { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; padding: 0; position: relative; background: var(--tbtn); cursor: pointer; box-shadow: inset 0 -1px 2px rgba(0,0,0,.2); }
.tbtn:hover { filter: brightness(1.18); }
.tbtn:active { filter: brightness(.8); }
.inactive .tbtn { opacity: .75; }
.t-close { background: radial-gradient(circle at 90% 90%, #cc4600 0, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.t-min::before { content: ''; position: absolute; left: 4px; bottom: 4px; width: 8px; height: 3px; background: #fff; }
.t-max::before { content: ''; position: absolute; left: 4px; top: 4px; width: 11px; height: 11px; border: 1px solid #fff; border-top-width: 3px; }
.maximized .t-max::before { left: 3px; top: 7px; width: 8px; height: 8px; }
.maximized .t-max::after { content: ''; position: absolute; left: 7px; top: 3px; width: 8px; height: 8px; border: 1px solid #fff; border-top-width: 3px; border-left: 0; border-bottom: 0; }
.t-close::before, .t-close::after { content: ''; position: absolute; left: 8.5px; top: 3px; width: 2px; height: 13px; background: #fff; transform: rotate(45deg); }
.t-close::after { transform: rotate(-45deg); }
.w-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.rs { position: absolute; z-index: 3; }
.rs-n { top: -3px; left: 8px; right: 8px; height: 5px; cursor: n-resize; }
.rs-s { bottom: -4px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.rs-e { right: -4px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.rs-w { left: -4px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.rs-ne { right: -4px; top: -3px; width: 10px; height: 10px; cursor: ne-resize; }
.rs-nw { left: -4px; top: -3px; width: 10px; height: 10px; cursor: nw-resize; }
.rs-se { right: -4px; bottom: -4px; width: 12px; height: 12px; cursor: se-resize; }
.rs-sw { left: -4px; bottom: -4px; width: 12px; height: 12px; cursor: sw-resize; }
.maximized .rs { display: none; }
body.dragging iframe { pointer-events: none; }
body.dragging { cursor: default; }

/* dialogs */
.window.dialog { min-width: 270px; max-width: 480px; }
.window.dialog .w-body { padding: 12px 12px 11px; gap: 10px; }
.window.nopad .w-body { padding: 0; gap: 0; }
.dlg-main { display: flex; gap: 14px; align-items: flex-start; }
.dlg-icon { width: 32px; height: 32px; flex: none; }
.dlg-text { white-space: pre-line; line-height: 1.5; max-width: 380px; padding-top: 2px; }
.dlg-lbl { line-height: 1.4; }
.dlg-btns { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
.dlg-btns.right { justify-content: flex-end; }
.dlg-row { display: flex; align-items: center; gap: 8px; }
.dlg-col { display: flex; flex-direction: column; gap: 4px; }
.xp-btn { min-width: 75px; height: 23px; padding: 0 10px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); font: 11px Tahoma, sans-serif; color: #000; cursor: default; }
.xp-btn:hover { box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a; }
.xp-btn:focus-visible, .xp-btn:focus { outline: 1px dotted #000; outline-offset: -4px; }
.xp-btn:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); }
.xp-input { border: 1px solid #7f9db9; height: 21px; padding: 2px 4px; font: 11px Tahoma, sans-serif; outline: none; background: #fff; }
.xp-select { border: 1px solid #7f9db9; height: 21px; font: 11px Tahoma, sans-serif; background: #fff; }
.xp-color { width: 60px; height: 24px; padding: 0 2px; border: 1px solid #7f9db9; background: #fff; }
.xp-field { border: 1px solid #d0d0bf; border-radius: 4px; padding: 8px 10px 10px; margin: 8px 0 0; }
.xp-field legend { color: #0046d5; padding: 0 3px; }
.listbox { border: 1px solid #7f9db9; background: #fff; height: 110px; overflow: auto; }
.lb-item { display: flex; align-items: center; gap: 6px; padding: 2px 4px; cursor: default; }
.lb-item .ic { width: 16px; height: 16px; flex: none; }
.lb-item.sel { background: var(--sel); color: #fff; }
.tabs { display: flex; padding-left: 4px; position: relative; z-index: 1; }
.tab { padding: 3px 9px 4px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #fff, #ecebe5 80%, #d8d0c4); margin-right: -1px; position: relative; top: 1px; cursor: default; }
.tab:hover { border-top: 2px solid #ffc83c; padding-top: 2px; }
.tab.on { background: #fcfcfe; border-top: 2px solid #ffc83c; padding: 2px 9px 6px; top: 1px; margin-top: -2px; z-index: 2; }
.tab-panel { border: 1px solid #919b9c; background: #fcfcfe; padding: 12px; min-height: 230px; box-shadow: 1px 1px 1px rgba(0,0,0,.1); }
.mon { width: 184px; height: 142px; margin: 0 auto 18px; background: linear-gradient(180deg, #ebe8dc, #c9c4b0); border-radius: 8px; padding: 12px 12px 20px; position: relative; box-shadow: inset 0 0 0 1px #888; }
.mon::after { content: ''; position: absolute; left: 62px; bottom: -12px; width: 60px; height: 12px; background: #b6b19c; border-radius: 0 0 8px 8px; }
.mon-screen { width: 100%; height: 100%; background-size: cover; background-position: center; border: 1px solid #555; display: flex; align-items: center; justify-content: center; color: #9fd0ff; font-size: 10px; overflow: hidden; }
.appear-sample { height: 150px; background: #3a6ea5; border: 1px solid #555; padding: 16px 24px; }
.as-win { border: 3px solid var(--frame); border-top: 0; border-radius: 7px 7px 0 0; background: #ece9d8; }
.as-tb { height: 24px; margin: 0 -3px; border-radius: 7px 7px 0 0; background: var(--title); color: var(--title-text); text-shadow: var(--title-shadow); font: bold 12px 'Trebuchet MS'; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; }
.as-x { width: 17px; height: 17px; border: 1px solid #fff; border-radius: 3px; background: radial-gradient(circle at 90% 90%, #cc4600 0, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.as-body { padding: 18px 12px; display: flex; justify-content: space-between; align-items: center; }
.appear-sample[data-theme=blue] { --frame: #0831d9; --title: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #003dd7); --title-text: #fff; --title-shadow: 1px 1px #0f1089; }
.appear-sample[data-theme=olive] { --frame: #8ba169; --title: linear-gradient(180deg, #d6e3b0, #a7bd7c 8%, #94ad66 40%, #8ca560 88%, #627e38); --title-text: #fff; --title-shadow: 1px 1px #4d5f30; }
.appear-sample[data-theme=silver] { --frame: #b5b5c8; --title: linear-gradient(180deg, #fff, #ececf3 8%, #d7d7e2 40%, #c9c9d8 88%, #9898b0); --title-text: #222; --title-shadow: 1px 1px #fff; }

/* context menus + menubar */
.ctx-menu { position: fixed; z-index: 1000000; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 4px rgba(0,0,0,.35); padding: 2px; min-width: 160px; font-size: 11px; color: #000; }
.ctx-menu.sub { position: absolute; left: 100%; top: -3px; display: none; }
.ctx-menu.sub.flip { left: auto; right: 100%; }
.ctx-item.has-sub:hover > .ctx-menu.sub { display: block; }
.ctx-item { position: relative; display: flex; align-items: center; height: 22px; padding: 0 6px 0 2px; white-space: nowrap; color: #000; cursor: default; }
.ctx-item:hover { background: var(--sel); color: #fff; }
.ctx-item.disabled, .ctx-item.disabled:hover { color: #aca899; background: none; }
.ctx-item.bold > .ctx-lbl { font-weight: bold; }
.ctx-ic { width: 22px; height: 16px; display: flex; align-items: center; justify-content: center; margin-right: 4px; flex: none; }
.ctx-ic svg { width: 16px; height: 16px; }
.ctx-lbl { flex: 1; padding-right: 20px; }
.ctx-arrow { font-size: 8px; }
.ctx-sep { height: 1px; background: #aca899; margin: 3px 1px; }
.ctx-menu.allprog, .allprog .ctx-menu { background: #fff; border-color: #6d8cc8; box-shadow: 3px 3px 6px rgba(0,0,0,.4); }
.allprog .ctx-item { height: 26px; }
.menubar { display: flex; background: #ece9d8; border-bottom: 1px solid #d8d2bd; padding: 1px 0; flex: none; }
.mb-item { padding: 2px 7px; cursor: default; }
.mb-item:hover, .mb-item.open { background: var(--sel); color: #fff; }

/* shared toolbars + status bars */
.ex-toolbar { display: flex; align-items: center; gap: 1px; padding: 2px 4px; background: linear-gradient(180deg, #fefefd, #ece9d8); border-bottom: 1px solid #d8d2bd; flex: none; flex-wrap: wrap; }
.tool-btn { display: flex; align-items: center; gap: 4px; height: 34px; border: 1px solid transparent; border-radius: 3px; background: none; padding: 0 6px; font-size: 11px; cursor: default; }
.tool-btn:hover:not(:disabled) { border-color: #cecece; background: #fff; box-shadow: inset 0 -1px 1px rgba(0,0,0,.08); }
.tool-btn:active:not(:disabled) { background: #e3e3db; }
.tool-btn:disabled { opacity: .4; filter: grayscale(1); }
.tool-btn .ic { width: 24px; height: 24px; }
.tsep { width: 1px; height: 26px; background: #c5c2b2; margin: 0 4px; box-shadow: 1px 0 #fff; }
.ex-addr { display: flex; align-items: center; gap: 5px; padding: 3px 5px; background: #ece9d8; border-bottom: 1px solid #d8d2bd; flex: none; }
.addr-lbl { color: #6d6d6d; }
.addr-box { flex: 1; display: flex; align-items: center; border: 1px solid #7f9db9; background: #fff; height: 22px; padding: 0 3px; gap: 4px; min-width: 0; }
.addr-box .ic { width: 16px; height: 16px; flex: none; }
.addr-in { border: 0; flex: 1; outline: none; font: 11px Tahoma, sans-serif; min-width: 0; }
.go-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; font-size: 11px; cursor: default; padding: 0 4px; }
.go-btn .ic { width: 18px; height: 18px; }
.statusbar { flex: none; height: 22px; display: flex; align-items: center; padding: 0 6px; background: #ece9d8; border-top: 1px solid #d8d2bd; gap: 8px; color: #000; overflow: hidden; white-space: nowrap; }
.statusbar > span { border-left: 1px solid #c0bcae; padding-left: 8px; display: flex; align-items: center; gap: 3px; }
.ic16 { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }

/* explorer */
.ex-main { flex: 1; display: flex; min-height: 0; }
.ex-side { width: 200px; flex: none; overflow: auto; padding: 12px 10px; background: var(--pane); }
.ex-box { margin-bottom: 12px; border-radius: 4px 4px 0 0; overflow: hidden; }
.ex-box h4 { margin: 0; padding: 5px 10px; font-size: 11px; color: var(--pane-link); background: var(--pane-head); }
.ex-box .bx { background: var(--pane-body); padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; border: 1px solid #fff; border-top: 0; }
.ex-box .bx b { overflow-wrap: anywhere; }
.ex-link { display: flex; align-items: center; gap: 6px; color: var(--pane-link); cursor: pointer; }
.ex-link:hover { text-decoration: underline; filter: brightness(1.3); }
.ex-link .ic { width: 16px; height: 16px; flex: none; }
.ex-content { flex: 1; overflow: auto; background: #fff; padding: 8px 12px; outline: none; }
.ex-group h5 { margin: 8px 0 6px; font-size: 11px; font-weight: bold; padding-bottom: 3px; border-bottom: 1px solid; border-image: linear-gradient(90deg, #70bfff, transparent) 1; }
.ex-items { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.ex-item { width: 210px; display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid transparent; cursor: default; }
.ex-item .ic { width: 40px; height: 40px; flex: none; }
.ex-item .nm { overflow-wrap: anywhere; }
.ex-item .tp { color: #808080; margin-top: 2px; }
.ex-item:hover { border-color: #e8eef9; }
.ex-item.sel { background: var(--sel); color: #fff; }
.ex-item.sel .tp { color: #d5e0f5; }
.ex-empty { color: #888; padding: 10px; }

/* notepad */
.np-text { flex: 1; border: 0; resize: none; outline: none; font: 13px/1.35 'Lucida Console', Consolas, monospace; padding: 3px 5px; background: #fff; color: #000; white-space: pre-wrap; }

/* calculator */
.calc { padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.calc-disp { height: 26px; border: 1px solid #7f9db9; background: #fff; text-align: right; font: 15px Tahoma, sans-serif; padding: 3px 6px; overflow: hidden; white-space: nowrap; box-shadow: inset 1px 1px 2px rgba(0,0,0,.15); }
.calc-top { display: flex; gap: 5px; align-items: center; }
.calc-mem { width: 36px; height: 26px; border: 1px solid #a5a5a5; box-shadow: inset 1px 1px #808080; display: flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 12px; }
.calc-grid { display: grid; grid-template-columns: repeat(6, 38px); gap: 5px; }
.calc-grid > :nth-child(6n+1) { margin-right: 8px; }
.cbtn { height: 30px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); font: 12px Tahoma, sans-serif; color: #0000e0; padding: 0; cursor: default; }
.cbtn:hover { box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a; }
.cbtn:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #f2f2f1); }
.cbtn.red { color: #e00; }
.cbtn.wide { flex: 1; min-width: 68px; }

/* paint */
.pt-main { flex: 1; display: flex; min-height: 0; }
.pt-tools { width: 62px; padding: 5px; display: grid; grid-template-columns: 25px 25px; gap: 2px; align-content: start; border-right: 1px solid #d8d2bd; flex: none; }
.pt-tool { width: 25px; height: 25px; border: 1px solid transparent; background: none; font-size: 14px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: default; }
.pt-tool:hover { border-color: #fff #808080 #808080 #fff; }
.pt-tool.on { border-color: #808080 #fff #fff #808080; background: #fff; }
.pt-sizes { grid-column: 1 / 3; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; margin-top: 6px; padding: 3px; display: flex; flex-direction: column; gap: 3px; }
.pt-size { height: 13px; display: flex; align-items: center; justify-content: center; cursor: default; }
.pt-size i { background: #000; width: 34px; display: block; }
.pt-size.on { background: var(--sel); }
.pt-size.on i { background: #fff; }
.pt-area { flex: 1; overflow: auto; background: #808080; padding: 5px; }
.pt-stage { position: relative; width: 640px; height: 420px; box-shadow: 1px 1px 0 #404040; }
.pt-stage canvas { position: absolute; left: 0; top: 0; cursor: crosshair; }
.pt-overlay { pointer-events: none; }
.pt-palette { display: flex; align-items: center; gap: 6px; padding: 5px; border-top: 1px solid #d8d2bd; flex: none; position: relative; }
.pt-cur { position: relative; width: 32px; height: 32px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; flex: none; }
.pt-c1, .pt-c2 { position: absolute; width: 15px; height: 15px; border: 1px solid #000; box-shadow: 0 0 0 1px #fff; }
.pt-c1 { left: 4px; top: 4px; z-index: 1; }
.pt-c2 { right: 4px; bottom: 4px; }
.pt-swatches { display: grid; grid-template-columns: repeat(14, 16px); gap: 1px; }
.pt-sw { width: 16px; height: 16px; border: 1px solid; border-color: #808080 #fff #fff #808080; cursor: default; }

/* minesweeper */
.ms { background: #c0c0c0; padding: 6px; border: 3px solid; border-color: #fff #808080 #808080 #fff; }
.ms-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border: 2px solid; border-color: #808080 #fff #fff #808080; margin-bottom: 6px; }
.ms-led { background: #000; color: #f00; font: bold 22px/1 'Courier New', monospace; padding: 1px 3px; letter-spacing: 1px; border: 1px solid; border-color: #808080 #fff #fff #808080; min-width: 43px; text-align: center; text-shadow: 0 0 4px rgba(255,0,0,.6); }
.ms-face { width: 28px; height: 28px; font-size: 16px; line-height: 1; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: default; }
.ms-face:active { border-color: #808080 #fff #fff #808080; }
.ms-grid { display: grid; border: 3px solid; border-color: #808080 #fff #fff #808080; width: max-content; }
.ms-cell { width: 16px; height: 16px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; display: flex; align-items: center; justify-content: center; font: bold 12px Tahoma, sans-serif; overflow: hidden; cursor: default; }
.ms-cell.open { border: 0; border-left: 1px solid #808080; border-top: 1px solid #808080; font-size: 11px; }
.ms-cell.boom { background: #f00; }
.ms-cell.n1 { color: #0000ff; } .ms-cell.n2 { color: #008000; } .ms-cell.n3 { color: #ff0000; } .ms-cell.n4 { color: #000080; }
.ms-cell.n5 { color: #800000; } .ms-cell.n6 { color: #008080; } .ms-cell.n7 { color: #000; } .ms-cell.n8 { color: #808080; }

/* browser */
.br-menurow { display: flex; align-items: stretch; background: #ece9d8; border-bottom: 1px solid #d8d2bd; flex: none; }
.br-menurow .menubar { flex: 1; border: 0; }
.br-throb { width: 40px; flex: none; background: #fff; border-left: 1px solid #d8d2bd; padding: 2px 9px; }
.br-throb.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.br-wrap { flex: 1; min-height: 0; background: #fff; border-top: 1px solid #a0a0a0; }
.br-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

/* command prompt */
.cmd { flex: 1; background: #000; color: #c0c0c0; font: 14px/1.25 'Lucida Console', Consolas, 'Courier New', monospace; padding: 4px 6px; overflow: auto; user-select: text; -webkit-user-select: text; cursor: text; }
.cmd-out { margin: 0; white-space: pre-wrap; word-break: break-all; font: inherit; }
.cmd-line { display: flex; white-space: pre; }
.cmd-in { flex: 1; background: transparent; border: 0; outline: none; color: inherit; font: inherit; padding: 0; caret-color: currentColor; min-width: 0; }

/* media player */
.mp { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: linear-gradient(180deg, #2b4f9e, #12285c 50%, #0a1a3d); color: #fff; min-height: 0; }
.mp-now { display: flex; flex-direction: column; gap: 2px; }
.mp-np { color: #8fb3ff; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.mp-title { font: bold 15px 'Trebuchet MS', sans-serif; }
.mp-artist { color: #b8cdf5; }
.mp-vis { width: 100%; height: 120px; border-radius: 6px; border: 1px solid #3c5fae; background: #000; flex: none; }
.mp-ctrl { display: flex; align-items: center; gap: 8px; }
.mp-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #8fb3ff; background: radial-gradient(circle at 35% 30%, #6d9cf0, #1d3f8c); color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.mp-btn.big { width: 44px; height: 44px; font-size: 18px; background: radial-gradient(circle at 35% 30%, #8ee07f, #2a8a2a); border-color: #c8f5c0; }
.mp-btn:hover { filter: brightness(1.2); }
.mp-vl { margin-left: auto; }
.mp-vol { width: 110px; }
.mp-list { flex: 1; overflow: auto; background: rgba(0,0,0,.35); border: 1px solid #3c5fae; border-radius: 4px; min-height: 60px; }
.mp-item { display: flex; justify-content: space-between; padding: 4px 8px; cursor: default; gap: 10px; }
.mp-item:hover { background: rgba(255,255,255,.08); }
.mp-item.on { background: #3a6ad8; }
.mp-art { color: #9fb6e6; }

/* picture viewer */
.pv-stage { flex: 1; min-height: 0; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pv-img { max-width: 100%; max-height: 100%; box-shadow: 2px 2px 8px rgba(0,0,0,.35); }
.pv-bar { flex: none; display: flex; justify-content: center; align-items: center; gap: 4px; padding: 6px; background: linear-gradient(180deg, #f4f3ee, #dcd8c8); border-top: 1px solid #c0bcae; }
.pv-btn { min-width: 32px; height: 26px; border: 1px solid #a0a0a0; border-radius: 3px; background: linear-gradient(180deg, #fff, #e8e6dc); cursor: default; padding: 0 8px; font-size: 11px; }
.pv-btn:hover { border-color: #e5a01a; }

/* about + system + date */
.about-banner { background: linear-gradient(90deg, #00309c, #5a7edc); padding: 14px 18px; }
.about-banner .logo-face { width: 52px; height: 52px; }
.about-banner .logo-word { font-size: 36px; }
.about-body { padding: 12px 18px 4px; line-height: 1.3; }
.about-body p { margin: 0 0 6px; }
.about-body hr { border: 0; border-top: 1px solid #c0bcae; margin: 10px 0; }
.sys-gen { display: flex; gap: 18px; }
.sys-logo { width: 110px; height: 110px; flex: none; }
.sys-gen p { margin: 0 0 3px; }
.sys-gen p.ind { padding-left: 14px; }
.dt-wrap { display: flex; gap: 14px; }
.dt-cal { flex: 1; border: 1px solid #7f9db9; background: #fff; padding: 6px; }
.dt-month { text-align: center; font-weight: bold; margin-bottom: 6px; }
.dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dt-grid b { color: #0046d5; }
.dt-grid .today { background: var(--sel); color: #fff; border-radius: 2px; }
.dt-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dt-clock { width: 120px; height: 120px; }
.dt-text { font-size: 13px; }

/* task manager */
.tm-wrap { flex: 1; display: flex; flex-direction: column; padding: 6px 7px; min-height: 0; }
.tm-panel { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.tm-hdr { display: grid; grid-template-columns: 1fr 90px; background: linear-gradient(180deg, #fff, #ebeadb); border: 1px solid #d0d0bf; padding: 3px 6px; }
.tm-list { flex: 1; border: 1px solid #7f9db9; background: #fff; overflow: auto; min-height: 80px; }
.tm-row { display: grid; grid-template-columns: 1fr 90px; padding: 3px 6px; cursor: default; }
.tm-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row.sel { background: var(--sel); color: #fff; }
.tm-graph { width: 100%; height: 150px; display: block; }
.tm-mem { line-height: 1.7; }

/* artist icons (uploaded pictures) */
.ai-img { width: 100%; height: 100%; object-fit: cover; border-radius: 18%; display: block; }
.dicon.artist .ic { width: 40px; height: 40px; }
.dicon.artist .ic .ai-img { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.dicon.artist { cursor: pointer; }
.dicon.artist:hover .lbl { text-decoration: underline; }

/* artist profile window */
.ar-head { --accent: #3a6ad8; flex: none; display: flex; gap: 16px; align-items: center; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); }
.ar-pic { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.ar-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ar-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .8; }
.ar-name { font: bold 28px/1.05 'Trebuchet MS', Tahoma, sans-serif; text-shadow: 1px 2px 3px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.ar-bio { font-size: 12px; line-height: 1.4; opacity: .95; max-width: 560px; white-space: pre-line; max-height: 52px; overflow: auto; }
.ar-socials { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ar-soc { --c: #333; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 14px; background: var(--c); color: #fff; text-decoration: none; font: bold 11px Tahoma, sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.5); }
.ar-soc:hover { filter: brightness(1.15); }
.ar-soc-ic { width: 16px; height: 16px; display: inline-block; }
.ar-body { flex: 1; min-height: 0; display: flex; gap: 0; background: #fff; }
.ar-left { width: 330px; flex: none; padding: 12px; border-right: 1px solid #ddd; overflow: auto; background: #f6f8fc; }
.ar-right { flex: 1; min-width: 0; padding: 12px; overflow: auto; }
.ar-lbl { font: bold 11px Tahoma, sans-serif; color: #215dc6; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; padding-bottom: 3px; border-bottom: 1px solid; border-image: linear-gradient(90deg, #70bfff, transparent) 1; }
.ar-now-t { font: bold 14px 'Trebuchet MS', sans-serif; margin-bottom: 8px; overflow-wrap: anywhere; }
.ar-stage { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ar-embed { width: 100%; border: 0; border-radius: 8px; background: #000; display: block; }
.ar-audio { width: 100%; }
.ar-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; background: #ddd; }
.ar-cover-ph { --accent: #3a6ad8; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font: bold 40px 'Trebuchet MS', sans-serif; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 50%, #000)); }
.ar-big { box-shadow: 0 3px 10px rgba(0,0,0,.3); width: min(100%, 220px); align-self: center; }
.ar-cover-ph.ar-big { font-size: 72px; }
.ar-synth { justify-content: center; }
.ar-song-pic { padding: 22%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 50%, #000)); }
.ar-song-btn { cursor: pointer; font: bold 11px Tahoma, sans-serif; }
.ar-song-btn.on { box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.35); }
.ar-synth { display: flex; align-items: center; gap: 10px; color: #555; }
.ar-empty { color: #888; padding: 6px 0; }
.ar-disco { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ar-card { cursor: pointer; padding: 6px; border-radius: 6px; border: 1px solid transparent; }
.ar-card:hover { background: #eef3fc; border-color: #c6d6f2; }
.ar-card.on { background: #dfe9fb; border-color: #7ba2e7; }
.ar-cov { position: relative; }
.ar-play { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; background: radial-gradient(circle at 35% 30%, #8ee07f, #2a8a2a); box-shadow: 0 2px 4px rgba(0,0,0,.4); opacity: 0; transform: translateY(4px); transition: .15s; }
.ar-card:hover .ar-play, .ar-card.on .ar-play { opacity: 1; transform: none; }
.ar-ct { font-weight: bold; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-cm { color: #777; margin-top: 2px; }
@media (max-width: 700px) { .ar-body { flex-direction: column; overflow: auto; } .ar-left { width: auto; border-right: 0; border-bottom: 1px solid #ddd; overflow: visible; } .ar-right { overflow: visible; } }

/* artist editor */
.ae { flex: 1; overflow: auto; padding: 4px 10px 10px; }
.ae-sec { margin-top: 8px; }
.ae-field { display: flex; gap: 8px; align-items: flex-start; margin: 5px 0; }
.ae-field > label { width: 74px; flex: none; padding-top: 4px; }
.ae-in { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ae-in .xp-input { width: 100%; }
.ae-bio { height: 56px; resize: vertical; font: 11px Tahoma, sans-serif; }
.ae-hint { color: #777; font-size: 10px; line-height: 1.4; }
.ae-icon { display: flex; gap: 12px; align-items: flex-start; }
.ae-icon-prev { width: 64px; height: 64px; flex: none; padding: 4px; border: 1px solid #7f9db9; background: #3a6ea5; border-radius: 4px; }
.ae-icon-grid { display: grid; grid-template-columns: repeat(9, 30px); gap: 3px; }
.ae-ic { width: 30px; height: 30px; padding: 3px; border: 1px solid #ccc; border-radius: 3px; background: #fff; cursor: pointer; }
.ae-ic:hover { border-color: #e5a01a; }
.ae-ic.on { border: 2px solid var(--sel); background: #e8effc; }
.ae-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ae-k { width: 42px; color: #555; flex: none; }
.ae-rels { display: flex; flex-direction: column; gap: 6px; }
.ae-rel { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border: 1px solid #d0d0bf; border-radius: 4px; background: #fff; }
.ae-rel-cov { width: 64px; flex: none; }
.ae-rel-cov .ar-cover-ph { font-size: 26px; }
.ae-rel-f { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ae-rel-b { display: flex; flex-direction: column; gap: 3px; }
.ae-rel-b .xp-btn, .ae-rel .ae-row .xp-btn { min-width: 0; padding: 0 7px; }
.ae-foot { flex: none; padding: 8px 10px; border-top: 1px solid #d8d2bd; margin: 0; }
.sp-box { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 6px; background: linear-gradient(90deg, #e9f9ef, #fff); border: 1px solid #9fdcb4; }
.sp-logo { width: 28px; height: 28px; flex: none; background: #1db954; border-radius: 50%; padding: 3px; }
.sp-logo.sm { width: 20px; height: 20px; padding: 2px; }
.sp-logo.sc { background: #ff5500; padding: 4px; }
.sp-box:has(.sp-logo.sc) { background: linear-gradient(90deg, #fff0e6, #fff); border-color: #ffb88a; }
.sp-status { margin: 4px 0 6px; font-size: 11px; color: #1a7a3a; }
.sp-status.err { color: #b02a1a; font-weight: bold; }
.sp-ok { color: #1a7a3a; font-weight: bold; }
.sp-no { color: #888; }
.adm-status { padding: 2px 0 6px; font-size: 11px; color: #2a7a2a; }
.adm-status.warn { color: #b05a00; font-weight: bold; }

/* admin panel */
.adm-banner { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; color: #fff; background: linear-gradient(90deg, #a01818, #d84a2a); line-height: 1.4; }
.adm-banner .ic { width: 30px; height: 30px; flex: none; }
.adm-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.adm-row .xp-input { width: 110px; }
.adm-check { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.adm-stats { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; border: 1px solid #d0d0bf; background: #fff; padding: 8px 10px; margin: 4px 0 10px; }
.adm-stats .k { color: #555; }
.adm-stats .v { font-weight: bold; }
.adm-files { height: 150px; margin-bottom: 6px; }
.adm-file { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-bottom: 1px solid #eee; }
.adm-file .ic { width: 16px; height: 16px; flex: none; }
.adm-file .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-file .sz { color: #888; width: 60px; text-align: right; }
.adm-file .xp-btn { min-width: 0; height: 19px; padding: 0 6px; }
.adm-log { height: 64px; overflow: auto; background: #000; color: #3f3; font: 11px 'Lucida Console', Consolas, monospace; padding: 4px 6px; border: 1px solid #7f9db9; user-select: text; }
.ms-cell.cheat:not(.open) { box-shadow: inset 0 0 0 2px rgba(255,0,0,.45); }
.crash { position: fixed; inset: 0; z-index: 6000000; background: #0000aa; color: #fff; cursor: none; display: flex; align-items: center; justify-content: center; }
.crash pre { font: 15px/1.35 'Lucida Console', 'Courier New', monospace; margin: 0; padding: 20px; white-space: pre-wrap; max-width: 900px; }

@media (max-width: 700px) {
  .lg-left, .lg-div { display: none; }
  .lg-right { padding: 0; display: flex; justify-content: center; }
  .lg-note { display: none; }
  #startmenu { width: 100vw; }
  .ex-side { display: none; }
}
