/* A desktop, early 2000s: Luna-blue windows, a buddy list, and the work coming in as files. */
:root {
  --face: #ece9d8; --face-d: #d4d0c8; --shadow: #aca899; --line: #7f9db9; --sel: #316ac5;
  --ui: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif; --title: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --task-h: 30px; --vh: 100vh;
}
@supports (height: 100dvh) { :root { --vh: 100dvh; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #3a6ea5; }
body { font: 11px/1.25 var(--ui); color: #000; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[data-ico] { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: middle; }
[data-ico] svg { display: block; width: 100%; height: 100%; }

#desktop { position: fixed; left: 0; top: 0; right: 0; bottom: var(--task-h); background: #5b8fd6 url(art/wallpaper.webp) 34% 50% / cover no-repeat; overflow: hidden; }
#wins { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- windows */
.win { position: absolute; display: flex; flex-direction: column; background: var(--face); border-radius: 8px 8px 0 0; padding: 0 3px 3px;
  box-shadow: inset -1px -1px #00138c, inset 1px 1px #0831d9, inset -2px -2px #001ea0, inset 2px 2px #166aee, inset -3px -3px #003bda, inset 3px 3px #0855dd, 3px 4px 10px rgba(0, 20, 60, .38); min-width: 0; }
.win.inactive { box-shadow: inset -1px -1px #6582d0, inset 1px 1px #7c94df, inset -2px -2px #7b93d9, inset 2px 2px #a5b8ee, inset -3px -3px #94a8e5, inset 3px 3px #a4b6ec, 2px 3px 8px rgba(0, 20, 60, .25); }
.tb { flex: none; display: flex; align-items: center; gap: 4px; height: 29px; margin: 0 -3px; padding: 3px 5px 2px 7px; border-radius: 8px 8px 0 0; color: #fff; cursor: default; user-select: none; -webkit-user-select: none; touch-action: none;
  background: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7);
  border-top: 1px solid #0831d9; border-left: 1px solid #0831d9; border-right: 1px solid #001ea0; }
.win.inactive .tb { background: 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); border-color: #7c94df; }
.tb-ico { width: 16px; height: 16px; }
.tb-t { flex: 1; min-width: 0; font: bold 13px/1 var(--title); letter-spacing: .2px; text-shadow: 1px 1px #0f1089; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.inactive .tb-t { color: #d8e4f8; text-shadow: none; }
.tb-btns { display: flex; gap: 2px; flex: none; }
.tbb { position: relative; width: 21px; height: 21px; padding: 0; border: 1px solid #fff; border-radius: 3px; cursor: pointer;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%); box-shadow: inset 0 -1px 2px rgba(0, 0, 40, .25); }
.tbb:hover { filter: brightness(1.12); }
.tbb:active { filter: brightness(.86); }
.tbb.x { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.tbb::before, .tbb::after { content: ""; position: absolute; background: #fff; }
.tbb.min::before { left: 5px; bottom: 5px; width: 7px; height: 3px; }
.tbb.max::before { left: 4px; top: 4px; width: 11px; height: 11px; background: transparent; border: 1px solid #fff; border-top-width: 3px; }
.tbb.x::before, .tbb.x::after { left: 9px; top: 3px; width: 2px; height: 13px; border-radius: 1px; transform: rotate(45deg); }
.tbb.x::after { transform: rotate(-45deg); }
.win.inactive .tbb { filter: saturate(.55) brightness(1.1); }
.wb { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* menu bar + menus */
.mbar { flex: none; display: flex; height: 20px; padding: 1px 2px; background: var(--face); border-bottom: 1px solid #fff; box-shadow: 0 1px #b6b3a3; user-select: none; -webkit-user-select: none; }
.mbar button { border: 0; background: none; padding: 1px 7px; cursor: default; }
.mbar button:hover, .mbar button.open { background: var(--sel); color: #fff; }
.mbar button:disabled { color: #8a877a; background: none; }
#menu { position: fixed; z-index: 100000; min-width: 170px; padding: 2px; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 3px rgba(0, 0, 0, .3); }
#menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 3px 18px 3px 6px; text-align: left; cursor: default; }
#menu button:hover, #menu button:focus-visible { background: var(--sel); color: #fff; outline: none; }
#menu button:disabled { color: #a7a597; background: none; }
#menu .chk { width: 12px; flex: none; text-align: center; }
#menu hr { border: 0; border-top: 1px solid #aca899; margin: 3px 1px; }

/* XP push buttons */
.xp { min-width: 75px; min-height: 23px; padding: 0 10px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); cursor: pointer; }
.xp:hover { box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a; }
.xp:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); box-shadow: none; }
.xp:focus-visible { outline: 1px dotted #000; outline-offset: -4px; box-shadow: inset -1px 1px #cee7ff, inset 1px 2px #98b8ea, inset -2px 2px #bcd4f6, inset 1px -1px #89ade4, inset 2px -2px #89ade4; }
.xp:disabled { color: #a3a08f; border-color: #c9c7ba; background: #f5f4ea; box-shadow: none; cursor: default; }
.xp.def { box-shadow: inset -1px 1px #cee7ff, inset 1px 2px #98b8ea, inset -2px 2px #bcd4f6, inset 1px -1px #89ade4, inset 2px -2px #89ade4; }
.cb { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.cb::before { content: ""; width: 13px; height: 13px; flex: none; border: 1px solid #1c5180; background: linear-gradient(135deg, #dcdcd7, #fff); }
.cb.on::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M3 6.2l2.2 2.3L10 3.6' fill='none' stroke='%2321a121' stroke-width='2'/%3E%3C/svg%3E") center / 13px no-repeat, linear-gradient(135deg, #dcdcd7, #fff); }
.xp-progress { position: relative; height: 15px; border: 1px solid #686868; border-radius: 3px; background: #fff; padding: 1px; overflow: hidden; }
.xp-progress i { display: block; height: 100%; width: 0; border-radius: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, #fff 8px 10px), linear-gradient(180deg, #acedad 0%, #7be47d 14%, #4cda50 28%, #2ed330 42%, #42d845 57%, #76e275 71%, #8fe791 85%, #fff 100%); }

/* scrollbars, the Luna way */
.sc { overflow: auto; scrollbar-color: #bdd0fa #f3f1e8; }
.sc::-webkit-scrollbar { width: 17px; height: 17px; }
.sc::-webkit-scrollbar-track { background: linear-gradient(90deg, #eeede5, #fefefb 30%, #f3f1e7); }
.sc::-webkit-scrollbar-thumb { border: 1px solid #fff; border-radius: 3px; background: linear-gradient(90deg, #c9d8fc, #bdd0fa 40%, #b0c6f7); box-shadow: inset 0 0 0 1px #9eb6ee; }
.sc::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #dbe6fe, #cfdcfd 40%, #c2d3fb); }
.sc::-webkit-scrollbar-corner { background: var(--face); }

/* ---------------------------------------------------------------- sign on */
.signon { width: 228px; left: 50%; top: 50%; transform: translate(-50%, -54%); z-index: 50; }
.so-body { display: flex; flex-direction: column; padding: 0 0 8px; }
.so-logo { display: grid; place-items: center; height: 108px; margin: 0 -3px; background: linear-gradient(180deg, #0b2a7a, #1f56c9 55%, #4f8eef); border-bottom: 2px solid #f5c400; }
.so-logo [data-ico] { width: 64px; height: 64px; }
.so-steps { display: none; padding: 10px 12px 2px; gap: 4px; flex-direction: column; color: #555; }
.signon.busy .so-steps { display: flex; }
.signon.busy .so-form { display: none; }
.so-step.now { color: #000; font-weight: bold; }
.so-step.done { color: #3a7a3a; }
.so-steps .xp-progress { margin-top: 6px; }
.so-form { padding: 10px 12px 0; display: flex; flex-direction: column; gap: 3px; }
.so-l { color: #333; margin-top: 4px; }
.so-field { position: relative; height: 21px; border: 1px solid var(--line); background: #fff; padding: 3px 4px; }
.so-field.combo i { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 17px; border-radius: 2px; background: linear-gradient(180deg, #c8d6fb, #b1c5f6); }
.so-field.combo i::after { content: ""; position: absolute; left: 5px; top: 7px; border: 4px solid transparent; border-top: 4px solid #4d6185; }
.so-checks { display: flex; gap: 10px; margin-top: 8px; }
.so-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ---------------------------------------------------------------- the buddy list */
.blist { width: 252px; }
.bl-head { flex: none; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 8px; margin: 0 -3px; color: #fff; background: linear-gradient(180deg, #0b2a7a, #1f56c9 60%, #3c79e6); border-bottom: 2px solid #f5c400; }
.bl-head [data-ico] { width: 38px; height: 38px; }
.bl-me { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: none; padding: 2px 4px; color: #fff; cursor: pointer; border-radius: 2px; text-align: left; }
.bl-me b { font-size: 12px; }
.bl-me span { color: #cfe0ff; }
.bl-me:hover b { text-decoration: underline; }
.tabs { flex: none; display: flex; gap: 0; padding: 5px 4px 0; border-bottom: 1px solid #919b9c; user-select: none; -webkit-user-select: none; }
.tab { position: relative; top: 1px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 3px 9px 3px; margin-right: -1px; background: linear-gradient(180deg, #fff, #ecebe5 86%, #d8d0c4); cursor: pointer; }
.tab[aria-selected="true"] { z-index: 1; padding-bottom: 4px; margin-top: -2px; background: #fcfcfe; border-top: 0; box-shadow: inset 0 3px #ffc83c, inset 0 2px #e68b2c, 0 -1px #e68b2c; }
.bl-scroll { flex: 1; min-height: 0; margin: 0 1px; background: #fff; border: 1px solid #919b9c; border-top: 0; }
.grp-h { display: flex; align-items: center; gap: 4px; width: 100%; border: 0; background: none; padding: 4px 4px 2px; font-weight: bold; text-align: left; cursor: pointer; }
.grp-h::before { content: ""; border: 4px solid transparent; border-left: 5px solid #000; border-right: 0; margin: 0 2px 0 1px; transition: transform .1s; }
.grp:not(.shut) > .grp-h::before { transform: rotate(90deg); }
.grp.shut > .rows { display: none; }
.grp-h:focus-visible, .bud:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }
.bud { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 7px; align-items: center; width: 100%; min-height: 54px; padding: 3px 6px 3px 12px; border: 0; background: none; text-align: left; cursor: default; user-select: none; -webkit-user-select: none; }
.bud .bi { grid-row: 1 / 3; }
.bud .bn { grid-column: 2; grid-row: 1; align-self: end; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bud .bs { grid-column: 3; grid-row: 1; align-self: end; display: flex; gap: 2px; }
.bud .ba { grid-column: 2 / 4; grid-row: 2; align-self: start; color: #6d6d6d; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bud.idle .bn { color: #8c8c8c; }
.bud.idle .bi { opacity: .72; }
.bud.off .bn { color: #8c8c8c; }
.bud.off .bi { filter: grayscale(1) contrast(.85); opacity: .55; }
.bud.off .ba { color: #b0b0b0; }
.bud.fresh .bn { font-weight: bold; }
.bud.sel { background: var(--sel); }
.bud.sel .bn, .bud.sel .ba { color: #fff; }
.bud.sel .bi { opacity: 1; filter: none; }
.bud.arrive { animation: arrive 1.2s ease-out; }
@keyframes arrive { 0% { background: #fff4b8; } 100% { background: transparent; } }
.bi { display: block; width: 48px; height: 48px; flex: none; background: #ddd url(art/icons.png) 0 0 / auto 48px no-repeat; background-position: calc(var(--i) * -48px) 0; image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); }
.bi.big { width: 96px; height: 96px; background-size: auto 96px; background-position: calc(var(--i) * -96px) 0; }
.bi.sm { width: 16px; height: 16px; background-size: auto 16px; background-position: calc(var(--i) * -16px) 0; image-rendering: auto; }
/* the buddy's picture: the project's real wide thumbnail, from a 6 x 5 sprite */
.bp { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b2a7a url(art/thumbs.webp) no-repeat; background-size: 600% 500%; background-position: calc(var(--c) * 20%) calc(var(--r) * 25%); }
.bl-pic { flex: none; display: block; width: auto; margin: 4px 1px 0; padding: 2px; border: 1px solid #919b9c; background: #fff; text-align: left; cursor: pointer; }
.bl-pic:disabled { cursor: default; }
.bl-pic .bp { box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.bl-cap { display: flex; align-items: baseline; gap: 6px; height: 17px; padding: 3px 2px 0; white-space: nowrap; overflow: hidden; }
.bl-cap b { flex: none; font-size: 11px; }
.bl-cap span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #555; }
.bl-pic:hover .bl-cap b { color: var(--sel); text-decoration: underline; }
.bl-pic:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.setup .bud { grid-template-columns: 16px minmax(0, 1fr); min-height: 20px; padding: 1px 6px 1px 14px; column-gap: 6px; }
.setup .bud .bi { grid-row: 1; }
.setup .bud .bn { font-size: 11px; align-self: center; }
.setup .bud .ba, .setup .bud .bs { display: none; }
.bl-foot { flex: none; display: flex; justify-content: space-around; padding: 4px 2px 2px; border-top: 1px solid #fff; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 44px; border: 1px solid transparent; border-radius: 3px; background: none; padding: 3px 4px 2px; cursor: pointer; }
.tool [data-ico] { width: 22px; height: 22px; }
.tool:hover { border-color: #b6b3a3; background: linear-gradient(180deg, #fff, #ecebe6); }
.tool:active { background: #e3e1d6; }
.tool:disabled { opacity: .45; cursor: default; border-color: transparent; background: none; }
.tool:focus-visible { outline: 1px dotted #000; }

/* hover card */
#hovercard { position: fixed; z-index: 90000; width: 300px; padding: 7px 8px 8px; background: #ffffe1; border: 1px solid #000; box-shadow: 2px 2px 3px rgba(0, 0, 0, .25); pointer-events: none; }
.hc-pic { margin-bottom: 7px; box-shadow: 0 0 0 1px #000; }
.hc-top { display: flex; gap: 8px; align-items: center; }
.hc-top b { font-size: 12px; display: block; }
.hc-client { color: #555; margin-top: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 6px; margin: 6px 0 0; }
.kv dt { color: #555; }
.kv dd { margin: 0; }
.hc-away { display: flex; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #e5e2b0; font-style: italic; }

/* ---------------------------------------------------------------- an instant message */
.im { width: 476px; height: 420px; min-width: 300px; }
.im-top { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 6px; color: #333; }
.im-top b { color: #000; }
.im-mid { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 0 6px; }
.convo { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 5px 7px; font: 13px/1.35 Arial, Helvetica, sans-serif; word-wrap: break-word; overflow-wrap: anywhere; }
.convo p { margin: 0 0 4px; }
.convo .who { font-weight: bold; }
.convo .them .who { color: #0000ff; }
.convo .me .who { color: #ff0000; }
.convo .ts { color: #808080; font-size: 11px; }
.convo .msg { white-space: pre-wrap; }
.convo .sys { color: #808080; font-size: 12px; }
.convo .sys .msg { color: inherit; }
.convo .sys button { border: 0; background: none; padding: 0; color: #0000ee; text-decoration: underline; cursor: pointer; font: inherit; }
.im-icon { flex: none; align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ft-offer { display: grid; grid-template-columns: 32px 1fr; gap: 4px 8px; align-items: center; margin: 6px 0 6px; padding: 8px; border: 1px solid #c5c2b2; background: #f7f6ef; font: 11px/1.35 var(--ui); }
.ft-offer [data-ico] { width: 32px; height: 32px; }
.ft-offer .ft-name { font-weight: bold; }
.ft-offer .ft-act { grid-column: 2; display: flex; gap: 6px; margin-top: 4px; }
.ft-offer.done { opacity: .8; }
.fmt { flex: none; display: flex; align-items: center; gap: 1px; padding: 4px 6px 2px; }
.fmt button { min-width: 23px; height: 22px; border: 1px solid transparent; border-radius: 3px; background: none; padding: 0 4px; cursor: pointer; font-family: "Times New Roman", serif; font-size: 13px; }
.fmt button:hover { border-color: #b6b3a3; background: linear-gradient(180deg, #fff, #ecebe6); }
.fmt button[aria-pressed="true"] { border-color: #8c8a7e; background: #e3e1d6; }
.fmt .sep { width: 1px; height: 18px; margin: 0 4px; background: #b6b3a3; box-shadow: 1px 0 #fff; }
.compose { flex: none; height: 62px; margin: 0 6px; resize: none; border: 1px solid var(--line); padding: 4px 6px; font: 13px/1.3 Arial, Helvetica, sans-serif; background: #fff; }
.compose:focus { outline: none; }
.compose.b { font-weight: bold; } .compose.i { font-style: italic; } .compose.u { text-decoration: underline; }
.im-btns { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 5px 6px 2px; }
.im-btns .grow { flex: 1; }
.im-btns .send { min-width: 68px; height: 40px; font-weight: bold; }

/* file transfer */
.ft { width: 352px; }
.ft-body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 7px; }
.ft-row { display: flex; gap: 10px; align-items: center; }
.ft-row [data-ico] { width: 32px; height: 32px; }
.ft-file { color: #555; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ft-stats { display: flex; justify-content: space-between; color: #333; }
.ft-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 2px; }

/* confirm */
.confirm { width: 320px; }
.cf-body { display: flex; gap: 12px; padding: 14px 12px 6px; }
.cf-body [data-ico] { width: 32px; height: 32px; }
.cf-btns { display: flex; justify-content: center; gap: 8px; padding: 6px 0 8px; }

/* ---------------------------------------------------------------- a received folder, opened */
.doc { min-width: 320px; }
.addr { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-bottom: 1px solid #fff; box-shadow: 0 1px #b6b3a3; }
.addr > span:first-child { color: #555; }
.addr .path { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 21px; padding: 0 5px; border: 1px solid var(--line); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-scroll { flex: 1; min-height: 0; margin-top: 3px; background: #fff; border: 1px solid #919b9c; }
.doc-page { max-width: 880px; margin: 0 auto; padding: 18px 22px 30px; font: 13px/1.5 Tahoma, Verdana, sans-serif; color: #111; }
.doc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #d6d3c4; }
.doc-head h1 { margin: 0; font: bold 22px/1.15 var(--title); color: #0b3a9e; }
.doc-head p { margin: 3px 0 0; color: #666; letter-spacing: .4px; font-size: 11px; }
.doc-kit { --ab-fg: #111; --ab-muted: #666; --ab-accent: #316ac5; --ab-chrome: 150px; }
.doc-kit .ab-lede { font-size: 15px; line-height: 1.5; }
.doc-kit .ab-heading { font: bold 14px/1.3 var(--title); color: #0b3a9e; padding-top: 4px; border-top: 1px solid #ebe9de; }
.doc-kit .ab-section:first-of-type .ab-heading { border-top: 0; }
.doc-kit .ab-credits { padding-top: 10px; border-top: 1px solid #ebe9de; }
.doc-kit .ab-frame { box-shadow: 0 0 0 1px #000; }
.doc-kit audio { height: 32px; }
.status { flex: none; display: flex; gap: 0; height: 22px; margin-top: 2px; }
.status > span { display: flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid; border-color: var(--shadow) #fff #fff var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status > span:first-child { flex: 1; min-width: 0; }

/* buddy info / profile */
.info { width: 372px; height: 470px; }
.info-top { flex: none; display: flex; gap: 10px; padding: 10px 10px 6px; }
.info-top b { font-size: 13px; }
.info-scroll { flex: 1; min-height: 0; margin: 0 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); font: 12px/1.45 Arial, Helvetica, sans-serif; }
.info-scroll h4 { margin: 10px 0 4px; font: bold 11px var(--ui); color: #555; text-transform: uppercase; letter-spacing: .4px; }
.info-scroll h4:first-child { margin-top: 0; }
.info-scroll p { margin: 0 0 6px; }
.info-scroll hr { border: 0; border-top: 1px solid #ccc; margin: 10px 0; }
.info-scroll .cred { color: #444; font-size: 11px; }
.info-scroll ul { margin: 0; padding-left: 16px; }
.info-scroll a { color: #0000ee; }
.info-btns { flex: none; display: flex; justify-content: flex-end; gap: 6px; padding: 7px 8px 4px; }

/* ---------------------------------------------------------------- taskbar */
#taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--task-h); display: flex; align-items: stretch; z-index: 99000; user-select: none; -webkit-user-select: none;
  background: 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%); }
#start { flex: none; display: flex; align-items: center; width: 100px; height: 100%; padding: 0 0 2px 22px; border: 0; border-radius: 0 10px 10px 0; color: #fff; cursor: pointer;
  background: radial-gradient(circle at 18px 50%, rgba(255, 255, 255, .25), transparent 12px), linear-gradient(180deg, #3c8f3c 0%, #67b867 8%, #3c9a3c 18%, #2f8f2f 50%, #2b862b 80%, #2f8a2f 92%, #1b5e1b 100%);
  box-shadow: inset -1px 0 1px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .35); }
#start span { font: italic bold 18px/1 var(--title); text-shadow: 1px 1px 2px rgba(0, 0, 0, .55); letter-spacing: .3px; }
#start:hover { filter: brightness(1.08); }
#start[aria-expanded="true"] { filter: brightness(.86); }
#tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 3px 6px; overflow: hidden; }
.task { flex: 0 1 158px; min-width: 40px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 3px; color: #fff; cursor: pointer; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, #5a9bf7, #3c81f3 20%, #3a7cf0 80%, #2d66d9); box-shadow: inset -1px -1px rgba(0, 0, 0, .25), inset 1px 1px rgba(255, 255, 255, .3); }
.task span:last-child { overflow: hidden; text-overflow: ellipsis; }
.task:hover { filter: brightness(1.1); }
.task.flash { animation: flash 1.1s steps(1) 0s 8 forwards; }
@keyframes flash { 0% { background: linear-gradient(180deg, #ffb24a, #f88f10 50%, #e27500); } 50% { background: linear-gradient(180deg, #5a9bf7, #3c81f3 20%, #3a7cf0 80%, #2d66d9); } 100% { background: linear-gradient(180deg, #ffb24a, #f88f10 50%, #e27500); } }
.task.on { background: linear-gradient(180deg, #1e52b7, #1a4cb0 50%, #1d50b5); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .45); }
#tray { flex: none; display: flex; align-items: center; gap: 3px; padding: 0 10px 0 8px; color: #fff; border-left: 1px solid #1042af;
  background: 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); box-shadow: inset 1px 0 #18bbff; }
.tray-b { width: 20px; height: 20px; padding: 2px; border: 0; background: none; cursor: pointer; }
.tray-b [data-ico] { width: 16px; height: 16px; }
#clock { margin-left: 6px; }
#startmenu { position: fixed; left: 0; bottom: var(--task-h); z-index: 99500; width: 260px; border-radius: 8px 8px 0 0; overflow: hidden; background: #fff; box-shadow: 2px -2px 6px rgba(0, 0, 0, .4); border: 1px solid #0831d9; }
.sm-head { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 8px; color: #fff; font-size: 14px; background: linear-gradient(180deg, #1868ce, #0e60cb 12%, #0e60cb 88%, #0a4fb0); text-shadow: 1px 1px #0f1089; border-bottom: 2px solid #e8892a; }
.sm-pic { width: 40px !important; height: 40px !important; border: 2px solid #fff; border-radius: 3px; background: #1f56c9; }
.sm-body { padding: 6px 2px; }
.sm-body button, .sm-foot button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.sm-body button:hover, .sm-foot button:hover { background: var(--sel); color: #fff; }
.sm-body [data-ico], .sm-foot [data-ico] { width: 24px; height: 24px; }
.sm-foot { display: flex; justify-content: flex-end; padding: 2px 4px; background: linear-gradient(180deg, #4282d6, #3b81f3 4%, #2a6ad8); }
.sm-foot button { width: auto; color: #fff; }

/* ---------------------------------------------------------------- phones: the list is the whole screen */
@media (max-width: 700px) {
  :root { --task-h: 0px; }
  #taskbar, #startmenu { display: none !important; }
  #desktop { bottom: 0; }
  .win:not(.dlg) { left: 0 !important; top: 0 !important; width: 100% !important; height: var(--vh) !important; border-radius: 0; padding: 0; box-shadow: none; }
  .win:not(.dlg) > .tb { border-radius: 0; margin: 0; padding-top: max(3px, env(safe-area-inset-top)); height: calc(36px + env(safe-area-inset-top)); }
  .win.dlg { left: 4% !important; width: 92% !important; top: 50% !important; transform: translateY(-50%); }
  .signon { transform: translateY(-50%); }
  .tb-t { font-size: 15px; }
  .tbb { width: 30px; height: 30px; }
  .tbb.min::before { left: 9px; bottom: 8px; width: 10px; }
  .tbb.x::before, .tbb.x::after { left: 13px; top: 6px; height: 16px; }
  .tbb.min, .tbb.max { display: none; }
  .blist .tbb.x { display: none; }
  .win.inactive .tb { background: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7); }
  .win.inactive .tb-t { color: #fff; text-shadow: 1px 1px #0f1089; }
  .mbar { height: 30px; } .mbar button { padding: 4px 12px; font-size: 13px; }
  .bl-head { margin: 0; }
  .tab { padding: 6px 14px; font-size: 12px; }
  .bl-pic { margin: 4px 4px 0; display: flex; gap: 8px; align-items: flex-end; }
  .bl-pic .bp { width: min(62%, 240px); flex: none; }
  .bl-cap { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 0 0 2px; white-space: normal; }
  .bl-cap b { font-size: 14px; } .bl-cap span { font-size: 12px; }
  .bud { min-height: 60px; padding-left: 14px; }
  .bud .bn { font-size: 14px; }
  .bud .ba { font-size: 12px; }
  .setup .bud { min-height: 34px; }
  .setup .bud .bn { font-size: 13px; }
  .grp-h { padding: 8px 6px 5px; font-size: 12px; }
  .bl-foot { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .tool { min-width: 60px; font-size: 12px; }
  .im-mid { padding: 0 4px; }
  .im .convo { font-size: 15px; }
  .compose { height: 52px; font-size: 16px; margin: 0 4px; }
  .fmt { display: none; }
  .im-btns { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .ft-offer { font-size: 13px; }
  .ft-offer .xp { min-height: 34px; min-width: 90px; font-size: 13px; }
  .ft .xp, .confirm .xp, .info-btns .xp { min-height: 34px; font-size: 13px; }
  .ft-body { font-size: 13px; }
  .doc-page { padding: 14px 14px 40px; }
  .doc-head h1 { font-size: 20px; }
  .doc-kit { --ab-chrome: 110px; }
  .addr { display: none; }
  .status { padding-bottom: env(safe-area-inset-bottom); height: auto; min-height: 22px; }
  .info-scroll { font-size: 14px; }
  .sc::-webkit-scrollbar { width: 0; height: 0; }
  .sc { scrollbar-width: none; }
  #hovercard { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .bud.arrive { animation: none; } }
