/* The main client window in the WorldsPlayer layout (ARCHITECTURE.md §3.2),
   reskinned in the Nanophage teal. Pixel sizes are fixed except the console,
   which takes whatever the window gives it: the window is resizable from its
   edges and corners (640x480 outside at the least) and maximizable, and the
   console, the friends list and the chat box's width are what grow. */

.cw .win-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 247px;   /* (2026-11-11: as wide as the corner map, for the side panel; was 160) */
  grid-template-rows: minmax(0, 1fr) 31px 202px;
  background: #000;
  box-shadow: none;   /* no steel bevel round the black console */
}

/* ---- the console ----------------------------------------------------------- */
.cw-console {
  grid-area: 1 / 1 / 2 / 2;
  position: relative;
  overflow: clip;
  background: #000;
  outline: none;
}
.cw-console > canvas { display: block; image-rendering: pixelated; }
.console-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The console while the world loads (integrator): black, one grey line. */
.console-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #6FA6AA;
  font: var(--np-font);
  cursor: wait;
}
.console-loading.failed { color: #C0C0C0; cursor: default; }

/* ---- the command column ------------------------------------------------------ */
/* Phase 4 (docs/PHASE4.md §6): the program's own keys, not the WorldsPlayer column. A rack of
   perforated steel painted teal (rack.png); seven bevelled teal-steel keys, full width, each with its
   pixel icon and a left-aligned label (the menus open to the left, over the console); a lamp on
   NanoMail and Contacts. The key pressed or with its menu open sinks (inverted bevel, 1 px shift). */
.cw-column {
  grid-area: 1 / 2 / 2 / 3;
  display: flex;
  flex-direction: column;
  overflow: clip;
  min-height: 0;
  background: #0A4B4A url("../assets/ui/rack.png");
  box-shadow: inset 1px 0 #011616, inset 2px 0 #2A8784, inset -1px 0 #022E2E;
}
.cmd-list { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px 6px 9px; }
.cmd-btn {
  height: 29px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 5px;
  border: 1px solid #021818;
  border-radius: 2px;
  background: linear-gradient(180deg, #33807D 0%, #1F625F 48%, #154C4A 100%);
  box-shadow: inset 1px 1px #7CC8C3, inset -1px -1px #0A3332, 0 1px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.cmd-btn:hover { background: linear-gradient(180deg, #3E928E 0%, #256F6C 48%, #185552 100%); }
.cmd-btn.open, .cmd-btn.down {
  background: linear-gradient(180deg, #0F3F3E 0%, #165452 55%, #1E625F 100%);
  box-shadow: inset 1px 1px #062625, inset -1px -1px #3C8C88;
}
.cmd-btn.open > *, .cmd-btn.down > * { position: relative; top: 1px; left: 1px; }
.cmd-ico { width: 16px; height: 16px; flex: 0 0 16px; }
.cmd-label {
  flex: 1 1 auto;
  min-width: 0;
  font: bold 13px Verdana, Tahoma, sans-serif;
  color: #E2FFFC;
  text-shadow: 1px 1px #032A29;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
}
.cmd-btn:hover .cmd-label, .cmd-btn.open .cmd-label { color: #FFFFFF; }
/* the letter that does the same as the key (ui/shell/panels.js) */
.cmd-hot { flex: 0 0 auto; font: bold 12px Verdana, Tahoma, sans-serif; color: #A6EFE8; text-shadow: 1px 1px #032A29; }
/* the notification lamp: dark until there is something waiting, then it blinks amber */
.cmd-lamp {
  flex: 0 0 6px;
  width: 6px;
  height: 12px;
  border: 1px solid #021818;
  border-radius: 1px;
  background: #0B2F2E;
  box-shadow: inset 1px 1px #000;
}
.cmd-btn.lit .cmd-lamp {
  background: #FFC23A;
  box-shadow: inset 1px 1px #FFF0B0, 0 0 3px 1px rgba(255, 186, 58, 0.75);
}
.cmd-btn.blink:not(.lit) .cmd-lamp { background: #5A3E08; }

/* ---- the side panel (2026-11-11, ui/shell/sidepanel.js) ----------------------------------------------------------------
   Under the keys, over the corner map: a row of tabs (the keys' own bevel, the icon only, a lamp in the corner), a caption
   in the title bar's style with the tab's name and a Window button, and a sunken dark body the tab draws into. */
.dock { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin: 2px 8px 8px 9px; }
/* a short column (commands.js 'tight'): the keys two to a row, and Friends Online a smaller share */
.cw-column.tight > .friend-rows { height: auto; max-height: 14%; }
.cw-column.tight .cmd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.cw-column.tight .cmd-btn { gap: 5px; padding: 0 8px 0 3px; }
.dk-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 3px; }
.dk-tab {
  position: relative; height: 31px; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid #021818; border-radius: 2px;
  background: linear-gradient(180deg, #33807D 0%, #1F625F 48%, #154C4A 100%);
  box-shadow: inset 1px 1px #7CC8C3, inset -1px -1px #0A3332, 0 1px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.dk-tab:hover { background: linear-gradient(180deg, #3E928E 0%, #256F6C 48%, #185552 100%); }
.dk-tab img { width: 16px; height: 16px; image-rendering: pixelated; pointer-events: none; }
.dk-tab { flex-direction: column; gap: 1px; height: 36px; }   /* the icon over its name */
.dk-tab-label { font: bold 10px Verdana, Tahoma, sans-serif; color: #E2FFFC; text-shadow: 1px 1px #032A29; pointer-events: none; white-space: nowrap; }
.dk-tab.sel .dk-tab-label { position: relative; top: 1px; left: 1px; color: #FFFFFF; }
.dk-tab.sel { background: linear-gradient(180deg, #0F3F3E 0%, #165452 55%, #1E625F 100%); box-shadow: inset 1px 1px #062625, inset -1px -1px #3C8C88, 0 0 0 1px #A6EFE8; }
.dk-tab.sel img { position: relative; top: 1px; left: 1px; }
.dk-lamp { position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; border: 1px solid #021818; background: #0B2F2E; display: none; }
.dk-tab.blink .dk-lamp { display: block; background: #5A3E08; }
.dk-tab.lit .dk-lamp { background: #FFC23A; box-shadow: 0 0 3px 1px rgba(255, 186, 58, 0.75); }
.dk-cap {
  flex: 0 0 22px; height: 22px; box-sizing: border-box; display: flex; align-items: center; gap: 5px; padding: 0 2px 0 8px;
  font: bold 13px Verdana, Tahoma, sans-serif; color: #FFFFFF; text-shadow: 1px 1px var(--np-title-shadow);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 2px),
    linear-gradient(180deg, var(--np-title-hi) 0%, var(--np-teal) 55%, var(--np-title-lo) 100%);
  border: 1px solid #021818; border-bottom: 0; border-radius: 2px 2px 0 0; box-shadow: inset 0 1px var(--np-title-line);
}
.dk-title { white-space: nowrap; }
.dk-extra { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: normal; color: #D8FBF8; }
.dk-pop { flex: 0 0 auto; height: 17px; padding: 0 5px; font: 12px Verdana, Tahoma, sans-serif; line-height: 14px; color: #E2FFFC;
  border: 1px solid #021818; background: #1F625F; box-shadow: inset 1px 1px #7CC8C3, inset -1px -1px #0A3332; cursor: pointer; text-shadow: none; }
.dk-pop:hover { background: #2B7672; color: #fff; }
.dk-body {
  flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; padding: 5px;
  background: #022A2A; border: 1px solid; border-color: #000E0E #2E8581 #2E8581 #000E0E; box-shadow: inset 1px 1px #011616;
  font: 13px Verdana, Tahoma, sans-serif; color: #D6FAF6;
}
.dk-empty { padding: 3px 2px; color: #5F9E9A; }
.dk-note, .dock .ci-note { margin-top: 8px; color: #6FA6A2; font: 13px Verdana, Tahoma, sans-serif; line-height: 1.35; }
/* the body's scroll bar, skinned as the friends list's was */
.win .dk-body::-webkit-scrollbar { width: 14px; }
.win .dk-body::-webkit-scrollbar-track { background: #002E2E; box-shadow: inset 1px 0 #001C1C; }
.win .dk-body::-webkit-scrollbar-thumb { border-radius: 0; border: 1px solid; border-color: #46C4C4 #002A2A #002A2A #46C4C4; background: #0A8282; min-height: 18px; }
.win .dk-body::-webkit-scrollbar-button { display: none; }
/* Skills: a tile a skill, name, level of 99 and a bar to the next */
.dk-sk-grid { display: grid; grid-template-columns: 1fr; gap: 3px; }
.dk-sk, .dk-q {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1px 5px; width: 100%; padding: 3px 6px 5px; text-align: left;
  border: 1px solid #000E0E; background: linear-gradient(#0E3F3E, #082F2E); box-shadow: inset 1px 1px #2A6E6B; color: #D6FAF6; cursor: pointer;
  font: 13px Verdana, Tahoma, sans-serif;
}
.dk-sk:hover, .dk-q:hover { background: linear-gradient(#155553, #0C3B3A); }
.dk-sk-name, .dk-q-name { font-weight: bold; color: #E2FFFC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-q-name { white-space: normal; overflow-wrap: anywhere; }   /* a quest's name wraps rather than be cut short */
.dk-sk-lv { color: #9FD9D4; white-space: nowrap; }
.dk-sk-lv b { font: bold 17px Verdana, Tahoma, sans-serif; color: #FFD24A; text-shadow: 1px 1px #000; }
.dk-sk-bar { grid-column: 1 / 3; height: 5px; background: #011616; border: 1px solid #000; }
.dk-sk-fill { height: 100%; background: linear-gradient(#5FE0D0, #1E9C8E); }
/* Quests */
.dk-quests { display: flex; flex-direction: column; gap: 3px; }
.dk-q-prog { color: #FFD24A; white-space: nowrap; }
.dk-more { margin-top: 2px; padding: 3px 6px; text-align: left; font: 13px Verdana, Tahoma, sans-serif; color: #A6EFE8; background: none; border: 1px dashed #2E8581; cursor: pointer; }
.dk-more:hover { color: #fff; background: #0C3B3A; }
/* Bags, Gear, Abilities: the character windows' pieces (char.css) on the dark panel */
.dock .ci-bagwin { padding: 0; }
/* four across whether or not the panel scrolls (the first-time player's pass: at 800 x 600 the scroll bar took a column
   and the things moved to other cells) */
.dock .dk-body { scrollbar-gutter: stable; }
.dock .ci-grid { display: grid; grid-template-columns: repeat(4, 47px); gap: 2px; padding: 1px; max-width: none; width: max-content; }
.dock .ci-bag-h { color: #A6EFE8; font: bold 13px Verdana, Tahoma, sans-serif; margin: 8px 0 3px; }
.dock .ci-bag-h:first-child { margin-top: 0; }
.dock .ci-none { padding: 5px 2px; color: #D6FAF6; font: 13px Verdana, Tahoma, sans-serif; }
.dock .ci-none-h { color: #FFD24A; font-size: 14px; margin-bottom: 5px; }
.dk-gear { display: flex; flex-direction: column; align-items: center; }
.dk-doll { display: grid; grid-template-columns: 47px 1fr 47px; gap: 5px; width: 100%; }
.dk-doll .ci-col { gap: 3px; }
.dk-centre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.dock .dk-portrait { width: 72px; height: 96px; }
.dock .dk-xp { width: 101px; box-sizing: border-box; }
.dk-weapons { margin-top: 5px; gap: 5px; }

/* FRIENDS ONLINE: its own section under the keys, over the side panel (1.10.1 made it a tab; 1.10.2, the owner: "friends
   should permanently be in its own section, how it was before. above the new multitab section"). A part of the column's
   height, scrolling when it has more friends than room. */
.friends-plate {
  margin: 3px 8px 0 9px;
  height: 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px 0 8px;
  font: bold 13px Verdana, Tahoma, sans-serif;
  color: #FFFFFF;
  text-shadow: 1px 1px var(--np-title-shadow);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 2px),
    linear-gradient(180deg, var(--np-title-hi) 0%, var(--np-teal) 55%, var(--np-title-lo) 100%);
  border: 1px solid #021818;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px var(--np-title-line);
}
.fp-title { flex: 1 1 auto; white-space: nowrap; }
.fp-count { font-weight: normal; color: #D8FBF8; }
.friends-plate .fp-everyone { margin-left: 4px; text-shadow: none; font-weight: normal; }   /* 2026-11-13: Who's Online */
.friend-rows {
  flex: 0 0 auto;
  height: auto;
  min-height: 44px;
  max-height: min(22%, 221px);
  box-sizing: border-box;
  margin: 0 8px 5px 9px;
  padding: 2px 0;
  overflow-x: hidden;
  overflow-y: auto;   /* a skinned scroll bar appears once the list is longer than the column */
  background: #022A2A;
  border: 1px solid;
  border-color: #000E0E #2E8581 #2E8581 #000E0E;
  box-shadow: inset 1px 1px #011616;
}
/* The friends list's scroll bar is skinned to the column (period skinned
   clients did this rather than drop a 17 px XP bar into a 152 px column). */
.win .friend-rows::-webkit-scrollbar { width: 14px; }
.win .friend-rows::-webkit-scrollbar-track { background: #002E2E; box-shadow: inset 1px 0 #001C1C; }
.win .friend-rows::-webkit-scrollbar-thumb {
  border-radius: 0;
  border: 1px solid;
  border-color: #46C4C4 #002A2A #002A2A #46C4C4;
  background: #0A8282 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' shape-rendering='crispEdges'%3E%3Cg fill='%2386E0E0'%3E%3Crect width='5' height='1'/%3E%3Crect y='2' width='5' height='1'/%3E%3Crect y='4' width='5' height='1'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
  min-height: 18px;
}
.win .friend-rows::-webkit-scrollbar-thumb:hover { background-color: #10929A; filter: none; }
.win .friend-rows::-webkit-scrollbar-button {
  width: 14px; height: 14px;
  border-radius: 0;
  border: 1px solid;
  border-color: #46C4C4 #002A2A #002A2A #46C4C4;
  background-color: #0A8282;
}
.win .friend-rows::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1h1v1h1v1H0V2h1V1h1z' fill='%23E6FFFF'/%3E%3C/svg%3E");
}
.win .friend-rows::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h5v1H4v1H3v1H2V2H1V1H0z' fill='%23E6FFFF'/%3E%3C/svg%3E");
}
.win .friend-rows::-webkit-scrollbar-button:active { filter: none; border-color: #002A2A #46C4C4 #46C4C4 #002A2A; }
.friend-row {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 0 5px;
  font: 13px Verdana, Tahoma, sans-serif;
  color: #D6FAF6;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.friend-row:hover { background: var(--np-select); color: #fff; }
.friend-lamp { width: 10px; height: 10px; flex: 0 0 10px; }
.friend-name { overflow: hidden; text-overflow: ellipsis; }
.friend-away { color: #E0C27A; font-size: 12px; }
.friend-empty { padding: 3px 8px; font: 13px Verdana, Tahoma, sans-serif; color: #5F9E9A; white-space: nowrap; }

/* ---- the status bar -------------------------------------------------------- */
/* Phase 4: a toolbar of the program's own: a Quit key, the name and the status info in sunken panes,
   a Facility Map key (the keys are the command column's). No Drive button. */
.cw-status {
  grid-area: 2 / 1 / 3 / 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  min-width: 0;
  background: linear-gradient(180deg, #15999A 0%, #0A8483 45%, #066F6E 100%);
  box-shadow: inset 0 1px #4FC7C3, inset 0 -1px #034746;
  color: #fff;
  font: 13px Verdana, Tahoma, sans-serif;
  white-space: nowrap;
}
.sb-key {
  flex: 0 0 auto;
  height: 23px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px 0 3px;
  border: 1px solid #021818;
  border-radius: 2px;
  background: linear-gradient(180deg, #33807D 0%, #1F625F 48%, #154C4A 100%);
  box-shadow: inset 1px 1px #7CC8C3, inset -1px -1px #0A3332;
  cursor: pointer;
  font: bold 13px Verdana, Tahoma, sans-serif;
  color: #E2FFFC;
  text-shadow: 1px 1px #032A29;
}
.sb-key:hover { background: linear-gradient(180deg, #3E928E 0%, #256F6C 48%, #185552 100%); color: #fff; }
.sb-key:active { background: linear-gradient(180deg, #0F3F3E 0%, #165452 55%, #1E625F 100%); box-shadow: inset 1px 1px #062625, inset -1px -1px #3C8C88; }
.sb-key:active > * { position: relative; top: 1px; left: 1px; }
.sb-ico { width: 12px; height: 12px; flex: 0 0 12px; }
/* The sound key beside the mic key (2026-10-22, ui/shell/soundkey.js). */
.sb-sound { padding: 0 3px; }
.sb-sound-ico { image-rendering: pixelated; }
.sb-pane {
  height: 23px;
  box-sizing: border-box;
  min-width: 0;
  padding: 0 9px;
  line-height: 21px;
  background: #044544;
  border: 1px solid;
  border-color: #012626 #45A9A5 #45A9A5 #012626;
  box-shadow: inset 1px 1px #022E2D;
  overflow: hidden;
}
.sb-name-pane { flex: 0 1 247px; }
.sb-info-pane { flex: 1 1 auto; text-align: center; }
.sb-name, .sb-info { overflow: hidden; text-overflow: ellipsis; }
.sb-name { font-weight: bold; color: #FFFFFF; }
.sb-info { color: #DFFFFC; }
.sb-info.hint { color: #9FD8D4; }
/* The Edit House / Edit Lot key (2026-09-29, statusbar.js): shown only in your own house or at your lot, so it
   carries a warm label and a lit top edge, to be seen without hunting. */
.sb-key[hidden] { display: none !important; }
.sb-edit { box-shadow: inset 1px 1px #E8C878, inset -1px -1px #0A3332; }
.sb-edit .sb-key-label { color: #FFE2A0; }
.sb-edit:hover .sb-key-label { color: #FFF2CF; }

/* ---- the bottom panel -------------------------------------------------------- */
.cw-bottom {
  grid-area: 3 / 1 / 4 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 247px;   /* (2026-11-10: the ad cube's 155 px column went to the chat) */
  background: #001C1C;
  min-width: 0;
  min-height: 0;
  overflow: clip;
}

.cw-adframe {
  width: 202px;
  height: 202px;
  box-sizing: border-box;
  border: 1px solid #772B14;
  padding: 1px;
  background: linear-gradient(135deg, #FF9160 0%, #EB5527 40%, #C23E14 100%);
}
.adcube { width: 194px; height: 194px; border: 1px solid #3A1206; box-sizing: content-box; margin: 0; background: #000; cursor: pointer; }
.cw-adframe .adcube { width: 194px; height: 194px; box-sizing: border-box; border: 0; outline: 1px solid #3A1206; outline-offset: -1px; }
.adcube-canvas { display: block; width: 194px; height: 194px; }

.cw-chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 3px 3px 5px;
  min-width: 0;
  min-height: 0;
  overflow: clip;
  background: #002222;
  box-shadow: inset 0 1px #000;
}
.cw-log-frame, .cw-input-frame {
  box-sizing: border-box;
  border: 1px solid;
  border-color: #000 #5FA0A0 #5FA0A0 #000;
  box-shadow: inset 1px 1px #404040;
  background: #fff;
}
.cw-log-frame { flex: 1 1 0; min-height: 0; padding: 1px 0 0 1px; }
.cw-input-frame { flex: 0 0 27px; height: 27px; padding: 1px 0 0 1px; }
.cw-log {
  height: 100%;
  overflow-y: scroll;
  box-sizing: border-box;
  padding: 1px 3px 2px;
  font: 16px Arial, Helvetica, sans-serif;
  line-height: 18px;
  color: #000;
  background: #fff;
  user-select: text;
  cursor: text;
}
.cw-chat.colored .cw-log { background: #FFFFCB; }
.cw-input {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 0;
  padding: 1px 5px 0;
  margin: 0;
  outline: none;
  font: 16px Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  user-select: text;
}
/* Phase 4 (docs/PHASE4.md §6): the line has the keyboard only while you type. Walking, it is greyed
   and says how to start; typing, it is white with the focus ring. */
.cw-input-frame:not(:focus-within), .cw-input:not(:focus) { background: #E4EAEC; }
.cw-input::placeholder { color: #7D8C91; opacity: 1; }
.cw-input:focus::placeholder { color: transparent; }
.cw-input-frame:focus-within { box-shadow: inset 1px 1px #404040, 0 0 0 1px var(--np-focus); }
.cw .cw-log::-webkit-scrollbar { width: 21px; }
/* 2026-10-30 (docs/PHASE7.md §D): the chat tabs over the log (ui/shell/chatbox.js ui.chatTabs): General, Combat, Party.
   Shown only while a tab besides General is; property-sheet tabs in the chat's own teal, the chosen one joined to the log. */
.cw-tabs { flex: 0 0 20px; display: flex; align-items: flex-end; gap: 1px; margin-bottom: -3px; padding-left: 3px; position: relative; z-index: 1; }
.cw-tabs[hidden] { display: none; }
.cw-tab-tools { margin-left: auto; display: flex; gap: 3px; padding-right: 3px; align-self: flex-start; }
.cw-tab-tool { font: 13px Tahoma, sans-serif; line-height: 16px; height: 20px; padding: 0 6px; border: 1px solid #7F9DB9; background: #f4f3ee; color: #1b2526; cursor: pointer; }
.cw-tab-tool:hover { background: #fff; }
.cw-tab {
  height: 17px; padding: 0 10px; box-sizing: border-box;
  font: bold 13px Verdana, Tahoma, sans-serif; line-height: 16px; color: #A8D8D8; cursor: default; user-select: none;
  background: linear-gradient(#1F5C5C, #0D3A3A);
  border: 1px solid; border-color: #5FA0A0 #001414 transparent #5FA0A0; border-bottom: 0; border-radius: 3px 3px 0 0;
}
.cw-tab:not(.sel):hover { color: #fff; }
.cw-tab.sel { height: 20px; color: #000; background: #fff; border-color: #5FA0A0 #001414 #fff #5FA0A0; }
.cw-chat.colored .cw-tab.sel[data-tab="general"] { background: #FFFFCB; }
.cw-tab.unread:not(.sel) { color: #FFD24A; }

.cl { white-space: pre-wrap; overflow-wrap: anywhere; }
.cl-name { color: #000; }
.cl-name.admin { color: #0000FF; }
.cl-sys { color: #0000FF; }
.cl-skill-name { color: #006F6F; }   /* 2026-11-10: a skill level, a job quest (chatbox.js 'skill') */
.cl-tut-name { color: #8A5A00; }     /* 2026-11-11 (docs/PHASE8.md §D): Orientation and quests to turn in (chatbox.js 'tut', 'quest') */
.cl-skill-body { color: #004848; font-weight: bold; }
.cl-skill { cursor: pointer; }
.cl-me { color: #800080; }
.cl-pa, .cl-pa-name { color: #8B0000; }
.cl-error .cl-body { color: #FF0000; }
.cl-warn .cl-body { color: #A04800; }
.cl-admin .cl-body { font-weight: bold; }
/* The client's own lines are plain black Arial, as in WorldsPlayer
   ("To check for upgrades, use Options/Upgrade Now."); arrivals and
   departures are a quieter dark grey, never italic. */
.cl-local { color: #000; }
.cl-ill { color: #4f7d00; font-style: italic; cursor: pointer; }   /* 2026-11-07 (sickness): what your body tells you; a click opens My Chart */
.cl-ill:hover { text-decoration: underline; }
.cl-join { color: #505050; }
.cl-tip { color: #404040; }
.cl-tip-name { color: #006A6A; }
/* A big win on the casino floor (the floor feed, ui/casino/index.js). */
.cl-casino { color: #5A4A00; }
.cl-casino-name { color: #8A6400; }
.cl-ts { color: #808080; }
/* What the room answers when you click a fitting or a patient (integrator). */
.cl-look { color: #5A2A5A; }

.cw-mapframe { width: 247px; height: 202px; background: #000; overflow: hidden; }
.facmap { display: block; width: 247px; height: 202px; }
.minimap {
  display: block; position: relative; width: 247px; height: 202px;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #000000; color: #FFFFFF; box-shadow: none; cursor: pointer;
}
.minimap:focus-visible { outline: 1px dotted #FFFFFF; outline-offset: -3px; }
.minimap-canvas { display: block; width: 247px; height: 202px; image-rendering: pixelated; }

/* ---- phase 5 (homes-world, docs/PHASE5.md §2.4; docs/client/homes.md): the stairs' fade, a house's greeting banner,
   chat from another floor ---------------------------------------------------------------------------------------------- */
.console-fade {
  position: absolute; inset: 0; z-index: 3;
  background: #000; opacity: 0; transition: opacity 240ms linear; pointer-events: none;
}
.console-fade.on { opacity: 1; }
/* the welcome mat: coir, a dark binding, the words worn into it */
.console-greet {
  position: absolute; left: 50%; top: 13px; z-index: 4;
  transform: translate(-50%, -6px);
  min-width: 46%; max-width: 86%; box-sizing: border-box; padding: 6px 23px 9px;
  background-color: #7a5a34;
  background-image:
    repeating-linear-gradient(90deg, rgba(40, 26, 12, 0.34) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(210, 170, 110, 0.16) 0 1px, transparent 1px 4px);
  border: 3px solid #4a3218; outline: 1px solid #1e1208;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
  color: #1a0f06; text-align: center;
  opacity: 0; transition: opacity 500ms ease, transform 500ms ease; pointer-events: none;
}
.console-greet.on { opacity: 1; transform: translate(-50%, 0); }
.console-greet.bye { background-color: #6c5030; }
.console-greet .cg-house {
  font: bold 13px Tahoma, Verdana, sans-serif; letter-spacing: 3px; text-transform: uppercase;
  color: #2e1c0c; opacity: 0.85;
}
.console-greet .cg-text {
  font: 900 20px "Arial Black", "Arial Bold", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase;
  color: #1a0f06; text-shadow: 0 1px 0 rgba(225, 185, 125, 0.35); overflow-wrap: anywhere;
}
/* a line said on another floor of the house (core/homes.js line.floor; the Chat Box adds the class) */
.cl.cl-floor, .cl.cl-floor .cl-name { color: #707070; }
