:root {
  --bg: #101614;
  --panel: #1b2420;
  --panel-2: #243129;
  --ink: #fff7df;
  --muted: #c7baa2;
  --line: #050806;
  --green: #71f28f;
  --blue: #5ec9ff;
  --yellow: #ffd35a;
  --pink: #ff83a8;
  --violet: #c9a6ff;
  --red: #ff5f5f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.035) 2px, transparent 2px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.035) 2px, transparent 2px) 0 0/24px 24px,
    radial-gradient(circle at 20% 0%, rgba(113,242,143,.20), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(94,201,255,.18), transparent 34%),
    #101614;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(38px, 6vw, 86px); line-height: .86; letter-spacing: -.08em; text-shadow: 5px 5px 0 #000; }
h2 { font-size: 22px; letter-spacing: -.04em; }
h3 { font-size: 24px; line-height: 1; letter-spacing: -.045em; }
.shell { width: min(1600px, calc(100vw - 28px)); margin: 0 auto; padding: 24px 0; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 12px; letter-spacing: .13em; font-weight: 950; margin-bottom: 7px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ghost, .chat-form button, .clock {
  border: 3px solid #030504;
  background: #fff7df;
  color: #0b100e;
  border-radius: 0;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 950;
  box-shadow: 5px 5px 0 #000;
}
.ghost:hover, .chat-form button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #000; }
.clock { display: inline-flex; align-items: center; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 22px 0 14px; }
.status-card {
  min-height: 92px;
  background: #223026;
  border: 4px solid #030504;
  padding: 14px;
  box-shadow: 7px 7px 0 #000;
}
.status-card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.status-card .value { font-size: 18px; font-weight: 950; margin-top: 10px; overflow-wrap: anywhere; }
.state { display: inline-block; width: 10px; height: 10px; margin-right: 7px; background: #64748b; border: 2px solid #000; }
.state.ok { background: var(--green); }
.state.warn { background: var(--yellow); }
.state.down { background: var(--red); }

.roadmap-panel {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 4px solid #030504;
  background: #18231e;
  box-shadow: 8px 8px 0 #000;
}
.roadmap-copy { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.roadmap-copy h2 { font-size: 25px; }
.roadmap-copy p, .role { color: var(--muted); line-height: 1.35; }
.roadmap-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roadmap-step { border: 3px solid #030504; padding: 13px; background: #263329; min-height: 160px; }
.step-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 900; }
.step-top i { font-style: normal; color: var(--green); }
.roadmap-step h3 { margin: 10px 0 8px; font-size: 17px; }
.roadmap-step ul { margin: 0; padding-left: 18px; color: #eadfc6; font-size: 13px; line-height: 1.32; }
.roadmap-step li + li { margin-top: 6px; }
.roadmap-step.ready .step-top i { color: var(--blue); }
.roadmap-step.planned .step-top i { color: var(--yellow); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 16px; min-width:0; }
.map-panel, .side-panel {
  background: #18231e;
  border: 4px solid #030504;
  box-shadow: 9px 9px 0 #000;
  min-width:0;
}
.map-panel { padding: 16px; }
.map-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.map-header > div { min-width:0; }
.map-header h2 { overflow-wrap:anywhere; }
.legend { display: flex; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 850; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 2px solid #000; }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--yellow); }
.office-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "ops ops"
    "build shop"
    "ig oko"
    "tech tasks"
    "common common";
  gap: 16px;
  padding: 16px;
  border: 4px solid #030504;
  background:
    linear-gradient(rgba(255,255,255,.05) 2px, transparent 2px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 2px, transparent 2px) 0 0/28px 28px,
    #0e1912;
}
.room-card, .common-room {
  min-width: 0;
  background: #263329;
  border: 4px solid #030504;
  box-shadow: 7px 7px 0 #000;
  padding: 14px;
  overflow: hidden;
}
.theme-ops { grid-area: ops; border-color: #030504; background: #203747; }
.theme-shop { grid-area: shop; }
.theme-tech { grid-area: tech; background: #3a321b; }
.theme-build { grid-area: build; background: #332434; }
.theme-tasks { grid-area: tasks; background: #2b2540; }
.theme-ig { grid-area: ig; background: #3a2233; }
.theme-oko { grid-area: oko; background: #203447; }
.common-room { grid-area: common; background: #213529; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.room-top { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; margin-bottom: 12px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 235px;
  border: 3px solid #030504;
  background: var(--green);
  color: #07100b;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  box-shadow: 4px 4px 0 #000;
  white-space: normal;
}
.status-pill i { width: 10px; height: 10px; flex: 0 0 auto; background: #0b100e; }
.status-pill.standby { background: var(--yellow); }
.status-pill.available { background: var(--pink); }
.status-pill.relaxing { background: var(--violet); }
.status-pill.inline { max-width: none; box-shadow: none; padding: 5px 7px; }
.room-body { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(230px, 1.2fr); gap: 12px; align-items: stretch; }
.workstation {
  position: relative;
  min-height: 210px;
  background: #152019;
  border: 4px solid #030504;
  overflow: hidden;
}
.office-sign { position:absolute; left:10px; top:10px; z-index:7; background:#fff7df; color:#10140f; border:3px solid #030504; padding:5px 7px; font-size:10px; font-weight:950; letter-spacing:.08em; box-shadow:3px 3px 0 #000; }
.pixel-wall { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.04) 3px, transparent 3px) 0 0/22px 22px, linear-gradient(90deg, rgba(255,255,255,.04) 3px, transparent 3px) 0 0/22px 22px; }
.walking-track { position:absolute; left:8%; right:8%; bottom:18px; height:34px; z-index:1; border:3px dashed rgba(255,247,223,.22); opacity:.25; }
.beanbag { display:none; position:absolute; left:12%; bottom:24px; width:74px; height:46px; z-index:3; background:var(--violet); border:4px solid #030504; border-radius:24px 24px 10px 10px; box-shadow:5px 5px 0 #000; }
.chair { position:absolute; left:50%; bottom:26px; width:78px; height:84px; transform:translateX(-50%); z-index:2; background:#3d4d5a; border:4px solid #030504; box-shadow:5px 5px 0 #000; }
.chair::before { content:""; position:absolute; left:12px; right:12px; bottom:-20px; height:22px; background:#26333a; border:4px solid #030504; }
.chair::after { content:""; position:absolute; left:50%; bottom:-39px; width:12px; height:24px; transform:translateX(-50%); background:#030504; box-shadow:-18px 18px 0 #030504, 18px 18px 0 #030504; }
.desk { position: absolute; left: 12%; right: 12%; bottom: 31px; height: 50px; z-index:4; background: #9a6334; border: 4px solid #030504; box-shadow: 0 7px 0 #000; }
.desk::before { content: ""; position: absolute; left: 12%; right: 12%; top: 11px; height: 5px; background: #c98a49; }
.monitor { position: absolute; left: 50%; bottom: 91px; width: 72px; height: 48px; z-index:6; transform: translateX(-50%); background: var(--blue); border: 4px solid #030504; box-shadow: 5px 5px 0 #000; }
.monitor::after { content: ""; position: absolute; left: 24px; bottom: -18px; width: 12px; height: 16px; background: #030504; }
.keyboard { position:absolute; left:50%; bottom:70px; width:58px; height:15px; z-index:7; transform:translateX(-50%); background:#fff7df; border:3px solid #030504; box-shadow:3px 3px 0 #000; }
.mouse { position:absolute; left:calc(50% + 44px); bottom:70px; width:18px; height:15px; z-index:7; background:#fff7df; border:3px solid #030504; box-shadow:3px 3px 0 #000; }
.work-label { position:absolute; right:9px; bottom:9px; z-index:7; color:#d6c8aa; font-size:10px; font-weight:950; letter-spacing:.09em; }
.action-bubble { position:absolute; right:8px; top:42px; z-index:8; max-width:122px; background:#fff7df; color:#10140f; border:3px solid #030504; padding:5px 7px; font-size:10px; font-weight:950; box-shadow:3px 3px 0 #000; }
.pixel-agent { position: absolute; left: 50%; bottom: 42px; width: 92px; height: 124px; z-index:3; transform: translateX(-50%); border: 0; background: transparent; }
.pixel-agent.active { filter: drop-shadow(0 0 14px var(--agent-color)); }
.pixel-head { position: absolute; left: 28px; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--agent-color); border: 4px solid #030504; color: #06100b; font-weight: 950; box-shadow: 4px 4px 0 #000; }
.pixel-body { position: absolute; left: 23px; top: 38px; width: 48px; height: 56px; background: var(--agent-color); border: 4px solid #030504; box-shadow: 4px 4px 0 #000; }
.pixel-body::before, .pixel-body::after { content: ""; position: absolute; top: 11px; width: 20px; height: 13px; background: var(--agent-color); border: 4px solid #030504; }
.pixel-body::before { left: -24px; }
.pixel-body::after { right: -24px; }
.pixel-feet { position: absolute; left: 24px; top: 93px; width: 48px; height: 22px; }
.pixel-feet::before, .pixel-feet::after { content: ""; position: absolute; bottom: 0; width: 19px; height: 22px; background: #0a0f0c; border: 4px solid #030504; }
.pixel-feet::before { left: 0; }
.pixel-feet::after { right: 0; }
.pixel-agent.working .pixel-body::before { transform: translateY(7px); }
.pixel-agent.working .pixel-body::after { transform: translateY(-7px); }
.scene-working .pixel-agent .pixel-body::before { animation:type-left .9s steps(2,end) infinite; }
.scene-working .pixel-agent .pixel-body::after { animation:type-right .9s steps(2,end) infinite; }
.scene-standby .chair, .scene-standby .desk, .scene-standby .monitor, .scene-standby .keyboard, .scene-standby .mouse,
.scene-available .chair, .scene-available .desk, .scene-available .monitor, .scene-available .keyboard, .scene-available .mouse { opacity:.68; }
.pixel-agent.standby, .pixel-agent.available { left:24%; bottom:28px; z-index:6; animation:walk-room 3.6s steps(5,end) infinite alternate; }
.pixel-agent.relaxing { left:26%; bottom:38px; z-index:6; transform: translateX(-50%) rotate(-8deg); }
.scene-relaxing .beanbag { display:block; }
.scene-relaxing .chair { opacity:.35; }
.scene-relaxing .monitor, .scene-relaxing .keyboard, .scene-relaxing .mouse { opacity:.55; }
.scene-relaxing .action-bubble { background:var(--violet); }
@keyframes walk-room { from { left:24%; } to { left:66%; } }
@keyframes type-left { 0%,100% { transform:translateY(7px); } 50% { transform:translateY(-2px); } }
@keyframes type-right { 0%,100% { transform:translateY(-7px); } 50% { transform:translateY(2px); } }
.theme-ops .room-body { grid-template-columns:minmax(250px, 1fr) minmax(300px, .9fr); }
.workstation-ops { min-height: 285px; background:#17283a; }
.workstation-ops .desk { left:18%; right:18%; bottom:40px; height:68px; background:#b07638; }
.workstation-ops .monitor { width:118px; height:70px; bottom:127px; }
.workstation-ops .monitor::before { content:"BOSS SCREEN"; position:absolute; inset:8px; display:grid; place-items:center; color:#06100b; font-size:10px; font-weight:950; background:rgba(255,255,255,.25); }
.workstation-ops .monitor::after { left:49px; bottom:-23px; width:14px; height:21px; }
.workstation-ops .keyboard { bottom:93px; width:88px; height:18px; }
.workstation-ops .mouse { bottom:93px; left:calc(50% + 66px); }
.workstation-ops .chair { width:104px; height:112px; bottom:33px; background:#7147c7; }
.workstation-ops .pixel-agent { bottom:90px; z-index:5; transform:translateX(-50%) scale(1.16); }
.workstation-ops .office-sign { background:var(--yellow); }
.task-board {
  min-width: 0;
  background: #fff2c2;
  color: #10140f;
  border: 4px solid #030504;
  padding: 11px;
  box-shadow: 6px 6px 0 #000;
}
.board-title { font-weight: 950; font-size: 13px; letter-spacing: .09em; margin-bottom: 9px; }
.task-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  min-height: 32px;
  padding: 7px 8px;
  background: #f3d99a;
  border: 3px solid #030504;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.task-row + .task-row { margin-top: 7px; }
.task-row b { grid-column: 2; justify-self: start; font-size: 10px; background: #10140f; color: #fff2c2; padding: 3px 5px; }
.task-dot { width: 12px; height: 12px; background: var(--green); border: 2px solid #030504; }
.task-dot.standby { background: var(--yellow); }
.task-dot.available { background: var(--pink); }
.task-dot.relaxing { background: var(--violet); }
.meta-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.meta-grid div { min-width: 0; border: 3px solid #030504; background: #111914; padding: 8px; }
.meta-grid span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; margin-bottom: 4px; }
.meta-grid b { display: block; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }

.side-panel { padding: 14px; display: flex; flex-direction: column; gap: 14px; min-height: 650px; }
.agent-card { border: 4px solid #030504; padding: 15px; background: #263329; box-shadow: 6px 6px 0 #000; }
.agent-card.empty { color: var(--muted); }
.agent-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.agent-title p { color: var(--muted); line-height: 1.25; }
.mini-avatar { width: 48px; height: 48px; border: 4px solid #030504; display: grid; place-items: center; color: #06110b; font-weight: 950; box-shadow: 4px 4px 0 #000; }
.detail-list { display: grid; gap: 8px; }
.detail-list p { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 9px; align-items: center; border: 3px solid #030504; background: #111914; padding: 8px; }
.detail-list b { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.detail-list span { overflow-wrap: anywhere; font-size: 13px; font-weight: 850; }
.side-task-board { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.action-pill { border: 3px solid #030504; padding: 7px 9px; color: #10140f; background: #fff7df; font-size: 12px; font-weight: 950; box-shadow: 3px 3px 0 #000; }
.chat-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; border: 4px solid #030504; overflow: hidden; background: #111914; }
.chat-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.message { padding: 10px 12px; line-height: 1.35; max-width: 92%; border: 3px solid #030504; overflow-wrap: anywhere; font-weight: 800; }
.message.system { color: var(--muted); background: #263329; }
.message.user { align-self: flex-end; color: #06100b; background: var(--blue); }
.message.agent { align-self: flex-start; color: #06100b; background: var(--green); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 4px solid #030504; }
.chat-form input { flex: 1; min-height: 44px; border: 3px solid #030504; padding: 0 12px; color: var(--ink); background: #263329; outline: none; min-width: 0; font-weight: 800; }
.chat-form input:focus { background: #304137; }

@media (min-width: 1500px) {
  .office-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "ops ops ops"
      "build shop ig"
      "tech tasks oko"
      "common common common";
  }
}
@media (max-width: 1240px) {
  .workspace { grid-template-columns: 1fr; }
  .side-panel { min-height: 520px; }
}
@media (max-width: 980px) {
  .roadmap-panel { grid-template-columns: 1fr; }
  .roadmap-steps { grid-template-columns: 1fr; }
  .office-map { grid-template-columns: repeat(2, minmax(260px, 1fr)); grid-template-areas: "ops ops" "build shop" "ig oko" "tech tasks" "common common"; }
  .room-body { grid-template-columns: 1fr; }
  .workstation { min-height: 190px; }
  .common-room { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 12px, 1600px); padding: 10px 0 18px; }
  .topbar, .map-header { flex-direction: column; align-items: stretch; }
  .top-actions { justify-content: stretch; }
  .top-actions > * { flex: 1 1 130px; }
  h1 { font-size: 42px; text-shadow: 3px 3px 0 #000; }
  h2 { font-size: 18px; }
  h3 { font-size: 20px; }
  .eyebrow { font-size: 10px; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
  .status-card { min-height: 76px; padding: 10px; border-width: 3px; box-shadow: 4px 4px 0 #000; }
  .status-card .label { font-size: 10px; }
  .status-card .value { font-size: 13px; line-height: 1.15; }
  .roadmap-panel, .map-panel, .side-panel { padding: 10px; border-width: 3px; box-shadow: 5px 5px 0 #000; }
  .roadmap-panel { display: none; }
  .office-map { display: flex; flex-direction: column; gap: 12px; padding: 10px; border-width: 3px; }
  .room-card, .common-room { padding: 10px; border-width: 3px; box-shadow: 4px 4px 0 #000; }
  .room-top { grid-template-columns: 1fr; gap: 8px; }
  .status-pill { max-width: 100%; width: 100%; justify-content: flex-start; font-size: 11px; border-width: 3px; box-shadow: 3px 3px 0 #000; }
  .workstation { min-height: 176px; }
  .desk { left: 8%; right: 8%; bottom: 27px; height: 43px; }
  .monitor { bottom: 78px; width: 54px; height: 37px; }
  .pixel-agent { transform: translateX(-50%) scale(.88); transform-origin: center bottom; bottom: 30px; }
  .pixel-agent.relaxing { transform: translateX(-50%) scale(.88) rotate(-2deg); }
  .task-board { padding: 9px; border-width: 3px; box-shadow: 4px 4px 0 #000; }
  .task-row { grid-template-columns: 10px minmax(0,1fr); min-height: 30px; padding: 6px; border-width: 3px; font-size: 12px; }
  .meta-grid { grid-template-columns: 1fr; }
  .detail-list p { grid-template-columns: 1fr; gap: 4px; }
  .chat-panel { min-height: 280px; border-width: 3px; }
  .chat-log { min-height: 180px; }
  .chat-form { padding: 9px; border-top-width: 3px; }
  .chat-form button { padding: 0 10px; }
}
