/* ============ WIN95 UI KIT — Phase 1 minimal ============ */

:root {
  --face: #c0c0c0;
  --hilite: #ffffff;
  --face-light: #dfdfdf;
  --shadow: #808080;
  --dkshadow: #0a0a0a;
  --navy: #000080;
  --navy2: #1084d0;
  --bevel-raised:
    inset -1px -1px var(--dkshadow), inset 1px 1px var(--hilite),
    inset -2px -2px var(--shadow),   inset 2px 2px var(--face-light);
  --bevel-sunken:
    inset -1px -1px var(--hilite),   inset 1px 1px var(--dkshadow),
    inset -2px -2px var(--face-light), inset 2px 2px var(--shadow);
  --bevel-thin-sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  overflow: hidden;
  background: #008080;
  user-select: none;
}
::selection { background: var(--navy); color: #fff; }

#desktop-layer { position: fixed; inset: 0; }
#desktop { position: absolute; inset: 0 0 30px 0; overflow: hidden; }

/* ---------- taskbar ---------- */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: var(--face);
  box-shadow: inset 0 1px var(--face-light), inset 0 2px var(--hilite);
  display: flex; align-items: center; padding: 2px 4px; gap: 4px;
  z-index: 50;
}
.w95-btn {
  font: inherit; font-weight: 700; padding: 3px 10px;
  background: var(--face); border: none;
  box-shadow: var(--bevel-raised); cursor: pointer;
}
.w95-btn:active { box-shadow: var(--bevel-sunken); }
.taskbar-divider { width: 2px; height: 22px; box-shadow: var(--bevel-thin-sunken); }
#task-buttons { flex: 1; display: flex; gap: 4px; }
#tray { padding: 3px 10px; color: #222; }
.w95-sunken { box-shadow: var(--bevel-thin-sunken); }

/* ---------- window ---------- */
.w95-window {
  position: absolute;
  background: var(--face);
  box-shadow: var(--bevel-raised), 2px 2px 6px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column;
  padding: 3px;
  min-width: 200px; min-height: 80px;
}
.w95-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 4px;
  color: #fff; font-weight: 700;
  background: linear-gradient(90deg, var(--navy), var(--navy2));
}
.w95-window.inactive .w95-titlebar { background: linear-gradient(90deg, #7b7b7b, #b5b5b5); }
.tb-icon { display: inline-flex; }
.tb-icon svg { width: 14px; height: 14px; }
.tb-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-btns { display: flex; gap: 2px; }
.tb-btn {
  width: 18px; height: 16px;
  font: 11px/1 monospace;
  background: var(--face); border: none;
  box-shadow: var(--bevel-raised); cursor: pointer;
}
.tb-btn:active { box-shadow: var(--bevel-sunken); }
.w95-body { flex: 1; overflow: auto; margin-top: 2px; background: var(--face); }
.w95-body.inset { box-shadow: var(--bevel-sunken); background: #fff; }

/* ---------- notepad ---------- */
.notepad {
  padding: 10px 12px;
  white-space: pre-wrap;
  color: #111;
  line-height: 1.5;
  user-select: text;
}

/* ---------- folder view ---------- */
.folder-view {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 14px; align-content: flex-start;
}
.ficon { width: 90px; text-align: center; cursor: pointer; color: #111; padding: 4px 2px; word-break: break-all; }
.ficon .fi-ico svg { width: 32px; height: 32px; }
.ficon.selected { background: var(--navy); color: #fff; }

/* ---------- desktop icons ---------- */
.dicon {
  position: absolute; width: 92px;
  text-align: center; color: #fff;
  cursor: pointer; padding: 6px 2px;
  text-shadow: 1px 1px 2px #000;
}
.dicon .di-ico svg { width: 40px; height: 40px; filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, .4)); }
.di-label { display: inline-block; padding: 1px 3px; }
.dicon.selected .di-label { background: var(--navy); }

/* ---------- dialog ---------- */
.w95-dialog-body { display: flex; gap: 10px; padding: 14px; }
.dlg-text { white-space: pre-wrap; line-height: 1.5; }
.dlg-btn-row { display: flex; justify-content: center; padding: 0 12px 12px; }
.dlg-btn {
  min-width: 76px; padding: 4px 10px;
  font: inherit; background: var(--face); border: none;
  box-shadow: var(--bevel-raised); cursor: pointer;
}
.dlg-btn:active { box-shadow: var(--bevel-sunken); }

/* ---------- sticky note ---------- */
.sticky-note {
  position: absolute; width: 168px;
  padding: 12px 12px 16px;
  background: #fff9a6; color: #4a4300;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 13px; line-height: 1.45;
  transform: rotate(-2.5deg);
  box-shadow: 3px 4px 8px rgba(0, 0, 0, .35);
  cursor: pointer; z-index: 1;
}
.sticky-note:hover { transform: rotate(-1deg) scale(1.03); }

/* ---------- book (HOW IT WORKS) ---------- */
.book-root {
  display: flex; flex-direction: column; height: 100%;
  background: #fdfdf4; color: #222;
}
.bk-title {
  padding: 10px 16px 6px;
  font-weight: 700; color: var(--navy);
  border-bottom: 1px solid #ccc;
}
.bk-page {
  flex: 1; padding: 14px 20px;
  white-space: pre-wrap; line-height: 1.65;
  overflow: auto; cursor: pointer;
  user-select: text;
}
.bk-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid #ccc;
}
.bk-num { color: #555; font-size: 11px; }

/* ---------- control (LLM key joke) ---------- */
.ctrl-body { padding: 14px 16px; text-align: center; }
.ctrl-ico svg { width: 40px; height: 40px; }
.ctrl-label { font-weight: 700; margin: 8px 0; }
.dlg-input {
  width: 100%; padding: 5px 6px;
  font: inherit; border: none;
  box-shadow: var(--bevel-sunken);
  background: #fff; outline: none;
}
.ctrl-hint { color: #666; font-size: 10px; margin-top: 6px; }
.ctrl-btns { padding-top: 12px; }
.ctrl-term { background: #000; }
pre.ctrl-boot {
  margin: 0; padding: 12px 14px;
  font: inherit; color: #33ff66;
  white-space: pre; line-height: 1.4;
}

/* ---------- task manager ---------- */
.tmgr-table { width: 100%; border-collapse: collapse; background: #fff; }
.tmgr-table th {
  text-align: left; font-weight: 400; color: #555;
  border-bottom: 1px solid #ccc;
  padding: 4px 8px; font-size: 11px;
}
.tmgr-table td { padding: 4px 8px; font-size: 11px; color: #111; }
.tmgr-on { color: #1a8f1a; font-weight: 700; }
.tmgr-dim { color: #777; }

/* ---------- logon (Coming Soon) ---------- */
.lg-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; text-align: left;
}
.lg-title { font-weight: 700; }
.lg-row {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0; text-align: left;
}
.lg-row label { width: 76px; flex: none; }

/* ---------- feeds widget (bottom-right Link Monitor) ---------- */
.w95-menubar {
  display: flex; align-items: center; gap: 12px;
  padding: 3px 8px;
  box-shadow: inset 0 -1px var(--shadow), inset 0 -2px var(--hilite);
}
.fm-root { display: flex; flex-direction: column; height: 100%; background: var(--face); }
.fm-cam { margin-left: auto; color: #555; font-size: 10px; letter-spacing: 1px; }
.fm-toolstrip { display: flex; align-items: center; gap: 10px; padding: 8px; }
.fm-blocks { display: inline-flex; gap: 2px; }
.fm-blocks i { width: 12px; height: 14px; background: #e4e4e4; box-shadow: var(--bevel-thin-sunken); }
.fm-blocks i.on { background: var(--navy); }
.fm-quota { font-size: 11px; color: #222; }
.fm-listwrap {
  flex: 1; margin: 0 8px;
  background: #fff; box-shadow: var(--bevel-sunken);
  overflow: auto;
}
.fm-table { width: 100%; border-collapse: collapse; }
.fm-table th {
  text-align: left; font-weight: 400; font-size: 11px;
  background: var(--face); padding: 2px 8px;
  box-shadow: inset -1px -1px var(--shadow), inset 1px 0 var(--hilite);
}
.fm-table td { padding: 3px 8px; font-size: 11px; color: #111; }
.fm-on { color: #1a8f1a; font-weight: 700; }
.fm-whisper {
  font-style: italic; color: #333; font-size: 11px;
  padding: 6px 10px; text-align: right;
}
.fm-statusbar { display: flex; gap: 2px; padding: 0 8px 6px; font-size: 11px; }
.fm-statusbar span { box-shadow: var(--bevel-thin-sunken); padding: 2px 8px; }
.fm-statusbar .fm-right { margin-left: auto; }

/* ---------- newspaper (The Spread Sheet, bottom-left) ---------- */
.paper-root {
  height: 100%; overflow: auto;
  background: #f4f0e6; color: #161616;
  font-family: Georgia, 'Times New Roman', serif;
  padding: 10px 14px;
  user-select: text;
}
.pp-mast {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 3px double #161616; padding-bottom: 4px;
}
.pp-title { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.pp-price, .pp-est { font-size: 11px; }
.pp-daterow {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #444;
  margin: 4px 0 8px; letter-spacing: 1px;
}
.pp-tag { border: 1px solid #444; padding: 0 4px; }
.pp-headline {
  font-size: 19px; font-weight: 700; line-height: 1.15;
  margin-bottom: 4px;
}
.pp-sub { font-style: italic; font-size: 12px; margin-bottom: 8px; }
.pp-cols { display: flex; gap: 12px; }
.pp-col { flex: 1; font-size: 11px; line-height: 1.5; }
.pp-photo { flex: 0 0 130px; }
.pp-img { border: 1px solid #333; }
.pp-img svg { display: block; width: 100%; }
.pp-cap { font-size: 9px; font-style: italic; color: #333; margin-top: 3px; }
.pp-foot {
  border-top: 1px solid #999; margin-top: 10px; padding-top: 4px;
  text-align: center; font-size: 10px; letter-spacing: 1px; color: #333;
}

/* ---------- new message toast ---------- */
.msg-body {
  display: flex; gap: 10px; padding: 12px;
  background: var(--face); align-items: flex-start;
}
.msg-ico svg { width: 28px; height: 28px; }
.msg-from { font-weight: 700; margin-bottom: 3px; }
.msg-text { color: #222; line-height: 1.4; user-select: text; }
