/* Contents of the site's own windows: Internet Explorer, the profile, Control Panel pages,
   Devices and Printers, help, Getting Started, the CDN, and the power screens. */

/* Windows with extended glass keep a 30 px caption row for the title. */
.win.explorer > .caption { height: 30px; }

/* ---------- standard controls (Button, CheckBox, Combobox) ---------- */

.btn {
  min-width: 75px;
  height: 23px;
  padding: 0 12px 1px;
  border: 0;
  border-image: url("../aero/button-1.png") 5 6 fill / 5px 6px stretch;
  background: none;
  font: 12px var(--aero);
  color: #000;
}
.btn:hover { border-image-source: url("../aero/button-2.png"); }
.btn:active { border-image-source: url("../aero/button-3.png"); }
.btn.default { border-image-source: url("../aero/button-5.png"); }
.btn.default:hover { border-image-source: url("../aero/button-2.png"); }

.check {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin: 0 5px 0 0;
  vertical-align: -2px;
  background: url("../aero/checkbox-1.png") no-repeat;
}
.check:hover { background-image: url("../aero/checkbox-2.png"); }
.check:checked { background-image: url("../aero/checkbox-5.png"); }
.check:checked:hover { background-image: url("../aero/checkbox-6.png"); }

.combo { position: relative; display: inline-block; }
.combo select {
  appearance: none;
  -webkit-appearance: none;
  height: 21px;
  padding: 0 24px 1px 5px;
  border: 0;
  border-image: url("../aero/combo-1.png") 4 3 fill / 4px 3px stretch;
  background: none;
  font: 12px var(--aero);
  color: #000;
  outline: none;
}
.combo select:hover { border-image-source: url("../aero/combo-2.png"); }
.combo::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 8px;
  width: 9px;
  height: 5px;
  background: url("../aero/combo-glyph-1.png") no-repeat;
  pointer-events: none;
}

.link { color: #0066cc; text-decoration: none; }
.link:hover { color: #3399ff; text-decoration: underline; }

/* ---------- Internet Explorer ---------- */

.ie-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  display: flex;
  align-items: flex-end;
  padding: 0 6px;
  border-image: url("../aero/ie-tabbar.png") 15 1 15 1 fill / 15px 1px 15px 1px stretch;
  box-sizing: border-box;
}
.ie-fav { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; margin: 0 6px 2px 0; border: 1px solid transparent; border-radius: 3px; background: none; font: 12px var(--aero); color: #1e395b; }
.ie-fav:hover { border-color: #a9c1de; background: linear-gradient(#f2f7fd, #dde9f7); }
.ie-fav img { width: 16px; height: 16px; }
.ie-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  width: 180px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid #a9b7c9;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#fdfefe, #eef3fa);
  white-space: nowrap;
  overflow: hidden;
}
.ie-tab img { width: 16px; height: 16px; flex: none; }
.ie-page { position: absolute; left: 0; right: 0; top: 28px; bottom: 22px; overflow: auto; background: #fff; border-top: 1px solid #a9b7c9; }
.ie-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  box-sizing: border-box;
  background: linear-gradient(#f5f7fa, #e7ebf1);
  border-top: 1px solid #c3ccd8;
  color: #1e395b;
}
.ie-status .zone { margin-left: auto; display: flex; align-items: center; gap: 5px; padding-left: 10px; border-left: 1px solid #c3ccd8; }
.ie-status img { width: 16px; height: 16px; }

.page { max-width: 560px; margin: 0 auto; padding: 34px 28px; font: 13px/1.5 "Segoe UI", Tahoma, sans-serif; color: #222; }
.page .head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.page .head img { width: 64px; height: 64px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.page h1 { margin: 0; font: 26px "Segoe UI", sans-serif; color: #1c3f73; }
.page .head p { margin: 2px 0 0; color: #666; }
.page .buttons-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.page .buttons-list a {
  display: block;
  padding: 9px 12px;
  border: 1px solid #c6d4e6;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #eef4fb);
  color: #1c3f73;
  text-decoration: none;
}
.page .buttons-list a:hover { border-color: #7fa7d8; background: linear-gradient(#ffffff, #e2edf9); }
.page .buttons-list small { display: block; color: #7a8899; }
.page footer { margin-top: 26px; color: #888; font-size: 11px; }

/* The old site's news and pages, as a 2009 blog would have drawn them. */
.page.news, .page.article { max-width: 680px; padding: 22px 28px 40px; }
.page .note { margin: 4px 0 18px; color: #777; }
.news-cols { display: flex; gap: 22px; align-items: flex-start; }
.news-list { flex: 1; min-width: 0; }
.news-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #e3e8ef; color: inherit; text-decoration: none; }
.news-item:hover h3 { color: #3399ff; text-decoration: underline; }
.news-item .cover { flex: none; width: 120px; height: 68px; object-fit: cover; border: 1px solid #c6d4e6; }
.news-item h3 { margin: 0 0 2px; font: 15px "Segoe UI", sans-serif; color: #1c3f73; }
.news-item p { margin: 4px 0 0; color: #555; }
.page .meta { color: #888; font-size: 11px; }
.news-side { flex: none; width: 210px; }
.news-side h4 { margin: 12px 0 6px; font: 13px "Segoe UI", sans-serif; color: #1c3f73; }
.discord-card { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; padding: 9px 10px; border: 1px solid #c6d4e6; border-radius: 4px; background: linear-gradient(#ffffff, #eef4fb); color: #1c3f73; text-decoration: none; }
.discord-card:hover { border-color: #7fa7d8; background: linear-gradient(#ffffff, #e2edf9); }
.discord-card .discord-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #e3e8ef; }
.discord-card b { display: block; font-weight: 600; }
.discord-card small { display: block; color: #7a8899; }
.discord-card .join { display: inline-block; margin-top: 3px; color: #0066cc; }
.page.article .back { display: inline-block; margin-bottom: 10px; }
.page.article h1 { font-size: 22px; line-height: 1.25; }
.page.article .cover { display: block; max-width: 100%; margin: 14px 0 6px; border: 1px solid #c6d4e6; }
.page .body img { max-width: 100%; height: auto; }
.page .body figure { margin: 12px 0; }
.page .body h3, .page .body h4 { margin: 18px 0 6px; color: #1c3f73; }
.page .body blockquote { margin: 12px 0; padding: 6px 14px; border-left: 3px solid #a9c1de; background: #f5f8fc; }
.page .body a { color: #0066cc; }
@media (max-width: 640px) { .news-cols { flex-direction: column; } .news-side { width: 100%; } }

/* ---------- SimpleFox (profile) ---------- */

.about { display: flex; gap: 18px; padding: 18px 20px 10px; }
.userpic { position: relative; flex: none; width: 64px; height: 64px; }
.userpic img { position: absolute; left: 9px; top: 8px; width: 48px; height: 48px; object-fit: cover; }
.userpic::after { content: ""; position: absolute; inset: 0; background: url("../aero/userframe.png") no-repeat; }
.about h1 { margin: 2px 0 2px; font: 16px var(--aero); color: #003399; }
.about p { margin: 0 0 3px; }
.about .muted { color: #6d6d6d; }
.about .presence { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.about .dot { width: 8px; height: 8px; border-radius: 50%; background: #80868e; box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.25); }
.about .dot.online { background: #43b581; }
.about .dot.idle { background: #faa61a; }
.about .dot.dnd { background: #f04747; }
.section-head { display: flex; align-items: center; margin: 6px 20px 4px; color: #1e3287; }
.section-head::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: linear-gradient(to right, #e2e8f5, rgba(226, 232, 245, 0)); }
.linkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; padding: 2px 20px 14px 22px; }
.linkgrid a { display: flex; align-items: center; gap: 6px; height: 22px; }
.linkgrid img { width: 16px; height: 16px; }

/* ---------- Control Panel page ---------- */

.cp-page { position: absolute; inset: 0; overflow: auto; padding: 14px 22px 60px; background: #fff; }
.cp-title { margin: 0 0 6px; font: 16px var(--aero); color: #003399; }
.cp-text { margin: 0 0 12px; }
.cp-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.cp-row .links { margin-left: auto; display: flex; gap: 14px; }
.cp-row .gap { margin-left: 12px; }
.thumbs { height: 250px; overflow: auto; border: 1px solid #828790; padding: 2px 6px 8px; background: #fff; }
.thumbs .group-head { margin-left: 4px; margin-right: 4px; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 8px; }
.thumb { position: relative; padding: 6px; }
.thumb img { display: block; width: 128px; height: 72px; object-fit: cover; border: 1px solid #8e8f8f; }
.thumb .check { position: absolute; left: 9px; top: 9px; margin: 0; opacity: 0; }
.thumb:hover .check, .thumb .check:checked { opacity: 1; }
.thumb:hover { border-image: url("../aero/listitem-hot.png") 3 fill / 3px stretch; }
.thumb.on { border-image: url("../aero/listitem-selected.png") 3 fill / 3px stretch; }
.cp-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #f0f0f0;
  border-top: 1px solid #dfdfdf;
}

/* ---------- Help and Support, Getting Started ---------- */

.help-page { position: absolute; inset: 0; overflow: auto; padding: 16px 22px; background: #fff; }
.help-page h2 { margin: 14px 0 4px; font: 16px var(--aero); color: #003399; }
.help-page h2:first-child { margin-top: 0; }
.help-page p, .help-page li { margin: 0 0 6px; line-height: 1.45; }
.help-page ul { padding-left: 18px; margin: 0 0 8px; }
.welcome-head { padding: 14px 18px 4px; }
.welcome-head h1 { margin: 0 0 4px; font: 16px var(--aero); color: #003399; }

/* ---------- power screens ---------- */

.power {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f3c75 url("../shell/logon-background.jpg") center / cover no-repeat;
  color: #fff;
  font: 24px var(--aero);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.6s;
}
.power.shown { opacity: 1; }
.power.black { background: #000; }
.power .msg { display: flex; align-items: center; gap: 14px; }
.spinner { width: 22px; height: 22px; background: url("../aero/pending.png") 0 0 / 22px 396px; animation: spin 1s steps(18) infinite; }
@keyframes spin { to { background-position: 0 -396px; } }
.power .brand { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); width: 350px; height: 50px; background: url("../shell/branding.png"); }
.power .hint { position: absolute; bottom: 24px; font-size: 12px; opacity: 0.55; text-shadow: none; }
.logon-tile { position: relative; width: 190px; height: 190px; }
.logon-tile img { position: absolute; left: 31px; top: 31px; width: 128px; height: 128px; object-fit: cover; }
.logon-tile::after { content: ""; position: absolute; inset: 0; background: url("../shell/tile.png"); }
.logon-name { margin-top: 10px; font-size: 24px; }
.logon-sub { font-size: 16px; opacity: 0.9; }
.logon-go { width: 30px; height: 30px; margin-top: 12px; border: 0; background: url("../shell/arrow-1.png"); }
.logon-go:hover { background-image: url("../shell/arrow-2.png"); }
.logon-go:active { background-image: url("../shell/arrow-3.png"); }
.power .ease { position: absolute; left: 36px; bottom: 36px; width: 24px; height: 24px; background: url("../shell/ease.png"); }
.power .offs { position: absolute; right: 36px; bottom: 34px; display: flex; }
.power .off, .power .offarrow { width: 38px; height: 28px; border: 0; background: url("../shell/power-glyph.png") center no-repeat, url("../shell/power-1.png"); }
.power .off:hover { background-image: url("../shell/power-glyph.png"), url("../shell/power-2.png"); }
.power .off:active { background-image: url("../shell/power-glyph.png"), url("../shell/power-3.png"); }
.power .offarrow { width: 20px; background-image: url("../shell/power-arrow-glyph.png"), url("../shell/power-arrow-1.png"); }
.power .offarrow:hover { background-image: url("../shell/power-arrow-glyph.png"), url("../shell/power-arrow-2.png"); }
/* Account picker: authui's 100 px tiles (12236, hot 12233), picture 60 px at 20, 19. */
.logon-users { display: flex; gap: 36px; }
.logon-user { display: flex; flex-direction: column; align-items: center; width: 150px; padding: 0; border: 0; background: none; color: #fff; font: 18px var(--aero); text-shadow: inherit; }
.logon-user .t { position: relative; width: 100px; height: 100px; }
.logon-user .t img { position: absolute; left: 20px; top: 19px; width: 60px; height: 60px; object-fit: cover; }
.logon-user .t::after { content: ""; position: absolute; inset: 0; background: url("../shell/tile-small-1.png"); }
.logon-user:hover .t::after, .logon-user:focus-visible .t::after { background-image: url("../shell/tile-small-2.png"); }
.logon-user:focus-visible { outline: none; }
/* Password box, its arrow, and the glass buttons under it, by eye. */
.logon-pass { display: flex; align-items: center; gap: 5px; margin: 12px 0 0 35px; }
.logon-pass input {
  width: 225px;
  height: 25px;
  box-sizing: border-box;
  padding: 0 6px 1px;
  border: 1px solid #4b6d97;
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.25);
  font: 12px var(--aero);
  color: #000;
  text-shadow: none;
  outline: none;
}
.logon-pass input::placeholder { color: #8a8a8a; }
.logon-pass .logon-go { margin: 0; }
.logon-btn {
  min-width: 96px;
  height: 28px;
  margin-top: 34px;
  padding: 0 16px 1px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1) 50%, rgba(0, 0, 0, 0.06) 50%, rgba(255, 255, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 3px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 13px var(--aero);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.logon-btn:hover, .logon-btn:focus-visible { background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.25)); outline: none; }
.logon-btn:active { background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.12)); }
.logon-msg { max-width: 420px; margin-top: 14px; font-size: 16px; text-align: center; }

/* ---------- CDN ---------- */

.cdn .content.drop { outline: 2px dashed #7da2ce; outline-offset: -4px; background: #f7fafd; }
.cdn .drop-target { border-image: url("../aero/listitem-hot.png") 3 fill / 3px stretch; }
.cdn .tnode.drop-target { border-image-source: url("../aero/treeitem-hot.png"); }
.cdn img.thumb { object-fit: contain; }
.cdn .row > div.num { text-align: right; }
.cdn input.rename {
  width: 100%;
  max-width: 240px;
  height: 18px;
  box-sizing: border-box;
  padding: 0 2px;
  border: 0;
  border-image: url("../aero/edit-border-3.png") 2 fill / 2px stretch;
  font: 12px var(--aero);
  color: #000;
  outline: none;
}
.cdn .detailspane .btn.side { flex: none; margin-left: auto; }
.cdn-bar { width: 260px; max-width: 100%; height: 13px; margin: 3px 0 2px; border: 1px solid #b2b2b2; border-radius: 2px; background: linear-gradient(#f3f3f3, #e2e2e2); overflow: hidden; }
.cdn-bar > div { height: 100%; background: linear-gradient(#a8f0a0, #3ec430 45%, #19a00f 55%, #47c83a); transition: width 0.2s; }
.cdn-modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.4); }
.cdn-dialog { width: 460px; max-width: calc(100% - 24px); border: 1px solid #8a96a7; background: #fff; box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35); }
.cdn-dialog .body { display: flex; gap: 10px; padding: 14px 14px 18px; }
.cdn-dialog .body > img { width: 32px; height: 32px; flex: none; }
.cdn-dialog .main { margin: 6px 0 6px; font: 16px var(--aero); color: #003399; }
.cdn-dialog .text { white-space: pre-line; overflow-wrap: anywhere; }
.cdn-dialog .foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.cdn-dialog .foot label { margin-right: auto; }
.cdn-dialog .foot .btn { flex: none; white-space: nowrap; }
