/* ==========================================================================
   CODE FOR CREATIVES: COHORT FOUR
   Windows 98. The palette and the bevels are lifted from the August 14
   Sublime session desktop, which was Sari's idea.

   #C0C0C0 face, #000080 to #1084D0 title bar, #008080 desktop.
   Hard 2px bevels. Never a radius, never a soft shadow.
   ========================================================================== */
:root{
  --face:#C0C0C0;
  --hilite:#FFFFFF;
  --light:#DFDFDF;
  --shadow:#808080;
  --dark:#000000;
  --navy:#000080;
  --navy2:#1084D0;
  --navy-off:#808080;
  --navy-off2:#B5B5B5;
  --desktop:#008080;
  --ui:'Tahoma','MS Sans Serif','Geneva','Verdana','DejaVu Sans',sans-serif;
  --mono:'Lucida Console','Courier New',ui-monospace,monospace;
  --taskbar-h:34px;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }
body{
  background:var(--desktop);
  font-family:var(--ui);
  font-size:13px;
  color:#000;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}

.raised{
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
.sunken{
  border-top:2px solid var(--shadow);
  border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite);
  border-bottom:2px solid var(--hilite);
  box-shadow:inset 1px 1px 0 var(--dark), inset -1px -1px 0 var(--light);
}

/* ---------------- desktop ---------------- */
#desktop{ position:absolute; inset:0 0 var(--taskbar-h) 0; overflow:hidden; }

#icons{
  position:absolute; top:14px; left:14px;
  display:flex; flex-direction:column; flex-wrap:wrap;
  align-content:flex-start; gap:4px;
  max-height:calc(100% - 20px);
  z-index:1;
}
.icon{
  width:88px; padding:5px 2px 6px;
  display:flex; flex-direction:column; align-items:center; gap:5px;
  cursor:pointer; border:1px dotted transparent; background:none;
  font-family:var(--ui); font-size:12px;
}
.icon svg{ width:34px; height:34px; display:block; filter:drop-shadow(1px 1px 0 rgba(0,0,0,.35)); }
.icon span{
  color:#fff; text-align:center; line-height:1.25;
  padding:1px 3px; word-break:break-word;
  text-shadow:1px 1px 0 rgba(0,0,0,.6);
}
.icon:hover span{ background:var(--navy); text-shadow:none; }
.icon.sel span{ background:var(--navy); text-shadow:none; }
.icon.sel{ border-color:#fff; }
.icon:focus-visible{ outline:1px dotted #fff; outline-offset:1px; }

/* ---------------- windows ---------------- */
.win{
  position:absolute;
  background:var(--face);
  display:none;
  flex-direction:column;
  min-width:260px;
  padding:3px;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
.win.open{ display:flex; }

/* resize handles: the corner grip you can see, plus invisible edge strips */
.grip{ position:absolute; z-index:5; }
.grip.e{ top:6px; right:-3px; bottom:14px; width:8px; cursor:ew-resize; }
.grip.s{ left:6px; right:14px; bottom:-3px; height:8px; cursor:ns-resize; }
.grip.se{
  right:0; bottom:0; width:16px; height:16px; cursor:nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 44%, var(--hilite) 44% 56%, transparent 56%),
    linear-gradient(135deg, transparent 0 64%, var(--shadow) 64% 76%, transparent 76%),
    linear-gradient(135deg, transparent 0 84%, var(--shadow) 84% 96%, transparent 96%);
}
@media (max-width:820px){ .grip{ display:none; } }

.titlebar{
  flex:0 0 auto; height:22px;
  display:flex; align-items:center; gap:5px;
  padding:0 2px 0 4px;
  background:linear-gradient(90deg, var(--navy), var(--navy2));
  color:#fff; font-weight:700; font-size:12px;
  cursor:default; user-select:none;
}
.win.blur .titlebar{ background:linear-gradient(90deg, var(--navy-off), var(--navy-off2)); }
.titlebar .t{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.02em; }
.titlebar svg{ width:14px; height:14px; flex:0 0 auto; }

.tbtn{
  width:17px; height:15px; flex:0 0 auto;
  background:var(--face); color:#000;
  font:700 10px/1 var(--ui);
  display:grid; place-items:center; cursor:pointer;
  border-top:1px solid var(--hilite);
  border-left:1px solid var(--hilite);
  border-right:1px solid var(--dark);
  border-bottom:1px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
  padding:0 0 1px 0;
}
.tbtn:active{
  border-color:var(--dark) var(--hilite) var(--hilite) var(--dark);
  box-shadow:inset 1px 1px 0 var(--shadow);
}
.tbtn.close{ margin-left:2px; }

.menubar{
  flex:0 0 auto; display:flex; gap:2px; padding:2px 1px 3px;
  font-size:12px; border-bottom:1px solid var(--face);
}
.menubar b{ font-weight:400; padding:1px 6px; cursor:default; }
.menubar b:hover{ background:var(--navy); color:#fff; }

.body{
  flex:1 1 auto; overflow:auto; background:#fff;
  padding:14px 16px 18px; line-height:1.55;
  border-top:2px solid var(--shadow);
  border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite);
  border-bottom:2px solid var(--hilite);
  box-shadow:inset 1px 1px 0 var(--dark);
  -webkit-overflow-scrolling:touch;
}
.body.pane{ background:var(--face); border:none; box-shadow:none; padding:12px; }
.statusbar{ flex:0 0 auto; display:flex; gap:3px; padding:3px 0 0; font-size:11px; color:#000; }
.statusbar span{
  padding:2px 6px;
  border-top:1px solid var(--shadow);
  border-left:1px solid var(--shadow);
  border-right:1px solid var(--hilite);
  border-bottom:1px solid var(--hilite);
}
.statusbar span:first-child{ flex:1; }

/* ---------------- typography inside windows ---------------- */
.body h2{ font-size:16px; margin:0 0 10px; letter-spacing:-.01em; }
.body h3{ font-size:13px; margin:18px 0 4px; }
.body h3:first-child{ margin-top:0; }
.body p{ margin:0 0 11px; }
/* Added 2026-08-30. The Stripe link opens at the full price, so the discount
   code has to be visible right next to the button that goes there. */
.paynote{ font-size:12px; line-height:1.45; color:#4a4a52; margin:-4px 0 12px; }
.body ul{ margin:0 0 12px; padding-left:20px; }
.body li{ margin-bottom:6px; }
.body a{ color:#0000CC; }
.body a:visited{ color:#551A8B; }
.body a:hover{ color:#CC0000; }
.body hr{ border:none; border-top:1px solid var(--shadow); border-bottom:1px solid var(--hilite); margin:16px 0; }
.body .small{ font-size:11.5px; color:#444; }
.mono{ font-family:var(--mono); font-size:12.5px; white-space:pre-wrap; line-height:1.5; }

.tip{ background:#FFFFCC; border:1px solid #000; padding:9px 11px; margin:0 0 13px; font-size:12.5px; }

/* "Like what?" under each week in SETUP.EXE. */
.eg-h{ font-weight:700; margin:13px 0 5px; font-size:12.5px; }
ul.eg{ list-style:none; margin:0 0 4px; padding:0; }
ul.eg li{
  position:relative; padding:0 0 0 15px; margin:0 0 7px;
  font-size:12.5px; line-height:1.45; color:#242424;
}
ul.eg li::before{
  content:''; position:absolute; left:2px; top:6px;
  width:5px; height:5px; background:#C03A28;
}

/* The line from the FAQ, said big, right under the title. */
.pull{
  font-size:19px; line-height:1.28; font-weight:700; letter-spacing:-.012em;
  margin:0 0 13px; padding:0 0 0 12px;
  border-left:5px solid #C03A28;
  color:#1a1a1a;
}
@media (max-width:820px){ .pull{ font-size:17px; } }

/* The price used to sit on the same grey as everything else and read as a
   spec line. Warm red, so the number feels like a good thing rather than a
   bill. Cream text on #C03A28 is 7.1:1, well past AA. */
.price{
  position:relative; overflow:hidden;
  text-align:center; padding:18px 12px 16px; margin:0 0 14px;
  border-top:2px solid #E8836F;
  border-left:2px solid #E8836F;
  border-right:2px solid #7A2216;
  border-bottom:2px solid #7A2216;
  background:radial-gradient(120% 150% at 50% 0%, #E05B41 0%, #C03A28 62%, #A82F1F 100%);
  color:#FFF4EC;
}
.price b{
  display:block; font-size:38px; letter-spacing:-.02em; line-height:1;
  color:#FFF8F2; text-shadow:0 2px 0 #8B2418;
}
.price i{
  display:block; font-style:normal; font-size:12.5px; margin-top:7px;
  color:#FFD9CB;
}
/* Early bird, added 2026-08-30. The struck-through full price sits above the
   number people actually pay through Sep 14. #FFD9CB on #C03A28 is 4.9:1. */
.price s{
  display:block; font-size:19px; line-height:1; margin-bottom:5px;
  color:#FFC9B6; text-decoration:line-through; text-decoration-thickness:2px;
}
.price em{
  display:block; font-style:normal; font-size:13.5px; margin-top:9px;
  color:#FFF4EC; font-weight:700;
}
/* A translucent white chip over the red measured about 2.6:1. Solid cream with
   the darkest red from the gradient on top is 7.5:1. */
.price code{
  font-family:inherit; font-weight:700;
  background:#FFF4EC; color:#8B2418;
  padding:2px 7px; border-radius:5px;
  white-space:nowrap;
}
.price s, .price em{ position:relative; }
/* One soft warm highlight across the top so it reads as a hug and not a
   warning label. Sits behind the text. */
.price::before{
  content:''; position:absolute; left:-20%; top:-70%; width:140%; height:110%;
  background:radial-gradient(closest-side, rgba(255,214,120,.30), transparent 70%);
  pointer-events:none;
}
.price b, .price i{ position:relative; }

/* The questions people actually ask before they decide, answered right after
   the price instead of scattered across eight other windows. Alex's list from
   past cohorts: what it costs, whether there's a payment plan, when it meets
   and whether that works in their timezone, whether they need to code. */
.facts{ margin:0 0 14px; }
.facts dt{ font:700 12.5px/1.35 var(--ui); margin:0 0 2px; }
.facts dd{
  font-size:12.5px; line-height:1.45; margin:0 0 11px;
  padding:0 0 0 11px; border-left:3px solid var(--shadow);
}
.facts dd:last-of-type{ margin-bottom:0; }

.btn{
  display:inline-block; padding:6px 18px; margin:2px 4px 2px 0;
  background:var(--face); color:#000; text-decoration:none;
  font:700 12.5px/1.2 var(--ui); cursor:pointer;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
.btn:visited{ color:#000; }
.btn:active{
  border-color:var(--dark) var(--hilite) var(--hilite) var(--dark);
  box-shadow:inset 1px 1px 0 var(--shadow);
  padding:7px 17px 5px 19px;
}
.btn[disabled]{ color:var(--shadow); text-shadow:1px 1px 0 var(--hilite); cursor:default; }
.btn[disabled]:active{
  border-top:2px solid var(--hilite); border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark); border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
  padding:6px 18px;
}

/* what you get, as a checklist */
.get{ list-style:none; padding:0; margin:0 0 14px; }
.get li{ display:flex; gap:9px; align-items:flex-start; margin:0 0 8px; font-size:12.5px; }
.get .ck{ flex:0 0 auto; width:13px; height:13px; margin-top:2px; }
.get b{ font-weight:700; }

/* ---------------- SETUP.EXE ---------------- */
#w-setup .body{ padding:0; display:flex; flex-direction:column; background:var(--face); border:none; box-shadow:none; }
.setup-stage{
  flex:1 1 auto; display:flex; min-height:0;
  background:#fff;
  border-top:2px solid var(--shadow); border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite); border-bottom:2px solid var(--hilite);
  box-shadow:inset 1px 1px 0 var(--dark);
  margin:10px 10px 0;
}
.setup-side{
  flex:0 0 122px; background:linear-gradient(160deg,#000080,#1084D0);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:14px 12px; color:#fff;
}
.setup-side b{ font-size:15px; line-height:1.2; display:block; }
.setup-side i{ font-style:normal; font-size:11px; color:#CFE3FF; display:block; margin-top:5px; }
.setup-main{ flex:1 1 auto; padding:16px 18px; overflow:auto; min-width:0; }
.setup-main h3{ font-size:14px; margin:0 0 3px; }
.setup-main .wk{ font-family:var(--mono); font-size:11px; color:#666; margin:0 0 12px; letter-spacing:.05em; }
.setup-main .lb{ font-family:var(--mono); font-size:11px; font-weight:700; color:#000080; letter-spacing:.08em; display:block; margin-bottom:2px; }
.setup-main .ln{ margin:0 0 14px; font-size:13px; line-height:1.5; }
.setup-bar{
  margin:12px 10px 0; height:20px; background:#fff; padding:2px;
  border-top:2px solid var(--shadow); border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite); border-bottom:2px solid var(--hilite);
  box-shadow:inset 1px 1px 0 var(--dark);
}
.setup-fill{ height:100%; width:0; background:var(--navy); transition:width .28s steps(12); }
@media (prefers-reduced-motion:reduce){ .setup-fill{ transition:none; } }
.setup-status{ margin:5px 10px 0; font-size:11.5px; color:#333; font-family:var(--mono); }
.setup-nav{ display:flex; gap:6px; justify-content:flex-end; padding:12px 10px 10px; }

/* ---------------- Explorer ---------------- */
#w-explorer .body{ padding:0; background:#fff; display:flex; flex-direction:column; }
.exp-tools{
  flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:5px 8px;
  background:var(--face); border-bottom:1px solid var(--shadow); font-size:11.5px;
}
.exp-addr{
  flex:1 1 auto; background:#fff; padding:2px 6px;
  border:1px solid var(--shadow);
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  font-family:var(--mono); font-size:11px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.exp-head, .exp-row{ display:grid; grid-template-columns: 1fr 190px; gap:0; }
.exp-head{ position:sticky; top:0; z-index:2; }
.exp-head span{
  background:var(--face); padding:4px 8px; font-size:11.5px; font-weight:700; text-align:left;
  border-right:1px solid var(--shadow); border-bottom:1px solid var(--shadow);
  border-top:1px solid var(--hilite);
}
.exp-list{ flex:1 1 auto; overflow:auto; }

/* Large Icons, which is the default. A grid of thirty-one program icons says
   "look how much came out of this" in a way a two column list does not. */
.exp-view{ flex:0 0 auto; display:flex; gap:0; }
.exp-view button{
  padding:2px 8px; font:400 11px/1.4 var(--ui); cursor:pointer;
  background:var(--face); color:#000;
  border-top:1px solid var(--hilite); border-left:1px solid var(--hilite);
  border-right:1px solid var(--dark); border-bottom:1px solid var(--dark);
}
.exp-view button.on{
  border-top-color:var(--shadow); border-left-color:var(--shadow);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  font-weight:700;
}
.exp-list.icons{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr));
  gap:4px; padding:9px; align-content:start;
}
.exp-list.icons .exp-row{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:5px; padding:8px 5px; border:1px dotted transparent;
}
.exp-list.icons .exp-row .nm{ display:block; }
.exp-list.icons .exp-row .nm svg{ width:36px; height:36px; }
.exp-list.icons .exp-row .nm i{
  display:block; margin-top:4px; font-size:11px; line-height:1.25;
  white-space:normal; overflow-wrap:anywhere;
}
/* The "Built by" column has nowhere to go in icon view. */
.exp-list.icons .exp-row .sz{ display:none; }
.exp-list.icons .exp-row.sel{ background:var(--navy); color:#fff; border-color:#fff; }
@media (max-width:820px){
  .exp-list.icons{ grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); }
  .exp-view{ display:none; }
}
.exp-row{ cursor:pointer; align-items:center; }
.exp-row > *{ padding:5px 8px; font-size:12px; min-width:0; }
.exp-row .nm{ display:flex; gap:8px; align-items:center; overflow:hidden; }
.exp-row .nm svg{ width:19px; height:19px; flex:0 0 auto; }
.exp-row .nm i{ font-style:normal; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.exp-row .sz, .exp-row .dt{ color:#333; font-family:var(--mono); font-size:11px; }
.exp-row:hover{ background:#EFEFEF; }
.exp-row.sel{ background:var(--navy); color:#fff; }
.exp-row.sel .sz, .exp-row.sel .dt{ color:#CFE3FF; }
.exp-detail{
  flex:0 0 auto; background:var(--face); padding:10px 12px; font-size:12.5px;
  border-top:2px solid var(--hilite); min-height:74px;
}
.exp-detail b{ display:block; margin-bottom:3px; }
.exp-detail .by{ font-family:var(--mono); font-size:11px; color:#444; margin-bottom:5px; }

/* ---------------- AIM ----------------
   Buddy list down the left, one conversation on the right. Click a name and
   they sign on and answer the question. */
#w-aim .body{ padding:0; background:#fff; display:flex; flex-direction:column; }
.im-wrap{ flex-direction:row !important; align-items:stretch; }

.bl{
  flex:0 0 202px; display:flex; flex-direction:column; min-width:0;
  background:var(--face); border-right:2px solid var(--shadow);
}
.bl-hd{
  flex:0 0 auto; display:flex; align-items:center; gap:7px;
  padding:6px 8px; font-weight:700; font-size:12px;
  background:linear-gradient(90deg,var(--navy),var(--navy2)); color:#fff;
}
.bl-hd svg{ width:16px; height:16px; }
.bl-grp{
  flex:0 0 auto; padding:5px 8px; font-size:11.5px; font-weight:700; color:#000;
  background:#DCD8CE; border-bottom:1px solid var(--shadow);
}
.bl-list{
  flex:1 1 auto; overflow:auto; background:#fff; margin:3px;
  border-top:2px solid var(--shadow);
  border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite);
  border-bottom:2px solid var(--hilite);
}
.bl-row{
  display:flex; align-items:center; gap:7px; width:100%;
  padding:5px 8px; background:none; border:none; cursor:pointer;
  font:400 12.5px/1.25 var(--ui); color:#000; text-align:left;
}
.bl-row svg{ width:14px; height:14px; flex:0 0 auto; }
.bl-row span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bl-row:hover{ background:#E8E4DA; }
.bl-row.sel{ background:var(--navy); color:#fff; }
/* Buddies you have not opened yet are bold, the way an unread name was. */
.bl-row.fresh span{ font-weight:700; }
.bl-row.sel.fresh span{ font-weight:700; }

.im-conv{ flex:1 1 auto; display:flex; flex-direction:column; min-width:0; }
.im-log{ flex:1 1 auto; overflow:auto; padding:10px 12px; }
.im-empty{ color:#666; font-size:12.5px; padding:14px 2px; }
.im-typing{ font-size:11.5px; color:#666; font-style:italic; margin:0 0 10px; }
.im{ margin:0 0 12px; font-size:12.5px; line-height:1.5; }
.im .who{ font-weight:700; color:#CC0000; }
.im.you .who{ color:#0000CC; }
.im .txt{ display:inline; }
.im-foot{
  flex:0 0 auto; background:var(--face); padding:8px 10px;
  border-top:2px solid var(--hilite); font-size:11.5px; color:#333;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.im-foot .dot{ width:8px; height:8px; background:#00AA00; flex:0 0 auto; border:1px solid #005500; }

/* ---------------- Outlook ---------------- */
#w-inbox .body{ padding:0; background:#fff; display:flex; flex-direction:column; }
.ol-head, .ol-row{ display:grid; grid-template-columns: 22px 1fr 92px; }
.ol-head span{
  background:var(--face); padding:4px 8px; font-size:11.5px; font-weight:700;
  border-right:1px solid var(--shadow); border-bottom:1px solid var(--shadow);
  border-top:1px solid var(--hilite);
}
.ol-list{ flex:0 0 auto; max-height:44%; overflow:auto; border-bottom:2px solid var(--shadow); }
.ol-row{ cursor:pointer; }
.ol-row > *{ padding:5px 8px; font-size:12px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ol-row.unread{ font-weight:700; }
.ol-row:hover{ background:#EFEFEF; }
.ol-row.sel{ background:var(--navy); color:#fff; }
.ol-row.sel .frm{ color:#CFE3FF; }
.ol-row .env{ padding:5px 4px; }
.ol-row .env svg{ width:14px; height:14px; }
.ol-row .frm{ font-family:var(--mono); font-size:11px; color:#444; }
.ol-read{ flex:1 1 auto; overflow:auto; padding:0; }
.ol-hdr{ background:var(--face); padding:8px 12px; font-size:11.5px; border-bottom:1px solid var(--shadow); }
.ol-hdr b{ font-size:13px; display:block; margin-bottom:3px; }
.ol-hdr .meta{ font-family:var(--mono); font-size:11px; color:#444; }
.ol-msg{ padding:12px 14px 16px; font-size:12.5px; line-height:1.55; }
.ol-msg p{ margin:0 0 10px; }
.ol-msg .sig{ font-family:var(--mono); font-size:11.5px; color:#333; }

/* ---------------- Internet Explorer ---------------- */
.addrbar{
  display:flex; align-items:center; gap:6px; flex:0 0 auto;
  padding:4px 6px; background:var(--face); font-size:11.5px;
  border-bottom:1px solid var(--shadow);
}
.addrbar .lbl{ color:#404040; }
.addrbar .url{
  flex:1 1 auto; background:#fff; padding:2px 5px;
  border:1px solid var(--shadow);
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  font-family:var(--mono); font-size:11px; color:#000;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#w-faq .body{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
#w-faq iframe{ display:block; flex:1 1 auto; width:100%; border:0; background:#fff; min-height:260px; }
#w-faq .fallback{ padding:14px 16px; }
@media (max-width:820px){ #w-faq iframe{ height:520px; flex:0 0 auto; } }

/* ---------------- Minesweeper ---------------- */
#w-mine .body{ background:var(--face); border:none; box-shadow:none; padding:8px; overflow:auto; }
.ms-top{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:5px 6px; margin-bottom:7px;
  border-top:2px solid var(--shadow); border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite); border-bottom:2px solid var(--hilite);
}
.ms-lcd{
  background:#000; color:#FF0000; font-family:var(--mono); font-weight:700;
  font-size:19px; letter-spacing:.06em; padding:1px 5px; min-width:47px; text-align:center;
  border:1px solid var(--shadow);
}
.ms-face{
  width:28px; height:28px; font-size:15px; line-height:1; cursor:pointer;
  background:var(--face); display:grid; place-items:center;
  border-top:2px solid var(--hilite); border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark); border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
}
.ms-face:active{ border-color:var(--dark) var(--hilite) var(--hilite) var(--dark); box-shadow:inset 1px 1px 0 var(--shadow); }
.ms-grid{
  display:grid; grid-template-columns:repeat(9, 22px); gap:0; width:max-content; margin:0 auto;
  border-top:2px solid var(--shadow); border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite); border-bottom:2px solid var(--hilite);
  touch-action:manipulation;
}
.ms-c{
  width:22px; height:22px; display:grid; place-items:center;
  font:700 13px/1 var(--ui); cursor:pointer; user-select:none;
  background:var(--face);
  border-top:2px solid var(--hilite); border-left:2px solid var(--hilite);
  border-right:2px solid var(--shadow); border-bottom:2px solid var(--shadow);
}
.ms-c.op{
  border:1px solid var(--shadow); background:var(--face);
  width:22px; height:22px;
}
.ms-c.boom{ background:#FF0000; }
.ms-c.n1{ color:#0000FF; } .ms-c.n2{ color:#008000; } .ms-c.n3{ color:#FF0000; }
.ms-c.n4{ color:#000080; } .ms-c.n5{ color:#800000; } .ms-c.n6{ color:#008080; }
.ms-c.n7{ color:#000000; } .ms-c.n8{ color:#808080; }
.ms-note{ font-size:11px; color:#333; margin-top:8px; text-align:center; }

.im .sig{ font-size:11px; color:#666; margin-top:3px; }
.im.alex .who{ color:#0000CC; }
.im-sys{
  font-size:11px; color:#666; font-style:italic;
  margin:0 0 9px; padding-top:9px; border-top:1px solid #E4E1DA;
}
.im-log > .im-sys:first-child{ border-top:none; padding-top:0; }

/* ---------------- dial-up, and the mom ---------------- */
.modal{
  position:fixed; inset:0; z-index:20000; display:none;
  align-items:center; justify-content:center; padding:16px;
}
.modal.on{ display:flex; }
#dialup{ background:var(--desktop); }
#mom{ background:rgba(0,0,0,.28); }
.dlg{
  background:var(--face); padding:3px; width:100%; max-width:396px;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
.dlg .titlebar{ cursor:default; }
.dlg-body{ padding:15px 16px 14px; }
.dlg-row{ display:flex; align-items:center; gap:9px; margin:0 0 9px; font-size:12.5px; }
.dlg-row label{ flex:0 0 96px; text-align:right; color:#000; }
.dlg-row .fld{
  flex:1 1 auto; background:#fff; padding:3px 6px; font-family:var(--mono); font-size:12px;
  border:1px solid var(--shadow);
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.dlg-check{ display:flex; gap:7px; align-items:center; font-size:12px; margin:2px 0 0 105px; color:#333; }
.dlg-check .bx{
  width:13px; height:13px; background:#fff; display:grid; place-items:center;
  border:1px solid var(--shadow);
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
}
.dlg-check .bx svg{ width:11px; height:11px; }
.dlg-nav{ display:flex; gap:7px; justify-content:flex-end; padding:4px 16px 14px; }
.dlg-msg{ display:flex; gap:14px; align-items:flex-start; padding:18px 18px 14px; }
.dlg-msg .ico{ flex:0 0 auto; width:34px; height:34px; }
.dlg-msg p{ font-size:13px; margin:0 0 8px; line-height:1.5; }
.dlg-msg p:last-child{ margin-bottom:0; }
#dial-status{
  font-family:var(--mono); font-size:12px; color:#000; min-height:70px;
  padding:16px 18px 8px; line-height:1.7; white-space:pre-line;
}

/* ---------------- Clippy, who answers questions ---------------- */
#w-clippy .body{ background:#FFFFCC; padding:0; display:flex; flex-direction:column; }
.chat-log{ flex:1 1 auto; overflow:auto; padding:12px 13px 6px; min-height:120px; }
.chat-msg{ display:flex; gap:9px; margin:0 0 11px; align-items:flex-start; }
.chat-msg svg{ width:26px; height:33px; flex:0 0 auto; margin-top:1px; }
.chat-msg .bub{ font-size:12.5px; line-height:1.5; }
.chat-msg .bub p{ margin:0 0 7px; }
.chat-msg .bub p:last-child{ margin-bottom:0; }
.chat-msg.you{ justify-content:flex-end; }
.chat-msg.you .bub{
  background:var(--face); padding:6px 9px; max-width:82%;
  border-top:1px solid var(--hilite); border-left:1px solid var(--hilite);
  border-right:1px solid var(--shadow); border-bottom:1px solid var(--shadow);
}
.chat-msg .bub a{ color:#0000CC; }
.chat-chips{ display:flex; flex-wrap:wrap; gap:5px; padding:0 13px 9px; }
.chat-chips button{
  font:400 11.5px/1.2 var(--ui); padding:4px 9px; cursor:pointer;
  background:var(--face); color:#000;
  border-top:1px solid var(--hilite); border-left:1px solid var(--hilite);
  border-right:1px solid var(--dark); border-bottom:1px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
}
.chat-chips button:active{
  border-color:var(--dark) var(--hilite) var(--hilite) var(--dark);
  box-shadow:inset 1px 1px 0 var(--shadow);
}
.chat-ask{
  flex:0 0 auto; display:flex; gap:6px; padding:9px 10px;
  background:var(--face); border-top:2px solid var(--hilite);
}
.chat-ask input{
  flex:1 1 auto; min-width:0; background:#fff; padding:5px 7px;
  font:400 12.5px/1.2 var(--ui); color:#000;
  border:1px solid var(--shadow);
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
}
.chat-ask input:focus{ outline:1px dotted #000; outline-offset:-3px; }
.chat-ask button{
  flex:0 0 auto; padding:5px 14px; font:700 12.5px/1.2 var(--ui); cursor:pointer;
  background:var(--face); color:#000;
  border-top:2px solid var(--hilite); border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark); border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
}
.chat-ask button:active{
  border-color:var(--dark) var(--hilite) var(--hilite) var(--dark);
  box-shadow:inset 1px 1px 0 var(--shadow);
}
.chat-typing{ font-size:12px; color:#666; padding:0 13px 10px; }

/* ---------------- taskbar ---------------- */
#taskbar{
  position:absolute; left:0; right:0; bottom:0; height:var(--taskbar-h);
  background:var(--face);
  border-top:2px solid var(--hilite);
  box-shadow:inset 0 1px 0 var(--light);
  display:flex; align-items:center; gap:4px; padding:3px 3px;
  z-index:9000;
}
#start{
  flex:0 0 auto; display:flex; align-items:center; gap:5px;
  padding:3px 8px 4px 5px; background:var(--face);
  font:700 12.5px/1 var(--ui); cursor:pointer;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
}
#start.on{ border-color:var(--dark) var(--hilite) var(--hilite) var(--dark); box-shadow:inset 1px 1px 0 var(--shadow); }
#start svg{ width:17px; height:17px; }
.tsep{ flex:0 0 auto; width:0; height:20px; margin:0 2px;
  border-left:1px solid var(--shadow); border-right:1px solid var(--hilite); }
#tasks{ flex:1 1 auto; display:flex; gap:3px; overflow:hidden; }
.task{
  flex:0 1 148px; min-width:0; display:flex; align-items:center; gap:5px;
  padding:3px 7px; background:var(--face); cursor:pointer;
  font:400 12px/1 var(--ui); text-align:left;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow);
}
/* the hidden attribute has to beat the display:flex above it */
.task[hidden]{ display:none; }
.task span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task svg{ width:14px; height:14px; flex:0 0 auto; }
.task.active{
  font-weight:700;
  border-color:var(--dark) var(--hilite) var(--hilite) var(--dark);
  box-shadow:inset 1px 1px 0 var(--shadow);
  background-image:repeating-linear-gradient(45deg,#fff 0 1px,transparent 1px 2px);
}
#tray{
  flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:2px 8px; font-size:12px;
  border-top:1px solid var(--shadow);
  border-left:1px solid var(--shadow);
  border-right:1px solid var(--hilite);
  border-bottom:1px solid var(--hilite);
}

/* ---------------- right click menu ---------------- */
#deskmenu{
  position:fixed; z-index:9800; display:none; min-width:176px; padding:3px;
  background:var(--face);
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
#deskmenu.on{ display:block; }
.dm-item{
  display:block; width:100%; padding:5px 12px; text-align:left; cursor:pointer;
  background:none; border:none; font:400 13px/1.2 var(--ui); color:#000;
}
.dm-item:hover{ background:var(--navy); color:#fff; }
.dm-sep{ height:0; margin:3px 2px; border-top:1px solid var(--shadow); border-bottom:1px solid var(--hilite); }

.desk-flash{
  position:fixed; left:50%; bottom:52px; transform:translateX(-50%); z-index:9900;
  background:#FFFFCC; color:#000; border:1px solid #000;
  padding:7px 13px; font:400 12.5px/1.3 var(--ui); max-width:90vw;
}

/* ---------------- screensaver ---------------- */
#saver{ position:fixed; inset:0; z-index:19000; background:#000; display:none; }
#saver.on{ display:block; }
.saver-txt{
  position:absolute; left:0; top:0; will-change:transform;
  font:700 40px/1 var(--ui); letter-spacing:-.02em; white-space:nowrap;
  padding:6px 10px;
}
@media (prefers-reduced-motion:reduce){ #saver{ display:none !important; } }

/* ---------------- Recycle Bin ---------------- */
.bin-empty{ margin-top:26px; text-align:center; color:#666; }
.bin-empty span{ font-size:11px; color:#888; }
.bin-list{ display:flex; flex-wrap:wrap; gap:10px; padding:8px 2px; }
.bin-item{
  width:84px; display:flex; flex-direction:column; align-items:center; gap:4px;
  font-size:11px; text-align:center; color:#333;
}
.bin-item svg{ width:28px; height:28px; opacity:.65; }

/* The icon following your finger while you drag it. */
#drag-ghost{
  position:fixed; z-index:30000; pointer-events:none; opacity:.72;
  width:88px; display:flex; flex-direction:column; align-items:center; gap:5px;
  font-family:var(--ui); font-size:12px; color:#fff; text-align:center;
}
#drag-ghost svg{ width:32px; height:32px; }
#drag-ghost span{ text-shadow:1px 1px 0 #000; }
/* The bin lights up when you are over it. */
.icon.drop-on{ border:1px dotted #fff; background:rgba(0,0,128,.55); }

/* ---------------- CAGI ---------------- */
#w-cagi .body{ padding:0; background:#000; display:flex; flex-direction:column; }
.cagi-note{
  flex:0 0 auto; background:var(--face); color:#000; padding:7px 10px;
  font-size:11.5px; border-bottom:2px solid var(--shadow);
}
#cagi-frame{ flex:1 1 auto; width:100%; border:0; background:#000; min-height:220px; }
#cagi-fallback{ padding:16px; background:var(--face); }

/* ---------------- Clippy's prompt ---------------- */
.prompt-txt{
  white-space:pre-wrap; overflow-wrap:anywhere;
  font-size:11.5px; line-height:1.5; color:#111;
  background:#fff; padding:10px 11px;
  border-top:2px solid var(--shadow);
  border-left:2px solid var(--shadow);
  border-right:2px solid var(--hilite);
  border-bottom:2px solid var(--hilite);
}

/* ---------------- GO ONLINE ----------------
   Sits in the top right of the desktop, out of the way of the windows, which
   open from the left. Deliberately the loudest thing on the screen. */
#goonline{
  position:absolute; top:16px; right:18px; z-index:400;
  display:flex; align-items:center; gap:11px;
  padding:11px 18px 11px 14px; cursor:pointer;
  background:var(--face); color:#000; font-family:var(--ui);
  border-top:3px solid var(--hilite);
  border-left:3px solid var(--hilite);
  border-right:3px solid var(--dark);
  border-bottom:3px solid var(--dark);
  box-shadow:inset -2px -2px 0 var(--shadow), inset 2px 2px 0 var(--light), 3px 3px 0 rgba(0,0,0,.35);
}
#goonline svg{ width:34px; height:34px; flex:0 0 auto; }
#goonline span{ display:block; text-align:left; }
#goonline b{ display:block; font-size:16px; letter-spacing:.06em; line-height:1; }
#goonline i{ display:block; font-style:normal; font-size:11px; margin-top:3px; color:#404040; }
#goonline:active{
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  box-shadow:inset 2px 2px 0 var(--shadow);
  transform:translate(2px,2px);
}
/* Once you are online there is nothing left to connect to. */
#goonline[hidden]{ display:none; }
/* The lights blink until you click it, so the eye goes there. */
#goonline circle{ animation:modemblink 1.15s steps(1,end) infinite; }
#goonline circle:nth-of-type(2){ animation-delay:.38s; }
#goonline circle:nth-of-type(3){ animation-delay:.76s; }
@keyframes modemblink{ 0%,49%{ opacity:1; } 50%,100%{ opacity:.25; } }
@media (prefers-reduced-motion: reduce){ #goonline circle{ animation:none; } }

/* ---------------- the paperclip button (phones only) ----------------
   Hidden on the desktop, where Clippy is a window you can drag around. */
#clippy-fab{
  display:none;
  position:fixed; right:10px; bottom:10px; z-index:901;
  align-items:center; gap:8px; padding:10px 14px 10px 10px;
  background:var(--face); color:#000; font:700 13px/1 var(--ui); cursor:pointer;
  border-top:3px solid var(--hilite);
  border-left:3px solid var(--hilite);
  border-right:3px solid var(--dark);
  border-bottom:3px solid var(--dark);
  box-shadow:inset -2px -2px 0 var(--shadow), inset 2px 2px 0 var(--light), 3px 3px 0 rgba(0,0,0,.4);
}
#clippy-fab svg{ width:26px; height:26px; flex:0 0 auto; }
#clippy-fab:active{
  border-top-color:var(--dark); border-left-color:var(--dark);
  border-right-color:var(--hilite); border-bottom-color:var(--hilite);
  box-shadow:inset 2px 2px 0 var(--shadow);
  transform:translate(2px,2px);
}
/* after a while he waves, instead of opening himself on top of what you read */
#clippy-fab.nudge{ animation:clipnudge 1.4s ease-in-out 4; }
@keyframes clipnudge{
  0%,100%{ transform:none; }
  25%{ transform:rotate(-7deg); }
  60%{ transform:rotate(7deg); }
}
@media (prefers-reduced-motion:reduce){ #clippy-fab.nudge{ animation:none; } }

/* ---------------- tray sound toggle ---------------- */
#tray{ gap:8px; }
#online-badge{ font-size:11px; color:#004000; }
#mute{
  display:flex; align-items:center; justify-content:center;
  width:20px; height:18px; padding:0; border:none; background:none; cursor:pointer;
}
#mute svg{ width:15px; height:15px; }
#mute[aria-pressed="true"] .wv{ display:none; }
#mute[aria-pressed="true"] .xx{ display:inline !important; }

/* ---------------- start menu ---------------- */
#startmenu{
  position:absolute; left:3px; bottom:calc(var(--taskbar-h) + 1px);
  width:250px; display:none; z-index:9500;
  background:var(--face); padding:3px;
  border-top:2px solid var(--hilite);
  border-left:2px solid var(--hilite);
  border-right:2px solid var(--dark);
  border-bottom:2px solid var(--dark);
  box-shadow:inset -1px -1px 0 var(--shadow), inset 1px 1px 0 var(--light);
}
#startmenu.open{ display:flex; }
#startmenu .spine{
  width:24px; flex:0 0 auto; background:linear-gradient(180deg,#000080,#1084D0);
  position:relative;
  /* Belt and braces: even if the label ever outgrows the strip it gets cut
     off inside it rather than spilling onto the Start button. */
  overflow:hidden;
}
#startmenu .spine b{
  /* Reads bottom to top, like the real thing. This used to be a rotate(-90deg)
     on a normal text box, which rotates about the box centre: a 70px wide label
     ended up sticking ~20px out of the bottom of the strip and landing on top
     of the Start button. writing-mode turns the text without moving the box. */
  position:absolute; left:0; right:0; bottom:8px;
  writing-mode:vertical-rl; transform:rotate(180deg);
  color:#fff; font:700 15px/1 var(--ui); letter-spacing:.06em; white-space:nowrap;
}
#startmenu ul{ flex:1 1 auto; list-style:none; margin:0; padding:0; }
#startmenu li{ margin:0; }
#startmenu li.sep{ height:0; margin:3px 2px; border-top:1px solid var(--shadow); border-bottom:1px solid var(--hilite); }
#startmenu button{
  width:100%; display:flex; align-items:center; gap:8px;
  padding:6px 10px; background:none; border:none; cursor:pointer;
  font:400 13px/1.2 var(--ui); color:#000; text-align:left;
}
#startmenu button:hover{ background:var(--navy); color:#fff; }
#startmenu button svg{ width:20px; height:20px; flex:0 0 auto; }

/* ---------------- mobile ----------------
   Below 820px the desktop goes away entirely. Every window sits in normal
   document flow, always open, full width. Dragging a title bar with a thumb
   is a bad time, and most people open this on a phone.
   -------------------------------------------------------------------- */
#mobilehead{ display:none; padding:22px 16px 16px; text-align:center; }
#mobilehead b{
  display:block; color:#fff; font-size:20px; letter-spacing:-.01em; line-height:1.25;
  text-shadow:1px 1px 0 rgba(0,0,0,.45);
}
#mobilehead i{
  display:block; font-style:normal; color:#CFEAEA; font-size:12.5px; margin-top:6px;
  text-shadow:1px 1px 0 rgba(0,0,0,.4);
}

@media (max-width:820px){
  body{ overflow:auto; background:var(--desktop); }
  #desktop{
    position:static; inset:auto; overflow:visible; padding:0 10px 26px;
    display:flex; flex-direction:column;
  }
  #icons{ display:none; }
  #mobilehead{ display:block; order:0; }
  /* GO ONLINE is absolutely positioned top right on the desktop, which on a
     phone landed on top of the header text. Put it in the flow instead. */
  #goonline{ position:static; order:1; margin:0 auto 14px; }
  .win{
    position:static !important; display:flex !important;
    /* width:100%, not auto: #desktop is a flex column now, and a flex item with
       auto side margins shrinks to fit its content. The AIM buddy list is a
       sideways-scrolling row, so shrink-to-fit made that window 640px wide and
       the whole page scrolled sideways at 390px. */
    width:100% !important; height:auto !important;
    max-width:640px; margin:0 auto 14px; min-width:0; transform:none !important;
    order:5;
  }
  /* The price, the dates and the only Apply button were 678px down the page,
     behind a README that opened by apologizing for an email. Cohort 4 first. */
  #w-cohort{ order:2; }
  #w-readme{ order:3; }
  #w-final{ order:20; display:flex !important; }
  /* Four windows are cut on a phone: they were 3,683px of a 9,739px page and
     none of them work with a thumb. Minesweeper needs a right click, the
     Recycle Bin needs a drag, CAGI renders as a black iframe at this width,
     and clippy-prompt.txt was 29% of the whole page on its own. */
  #w-mine, #w-bin, #w-cagi, #w-prompt{ display:none !important; }
  .win .body{ max-height:none; overflow:visible; padding:13px 14px 16px; }
  .titlebar{ background:linear-gradient(90deg, var(--navy), var(--navy2)) !important; }
  .tbtn{ display:none; }
  #taskbar{ position:static; height:auto; padding:6px; }
  #tasks{ display:none; }
  #start{ display:none; }
  .tsep{ display:none; }
  #tray{ margin:0 auto; }
  #startmenu{ display:none !important; }
  .mono{ font-size:11.5px; }
  .body h2{ font-size:15px; }
  .exp-list{ overflow:visible; }
  .ol-list{ max-height:none; overflow:visible; }
  /* On a phone the buddy list goes on top and scrolls sideways, because a
     202px column next to a conversation leaves room for neither. */
  .im-wrap{ flex-direction:column !important; }
  .bl{ flex:0 0 auto; border-right:none; border-bottom:2px solid var(--shadow); }
  .bl-list{ display:flex; overflow-x:auto; overflow-y:hidden; max-height:none; }
  .bl-row{ width:auto; flex:0 0 auto; white-space:nowrap; }
  .bl-row span{ max-width:140px; }
  .im-log{ overflow:visible; }
  .exp-head, .exp-row{ grid-template-columns: 1fr 120px; }
  .ol-head, .ol-row{ grid-template-columns: 20px 1fr; }
  .ol-head span:last-child, .ol-row .frm{ display:none; }
  .setup-side{ display:none; }
  #w-setup .body{ background:var(--face); }

  /* Clippy stops being a window you have to scroll to the bottom to find and
     becomes a button that follows you down the page, opening the chat on top
     of everything. Sari looked for the paperclip on her phone and could not
     find it; it was the last 3% of a 9,700px scroll. */
  #clippy-fab{ display:flex; }
  #w-clippy{
    position:fixed !important;
    left:10px; right:10px; bottom:70px; top:auto;
    width:auto !important; max-width:none; margin:0;
    max-height:72vh; z-index:900;
    display:none !important;
    box-shadow:0 6px 26px rgba(0,0,0,.45);
  }
  #w-clippy.open{ display:flex !important; }
  #w-clippy .body{ padding:0; overflow:hidden; min-height:0; }
  #w-clippy .chat-log{ overflow:auto; -webkit-overflow-scrolling:touch; }
  /* the one title bar button that stays on mobile, so the panel can be shut */
  #w-clippy .tbtn.close{ display:grid; }
}

@media (prefers-reduced-motion:reduce){ *{ transition:none !important; animation:none !important; } }
