.scene {
  position: relative;
  background: linear-gradient(180deg, #EFE7D7 0%, var(--paper-2) 60%, #DDD2BE 100%);
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 0 rgba(255,255,255,0.6),
    0 30px 60px -30px rgba(0,0,0,0.25);
}
.scene svg.stage-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Patches that are HTML overlays (stickies, app chrome) for crisper text */
.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay > * { pointer-events: auto; }

/* Monitors */
.monitor {
  position: absolute;
  background: #161616;
  border-radius: 10px;
  padding: 6px 8px 14px 8px;
  box-shadow: var(--shadow-monitor);
}
.monitor::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 60px; height: 4px;
  background: #0c0c0c;
  border-radius: 2px;
  transform: translateX(-50%);
}
.monitor .screen {
  width: 100%; height: 100%;
  background: var(--app-bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--app-text);
  display: flex; flex-direction: column;
  transition: filter 600ms ease, opacity 600ms ease;
}
.monitor.dim .screen { filter: saturate(0.45) brightness(0.88) contrast(0.92); opacity: 0.82; }

/* ─────────────────────────────────────────────────────────────
   The sealed CRM ("ClientLedger" by "Northwind Cloud").
   Slightly dated enterprise-SaaS feel: dense rows, blue brand bar,
   tight radii, abundant chrome. The visible vendor limitations
   (status enum, locked Priority, freeform Notes, tag convention)
   are what the patches above the monitor work around.
   ───────────────────────────────────────────────────────────── */

/* Browser chrome — tabs + nav/url + extension tray */
.app-chrome {
  background: #DCDCDE;
  border-bottom: 1px solid #B7B7BA;
  display: flex; flex-direction: column;
  font-size: 8px;
  color: #333;
  flex: none;
}
.app-chrome .br-tabs {
  display: flex; align-items: flex-end;
  padding: 1px 4px 0;
  gap: 1px;
  height: 10px;
}
.app-chrome .br-tab {
  display: flex; align-items: center; gap: 3px;
  background: #F2F2F4;
  border: 1px solid #B7B7BA;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  padding: 1px 5px 2px;
  max-width: 60%;
  font-size: 7.5px;
  color: #555;
  height: 10px;
  line-height: 1;
  position: relative;
  top: 1px;
  font-family: var(--sans);
}
.app-chrome .br-tab.active { background: #FFFFFF; color: #1B1A17; z-index: 2; }
.app-chrome .br-tab.ghost { background: #E5E5E7; color: #888; max-width: 50px; }
.app-chrome .br-tab .favicon {
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--app-accent);
  flex: none;
}
.app-chrome .br-tab .title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-chrome .br-tab .x { color: #999; font-size: 8px; flex: none; }
.app-chrome .br-newtab {
  width: 12px; height: 10px;
  display: grid; place-items: center;
  color: #777; font-size: 10px;
  position: relative; top: 1px;
}

.app-chrome .br-navbar {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 5px;
  background: #ECECEE;
  border-top: 1px solid #C7C7CA;
  height: 14px;
}
.app-chrome .br-icon {
  width: 11px; height: 11px;
  display: grid; place-items: center;
  color: #555; font-size: 9px; line-height: 1;
  border-radius: 2px;
  flex: none;
}
.app-chrome .br-url {
  flex: 1; min-width: 0;
  background: #fff;
  border: 1px solid #B7B7BA;
  border-radius: 7px;
  padding: 1px 5px;
  font-family: var(--sans);
  font-size: 7.5px;
  color: #444;
  display: flex; align-items: center; gap: 3px;
  height: 10px;
  white-space: nowrap; overflow: hidden;
}
.app-chrome .br-url .lock { font-size: 6px; color: #2E7D43; flex: none; }
.app-chrome .br-url .host { color: #1B1A17; }
.app-chrome .br-url .path { color: #888; overflow: hidden; text-overflow: ellipsis; }
.app-chrome .br-url .star { margin-left: auto; color: #999; font-size: 8px; flex: none; }

.app-chrome .ext-tray { display: flex; gap: 2px; flex: none; }
.ext-chip {
  width: 12px; height: 12px; border-radius: 2px;
  background: linear-gradient(135deg, #6FA8FF, #2C5BD6);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 6.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  animation: chip-pop 280ms cubic-bezier(.2,.9,.3,1.4) both;
}
.app-chrome .br-avatar {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, #C2792B, #8C5210);
  color: white; font-weight: 700; font-size: 6.5px;
  display: grid; place-items: center;
  flex: none;
}
@keyframes chip-pop { from { transform: scale(0); opacity: 0; } }

/* Vendor brand bar / app header */
.app-header {
  background: linear-gradient(180deg, var(--app-accent) 0%, var(--app-accent-2) 100%);
  color: #fff;
  padding: 3px 6px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  height: 16px;
  flex: none;
}
.app-header .brand-block { display: flex; align-items: center; gap: 3px; flex: none; }
.app-header .logo-mark {
  display: inline-grid; place-items: center;
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  color: #fff; font-size: 7px; line-height: 1;
}
.app-header .brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9.5px;
  color: #fff;
  letter-spacing: 0.01em;
}
.app-header .ver-tag {
  font-family: var(--mono);
  font-size: 6.5px;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.18);
  padding: 0 3px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.app-header .nav {
  display: flex; gap: 7px;
  margin-left: 4px;
  font-family: var(--sans);
  color: rgba(255,255,255,0.78);
  font-size: 8px;
  font-weight: 500;
}
.app-header .nav span { padding: 1px 0; cursor: default; }
.app-header .nav span.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}
.app-header .search {
  margin-left: auto;
  background: rgba(255,255,255,0.92);
  color: #888;
  border-radius: 2px;
  padding: 1px 5px;
  font-size: 7.5px;
  display: inline-flex; align-items: center; gap: 3px;
  height: 12px;
  font-family: var(--sans);
  flex: none;
}
.app-header .search .mag { color: #888; font-size: 8px; }
.app-header .primary {
  background: #fff;
  color: var(--app-accent-2);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  padding: 1px 5px;
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 700;
  height: 13px;
  line-height: 1;
  flex: none;
}

/* Secondary toolbar — filter chips + greyed-out bulk-edit */
.app-toolbar {
  background: #F6F6F8;
  border-bottom: 1px solid var(--app-rule);
  padding: 1px 6px;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--sans);
  font-size: 7.5px;
  height: 12px;
  flex: none;
}
.app-toolbar .chips { display: flex; gap: 3px; }
.app-toolbar .chip {
  background: #fff;
  border: 1px solid var(--app-rule);
  border-radius: 8px;
  padding: 0 5px;
  color: #555;
  font-size: 7px;
  line-height: 1.5;
}
.app-toolbar .chip.on {
  background: #E6EEFB;
  border-color: #B7CDF1;
  color: var(--app-accent-2);
  font-weight: 600;
}
.app-toolbar .tb-spacer { flex: 1; }
.app-toolbar .tb-btn {
  background: #fff;
  border: 1px solid var(--app-rule);
  border-radius: 2px;
  padding: 0 5px;
  font-size: 7px;
  color: #444;
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 2px;
  height: 11px;
  line-height: 1;
}
.app-toolbar .tb-btn.disabled {
  background: #ECECEE;
  color: #A8A8AC;
  border-color: #DCDCDE;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(168,168,172,0.55);
}
.app-toolbar .lock-mini { font-size: 6px; }

/* Account table */
.app-table {
  flex: 1;
  overflow: hidden;
  font-size: 8px;
  font-family: var(--sans);
  background: #fff;
  display: flex; flex-direction: column;
  min-height: 0;
}
.app-table .row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.7fr)   /* Account + tag/industry */
    18px               /* Owner */
    minmax(60px, 0.95fr) /* Status */
    24px               /* Priority */
    minmax(0, 1.7fr)   /* Notes */
    34px;              /* Activity */
  align-items: center;
  border-bottom: 1px solid #EDEDEF;
  padding: 0 6px;
  white-space: nowrap;
  column-gap: 5px;
  height: 17px;
}
.app-table .row:nth-child(even):not(.head) { background: #FAFAFB; }
.app-table .row.sel { background: #EAF1FB !important; box-shadow: inset 2px 0 0 var(--app-accent); }
.app-table .row.head {
  background: #F2F2F4;
  color: #6B6B70;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 6.5px;
  border-bottom: 1px solid #C7C7CA;
  height: 12px;
}
.app-table .row.head .cell { display: inline-flex; align-items: center; gap: 2px; }
.app-table .row.head .sort { color: #B0B0B5; font-size: 6px; }
.app-table .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-table .acct-cell { line-height: 1.05; min-width: 0; }
.app-table .acct-name {
  font-weight: 600; color: #1B1A17; font-size: 8.5px;
  overflow: hidden; text-overflow: ellipsis;
}
.app-table .acct-sub  {
  color: #8B8B90; font-size: 6.5px; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 2px;
}
.app-table .acct-sub .ind { color: #8B8B90; }

.app-table .owner-cell { text-align: center; }
.app-table .avatar {
  display: inline-grid; place-items: center;
  width: 13px; height: 13px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700; font-size: 6.5px;
  font-family: var(--sans);
}

/* Status pills — vendor enum only: New, Open, Pending, In Review, Closed */
.app-table .pill {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 6.8px; font-weight: 600;
  padding: 0 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
}
.app-table .pill .caret { font-size: 5.5px; color: rgba(0,0,0,0.4); margin-left: 1px; }
.app-table .pill[data-s="New"]       { background: #E6EEFB; color: #1F47AE; border-color: #C5D6F2; }
.app-table .pill[data-s="Open"]      { background: #FCEFD3; color: #8C5210; border-color: #ECD9A8; }
.app-table .pill[data-s="Pending"]   { background: #ECECEE; color: #555;    border-color: #D6D6DA; }
.app-table .pill[data-s="In Review"] { background: #ECE2F6; color: #5E3D8E; border-color: #D5C2EE; }
.app-table .pill[data-s="Closed"]    { background: #FFFFFF; color: #2E7D43; border: 1px solid #9BC8A8; }

/* Locked Priority cell — disabled-select look with hatch underline */
.app-table .prio-cell { text-align: center; }
.app-table .prio-locked {
  display: inline-flex; align-items: center; gap: 1px;
  background: repeating-linear-gradient(
    -45deg,
    #F2F2F4 0 3px,
    #ECECEE 3px 6px
  );
  border: 1px solid #D6D6DA;
  border-bottom: 1px dashed #C0392B;
  border-radius: 2px;
  padding: 0 3px;
  color: #9A9AA0;
  font-size: 7px;
  line-height: 1.4;
}
.app-table .prio-locked .lock-mini { font-size: 6px; }
.app-table .prio-locked .dash { font-weight: 700; }

/* Notes — freeform smuggled protocol */
.app-table .cell.notes {
  font-family: var(--mono);
  font-size: 6.5px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* Tag chip (lives inside acct-cell sub-row) */
.app-table .tag {
  background: #EAF1FB;
  color: var(--app-accent-2);
  border: 1px solid #C5D6F2;
  border-radius: 2px;
  padding: 0 3px;
  font-size: 6px;
  font-family: var(--mono);
  line-height: 1.45;
  white-space: nowrap;
  flex: none;
}
.app-table .tag.bad {
  background: #FCEFEF;
  color: #C0392B;
  border-color: #ECC9C9;
}

.app-table .date-cell {
  color: #6B6B70;
  font-size: 6.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Footer / pagination */
.app-footer {
  border-top: 1px solid var(--app-rule);
  background: #F6F6F8;
  padding: 1px 6px;
  display: flex; align-items: center;
  font-family: var(--sans);
  font-size: 7px;
  color: #6B6B70;
  height: 11px;
  flex: none;
}
.app-footer .pager { display: flex; align-items: center; gap: 5px; }
.app-footer .pg-btn {
  width: 10px; height: 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--app-rule);
  border-radius: 2px;
  background: #fff;
  color: #555;
  line-height: 1;
  font-size: 8px;
}
.app-footer .footer-spacer { flex: 1; }
.app-footer .tiny-export {
  font-size: 6.5px;
  color: #8B8B90;
  text-decoration: underline dotted;
}

/* Vendor onboarding overlay (only visible at month 0) */
.onboarding {
  position: absolute; inset: 0;
  background: rgba(20, 20, 30, 0.55);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  transition: opacity 500ms ease;
}
.onboarding .card {
  background: white;
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  max-width: 70%;
}
.onboarding .card strong {
  display: block; font-family: var(--serif); font-size: 13px;
  color: var(--app-accent); margin-bottom: 4px;
}
.onboarding .card button {
  margin-top: 6px;
  background: var(--app-accent); color: white;
  border-radius: 3px; padding: 3px 8px; font-size: 9px;
}

/* Shadow spreadsheet — realistic Excel/Sheets-style chrome */
.ss-app {
  height: 100%; display: flex; flex-direction: column;
  background: #F3F3F3; font-family: var(--sans); color: #222;
  min-height: 0;
}
.ss-titlebar {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(#E8E8E8,#D6D6D6);
  border-bottom: 1px solid #B0B0B0;
  padding: 2px 6px; font-size: 8px;
}
.ss-dots { display: flex; gap: 3px; }
.ss-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ss-dot-r { background: #FF5F57; } .ss-dot-y { background: #FEBC2E; } .ss-dot-g { background: #28C840; }
.ss-filename { flex: 1; text-align: center; color: #333; font-weight: 600; font-size: 8px; }
.ss-winctrl { color: #777; font-size: 8px; letter-spacing: 2px; }
.ss-menu {
  display: flex; gap: 8px; padding: 1px 8px;
  background: #EFEFEF; border-bottom: 1px solid #DADADA;
  font-size: 8px; color: #555;
}
.ss-menu-item { padding: 1px 2px; }
.ss-toolbar {
  display: flex; align-items: center; gap: 4px;
  background: #EAEAEA; border-bottom: 1px solid #C8C8C8;
  padding: 2px 6px; font-size: 8px;
}
.ss-tb-grp { display: inline-flex; gap: 1px; }
.ss-tb-btn {
  display: inline-block; min-width: 11px; height: 12px; line-height: 12px;
  padding: 0 2px; text-align: center; background: #F8F8F8;
  border: 1px solid #D0D0D0; border-radius: 2px; color: #444; font-size: 8px;
}
.ss-tb-bold { font-weight: 700; } .ss-tb-italic { font-style: italic; }
.ss-tb-underline { text-decoration: underline; }
.ss-tb-fill { background: #FFF59D; }
.ss-tb-sep { width: 1px; height: 12px; background: #C8C8C8; margin: 0 3px; }
.ss-formulabar {
  display: flex; align-items: stretch;
  background: #FAFAFA; border-bottom: 1px solid #C0C0C0;
  font-size: 9px;
}
.ss-cellref {
  width: 38px; padding: 2px 4px;
  border-right: 1px solid #C0C0C0; background: white;
  font-family: var(--mono, monospace); font-size: 8px;
  display: flex; align-items: center; justify-content: center;
}
.ss-fx {
  width: 14px; padding: 2px 0; text-align: center;
  font-style: italic; color: #888;
  border-right: 1px solid #E0E0E0; background: white;
  display: flex; align-items: center; justify-content: center;
}
.ss-formula {
  flex: 1; padding: 2px 6px; background: white;
  font-family: var(--mono, monospace); font-size: 8px; color: #1565C0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center;
}
.ss-bodies { flex: 1; min-height: 0; position: relative; background: white; }
.ss-body { position: absolute; inset: 0; display: none; flex-direction: column; }
.ss-body.ss-active { display: flex; }
.ss-grid {
  flex: 1; min-height: 0;
  display: grid;
  background: white;
  font-size: 8px;
  align-content: start;
  overflow: hidden;
}
.ss-cell {
  border-right: 1px solid #E0E0E0;
  border-bottom: 1px solid #E8E8E8;
  padding: 1px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative;
  line-height: 1.25;
  min-height: 13px;
}
.ss-cell.ss-wrap { white-space: normal; line-height: 1.05; font-size: 7.5px; }
.ss-corner { background: #F0F0F0; }
.ss-colhead, .ss-rownum {
  background: #F3F3F3; color: #666; text-align: center;
  font-weight: 600; font-size: 7.5px;
  border-right: 1px solid #C8C8C8;
  border-bottom: 1px solid #C8C8C8;
}
.ss-rownum-active, .ss-colhead.ss-colhead-active {
  background: #C8E6C9; color: #1B5E20;
}
.ss-head {
  background: #F8F8F8; color: #222; font-weight: 700; font-size: 8px;
  border-bottom: 2px solid #888;
}
.ss-head-blue { background: #E3EEF7; color: #154A78; border-bottom-color: #1565C0; }
.ss-chip {
  display: inline-block; padding: 0 4px; border-radius: 2px;
  font-size: 7.5px; font-weight: 700; line-height: 11px;
}
.ss-chip-high { background: #C8E6C9; color: #1B5E20; }
.ss-chip-med  { background: #FFE0B2; color: #8A4B00; }
.ss-chip-low  { background: #FFCDD2; color: #B71C1C; }
.ss-chip-low::before { content: "●"; margin-right: 2px; color: #B71C1C; }
.ss-stale { color: #C62828; font-weight: 600; }
.ss-error { color: #B71C1C; font-style: italic; background: #FFF3F3; }
.ss-kw-good { color: #1B5E20; }
.ss-kw-bad  { color: #C62828; }
.ss-total { background: #F2F4F7; font-weight: 700; border-top: 1px solid #888; }
.ss-active-cell {
  outline: 2px solid #1B873F; outline-offset: -2px;
  background: rgba(27,135,63,0.04);
  z-index: 2;
}
.ss-fill-handle {
  position: absolute; right: -2px; bottom: -2px;
  width: 4px; height: 4px; background: #1B873F;
  border: 1px solid white; z-index: 3;
}
.ss-has-comment::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-top: 4px solid #C62828;
  border-left: 4px solid transparent;
}
.ss-tabs {
  display: flex; align-items: stretch;
  background: #E0E0E0; border-top: 1px solid #B8B8B8;
  padding: 0 4px; font-size: 8px; flex: none;
  gap: 1px;
}
.ss-tab {
  padding: 2px 8px; background: #D0D0D0; color: #555;
  border: 1px solid #B8B8B8; border-bottom: none;
  border-radius: 2px 2px 0 0; cursor: default;
}
.ss-tab-active {
  background: white; color: #1B873F; font-weight: 700;
  border-bottom: 1px solid white; margin-bottom: -1px;
}
.ss-tab-add {
  padding: 2px 6px; color: #888; align-self: center;
}
/* Weekly report layout: grid + chart side-by-side area */
.ss-body-report { flex-direction: column; }
.ss-body-report .ss-grid { flex: 1.4; }
.ss-chart {
  flex: 1; min-height: 0;
  background: #FAFBFD; border-top: 1px solid #C8D6E3;
  padding: 4px 6px; display: flex; flex-direction: column; gap: 2px;
  font-size: 8px;
}
.ss-chart-title { font-weight: 700; color: #154A78; font-size: 8.5px; }
.ss-bars { display: flex; flex-direction: column; gap: 2px; }
.ss-bar { display: grid; grid-template-columns: 24px 1fr 36px; gap: 4px; align-items: center; }
.ss-bar-label { color: #555; font-weight: 600; }
.ss-bar-fill { height: 8px; border-radius: 1px; display: inline-block; }
.ss-bar-high { background: #2E7D43; }
.ss-bar-med  { background: #F9A825; }
.ss-bar-low  { background: #C62828; }
.ss-bar-val  { color: #154A78; font-family: var(--mono, monospace); text-align: right; }

/* Legacy spreadsheet styles (kept for compatibility) */
.spreadsheet {
  height: 100%; display: flex; flex-direction: column;
  background: var(--sheet-bg);
  font-family: var(--sans);
}
.spreadsheet .titlebar {
  background: var(--sheet-head); color: white;
  padding: 4px 8px; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.spreadsheet .grid {
  flex: 1;
  display: grid;
  grid-template-columns: 18px repeat(5, 1fr);
  font-size: 9px;
  background: white;
}
.spreadsheet .cell {
  border-right: 1px solid var(--sheet-grid);
  border-bottom: 1px solid var(--sheet-grid);
  padding: 2px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spreadsheet .cell.row-num { background: #EAF1E6; color: #4a6b46; text-align: center; font-size: 8px; }
.spreadsheet .cell.head { background: #DDEAD7; color: #2E7D43; font-weight: 700; font-size: 8px; }

/* Wiki / runbook */
.wiki {
  height: 100%;
  background: white;
  font-family: var(--sans);
  font-size: 9px;
  color: var(--ink);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.wiki h4 { margin: 0; font-family: var(--serif); font-size: 11px; color: var(--app-accent); }
.wiki ul { margin: 0; padding-left: 14px; }
.wiki li { line-height: 1.45; color: var(--ink-2); font-size: 8.5px; }

/* Slack panel */
.slack {
  height: 100%; background: #4A154B; color: white;
  font-family: var(--sans); font-size: 9px;
  padding: 6px 8px; display: flex; flex-direction: column; gap: 4px;
}
.slack .channel { font-weight: 700; }
.slack .msg { background: rgba(255,255,255,0.06); padding: 3px 5px; border-radius: 3px; }
.slack .msg b { color: #ECB22E; font-weight: 600; }

/* Sticky notes — paper realism: subtle gradient, faint speckle, paper-lift shadow */
.sticky {
  position: absolute;
  width: 132px; min-height: 132px;
  padding: 10px 12px 14px;
  background-color: var(--sticky-yellow);
  background-image:
    /* corner highlight (top-left) → shaded bottom-right */
    linear-gradient(135deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0.07) 100%),
    /* very faint paper speckle (SVG turbulence) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.18'/></svg>");
  background-blend-mode: multiply, multiply;
  font-family: var(--sticky-font);
  font-size: 14px;
  line-height: 1.18;
  color: #2A2410;
  /* Paper-lift drop shadow: thin contact + soft long shadow */
  box-shadow:
    0 1px 0 rgba(0,0,0,0.06),
    0 2px 3px rgba(0,0,0,0.10),
    0 10px 14px -6px rgba(0,0,0,0.22);
  transform-origin: top center;
  white-space: pre-line;
  border-radius: 1px 1px 4px 4px;
  animation: sticky-in 380ms cubic-bezier(.2,.9,.3,1.3) both;
}
.sticky .body {
  font-family: var(--sticky-font);
  font-weight: 400;
}
.sticky .t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.52);
  margin-bottom: 5px;
}

.sticky[data-color="pink"]  { background-color: var(--sticky-pink); }
.sticky[data-color="blue"]  { background-color: var(--sticky-blue); }
.sticky[data-color="green"] { background-color: var(--sticky-green); }

/* Masking tape — only on stickies stuck to the wall (not monitor bezel ones).
   Translucent yellowish strip across one corner. */
.sticky[data-surface="wall"]::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 44px; height: 14px;
  transform: translateX(-50%) rotate(-3deg);
  background:
    linear-gradient(180deg, rgba(255,240,170,0.78), rgba(240,220,140,0.62)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='20'><filter id='n'><feTurbulence baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.18'/></svg>");
  background-blend-mode: multiply, normal;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
  border-left: 1px dashed rgba(180,150,80,0.18);
  border-right: 1px dashed rgba(180,150,80,0.18);
}

/* Curled corner — a tiny triangular "lift" on selected stickies.
   Clip the corner of the sticky and paint the back of the paper / shadow underneath. */
.sticky[data-curl="tr"] {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.sticky[data-curl="tr"]::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background:
    linear-gradient(225deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0) 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  filter: blur(0.4px);
}
.sticky[data-curl="bl"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.sticky[data-curl="bl"]::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 16px; height: 16px;
  background:
    linear-gradient(45deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0) 100%);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  filter: blur(0.4px);
}
.sticky[data-curl="br"] {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.sticky[data-curl="br"]::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 16px; height: 16px;
  background:
    linear-gradient(315deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0) 100%);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  filter: blur(0.4px);
}

@keyframes sticky-in {
  from { opacity: 0; transform: translateY(-8px) rotate(var(--rot, 0deg)) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

/* Macro key tape */
.macro-tape {
  position: absolute;
  background: rgba(255, 250, 200, 0.85);
  border: 1px dashed rgba(120, 100, 40, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  animation: sticky-in 320ms ease-out both;
}

/* Wall (the area behind monitors) */
.wall-shot {
  position: absolute;
  width: 110px;
  background: white;
  padding: 4px 4px 14px;
  font-family: var(--sans);
  font-size: 8px;
  box-shadow: var(--shadow-sticky);
  animation: sticky-in 380ms ease-out both;
}
.wall-shot .img {
  height: 64px;
  background:
    repeating-linear-gradient(135deg, #eee 0 4px, #f7f7f7 4px 8px);
  border: 1px solid #ddd;
  position: relative;
}
.wall-shot .img::after {
  content: "✕ ✕ ✕";
  position: absolute; inset: auto 4px 4px auto;
  color: #C0392B; font-weight: 800; font-size: 14px;
  letter-spacing: 2px;
  transform: rotate(-6deg);
}
.wall-shot .cap { padding: 4px 2px 0; color: var(--ink-2); text-align: center; font-style: italic; }

/* Shell-realization vignette at the end */
.scene[data-shell="1"] .monitor.left .screen { filter: saturate(0.4) brightness(0.85); }

/* Subtle grain */
.scene::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ── SVG backdrop micro-details ──────────────────────────────── */

/* Window: ensure the light stripes & wall glow blend softly */
.stage-svg #window-group rect,
.stage-svg #window-group line {
  shape-rendering: crispEdges;
}

/* Blind cast-light stripes: multiply blend so they sit on the wall tint */
.stage-svg #blind-wall-stripes rect {
  mix-blend-mode: screen;
}

/* Desk-lamp arm: a very faint drop-shadow hints at depth without glowing */
.stage-svg #desk-lamp {
  filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.18));
}

/* Plant: slight inner-leaf contrast */
.stage-svg #plant ellipse[fill="#3A6820"],
.stage-svg #plant ellipse[fill="#4A7C28"] {
  filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.22));
}

/* Monitor pedestals: sharpen the horizontal edge-lines */
.stage-svg #stand-left rect,
.stage-svg #stand-right rect {
  shape-rendering: crispEdges;
}
