@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #20b0e8;
  --blue-2: #7ad7ff;
  --ink: #071018;
  --paper: #f4f7fb;
  --gold: #e4c27a;
  --working: #3ddc97;
  --idle: #f0b429;
  --paused: #8b95a8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: Inter, "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(32, 176, 232, 0.18), transparent 42%),
    #070b12;
  color: var(--paper);
  font-family: var(--sans);
  transition: background 1.6s var(--ease);
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(8, 14, 22, 0.72);
  border-bottom: 1px solid rgba(32, 176, 232, 0.35);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 6;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.wordmark {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(32, 176, 232, 0.55));
}
.hq-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d5deea;
}
.sub { margin: 3px 0 0; color: #9eb0c6; font-size: 0.82rem; font-weight: 500; }
.stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stat {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(32, 176, 232, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pill-mark { width: 22px; height: 22px; display: block; }
.stat strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: white;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5d2e2;
}
.stat-working { border-color: rgba(61, 220, 151, 0.45); }
.stat-working strong { color: #b8ffe0; }
.stat-working.bump strong { animation: bump 0.5s var(--ease); }
.sync { margin: 0; min-width: 8.2rem; text-align: right; font-size: 0.75rem; font-weight: 500; color: #93a4ba; }
.sync.bad { color: #ffb4a8; }
.legend {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: #c5d2e2;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .led { position: static; width: 7px; height: 7px; border: 0; box-shadow: 0 0 8px currentColor; }
.legend .led.working { background: var(--working); color: var(--working); }
.legend .led.idle { background: var(--idle); color: var(--idle); }
.legend .led.paused { background: var(--paused); color: var(--paused); }

.viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 14px 28px;
}
.loading { margin: 18vh auto; color: var(--blue-2); font-weight: 500; letter-spacing: 0.08em; }
.scaler { position: relative; flex: none; }
.world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(ellipse at 50% 0%, rgba(32, 176, 232, 0.16), transparent 46%),
    linear-gradient(180deg, #d5dee8, #b7c3d1 42%, #c5d0dc);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: background 1.6s var(--ease), box-shadow 1.6s var(--ease);
}
.world::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.world::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18) 45%, transparent);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

body[data-phase="dawn"] .world {
  background:
    linear-gradient(180deg, rgba(255, 214, 170, 0.35), transparent 24%),
    linear-gradient(180deg, #ead8c8, #c9b7a8);
}
body[data-phase="dusk"] .world {
  background:
    linear-gradient(180deg, rgba(90, 70, 140, 0.35), transparent 30%),
    linear-gradient(180deg, #8d7c90, #5c6474);
}
body[data-phase="night"] .world {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(32, 176, 232, 0.2), transparent 40%),
    linear-gradient(180deg, #121a28, #070b12 70%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 80px rgba(32, 176, 232, 0.08);
}
body[data-phase="night"] .world::before { opacity: 0.35; }

.wall {
  position: absolute;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.92), rgba(16, 28, 44, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 3;
}
.window {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 4;
  background: linear-gradient(#9fd8f5, #e7f4ff);
}
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55), transparent 46%);
}
body[data-phase="dawn"] .window { background: linear-gradient(#f6b48a, #ffe4c8); }
body[data-phase="dusk"] .window { background: linear-gradient(#6d6494, #e7a07a); }
body[data-phase="night"] .window {
  background:
    radial-gradient(circle at 22% 30%, #fff 0.7px, transparent 1.1px),
    radial-gradient(circle at 68% 60%, #fff 0.6px, transparent 1px),
    linear-gradient(#0c1424, #1b2740);
}

.clock {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e7eef6);
  border: 1px solid rgba(32, 176, 232, 0.6);
  box-shadow: 0 0 16px rgba(32, 176, 232, 0.35);
  z-index: 5;
}
.clock .cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 2;
}
.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  background: var(--ink);
  transform-origin: 50% 100%;
  border-radius: 2px;
  transition: transform 0.4s linear;
}
.hand.hour { height: 11px; margin-left: -1px; }
.hand.minute { height: 15px; }
.hand.second { height: 16px; width: 1px; background: var(--blue); }

.room, .lounge, .prop, .desk, .actor { position: absolute; }
.room, .lounge {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 40px rgba(20, 32, 48, 0.12);
  backdrop-filter: blur(10px);
  z-index: 1;
}
body[data-phase="night"] .room,
body[data-phase="night"] .lounge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.28);
}
.room.chief {
  background:
    radial-gradient(circle at 85% 12%, rgba(228, 194, 122, 0.22), transparent 36%),
    rgba(18, 16, 12, 0.35);
  border: 1px solid rgba(228, 194, 122, 0.85);
  box-shadow:
    inset 0 0 0 1px rgba(228, 194, 122, 0.35),
    0 0 36px rgba(228, 194, 122, 0.16);
}
.plaque, .lounge-label {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.55);
  color: white;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
.room.chief .plaque {
  background: rgba(228, 194, 122, 0.16);
  border-color: rgba(228, 194, 122, 0.55);
  color: #f8ecd4;
}
.plaque .count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #041018;
  font-size: 11px;
  font-weight: 600;
}
.room.chief .plaque .count { background: var(--gold); color: #241c0c; }

.desk {
  z-index: 6;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(16, 24, 36, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body[data-phase="night"] .desk {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.16);
}
.desk.chief { border-color: rgba(228, 194, 122, 0.7); }
.monitor {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 58px;
  height: 34px;
  transform: translateX(-50%);
  background: #0d141c;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px 12px 7px 7px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.desk.chief .monitor { width: 78px; height: 42px; top: -34px; border-color: rgba(228, 194, 122, 0.7); }
.screen {
  margin: 4px;
  height: calc(100% - 8px);
  border-radius: 8px 8px 4px 4px;
  background: #101820;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 3px 5px;
}
.screen i {
  display: block;
  height: 2px;
  width: 70%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.screen i:nth-child(2) { width: 46%; }
.screen i:nth-child(3) { width: 62%; }
.desk[data-status="working"] .screen {
  background: linear-gradient(180deg, #e9f9ff, var(--blue));
  box-shadow: 0 0 18px 4px rgba(32, 176, 232, 0.85);
}
.desk[data-status="working"] .screen i { background: rgba(255, 255, 255, 0.9); animation: bar 1.8s var(--ease) infinite; }
.desk[data-status="working"] .monitor { box-shadow: 0 0 22px rgba(32, 176, 232, 0.65); }
.desk[data-status="paused"] .screen { background: #070b10; }
.keyboard {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}
.keyboard b {
  width: 7px;
  height: 4px;
  border-radius: 2px;
  background: rgba(7, 16, 24, 0.28);
}
.desk[data-status="working"] .keyboard b { animation: keytap 0.9s var(--ease) infinite; }
.desk[data-status="working"] .keyboard b:nth-child(2) { animation-delay: 0.12s; }
.desk[data-status="working"] .keyboard b:nth-child(3) { animation-delay: 0.22s; }
.mug {
  position: absolute;
  right: 28px;
  bottom: 8px;
  width: 10px;
  height: 8px;
  border-radius: 0 0 4px 4px;
  background: #f7fbff;
  box-shadow: 7px 1px 0 -4px #d5e2ee;
}
.badge {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.9;
}

.prop { z-index: 2; pointer-events: none; }
.plant { width: 28px; height: 42px; }
.pot {
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 20px;
  height: 12px;
  background: linear-gradient(#f4f7fb, #d5dde6);
  border-radius: 2px 2px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.leaf {
  position: absolute;
  bottom: 10px;
  width: 10px;
  height: 22px;
  background: linear-gradient(#7dcea0, #2f8f62);
  border-radius: 12px;
  transform-origin: 50% 100%;
  animation: sway 4.8s var(--ease) infinite;
}
.leaf.a { left: 2px; animation-delay: -1s; }
.leaf.b { left: 9px; height: 26px; }
.leaf.c { left: 15px; animation-delay: -2s; }
.coffee { width: 54px; height: 70px; }
.coffee .body {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 38px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(#f7fbff, #d7e0ea);
  border: 1px solid rgba(7, 16, 24, 0.35);
}
.coffee .body::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(#b9ecff, var(--blue));
  box-shadow: 0 0 12px rgba(32, 176, 232, 0.7);
}
.coffee .cup {
  position: absolute;
  left: 18px;
  bottom: 40px;
  width: 14px;
  height: 10px;
  background: white;
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(7, 16, 24, 0.3);
}
.steam i {
  position: absolute;
  bottom: 52px;
  width: 4px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(0.6px);
  animation: steam 2.6s var(--ease) infinite;
}
.steam i:nth-child(1) { left: 18px; }
.steam i:nth-child(2) { left: 26px; animation-delay: 0.4s; }
.steam i:nth-child(3) { left: 34px; animation-delay: 0.8s; }
.shelf {
  width: 54px;
  height: 78px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(228, 194, 122, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 8px 6px;
}
.shelf span { display: flex; gap: 3px; height: 12px; }
.shelf i { display: block; width: 7px; border-radius: 1px; background: rgba(228, 194, 122, 0.8); }
.shelf i:nth-child(even) { background: rgba(32, 176, 232, 0.8); }
.lamp { width: 22px; height: 58px; }
.lamp .pole { position: absolute; left: 10px; bottom: 0; width: 2px; height: 42px; background: #c5ced8; }
.lamp .shade {
  position: absolute;
  top: 0;
  width: 22px;
  height: 12px;
  border-radius: 3px 3px 8px 8px;
  background: #f4f7fb;
}
.lamp .glow {
  position: absolute;
  top: 6px;
  left: -18px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(255, 226, 170, 0.55), transparent 68%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
body[data-phase="night"] .lamp .glow,
body[data-phase="dusk"] .lamp .glow { opacity: 1; }
.sign {
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 20, 0.78);
  border: 1px solid rgba(32, 176, 232, 0.45);
  box-shadow: 0 0 36px rgba(32, 176, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.sign img { width: 100%; height: auto; display: block; }
.inlay { width: 42px; height: 42px; }
.inlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(32, 176, 232, 0.35));
  opacity: 0.9;
}
.videowall {
  border-radius: 14px;
  background: rgba(6, 12, 20, 0.82);
  border: 1px solid rgba(32, 176, 232, 0.4);
  box-shadow: 0 0 28px rgba(32, 176, 232, 0.25);
  overflow: hidden;
}
.wall-screen {
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
}
.wall-screen i {
  flex: 1;
  display: block;
  height: 40%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  transform-origin: bottom;
  animation: bar 2.4s var(--ease) infinite;
  box-shadow: 0 0 12px rgba(32, 176, 232, 0.6);
}
.wall-screen i:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.wall-screen i:nth-child(3) { animation-delay: 0.45s; height: 55%; }
.wall-screen i:nth-child(4) { animation-delay: 0.1s; height: 84%; }
.wall-screen i:nth-child(5) { animation-delay: 0.6s; height: 48%; }
.wall-screen i:nth-child(6) { animation-delay: 0.3s; height: 76%; }
.wall-screen i:nth-child(7) { animation-delay: 0.5s; height: 62%; }

.actors { position: absolute; inset: 0; pointer-events: none; }
.actor {
  z-index: 4;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.actor.chief { width: 72px; height: 72px; }
.actor:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 16px; }
.token-wrap { display: block; width: 100%; height: 100%; transform: scaleX(var(--face, 1)); }
.token {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22%;
  object-fit: cover;
  background: #0e1624;
  box-shadow: 0 10px 18px rgba(7, 16, 24, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.actor.chief .token { box-shadow: 0 0 0 2px var(--gold), 0 12px 20px rgba(7, 16, 24, 0.32); }
.actor.selected .token { box-shadow: 0 0 0 2px white, 0 0 0 5px var(--blue); }
.led {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--idle);
}
.actor.status-working .led { background: var(--working); box-shadow: 0 0 8px var(--working); }
.actor.status-paused .led { background: var(--paused); }
.shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 92%;
  height: 8px;
  border-radius: 50%;
  background: rgba(7, 16, 24, 0.22);
  filter: blur(1px);
  z-index: -1;
}
.nametag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #071018;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 1px 7px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
body[data-phase="night"] .nametag { color: white; background: rgba(8, 14, 22, 0.78); border-color: rgba(255, 255, 255, 0.12); }
.actor.chief .nametag { border-color: rgba(228, 194, 122, 0.7); }
.bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 24px);
  width: max-content;
  max-width: 96px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #071018;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(7, 16, 24, 0.16);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 2;
}
body[data-phase="night"] .bubble {
  background: rgba(10, 16, 26, 0.82);
  color: white;
  border-color: rgba(32, 176, 232, 0.35);
}
.bubble.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateX(-50%) rotate(45deg);
}
.dots { display: inline-flex; gap: 3px; }
.dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.2s var(--ease) infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }

.actor.walking .token { animation: walk-bob 0.55s var(--ease) infinite; }
.actor.seated.status-working .token { animation: sit-bob 3.2s var(--ease) infinite; }
.actor.rising .token { animation: rise 0.6s var(--ease) forwards; }
.actor.seated.status-paused .token { filter: saturate(0.2) brightness(0.78); transform: translateY(4px); }
.actor.walking .shadow { animation: shadow-squash 0.55s var(--ease) infinite; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(4, 8, 14, 0.45);
  backdrop-filter: blur(6px);
}
.panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(400px, 100%);
  height: 100dvh;
  overflow: auto;
  padding: 28px 28px 40px;
  color: white;
  background: rgba(8, 14, 22, 0.78);
  border-left: 1px solid rgba(32, 176, 232, 0.35);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(1.3);
  animation: slide 0.45s var(--ease);
}
.panel img {
  width: 168px;
  height: 168px;
  border-radius: 28px;
  object-fit: cover;
  background: #101820;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.35);
}
.panel.chief img { box-shadow: 0 0 0 2px var(--gold), 0 16px 40px rgba(0, 0, 0, 0.35); }
.close {
  float: right;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font: inherit;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.eyebrow {
  margin: 22px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.panel h2 {
  margin: 4px 0 0;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.role { margin: 6px 0 16px; color: #d5deea; font-weight: 400; }
.panel h3 {
  margin: 22px 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93a4ba;
}
.task { margin: 0; font-size: 1.2rem; font-weight: 500; }
.updated, .updated-abs { margin: 16px 0 0; color: #93a4ba; font-size: 0.88rem; }
.updated-abs { margin-top: 2px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.working { color: #b8ffe0; background: rgba(61, 220, 151, 0.12); }
.pill.idle { color: #ffe1a8; background: rgba(240, 180, 41, 0.12); }
.pill.paused { color: #d5dbe6; background: rgba(139, 149, 168, 0.16); }

@keyframes walk-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes sit-bob {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-2px); }
}
@keyframes rise {
  from { transform: translateY(8px) scale(0.96); }
  to { transform: none; }
}
@keyframes shadow-squash {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50% { transform: scaleX(0.8); opacity: 0.45; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}
@keyframes steam {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 0.75; }
  100% { transform: translateY(-14px); opacity: 0; }
}
@keyframes keytap {
  0%, 100% { transform: none; }
  40% { transform: translateY(1px); }
}
@keyframes bar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}
@keyframes bump {
  50% { transform: scale(1.12); }
}
@keyframes slide {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; padding: 12px; }
  .wordmark { height: 30px; }
  .sync { min-width: 0; text-align: left; }
  .legend { order: 3; width: 100%; }
  .panel {
    top: auto;
    left: 0;
    bottom: 0;
    height: auto;
    max-height: 82dvh;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(32, 176, 232, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world, .lamp .glow, .token { transition: none; }
  .token, .leaf, .steam i, .keyboard b, .screen i, .wall-screen i, .dots i, .shadow, .panel {
    animation: none !important;
  }
}
