/* ============================================================
   flowerpostcards — CRT monitor dressing over period UI
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", Arial, sans-serif;
  font-size: 11px;
  color: #000;
  overflow: hidden;
  user-select: none;

  /* Classic Windows 98 teal desktop with a subtle diagonal crosshatch,
     Triangles.bmp-adjacent. CRT overlays still layer on top. */
  background-color: #008080;
  background-image:
    repeating-linear-gradient( 45deg, rgba(0,0,0,0.07)    0 1px, transparent 1px 14px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px);
}

.hidden { display: none !important; }

/* ============================================================
   CRT overlay layers  (all positioned fixed, pointer-events off)
   ============================================================ */

/* Horizontal scanlines. Pinstripe the whole screen. */
.crt-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)    0px,
    rgba(0, 0, 0, 0)    2px,
    rgba(0, 0, 0, .18)  3px,
    rgba(0, 0, 0, .22)  3px
  );
  mix-blend-mode: multiply;
}

/* Dark corner vignette — fakes screen curvature at the edges. */
.crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 91;
  background:
    radial-gradient(ellipse 110% 95% at 50% 50%,
      rgba(0,0,0,0)    55%,
      rgba(0,0,0,.35) 85%,
      rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at 50% -10%,
      rgba(255,255,255,.06) 0%,
      rgba(255,255,255,0)   45%);
  box-shadow:
    inset 0 0  80px rgba(0,0,0,.45),
    inset 0 0 200px rgba(0,0,0,.30);
}

/* Very subtle refresh flicker. Keep it low so it doesn't trigger migraines. */
.crt-flicker {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 92;
  background: rgba(255, 255, 255, .015);
  animation: crt-flicker 7s steps(14, end) infinite;
  mix-blend-mode: overlay;
}
@keyframes crt-flicker {
  0%, 100% { opacity: 0.9; }
  43%      { opacity: 0.75; }
  47%      { opacity: 1.0;  }
  85%      { opacity: 0.82; }
}

/* ============================================================
   Window chrome — Windows 98 / AIM 2.x
   ============================================================ */
.aim-window {
  position: absolute;
  background: #c0c0c0;
  /* 2-step outset bevel: white/black outer edge, dfdfdf/808080 inner step */
  border: 2px solid;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #0a0a0a;
  border-bottom-color: #0a0a0a;
  box-shadow:
    inset  1px  1px 0 0 #dfdfdf,
    inset -1px -1px 0 0 #808080,
    2px 2px 0 rgba(0,0,0,.45),
    0 0 22px rgba(120, 180, 255, .08);           /* phosphor bloom — preserved */
  font-size: 11px;
  min-width: 200px;
  z-index: 10;
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 1px 2px 1px 4px;
  margin: 2px 2px 0 2px;                         /* sit inside the window bevel */
  color: #fff;
  font-weight: bold;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  background: linear-gradient(to right, #0a0a80 0%, #1084d0 100%);
  cursor: move;
  text-shadow: none;
  letter-spacing: 0;
}

.tb-title { display: flex; align-items: center; gap: 5px; }

.tb-buttons { display: flex; gap: 2px; }
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 14px;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset  1px  1px 0 0 #fff,
    inset -1px -1px 0 0 #0a0a0a,
    inset  2px  2px 0 0 #dfdfdf,
    inset -2px -2px 0 0 #808080;
  color: #000;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tb-btn:hover  { background: #c8c4bc; }
.tb-btn:active {
  box-shadow:
    inset -1px -1px 0 0 #fff,
    inset  1px  1px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset  2px  2px 0 0 #808080;
}

/* ============================================================
   Buttons — Win98 beveled
   ============================================================ */
.aim-btn {
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  padding: 3px 12px;
  background: #c0c0c0;
  border: none;
  border-radius: 0;
  box-shadow:
    inset  1px  1px 0 0 #fff,
    inset -1px -1px 0 0 #0a0a0a,
    inset  2px  2px 0 0 #dfdfdf,
    inset -2px -2px 0 0 #808080;
  cursor: pointer;
  color: #000;
  min-width: 66px;
  min-height: 22px;
  position: relative;
}
.aim-btn:hover { background: #c8c4bc; }
.aim-btn:active {
  box-shadow:
    inset -1px -1px 0 0 #fff,
    inset  1px  1px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset  2px  2px 0 0 #808080;
  padding: 4px 11px 2px 13px;                    /* fake the 1px press offset */
}
.aim-btn:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;                   /* engraved-disabled look */
  cursor: default;
}
/* Default/primary button: same bevel, with a 1px black ring inside */
.aim-btn.primary::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #000;
  pointer-events: none;
}
.aim-btn.small { min-width: 50px; padding: 1px 6px; min-height: 18px; }

/* ============================================================
   Sign-On
   ============================================================ */
.signon {
  width: 260px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.signon-body {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signon-fields { display: flex; flex-direction: column; gap: 6px; }
.signon-fields label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.signon-fields input[type="text"],
.signon-fields input[type="password"] {
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 3px 5px;
  border: none;
  background: #fff;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
}
.signon-fields input:focus { outline: 1px dotted #000; outline-offset: -3px; }
.signon-check {
  display: flex;
  gap: 14px;
  font-size: 11px;
  padding-top: 2px;
}
.signon-check label { flex-direction: row; align-items: center; gap: 4px; }
.signon-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.signon-version {
  font-size: 10px;
  color: #555;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid #808080;
  font-style: italic;
}

/* ============================================================
   Buddy list
   ============================================================ */
.buddy-list {
  width: 190px;
  left: 30px;
  top: 30px;
}
.bl-menu, .chat-menu {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 1px 4px;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #000;
}
.bl-menu span, .chat-menu span {
  padding: 1px 4px;
  cursor: default;
}
.bl-menu span:hover, .chat-menu span:hover { background: #000080; color: #fff; }

.bl-tabs {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 3px 3px 0 3px;
}
.bl-tab {
  padding: 3px 10px;
  font-size: 11px;
  border: 1px solid;
  border-color: #fff #808080 transparent #fff;
  background: #c0c0c0;
  margin-right: 2px;
  cursor: pointer;
  color: #444;
}
.bl-tab.active {
  background: #c0c0c0;
  font-weight: bold;
  color: #000;
  position: relative;
  top: 1px;
}

.bl-groups {
  background: #fff;
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
  border: none;
  margin: 0 3px;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
}
.bl-group-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  color: #000;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  cursor: default;
}
.bl-group-count { font-weight: normal; color: #666; }
.bl-buddy {
  display: block;
  padding: 1px 6px 1px 26px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.3;
  position: relative;
}
.bl-buddy:hover { background: #d6e5ff; }
.bl-buddy.online { color: #000; font-weight: bold; }
.bl-buddy.away { color: #666; font-style: italic; }
.bl-buddy.offline { color: #aaa; }
/* Online dot — a neutral pixel-green indicator, not the AOL running-man */
.bl-buddy::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 5px;
  width: 8px; height: 8px;
  background: radial-gradient(circle at 35% 35%, #9bff9e, #2ea832 70%, #156319 100%);
  border: 1px solid #0b3b14;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(80, 220, 90, .5);
}
.bl-buddy.away::before {
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #d9a22c 70%, #7a5b00 100%);
  border-color: #3a2b00;
  box-shadow: 0 0 4px rgba(220, 180, 70, .4);
}
.bl-buddy.offline::before {
  background: #555;
  border-color: #222;
  box-shadow: none;
}
.bl-buddy-music {
  font-size: 10px;
  color: #666;
  font-weight: normal;
  font-style: normal;
  padding-left: 26px;
  margin-top: -1px;
  margin-bottom: 2px;
}

.bl-footer {
  display: flex;
  gap: 3px;
  padding: 5px 4px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  justify-content: space-between;
}

/* ============================================================
   Chat Window
   ============================================================ */
.chat-window {
  width: 460px;
  height: 360px;
  left: 260px;
  top: 90px;
  display: flex;
  flex-direction: column;
}
.chat-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}
.chat-toolbar .tb-format,
.chat-input-toolbar .tb-format {
  font-family: "Times New Roman", serif;
  background: #c0c0c0;
  border: none;
  border-radius: 0;
  padding: 0 5px;
  font-size: 11px;
  height: 18px;
  line-height: 16px;
  cursor: pointer;
  box-shadow:
    inset  1px  1px 0 0 #fff,
    inset -1px -1px 0 0 #0a0a0a,
    inset  2px  2px 0 0 #dfdfdf,
    inset -2px -2px 0 0 #808080;
}
.chat-toolbar .tb-format:hover,
.chat-input-toolbar .tb-format:hover { background: #c8c4bc; }
.chat-toolbar .tb-format:active,
.chat-input-toolbar .tb-format:active {
  box-shadow:
    inset -1px -1px 0 0 #fff,
    inset  1px  1px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset  2px  2px 0 0 #808080;
}
.chat-toolbar .tb-sep { width: 1px; height: 16px; background: #808080; margin: 0 3px; box-shadow: 1px 0 0 #fff; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  border: none;
  margin: 3px;
  padding: 6px 8px;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #000;
  user-select: text;
  /* Sunken Win98 bevel + faint phosphor halo */
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset 0 0 14px rgba(180, 210, 255, .08);
}
.msg { margin: 0 0 2px 0; word-wrap: break-word; }
.msg .sn { font-weight: bold; }
.msg.bot .sn { color: #cc0000; text-shadow: 0 0 2px rgba(204, 0, 0, .25); }
.msg.me  .sn { color: #0000cc; text-shadow: 0 0 2px rgba(0, 0, 204, .25); }
.msg.system {
  color: #666;
  font-style: italic;
  font-size: 11px;
  margin: 6px 0;
  text-align: center;
}
.msg.away-note { color: #cc0000; font-style: italic; font-size: 11px; margin: 4px 0; }
.msg .body { color: inherit; }

.typing-indicator {
  color: #666;
  font-size: 11px;
  font-style: italic;
  padding: 2px 8px;
  height: 16px;
}

.chat-input-wrap {
  display: flex;
  flex-direction: column;
  padding: 0 3px 3px 3px;
  gap: 3px;
}
.chat-input-toolbar {
  display: flex;
  gap: 2px;
  padding: 2px 1px;
}
#chat-input {
  width: 100%;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 13px;
  padding: 4px 5px;
  border: none;
  background: #fff;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
  resize: none;
  outline: none;
}
.chat-send-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.buddy-status {
  font-size: 11px;
  color: #666;
  font-style: italic;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============================================================
   Buddy Info window
   ============================================================ */
.info-window {
  width: 360px;
  max-height: 560px;
  left: 240px;
  top: 60px;
  display: flex;
  flex-direction: column;
}
.info-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(560px - 22px);
}

/* header: classic AIM key/value rows */
.info-header {
  background: #fff;
  border: none;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.5;
}
.info-row { display: flex; gap: 6px; }
.info-k {
  width: 96px;
  color: #555;
  font-weight: bold;
}
.info-v { color: #000; }

/* Away message block */
.info-away {
  border: 1px solid #d4a000;
  background: #fff8d5;
  padding: 6px 8px;
  font-size: 11px;
}
.info-away-label {
  font-weight: bold;
  color: #8a5a00;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10px;
  margin-bottom: 2px;
}
.info-away-body { color: #000; font-style: italic; }

/* The rich profile pane */
.info-profile {
  background: #fff;
  border: none;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
  padding: 8px 10px 10px;
  font-family: "Comic Sans MS", "Tahoma", Arial, sans-serif;
  font-size: 12px;
  color: #1a1a1a;
  line-height: 1.45;
}
.info-marquee {
  display: block;
  color: #cc0077;
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.info-sn {
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  color: #6a1b9a;
  text-shadow: 1px 1px 0 #e1bee7;
  margin-top: 2px;
}
.info-subtle {
  text-align: center;
  font-size: 10px;
  color: #888;
  margin-bottom: 8px;
}
.info-quote {
  margin: 6px 10px;
  padding: 4px 8px;
  border-left: 3px solid #cc0077;
  background: #fff5fb;
  font-style: italic;
  color: #2a1a2a;
}
.info-quote cite {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  color: #777;
  text-align: right;
}
.info-kv {
  margin: 6px 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  row-gap: 2px;
  font-size: 11px;
}
.info-kv dt { color: #cc0077; font-weight: bold; }
.info-kv dd { margin: 0; color: #222; }
.info-section-title {
  font-weight: bold;
  color: #6a1b9a;
  margin: 6px 0 2px;
  font-size: 11px;
}
.info-list {
  margin: 0 0 4px 16px;
  padding: 0;
  font-size: 11px;
}
.info-list li { margin: 0; padding: 0; }
.info-moods {
  font-size: 11px;
  color: #555;
  font-style: italic;
}
.info-rule {
  border: 0;
  border-top: 1px dashed #cc0077;
  margin: 10px 0 6px;
}
.info-sig {
  text-align: center;
  font-size: 10px;
  color: #6a1b9a;
  line-height: 1.5;
}
.info-sig a { color: #0000cc; }
.info-sig a:visited { color: #6a1b9a; }

.info-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 2px;
}

/* ============================================================
   Away dialog
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.away-dialog { position: static; width: 360px; }
.away-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.away-body select, .away-body textarea {
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 12px;
  padding: 3px 4px;
  border: none;
  background: #fff;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff,
    inset  2px  2px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf;
  width: 100%;
  resize: vertical;
}

/* ============================================================
   Error toast
   ============================================================ */
.error-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffd0;
  color: #000;
  border: 1px solid #888;
  padding: 10px 14px;
  font-size: 12px;
  z-index: 99;
  font-family: "Tahoma", sans-serif;
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
}
.error-toast code {
  background: #000;
  color: #f5d300;
  padding: 1px 4px;
  font-size: 11px;
}

/* ============================================================
   Smilies (yellow circle, bitmappy)
   ============================================================ */
.smiley {
  display: inline-block;
  width: 15px; height: 15px;
  vertical-align: -3px;
  background: radial-gradient(circle at 40% 35%, #fff6a8, #f5d300 60%, #c99b00 100%);
  border: 1px solid #7a5b00;
  border-radius: 50%;
  position: relative;
}
.smiley::before, .smiley::after {
  content: "";
  position: absolute;
  background: #1a1a1a;
}
.smiley::before {
  left: 3px; top: 4px; width: 8px; height: 2px;
  background:
    radial-gradient(circle, #1a1a1a 50%, transparent 55%) 0 0/4px 2px no-repeat,
    radial-gradient(circle, #1a1a1a 50%, transparent 55%) 5px 0/4px 2px no-repeat;
}
.smiley.smile::after { left: 3px; top: 8px; width: 8px; height: 4px; border: 1px solid #1a1a1a; border-top: 0; border-radius: 0 0 6px 6px; background: transparent; }
.smiley.frown::after { left: 3px; top: 10px; width: 8px; height: 4px; border: 1px solid #1a1a1a; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; }
.smiley.wink::before { background:
    radial-gradient(circle, #1a1a1a 50%, transparent 55%) 0 0/4px 2px no-repeat,
    linear-gradient(#1a1a1a, #1a1a1a) 5px 0/4px 1px no-repeat; }
.smiley.grin::after  { left: 2px; top: 7px; width: 10px; height: 5px; background: #1a1a1a; border-radius: 0 0 6px 6px; }
.smiley.tongue::after { left: 3px; top: 8px; width: 8px; height: 4px; border: 1px solid #1a1a1a; border-top: 0; border-radius: 0 0 6px 6px; background: #d66; }
.smiley.sweat::after  { left: 3px; top: 8px; width: 8px; height: 4px; border: 1px solid #1a1a1a; border-top: 0; border-radius: 0 0 6px 6px; background: transparent; }

/* ============================================================
   AIM running-man — the yellow guy mid-stride.
   Inline SVG data URI so no image assets are needed.
   ============================================================ */
.aim-runningman {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><g fill='%23f5d300' stroke='%23000' stroke-width='.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='9.5' cy='2.6' r='1.9'/><path d='M9.5 4.5 L7.6 9.6 L4 13' stroke-width='2' fill='none'/><path d='M7.6 9.6 L11 13' stroke-width='2' fill='none'/><path d='M8.6 6 L13 4.8' stroke-width='1.8' fill='none'/><path d='M8 7 L4.5 8' stroke-width='1.8' fill='none'/></g></svg>") no-repeat center;
  background-size: 14px 14px;
  flex: none;
}

/* Override the neutral buddy-list dot for the bot's row — running man instead */
.bl-buddy.is-bot::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><g fill='%23f5d300' stroke='%23000' stroke-width='.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='9.5' cy='2.6' r='1.9'/><path d='M9.5 4.5 L7.6 9.6 L4 13' stroke-width='2' fill='none'/><path d='M7.6 9.6 L11 13' stroke-width='2' fill='none'/><path d='M8.6 6 L13 4.8' stroke-width='1.8' fill='none'/><path d='M8 7 L4.5 8' stroke-width='1.8' fill='none'/></g></svg>") no-repeat center;
  background-size: 14px 14px;
  width: 14px;
  height: 14px;
  left: 9px;
  top: 2px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ============================================================
   Windows 98 taskbar — fixed bar at the bottom of the screen.
   Below CRT overlays (z-index 85 < overlays at 90+) so scanlines
   still phosphor-tint it.
   ============================================================ */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 3px;
  z-index: 85;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  /* Raised edge on the top only — taskbar sits on the bottom bezel */
  box-shadow:
    inset  0  1px 0 0 #fff,
    inset  0  2px 0 0 #dfdfdf;
}

/* Start button */
.tb-start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 4px;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset  1px  1px 0 0 #fff,
    inset -1px -1px 0 0 #0a0a0a,
    inset  2px  2px 0 0 #dfdfdf,
    inset -2px -2px 0 0 #808080;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}
.tb-start-btn:active,
.tb-start-btn.pressed {
  box-shadow:
    inset -1px -1px 0 0 #fff,
    inset  1px  1px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset  2px  2px 0 0 #808080;
}

/* Win98 4-color skewed flag — inline SVG, lo-fi on purpose */
.tb-start-flag {
  display: inline-block;
  width: 18px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'><g transform='skewX(-14) translate(3 1)'><rect x='0' y='0' width='5.5' height='5.5' fill='%23e8443a'/><rect x='6' y='0' width='5.5' height='5.5' fill='%2357c44a'/><rect x='0' y='6' width='5.5' height='5.5' fill='%233a88d6'/><rect x='6' y='6' width='5.5' height='5.5' fill='%23ffcc00'/></g></svg>") no-repeat center;
  background-size: 18px 16px;
}

/* Thin separator between start btn and tasks */
.tb-start-sep {
  width: 2px;
  height: 22px;
  background: #808080;
  box-shadow: 1px 0 0 #fff;
  margin: 0 2px;
}

/* Open-window tasks */
.tb-tasks {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: center;
  overflow: hidden;
  min-width: 0;
}
.tb-task {
  min-width: 0;
  flex: 0 1 160px;
  height: 22px;
  padding: 0 6px;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset  1px  1px 0 0 #fff,
    inset -1px -1px 0 0 #0a0a0a,
    inset  2px  2px 0 0 #dfdfdf,
    inset -2px -2px 0 0 #808080;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.tb-task .tb-task-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}
.tb-task.active {
  background: #b8b4ac;
  box-shadow:
    inset -1px -1px 0 0 #fff,
    inset  1px  1px 0 0 #0a0a0a,
    inset -2px -2px 0 0 #dfdfdf,
    inset  2px  2px 0 0 #808080;
  /* Win98 hatched pattern on pressed taskbar buttons */
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.4) 0 1px,
      transparent 1px 2px);
}
.tb-task.flashing { animation: tb-flash 1s steps(1) infinite; }
@keyframes tb-flash {
  0%, 49%   { background-color: #c0c0c0; }
  50%, 100% { background-color: #fff0a0; }
}

/* System tray */
.tb-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 22px;
  background: #c0c0c0;
  box-shadow:
    inset  1px  1px 0 0 #808080,
    inset -1px -1px 0 0 #fff;
  flex: none;
}
.tb-tray-icon { width: 16px; height: 16px; }
.tb-clock {
  font-family: inherit;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}
