/* ==========================================================================
   America Online 3.0 (1996) - browser recreation
   No transitions. No border-radius. No blurred shadows. Nothing fluid.
   ========================================================================== */

:root {
  --face:  #dfdfdf;   /* window face                    */
  --hi:    #ffffff;   /* top-left highlight             */
  --sh:    #808080;   /* bottom-right shadow            */
  --dk:    #000000;   /* outer edge                     */
  --navy:  #000080;   /* active titlebar / selection    */
  --navy2: #1084d0;   /* titlebar gradient terminus     */
  --teal:  #008080;   /* desktop                        */
  --teal2: #006a6a;   /* desktop dither                 */
  --text:  #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 11px;
  color: var(--text);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Letterbox: dithered teal desktop, frame integer-scaled and centred
   -------------------------------------------------------------------------- */

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal);
  background-image:
    linear-gradient(45deg, var(--teal2) 25%, transparent 25%, transparent 75%, var(--teal2) 75%),
    linear-gradient(45deg, var(--teal2) 25%, transparent 25%, transparent 75%, var(--teal2) 75%);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
}

#frame {
  position: relative;
  width: 640px;
  height: 480px;
  flex: 0 0 auto;
  background: var(--face);
  overflow: hidden;              /* windows are clipped by the frame edge */
  transform-origin: center center;
  border: 1px solid var(--dk);
}

/* --------------------------------------------------------------------------
   Bevels
   -------------------------------------------------------------------------- */

/* raised: 1px face outer + 1px white inner (TL), 1px black outer + 1px gray inner (BR) */
.bevel-out {
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  background: var(--face);
}

/* sunken: the same, inverted - for text fields, lists, status wells */
.bevel-in {
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--face);
  background: #fff;
}

/* thin sunken groove - separators, group boxes */
.bevel-groove {
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}

/* --------------------------------------------------------------------------
   Application frame chrome
   -------------------------------------------------------------------------- */

#menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: var(--face);
  border-bottom: 1px solid var(--sh);
  display: flex;
  align-items: center;
  padding-left: 2px;
  z-index: 5;
}

#menubar .mi {
  padding: 3px 7px 4px;
  font-size: 11px;
  line-height: 1;
}
#menubar .mi:hover { background: var(--navy); color: #fff; }
#menubar .mi.disabled, #menubar .mi.disabled:hover {
  color: var(--sh);
  text-shadow: 1px 1px 0 var(--hi);
  background: transparent;
}

#toolbar {
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 44px;
  background: var(--face);
  border-bottom: 1px solid var(--sh);
  box-shadow: inset 0 -1px 0 var(--hi);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 1px;
  z-index: 5;
}

.tbtn {
  width: 40px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--face);
  border: 1px solid transparent;
  font-size: 9px;
  line-height: 1;
}
.tbtn:hover:not(.disabled) {
  border-color: var(--hi) var(--sh) var(--sh) var(--hi);
}
.tbtn:active:not(.disabled) {
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}
.tbtn.disabled { color: var(--sh); }
.tbtn.disabled svg { opacity: .45; }

.tb-sep {
  width: 2px;
  height: 30px;
  margin: 0 3px;
  border-left: 1px solid var(--sh);
  border-right: 1px solid var(--hi);
}

/* MDI client area - the region child windows live in and cannot leave */
#mdi {
  position: absolute;
  top: 64px; left: 0; right: 0; bottom: 20px;
  overflow: hidden;
  background-color: #4f7b7b;
  background-image:
    linear-gradient(45deg, #467070 25%, transparent 25%, transparent 75%, #467070 75%),
    linear-gradient(45deg, #467070 25%, transparent 25%, transparent 75%, #467070 75%);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
}

/* pre-sign-on the MDI area is plain gray, as on a fresh launch */
#frame.signed-off #mdi { background: #6e6e6e; background-image: none; }

#minstrip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 20px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  box-shadow: inset 0 1px 0 var(--sh);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  z-index: 6;
}

.sess-clock {
  margin-left: auto;
  padding: 0 6px 0 8px;
  font-size: 11px;
  color: #303030;
  border-left: 1px solid var(--sh);
  box-shadow: -1px 0 0 var(--hi);
  white-space: nowrap;
}

.min-stub {
  height: 16px;
  max-width: 118px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  background: var(--face);
}
.min-stub:active {
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
}

/* --------------------------------------------------------------------------
   Windows
   -------------------------------------------------------------------------- */

.win {
  position: absolute;
  background: var(--face);
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  display: flex;
  flex-direction: column;
  padding: 2px;
}
.win.hidden { display: none; }

.win-tb {
  height: 18px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 2px 0 3px;
  background: linear-gradient(to right, var(--navy), var(--navy2));
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}
.win.inactive .win-tb {
  background: var(--sh);
  color: #c8c8c8;
}

.win-tb-icon { flex: 0 0 auto; margin-right: 3px; display: flex; }
.win-tb-title {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.win-tb-btns { flex: 0 0 auto; display: flex; gap: 2px; }

.tbb {
  width: 16px;
  height: 14px;
  position: relative;
  background: var(--face);
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
}
.tbb:active {
  border-color: var(--dk) var(--face) var(--face) var(--dk);
  box-shadow: inset 1px 1px 0 var(--sh);
}
.tbb-min::after {
  content: "";
  position: absolute;
  left: 3px; bottom: 2px;
  width: 7px; height: 2px;
  background: var(--dk);
}
/* maximize: a box with the heavy Win95 title strip along its top */
.tbb-max::after {
  content: "";
  position: absolute;
  left: 3px; top: 2px;
  width: 8px; height: 7px;
  border: 1px solid var(--dk);
  border-top-width: 2px;
}
/* restore: the same box, twice, offset */
.tbb-restore::before {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 5px;
  border: 1px solid var(--dk);
  border-top-width: 2px;
}
.tbb-restore::after {
  content: "";
  position: absolute;
  left: 3px; top: 5px;
  width: 6px; height: 5px;
  border: 1px solid var(--dk);
  border-top-width: 2px;
  background: var(--face);
}

.tbb-close::before, .tbb-close::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 1px; height: 9px;
  background: var(--dk);
}
.tbb-close::before { transform: rotate(45deg); }
.tbb-close::after  { transform: rotate(-45deg); }

.win-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Resize handles - eight zones straddling the border, plus the corner grip.
   Only on windows that were resizable in 1996 (lists and text, not forms).
   -------------------------------------------------------------------------- */

.rz { position: absolute; z-index: 6; }
.rz-n  { top: -2px;    left: 8px; right: 8px;  height: 5px; cursor: ns-resize; }
.rz-s  { bottom: -2px; left: 8px; right: 8px;  height: 5px; cursor: ns-resize; }
.rz-w  { left: -2px;   top: 8px;  bottom: 8px; width: 5px;  cursor: ew-resize; }
.rz-e  { right: -2px;  top: 8px;  bottom: 8px; width: 5px;  cursor: ew-resize; }
.rz-nw { left: -2px;  top: -2px;    width: 10px; height: 10px; cursor: nwse-resize; }
.rz-ne { right: -2px; top: -2px;    width: 10px; height: 10px; cursor: nesw-resize; }
.rz-sw { left: -2px;  bottom: -2px; width: 10px; height: 10px; cursor: nesw-resize; }
.rz-se { right: -2px; bottom: -2px; width: 14px; height: 14px; cursor: nwse-resize; }

.win-grip {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 5;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px, transparent 2px,
    var(--hi) 2px, var(--hi) 3px,
    var(--sh) 3px, var(--sh) 4px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.win.maxed .win-grip { display: none; }
.win.maxed .rz { display: none; }

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.btn {
  min-width: 64px;
  height: 21px;
  padding: 0 9px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text);
  background: var(--face);
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:active:not(:disabled) {
  border-color: var(--dk) var(--face) var(--face) var(--dk);
  box-shadow: inset 1px 1px 0 var(--sh);
  padding: 1px 8px 0 10px;
}
.btn:disabled {
  color: var(--sh);
  text-shadow: 1px 1px 0 var(--hi);
}
.btn.wide { min-width: 88px; }
.btn.small { min-width: 0; height: 19px; padding: 0 7px; }

.field {
  height: 19px;
  padding: 2px 3px;
  font-family: inherit;
  font-size: 11px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--face);
  outline: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.field.focus { }
.field input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  width: 100%;
}

/* password well: we render our own asterisks, Win95 style */
#pw-well {
  width: 168px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}
#pw-well .caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #000;
  vertical-align: text-bottom;
}
#pw-well.blurred .caret { visibility: hidden; }

/* combo box */
.combo { position: relative; width: 168px; }
.combo-face {
  height: 19px;
  padding: 2px 20px 2px 3px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--face);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.combo-arrow {
  position: absolute;
  right: 2px; top: 2px;
  width: 16px; height: 15px;
  background: var(--face);
  border: 1px solid;
  border-color: var(--face) var(--dk) var(--dk) var(--face);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  display: flex; align-items: center; justify-content: center;
}
.combo-arrow::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--dk);
}
.combo.open .combo-arrow {
  border-color: var(--dk) var(--face) var(--face) var(--dk);
  box-shadow: inset 1px 1px 0 var(--sh);
}
.combo-list {
  position: absolute;
  top: 19px; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--dk);
  z-index: 40;
  display: none;
}
.combo.open .combo-list { display: block; }
.combo-list .opt { padding: 2px 4px; }
.combo-list .opt:hover, .combo-list .opt.sel { background: var(--navy); color: #fff; }

.check { display: inline-flex; align-items: center; gap: 5px; }
.check .box {
  width: 13px; height: 13px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--face);
  position: relative;
  flex: 0 0 auto;
}
.check.on .box::after {
  content: "";
  position: absolute;
  left: 3px; top: 1px;
  width: 4px; height: 7px;
  border: solid var(--dk);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* --------------------------------------------------------------------------
   Sign-on window
   -------------------------------------------------------------------------- */

#w-signon { width: 380px; }

.signon-banner {
  height: 54px;
  margin: 0 0 8px;
  background: var(--navy);
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.signon-banner .b1 { font-size: 15px; font-weight: bold; letter-spacing: 2px; }
.signon-banner .b2 { font-size: 10px; color: #a8c8f0; letter-spacing: 1px; }

.signon-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 7px 8px;
  align-items: center;
  padding: 0 14px;
}
.signon-grid .lbl { text-align: right; }

.signon-hint {
  text-align: center;
  margin: 10px 0 8px;
  color: #000;
}

.signon-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 4px;
  border-top: 1px solid var(--sh);
  box-shadow: inset 0 1px 0 var(--hi);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Connection progress dialog
   -------------------------------------------------------------------------- */

#modal-veil {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: none;
}
#modal-veil.on { display: block; }

#w-progress { width: 336px; z-index: 950; }

.prog-inner { padding: 0; background: #fff; }

/* the wordmark band - text, not the trademarked logo lockup */
.conn-brand {
  text-align: center;
  padding: 11px 0 12px;
  background: #fff;
}
.conn-brand .c1 {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--navy);
}
.conn-brand .c2 {
  font-size: 9px;
  letter-spacing: 2px;
  color: #6a6a8a;
  margin-top: 2px;
}

/* three stage panels; the figure walks left to right across them */
.conn-panels {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 0 13px 12px;
  background: #fff;
}
.conn-panel {
  width: 92px;
  height: 54px;
  position: relative;
  background: #ccccf0;
  border: 1px solid var(--navy);
  box-shadow: inset 1px 1px 0 #9a9ac8, inset -1px -1px 0 #e8e8ff;
}

.conn-walker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 28px;
  margin-left: -11px;
  margin-top: -14px;
}
.conn-walker > svg { position: absolute; left: 0; top: 0; display: none; }
.conn-walker.w0 > svg:nth-child(1),
.conn-walker.w1 > svg:nth-child(2) { display: block; }

.conn-status {
  text-align: center;
  padding: 0 12px 9px;
  background: #fff;
  min-height: 15px;
}
.prog-sub { color: #404040; text-align: center; }

.conn-foot {
  padding: 9px 13px 10px;
  border-top: 1px solid var(--sh);
  box-shadow: inset 0 1px 0 var(--hi);
  background: var(--face);
}

/* segmented progress bar - 12px pitch: 10px chunk + 2px gap */
.pbar {
  height: 20px;
  margin: 11px 0 12px;
  padding: 2px;
  background: var(--face);
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--face);
  overflow: hidden;
}
.pbar-fill {
  height: 100%;
  width: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--navy) 0px, var(--navy) 10px,
    var(--face) 10px, var(--face) 12px
  );
}

.prog-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#btn-skip { visibility: hidden; }
#btn-skip.shown { visibility: visible; }

/* --------------------------------------------------------------------------
   Welcome window
   -------------------------------------------------------------------------- */

#w-welcome { width: 372px; }

.welcome-top {
  background: var(--navy);
  color: #fff;
  padding: 7px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}
.welcome-top .w1 { font-size: 13px; font-weight: bold; }
.welcome-top .w2 { font-size: 10px; color: #a8c8f0; }

.welcome-mid {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 10px;
}

.mailbox-btn {
  width: 92px;
  padding: 6px 4px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--face);
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.25;
}
.mailbox-btn:hover { border-color: var(--hi) var(--sh) var(--sh) var(--hi); }
.mailbox-btn:active { border-color: var(--sh) var(--hi) var(--hi) var(--sh); }
.mailbox-btn .cap { font-weight: bold; }

/* three-frame envelope flip - frames toggled by class, never animated by CSS */
.env-frames { width: 48px; height: 40px; position: relative; }
.env-frames > svg { position: absolute; left: 0; top: 0; display: none; }
.env-frames.f0 > svg:nth-child(1),
.env-frames.f1 > svg:nth-child(2),
.env-frames.f2 > svg:nth-child(3) { display: block; }

.welcome-news { flex: 1 1 auto; }
.welcome-news li {
  list-style: none;
  padding: 1px 0 1px 10px;
  position: relative;
}
.welcome-news li::before {
  content: "";
  position: absolute;
  left: 1px; top: 6px;
  width: 3px; height: 3px;
  background: var(--navy);
}

.welcome-bot {
  border-top: 1px solid var(--sh);
  box-shadow: inset 0 1px 0 var(--hi);
  padding: 7px 10px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Mail window
   -------------------------------------------------------------------------- */

#w-mail { width: 470px; }

.mail-wrap { display: flex; flex-direction: column; height: 100%; }

.tabstrip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 3px 4px 0;
  height: 22px;
  flex: 0 0 auto;
}
.tab {
  height: 18px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 11px;
  background: var(--face);
  border: 1px solid;
  border-color: var(--hi) var(--sh) transparent var(--hi);
  box-shadow: inset -1px 0 0 var(--dk);
  position: relative;
  top: 1px;
}
.tab.active {
  height: 20px;
  top: 0;
  font-weight: bold;
  z-index: 2;
  box-shadow: inset -1px 0 0 var(--dk);
}

.mail-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 4px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
}

.mail-head {
  display: flex;
  flex: 0 0 auto;
  height: 17px;
  background: var(--face);
  border-bottom: 1px solid var(--sh);
}
.mail-head .col {
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 11px;
  border-right: 1px solid var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi);
  overflow: hidden;
  white-space: nowrap;
}

.mail-rows {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}
.mail-row {
  display: flex;
  height: 15px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
}
.mail-row .cell {
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row.sel { background: var(--navy); color: #fff; }
.mail-row.unread .cell.subj, .mail-row.unread .cell.addr { font-weight: bold; }

/* column widths, shared by header and rows */
.c-icon { width: 24px; flex: 0 0 24px; display: flex; align-items: center; justify-content: center; }
.c-date { width: 52px; flex: 0 0 52px; }
.c-addr { width: 118px; flex: 0 0 118px; }
.c-subj { flex: 1 1 auto; min-width: 0; }

.mail-empty { padding: 14px; color: #404040; }

.mail-btns {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 6px 4px;
  flex-wrap: wrap;
}
.mail-status {
  flex: 0 0 auto;
  margin: 0 4px 4px;
  padding: 2px 4px;
  font-size: 11px;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   People Connection + chat rooms
   -------------------------------------------------------------------------- */

.pc-wrap { display: flex; flex-direction: column; height: 100%; }
.pc-head { flex: 0 0 auto; padding: 3px 5px 5px; }
.pc-btns { flex: 0 0 auto; display: flex; gap: 4px; padding: 6px 4px; }

.chat-wrap { display: flex; flex-direction: column; height: 100%; }

.chat-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 3px;
  margin: 0 4px;
}

.chat-msgs {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  padding: 3px 5px;
  font-size: 12px;
  line-height: 1.35;
  -webkit-user-select: text;
  user-select: text;
}

.chat-line { margin-bottom: 2px; word-wrap: break-word; }
.chat-sys { font-style: italic; color: #505050; }
.chat-self { color: #b00000; }
.chat-self b { color: #b00000; }

.chat-people {
  flex: 0 0 116px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-people-hd {
  flex: 0 0 auto;
  padding: 1px 4px 2px;
  font-weight: bold;
  font-size: 11px;
}
.chat-people-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  font-size: 11px;
}
.chat-person {
  padding: 1px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-person.me { font-weight: bold; }
.chat-person.remote { color: #006000; }

.chat-input {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 5px 4px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Channel areas - 1996 chrome around current text
   -------------------------------------------------------------------------- */

.area-wrap { display: flex; flex-direction: column; height: 100%; }

.area-hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 4px;
}
.area-name { font-weight: bold; font-size: 12px; }

.area-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 4px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  font-size: 12px;
  line-height: 1.35;
  -webkit-user-select: text;
  user-select: text;
}

.area-loading { color: #505050; font-style: italic; }
.area-welcome { margin-bottom: 5px; }
.area-gen { margin-bottom: 7px; }

.area-item { margin-bottom: 2px; }
.area-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}
.area-link {
  font-weight: bold;
  color: #0000c0;
  text-decoration: underline;
  flex: 1 1 auto;
  cursor: pointer;
}
.area-more { cursor: pointer; }
.area-date {
  flex: 0 0 auto;
  color: #505050;
  font-size: 11px;
  white-space: nowrap;
}
.area-blurb { margin: 2px 0 3px; }
.area-more {
  color: #0000c0;
  text-decoration: underline;
  font-size: 11px;
}
.area-rule {
  height: 2px;
  margin: 6px 0 7px;
  border-top: 1px solid var(--sh);
  border-bottom: 1px solid var(--hi);
}

/* --------------------------------------------------------------------------
   Built-in browser
   -------------------------------------------------------------------------- */

.brw-wrap { display: flex; flex-direction: column; height: 100%; }

.brw-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px 4px;
}
.brw-url { flex: 1 1 auto; min-width: 0; }
.brw-url input { font-size: 11px; }

.brw-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 4px;
  padding: 7px 10px 9px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  font-size: 12px;
  line-height: 1.4;
  -webkit-user-select: text;
  user-select: text;
}

.brw-load { color: #505050; font-style: italic; }
.brw-links { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.brw-links .area-link { flex: 0 0 auto; }
.brw-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 2px;
}
.brw-host { color: #505050; font-size: 11px; }
.brw-p { margin: 0 0 8px; }
.brw-h {
  font-weight: bold;
  font-size: 13px;
  margin: 12px 0 5px;
}
.brw-li {
  margin: 0 0 5px 14px;
  position: relative;
}
.brw-li::before {
  content: "";
  position: absolute;
  left: -10px; top: 6px;
  width: 3px; height: 3px;
  background: var(--dk);
}
.brw-cap {
  font-size: 11px;
  color: #505050;
  margin: -5px 0 9px;
}

/* Inline art the way a 1996 page carried it: small, hard-edged, no effects.
   Capped at 280px on purpose - a full-bleed hero pushes every word below the
   fold and reads as a modern site, which is the thing we are avoiding. */
.brw-img {
  display: block;
  max-width: 280px;
  width: auto;
  height: auto;
  margin: 0 0 9px;
  border: 1px solid var(--dk);
  background: #dfdfdf;
}
.brw-foot { color: #505050; font-size: 11px; }

.brw-status {
  flex: 0 0 auto;
  margin: 4px 4px 4px;
  padding: 2px 5px;
  font-size: 11px;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  white-space: nowrap;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Message boards
   -------------------------------------------------------------------------- */

.brd-post { margin-bottom: 2px; }
.brd-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.brd-at { color: #505050; font-size: 11px; white-space: nowrap; }
.brd-body { white-space: pre-wrap; word-wrap: break-word; }

/* --------------------------------------------------------------------------
   Download Manager
   -------------------------------------------------------------------------- */

.dl-wrap { height: 100%; overflow-y: auto; padding: 3px 4px; }

.dl-job {
  border: 1px solid;
  border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  padding: 5px 6px 6px;
  margin-bottom: 4px;
}
.dl-name { font-weight: bold; margin-bottom: 4px; }
.dl-bar { height: 16px; margin: 0 0 4px; }
.dl-line { font-size: 11px; margin-bottom: 5px; }
.dl-btns { display: flex; gap: 4px; flex-wrap: wrap; }

/* instant messages */
.im-wrap { display: flex; flex-direction: column; height: 100%; }
.im-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 2px 4px 0;
  padding: 3px 5px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  font-size: 12px;
  line-height: 1.35;
  -webkit-user-select: text;
  user-select: text;
}
.im-input {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 5px 4px;
  align-items: center;
}

/* member profile */
.prof-grid {
  flex: 0 0 auto;
  margin: 2px 4px 4px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 2px 7px;
  font-size: 11px;
  overflow-y: auto;
}
.prof-grid .k { font-weight: bold; }
.prof-grid .v2 { word-wrap: break-word; }
.prof-quote {
  flex: 0 0 auto;
  margin: 0 4px;
  padding: 4px 7px;
  font-style: italic;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}

/* --------------------------------------------------------------------------
   Buddy List
   -------------------------------------------------------------------------- */

.buddy-wrap { display: flex; flex-direction: column; height: 100%; }

.buddy-head {
  flex: 0 0 auto;
  padding: 3px 5px 4px;
  font-size: 11px;
}

.buddy-group {
  padding: 2px 4px 1px;
  font-weight: bold;
  background: var(--face);
  border-bottom: 1px solid var(--sh);
  box-shadow: inset 0 1px 0 var(--hi);
  font-size: 11px;
}

.buddy-row {
  padding: 1px 4px 1px 13px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buddy-row.off { color: var(--sh); }
.buddy-row.sel { background: var(--navy); color: #fff; }
.buddy-row.sel.off { color: #b0b0c8; }

.buddy-btns {
  flex: 0 0 auto;
  display: flex;
  gap: 3px;
  padding: 5px 3px 4px;
}
.buddy-btns .btn { flex: 1 1 auto; min-width: 0; padding: 0 3px; }

/* --------------------------------------------------------------------------
   Reading window
   -------------------------------------------------------------------------- */

.read-wrap { display: flex; flex-direction: column; height: 100%; }

.read-hdr {
  flex: 0 0 auto;
  margin: 2px 4px 4px;
  padding: 4px 6px;
  background: var(--face);
  border: 1px solid;
  border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1px 6px;
  font-size: 11px;
}
.read-hdr .k { font-weight: bold; }
.read-hdr .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.read-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 4px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 12px;
  line-height: 1.35;
  -webkit-user-select: text;
  user-select: text;
}

.read-btns {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 6px 4px;
}

/* --------------------------------------------------------------------------
   Scrollbars - chunky, square, no rounding
   -------------------------------------------------------------------------- */

.mail-rows::-webkit-scrollbar,
.read-body::-webkit-scrollbar { width: 16px; height: 16px; }

.mail-rows::-webkit-scrollbar-track,
.read-body::-webkit-scrollbar-track {
  background-color: #d0d0d0;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
}

.mail-rows::-webkit-scrollbar-thumb,
.read-body::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 1px solid;
  border-color: var(--hi) var(--dk) var(--dk) var(--hi);
  box-shadow: inset -1px -1px 0 var(--sh);
}

.mail-rows::-webkit-scrollbar-corner,
.read-body::-webkit-scrollbar-corner { background: var(--face); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.hidden { display: none !important; }
.spacer { flex: 1 1 auto; }

/* clickable Favorite Places heart in a titlebar */
.fav-hot { cursor: pointer; }
.fav-hot:active { position: relative; top: 1px; }
