/* huangetal.org: on purpose, a website from about 2002. A teal desktop, Windows XP windows with blue title bars, grey
   bevelled buttons, Tahoma, blue underlined links that go purple. Plain and functional: everything is where you'd
   look for it, and nothing moves that doesn't need to. */
:root {
  --desk: #3a6ea5; --face: #ece9d8; --line: #919b9c; --dark: #716f64; --ink: #000; --dim: #444;
  --blue1: #0a5fe8; --blue2: #0842c4; --blue3: #0a3fb8; --frame: #0831d9; --link: #0000ee; --seen: #551a8b;
  --green: #3c9a3c; --red: #c4302b; --gold: #f5d77c; --note: #ffffe1;
}
* { box-sizing: border-box; }
html { background: var(--desk); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 13px/1.45 Tahoma, Verdana, 'Segoe UI', sans-serif; background: var(--desk) linear-gradient(180deg, #3a6ea5 0%, #2f5d8f 100%) fixed; padding: 0 0 48px; }
a { color: var(--link); } a:visited { color: var(--seen); } a:hover { color: #e00; }
h1, h2, h3 { font-family: Tahoma, Verdana, sans-serif; margin: 0 0 8px; } h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0 0 10px; } ul { margin: 0 0 10px; padding-left: 20px; }
small, .dim { color: var(--dim); }
code { font: 12px 'Lucida Console', Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: 0 3px; }

/* the menu bar along the top */
.menubar { background: var(--face); border-bottom: 1px solid var(--dark); box-shadow: inset 0 -1px #fff; display: flex; align-items: center; gap: 2px; padding: 3px 8px; flex-wrap: wrap; }
.menubar .logo { font-weight: bold; margin-right: 12px; color: #000; text-decoration: none; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.menubar .logo i { font: italic bold 13px Georgia, serif; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(#c4302b, #8a1c18); border: 1px solid #5a0f0c; border-radius: 2px; }
.menubar a.m { color: #000; text-decoration: none; padding: 3px 9px; border: 1px solid transparent; } .menubar a.m:hover { background: #316ac5; color: #fff; }
.menubar .who { margin-left: auto; color: var(--dim); }
.ticker { background: #000; color: #0f0; font: 12px 'Lucida Console', Consolas, monospace; white-space: nowrap; overflow: hidden; padding: 2px 0; border-bottom: 1px solid #333; }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; padding-left: 12px; } }

/* windows */
.page { max-width: 980px; margin: 18px auto 0; padding: 0 16px; display: grid; gap: 18px; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; } @media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.win { background: var(--face); border: 1px solid var(--frame); border-radius: 8px 8px 0 0; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); min-width: 0; }
.win > .t { background: linear-gradient(var(--blue1), var(--blue2) 45%, var(--blue3)); color: #fff; font-weight: bold; padding: 4px 6px 4px 9px; border-radius: 7px 7px 0 0; display: flex; align-items: center; gap: 6px; text-shadow: 1px 1px #0a1e5c; }
.win > .t .ctl { margin-left: auto; display: flex; gap: 2px; } .win > .t .ctl b { width: 19px; height: 19px; border: 1px solid #fff; border-radius: 3px; background: linear-gradient(#5d9bff, #2a64e0); display: grid; place-items: center; font-size: 11px; }
.win > .t .ctl b.x { background: linear-gradient(#e8836b, #c4302b); }
.win > .b { padding: 12px 14px 14px; overflow-x: auto; }
.win.note > .b { background: var(--note); }

/* buttons, fields */
.btn, button { font: inherit; color: #000; display: inline-block; padding: 4px 14px; min-width: 75px; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #e3e3db 85%, #d6d0c5); }
.btn:hover, button:hover { box-shadow: inset 0 0 0 2px #f8b636; color: #000; } .btn:visited { color: #000; }
.btn.go, button.go { font-weight: bold; background: linear-gradient(#fff, var(--gold)); }
.btn.big, button.big { font-size: 15px; padding: 8px 20px; }
button:disabled { color: #999; cursor: default; box-shadow: none; }
input[type=text], input[type=email], input[type=password] { font: inherit; padding: 3px 5px; border: 1px solid #7f9db9; background: #fff; width: 100%; max-width: 320px; }
label { display: block; margin: 0 0 10px; } label > span { display: block; margin-bottom: 2px; }
label.check { display: flex; gap: 6px; align-items: flex-start; } label.check input { margin-top: 2px; }
fieldset { border: 1px solid #d0d0bf; border-radius: 4px; padding: 10px 12px; margin: 0 0 12px; } legend { color: #0046d5; padding: 0 4px; }
.err { color: var(--red); font-weight: bold; min-height: 1em; } .ok { color: var(--green); font-weight: bold; }

/* tables */
table.grid { border-collapse: collapse; width: 100%; background: #fff; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: top; }
table.grid th { background: linear-gradient(#fff, #ebeadb); font-weight: normal; color: #000; white-space: nowrap; }
table.grid td.n, table.grid th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid tr:nth-child(even) td { background: #f7f7f0; }
.lock { color: var(--dim); white-space: nowrap; } .free { color: var(--green); font-weight: bold; white-space: nowrap; }

/* a status strip, as at the bottom of a window */
.status { display: flex; gap: 2px; margin-top: 10px; } .status > * { border: 1px solid; border-color: var(--dark) #fff #fff var(--dark); padding: 1px 6px; flex: 1; color: var(--dim); }

/* the taskbar */
.task { position: fixed; left: 0; right: 0; bottom: 0; height: 32px; background: linear-gradient(#3168d5, #245edb 10%, #1941a5); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 0; z-index: 50; border-top: 1px solid #0c3fa8; }
.task .start { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 18px 0 12px; color: #fff; font: italic bold 16px Tahoma, sans-serif; text-decoration: none; background: linear-gradient(#3c9a3c, #2b8a2b 50%, #1f7a1f); border-radius: 0 12px 12px 0; text-shadow: 1px 1px #000; }
.task .start:visited { color: #fff; }
.task a.t { color: #fff; text-decoration: none; background: #3c81f3; border: 1px solid #1c4fb0; border-radius: 3px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .task a.t:visited { color: #fff; }
.task .clock { margin-left: auto; color: #fff; background: #0f8de8; border-left: 1px solid #0a5cb5; height: 32px; display: flex; align-items: center; padding: 0 12px; }
@media (max-width: 600px) { .task a.t { display: none; } }

.foot { text-align: center; color: #dfe8f5; font-size: 11px; margin: 22px 16px 0; } .foot a { color: #fff; }
.hit { font: 12px 'Lucida Console', Consolas, monospace; background: #000; color: #0f0; padding: 1px 4px; }
.bars td.bar { width: 50%; } .bars i { display: block; height: 14px; background: linear-gradient(#5d9bff, #2a64e0); border: 1px solid #0a3fb8; min-width: 1px; }
.bars i.warm { background: linear-gradient(#ffb06b, #e0602a); border-color: #a84010; }
