:root {
  color-scheme: dark;
  --bg: #061421;
  --bg-2: #08233a;
  --panel: #07365c;
  --panel-2: #0a4b7c;
  --panel-3: #0e6096;
  --line: rgba(118, 214, 255, 0.28);
  --text: #eff9ff;
  --muted: #9fc5d8;
  --accent: #23a7ff;
  --cyan: #24e0dd;
  --green: #44d38b;
  --amber: #ffbb45;
  --pink: #ff5da8;
  --red: #ff596d;
  --shadow: rgba(0, 8, 18, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(13, 111, 184, 0.24), transparent 36%),
    linear-gradient(135deg, #04101d 0%, #082541 54%, #031019 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(560px, 1fr) 320px;
  gap: 14px;
  width: 100vw;
  height: 100vh;
  padding: 14px;
}

.sidebar,
.main-panel,
.chat-panel {
  min-height: 0;
  border: 1px solid var(--line);
  background: rgba(3, 22, 39, 0.86);
  box-shadow: 0 18px 50px var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 189, 88, 0.8);
  border-radius: 8px;
  color: #ffe0a3;
  font-weight: 800;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.32), transparent 17%),
    linear-gradient(145deg, #172030 0%, #082a4b 54%, #030913 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand-mark::before {
  inset: 7px;
  border: 1px solid rgba(52, 218, 255, 0.48);
  border-radius: 6px;
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #25d9ff;
  border-bottom: 3px solid #25d9ff;
  border-radius: 0 0 5px 0;
}

.brand-logo-image {
  position: absolute;
  inset: 5px;
  z-index: 2;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 5px;
  object-fit: contain;
  background: rgba(2, 17, 30, 0.72);
}

.brand-mark.has-logo-image .logo-b,
.brand-mark.has-logo-image .logo-v {
  opacity: 0;
}

.logo-b,
.logo-v {
  position: absolute;
  letter-spacing: 0;
  line-height: 1;
}

.logo-b {
  left: 9px;
  top: 8px;
  color: #ffd36b;
  font-size: 26px;
}

.logo-v {
  right: 9px;
  bottom: 8px;
  color: #43dfff;
  font-size: 19px;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle,
.workspace-label,
.connection-card strong,
.chat-header p,
.hint-line,
.metric-card span,
.progress-row span,
.agent-profile p {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 9px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 43px;
  border: 1px solid rgba(88, 179, 224, 0.42);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(16, 95, 151, 0.92), rgba(10, 64, 105, 0.92));
  text-align: left;
}

.nav-item.active {
  border-color: #4cc7ff;
  background: linear-gradient(180deg, #168dff, #0864b6);
}

.nav-icon {
  color: #d6f1ff;
  font-weight: 800;
}

.workspace-switcher {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(90, 194, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 100, 160, 0.92), rgba(7, 62, 109, 0.95));
  color: var(--text);
  text-align: left;
}

.workspace-switcher:hover,
.workspace-switcher:focus-visible {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
  outline: none;
}

.workspace-name {
  font-weight: 800;
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  border-radius: 8px;
  padding: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}

.connection-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  height: 46px;
  padding: 8px;
  border: 1px solid rgba(69, 178, 255, 0.36);
  border-radius: 7px;
  background: rgba(12, 77, 130, 0.72);
}

.connection-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.connection-card strong {
  display: block;
  font-size: 11px;
}

.connection-card strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
}

.connection-icon,
.icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #083355;
  color: #f8d25f;
  font-weight: 900;
}

.pixel-icon {
  --ink: #16202b;
  --edge: rgba(2, 8, 14, 0.55);
  --hi: rgba(255, 255, 255, 0.42);
  --a: #66d9ff;
  --b: #1b7fcc;
  --c: #ffd46a;
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: transparent;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.34));
}

.pixel-icon::before,
.pixel-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.nav-icon.pixel-icon,
.workspace-icon.pixel-icon {
  margin: auto;
}

.connection-card > .pixel-icon {
  width: 26px;
  height: 26px;
  margin: auto;
}

.icon-button .pixel-icon,
.ghost-button .pixel-icon,
.attachment-button .pixel-icon,
.send-button .pixel-icon {
  width: 20px;
  height: 20px;
}

.metric-icon .pixel-icon {
  width: 21px;
  height: 21px;
  color: #ffffff;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.36));
}

.primary-action .pixel-icon,
.secondary-action .pixel-icon {
  width: 22px;
  height: 22px;
}

.icon-office {
  background:
    linear-gradient(var(--c), var(--c)) 9px 15px / 4px 5px no-repeat,
    linear-gradient(#9bd4e8, #9bd4e8) 6px 9px / 3px 3px no-repeat,
    linear-gradient(#9bd4e8, #9bd4e8) 13px 9px / 3px 3px no-repeat,
    linear-gradient(#b9895b, #805335) 4px 7px / 15px 13px no-repeat;
}

.icon-office::before {
  left: 2px;
  top: 4px;
  width: 19px;
  height: 4px;
  background: #5c6670;
  box-shadow: 0 12px 0 var(--edge);
}

.icon-chat {
  background: linear-gradient(#7ddfff, #258bd2) 3px 5px / 16px 11px no-repeat;
}

.icon-chat::before {
  left: 7px;
  top: 8px;
  width: 2px;
  height: 2px;
  background: #eefbff;
  box-shadow: 5px 0 0 #eefbff, 10px 0 0 #eefbff, 7px 10px 0 #258bd2;
}

.icon-people {
  background:
    radial-gradient(circle at 7px 7px, #f2b27f 0 3px, transparent 3.2px),
    radial-gradient(circle at 15px 7px, #d99a6c 0 3px, transparent 3.2px),
    linear-gradient(#39b5ff, #176da8) 4px 11px / 7px 8px no-repeat,
    linear-gradient(#ff75b7, #a92b73) 12px 11px / 7px 8px no-repeat;
}

.icon-board {
  background:
    linear-gradient(#20303e, #20303e) 3px 5px / 16px 13px no-repeat,
    linear-gradient(#5fd7ff, #5fd7ff) 6px 8px / 10px 2px no-repeat,
    linear-gradient(#63d889, #63d889) 6px 12px / 6px 2px no-repeat,
    linear-gradient(#ffcf62, #ffcf62) 13px 12px / 3px 3px no-repeat;
}

.icon-doc {
  background:
    linear-gradient(#f3eadb, #d9cab4) 5px 3px / 12px 17px no-repeat,
    linear-gradient(#55bce8, #55bce8) 8px 8px / 6px 2px no-repeat,
    linear-gradient(#9b7b57, #9b7b57) 8px 12px / 7px 2px no-repeat,
    linear-gradient(#9b7b57, #9b7b57) 8px 16px / 5px 2px no-repeat;
}

.icon-brain {
  background:
    radial-gradient(circle at 7px 8px, #ff8fc2 0 4px, transparent 4.3px),
    radial-gradient(circle at 13px 8px, #ff8fc2 0 4px, transparent 4.3px),
    radial-gradient(circle at 9px 13px, #e4579d 0 5px, transparent 5.3px),
    radial-gradient(circle at 15px 13px, #e4579d 0 4px, transparent 4.3px);
}

.icon-brain::before {
  left: 5px;
  top: 7px;
  width: 13px;
  height: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.42);
  border-top: 2px solid rgba(255, 255, 255, 0.28);
}

.icon-chart {
  background:
    linear-gradient(#202c36, #202c36) 3px 4px / 16px 15px no-repeat,
    linear-gradient(#50d98a, #50d98a) 6px 13px / 2px 3px no-repeat,
    linear-gradient(#ffca55, #ffca55) 10px 10px / 2px 6px no-repeat,
    linear-gradient(#54c7ff, #54c7ff) 14px 7px / 2px 9px no-repeat;
}

.icon-gear {
  background:
    linear-gradient(#cfd7dd, #83909a) 9px 3px / 4px 16px no-repeat,
    linear-gradient(#cfd7dd, #83909a) 3px 9px / 16px 4px no-repeat,
    radial-gradient(circle at center, #17222d 0 4px, transparent 4.3px),
    radial-gradient(circle at center, #cfd7dd 0 8px, transparent 8.3px);
}

.icon-building {
  background:
    linear-gradient(#9fd0e2, #9fd0e2) 6px 8px / 3px 3px no-repeat,
    linear-gradient(#9fd0e2, #9fd0e2) 13px 8px / 3px 3px no-repeat,
    linear-gradient(#9fd0e2, #9fd0e2) 6px 14px / 3px 3px no-repeat,
    linear-gradient(#f3d190, #b57a45) 4px 5px / 15px 15px no-repeat;
}

.icon-worker {
  background:
    radial-gradient(circle at 11px 7px, #f2b27f 0 5px, transparent 5.3px),
    linear-gradient(#ffd65c, #c28a2e) 6px 12px / 10px 8px no-repeat,
    linear-gradient(#2a3440, #2a3440) 7px 3px / 8px 3px no-repeat;
}

.icon-notebook {
  background:
    linear-gradient(#f3eadb, #d8c8ad) 6px 3px / 12px 17px no-repeat,
    linear-gradient(#37b6ff, #2c75b8) 4px 3px / 3px 17px no-repeat,
    linear-gradient(#52606b, #52606b) 9px 8px / 6px 2px no-repeat,
    linear-gradient(#52606b, #52606b) 9px 13px / 6px 2px no-repeat;
}

.icon-folder {
  background:
    linear-gradient(#ffd56c, #d18a34) 3px 8px / 17px 11px no-repeat,
    linear-gradient(#ffe28c, #ffe28c) 5px 5px / 7px 4px no-repeat;
}

.icon-mail {
  background:
    linear-gradient(#f2eadb, #d7c7ad) 3px 6px / 17px 12px no-repeat;
}

.icon-mail::before {
  left: 4px;
  top: 7px;
  width: 15px;
  height: 10px;
  border-left: 2px solid #5b7182;
  border-bottom: 2px solid #5b7182;
  transform: skewY(-25deg);
}

.icon-bell {
  background:
    linear-gradient(#ffd45c, #c98b2e) 7px 6px / 9px 10px no-repeat,
    linear-gradient(#f7c857, #f7c857) 6px 16px / 11px 3px no-repeat,
    linear-gradient(#f7c857, #f7c857) 10px 3px / 3px 3px no-repeat;
}

.icon-grid {
  background:
    linear-gradient(#80dfff, #2e92d4) 4px 4px / 6px 6px no-repeat,
    linear-gradient(#80dfff, #2e92d4) 12px 4px / 6px 6px no-repeat,
    linear-gradient(#80dfff, #2e92d4) 4px 12px / 6px 6px no-repeat,
    linear-gradient(#80dfff, #2e92d4) 12px 12px / 6px 6px no-repeat;
}

.icon-cursor {
  background:
    linear-gradient(45deg, transparent 0 42%, #f3eadb 42% 64%, transparent 64%) 5px 3px / 14px 17px no-repeat,
    linear-gradient(#24313b, #24313b) 13px 13px / 5px 5px no-repeat;
}

.icon-clipboard,
.icon-task {
  background:
    linear-gradient(#f3eadb, #d7c6ac) 5px 5px / 12px 15px no-repeat,
    linear-gradient(#6b7780, #6b7780) 8px 3px / 6px 4px no-repeat,
    linear-gradient(#54d282, #54d282) 8px 10px / 2px 2px no-repeat,
    linear-gradient(#6b7780, #6b7780) 12px 10px / 4px 2px no-repeat,
    linear-gradient(#54d282, #54d282) 8px 15px / 2px 2px no-repeat,
    linear-gradient(#6b7780, #6b7780) 12px 15px / 4px 2px no-repeat;
}

.icon-video {
  background:
    linear-gradient(#2a3440, #17212b) 4px 7px / 11px 10px no-repeat,
    linear-gradient(45deg, transparent 0 35%, #e7edf2 35% 65%, transparent 65%) 15px 8px / 6px 8px no-repeat,
    linear-gradient(#f1c25d, #f1c25d) 5px 4px / 4px 3px no-repeat,
    linear-gradient(#f1c25d, #f1c25d) 11px 4px / 4px 3px no-repeat;
}

.icon-box {
  background:
    linear-gradient(#ddb06c, #a56635) 5px 8px / 13px 10px no-repeat,
    linear-gradient(#f1cc83, #f1cc83) 7px 5px / 9px 4px no-repeat,
    linear-gradient(#8a542d, #8a542d) 11px 8px / 2px 10px no-repeat;
}

.icon-approval {
  background:
    linear-gradient(#ffd56c, #c58a31) 6px 4px / 10px 15px no-repeat;
}

.icon-approval::before {
  left: 8px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 3px solid #1f5f39;
  border-bottom: 3px solid #1f5f39;
  transform: rotate(-45deg);
}

.icon-inbox {
  background:
    linear-gradient(#54d8ff, #228cc9) 4px 11px / 15px 8px no-repeat,
    linear-gradient(#f4ead8, #d6c7af) 6px 5px / 11px 8px no-repeat;
}

.icon-alarm {
  background:
    radial-gradient(circle at center, #f2eadb 0 7px, transparent 7.3px),
    linear-gradient(#ff6175, #c8354a) 4px 4px / 4px 4px no-repeat,
    linear-gradient(#ff6175, #c8354a) 14px 4px / 4px 4px no-repeat;
}

.icon-alarm::before {
  left: 11px;
  top: 8px;
  width: 2px;
  height: 7px;
  background: #24313b;
  box-shadow: 3px 5px 0 #24313b;
}

.icon-paperclip {
  border: 3px solid #d7e2ea;
  border-left-color: transparent;
  border-radius: 8px;
  transform: rotate(-22deg);
}

.icon-send,
.icon-next {
  background:
    linear-gradient(45deg, transparent 0 40%, #e8f8ff 40% 62%, transparent 62%) 5px 3px / 15px 15px no-repeat,
    linear-gradient(#e8f8ff, #e8f8ff) 3px 9px / 12px 4px no-repeat;
}

.icon-save {
  background:
    linear-gradient(#2b3b48, #17212b) 4px 4px / 15px 15px no-repeat,
    linear-gradient(#73d9ff, #73d9ff) 7px 5px / 8px 5px no-repeat,
    linear-gradient(#f4ead8, #f4ead8) 7px 13px / 8px 4px no-repeat;
}

/* External icon set: Pixelarticons v1.8.1, MIT license. */
.pixel-icon {
  width: 22px;
  height: 22px;
  border: 0;
  background: currentColor;
  color: inherit;
  transform: none;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.pixel-icon::before,
.pixel-icon::after {
  display: none;
}

.icon-office { --icon: url("./assets/icons/pixelarticons/home.svg"); }
.icon-chat { --icon: url("./assets/icons/pixelarticons/chat.svg"); }
.icon-people { --icon: url("./assets/icons/pixelarticons/users.svg"); }
.icon-board { --icon: url("./assets/icons/pixelarticons/kanban.svg"); }
.icon-doc { --icon: url("./assets/icons/pixelarticons/book-open.svg"); }
.icon-brain { --icon: url("./assets/icons/pixelarticons/server.svg"); }
.icon-chart { --icon: url("./assets/icons/pixelarticons/chart.svg"); }
.icon-gear { --icon: url("./assets/icons/pixelarticons/sliders.svg"); }
.icon-building { --icon: url("./assets/icons/pixelarticons/building-community.svg"); }
.icon-worker { --icon: url("./assets/icons/pixelarticons/briefcase-account.svg"); }
.icon-notebook { --icon: url("./assets/icons/pixelarticons/notes.svg"); }
.icon-folder { --icon: url("./assets/icons/pixelarticons/folder.svg"); }
.icon-mail { --icon: url("./assets/icons/pixelarticons/mail.svg"); }
.icon-bell { --icon: url("./assets/icons/bell.svg"); }
.icon-grid { --icon: url("./assets/icons/pixelarticons/grid.svg"); }
.icon-cursor { --icon: url("./assets/icons/pixelarticons/mouse.svg"); }
.icon-clipboard { --icon: url("./assets/icons/pixelarticons/clipboard.svg"); }
.icon-video { --icon: url("./assets/icons/pixelarticons/video.svg"); }
.icon-task { --icon: url("./assets/icons/pixelarticons/checklist.svg"); }
.icon-box { --icon: url("./assets/icons/pixelarticons/archive.svg"); }
.icon-approval { --icon: url("./assets/icons/pixelarticons/briefcase-check.svg"); }
.icon-inbox { --icon: url("./assets/icons/pixelarticons/inbox.svg"); }
.icon-alarm { --icon: url("./assets/icons/pixelarticons/clock.svg"); }
.icon-paperclip { --icon: url("./assets/icons/pixelarticons/attachment.svg"); }
.icon-send { --icon: url("./assets/icons/pixelarticons/arrow-right-box.svg"); }
.icon-save { --icon: url("./assets/icons/pixelarticons/save.svg"); }
.icon-next { --icon: url("./assets/icons/pixelarticons/next.svg"); }
.icon-facebook { --icon: url("./assets/icons/facebook.svg"); }
.icon-google-ads { --icon: url("./assets/icons/pixelarticons/chart.svg"); }

.topbar-spacer {
  flex: 1;
}

.icon-button {
  border: 1px solid rgba(255, 205, 78, 0.48);
  color: #ffda5a;
}

.notification-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
}

.notification-button .icon-bell {
  width: 15px;
  height: 15px;
  transform: translateY(1px);
}

.notification-button::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(8, 20, 30, 0.9);
  border-radius: 50%;
  background: #ff4f62;
  box-shadow: 0 0 8px rgba(255, 79, 98, 0.72);
}

.boss-pill {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 100px;
  height: 46px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 95, 0.28);
  background: rgba(8, 47, 78, 0.76);
}

.facebook-connect {
  border-color: rgba(45, 136, 255, 0.5);
  background: linear-gradient(180deg, rgba(19, 95, 180, 0.84), rgba(8, 58, 119, 0.88));
}

.google-ads-connect {
  border-color: rgba(80, 204, 129, 0.42);
  background: linear-gradient(180deg, rgba(20, 106, 94, 0.78), rgba(8, 61, 86, 0.88));
}

.google-ads-connect .connection-icon {
  color: #ffffff;
  background:
    linear-gradient(135deg, #34a853 0 34%, #fbbc04 34% 66%, #4285f4 66%);
}

.facebook-connect .connection-icon {
  color: #ffffff;
  background: #1877f2;
}

.boss-pill .tiny-avatar {
  width: 30px;
  height: 30px;
  margin-left: 0;
}

.boss-pill span,
.boss-pill strong {
  display: block;
  font-size: 12px;
}

.dashboard-card,
.progress-panel {
  border: 1px solid rgba(75, 186, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 66, 111, 0.86), rgba(4, 36, 63, 0.9));
  padding: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

h1,
h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.compact h2 {
  font-size: 15px;
}

.ghost-button,
.reset-button {
  border: 1px solid rgba(90, 201, 255, 0.38);
  border-radius: 6px;
  color: var(--text);
  background: rgba(10, 79, 130, 0.8);
}

.ghost-button {
  width: 32px;
  height: 30px;
}

.office-map {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 170, 232, 0.36);
  border-radius: 8px;
  background: #030b14;
  box-shadow:
    inset 0 0 0 2px rgba(21, 105, 164, 0.34),
    inset 0 0 32px rgba(0, 0, 0, 0.5);
}

.office-map.grid-on .office-floor {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.office-floor {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border: 10px solid #092946;
  background: #02070d;
  box-shadow:
    inset 0 0 0 2px rgba(71, 187, 255, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.38);
}

.office-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.room {
  display: none;
}

.room-label {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(1, 11, 18, 0.8);
  color: #9ee6ff;
  font-size: 10px;
  font-weight: 800;
}

.room-boss {
  left: 0;
  top: 0;
  width: 35%;
  height: 50%;
}

.room-secretary {
  left: 35%;
  top: 0;
  width: 25%;
  height: 50%;
}

.room-content {
  left: 60%;
  top: 0;
  width: 40%;
  height: 50%;
}

.room-studio {
  left: 0;
  top: 50%;
  width: 35%;
  height: 50%;
}

.room-analytics {
  left: 35%;
  top: 50%;
  width: 25%;
  height: 50%;
}

.room-upload {
  left: 60%;
  top: 50%;
  width: 40%;
  height: 50%;
}

.desk,
.chair,
.bookshelf,
.calendar,
.monitor-row,
.green-screen,
.camera,
.light,
.analytics-screens,
.upload-desk,
.server-rack,
.sofa,
.trophy {
  position: absolute;
}

.desk {
  width: 76px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8f5432, #4f2a1b);
  box-shadow: 0 10px 0 #2b1820;
}

.desk.executive {
  left: 32%;
  top: 30%;
  width: 120px;
  height: 48px;
}

.desk.secretary {
  left: 38%;
  top: 35%;
}

.desk.content {
  left: 36%;
  top: 36%;
}

.desk.analytics {
  left: 26%;
  top: 36%;
}

.chair {
  width: 28px;
  height: 32px;
  border-radius: 7px;
  background: #151d28;
}

.boss-chair {
  left: 39%;
  top: 18%;
}

.guest.left {
  left: 18%;
  top: 60%;
}

.guest.right {
  right: 18%;
  top: 60%;
}

.bookshelf {
  right: 8%;
  top: 18%;
  width: 34px;
  height: 70px;
  background: repeating-linear-gradient(0deg, #2b1f20 0 14px, #49a3d7 14px 18px);
  border: 3px solid #6d432a;
}

.bookshelf.slim {
  width: 26px;
}

.calendar {
  left: 18%;
  top: 17%;
  width: 44px;
  height: 34px;
  border: 3px solid #d7e5ef;
  background: linear-gradient(#f8fafc 0 28%, #b9d7e8 28%);
}

.monitor-row,
.analytics-screens {
  left: 26%;
  top: 16%;
  width: 90px;
  height: 36px;
  background:
    linear-gradient(90deg, #0569c7 0 30%, transparent 30% 35%, #0aa2f3 35% 65%, transparent 65% 70%, #1cc1e8 70%);
  box-shadow: 0 6px 0 #101b27;
}

.green-screen {
  left: 12%;
  top: 18%;
  width: 132px;
  height: 98px;
  border: 6px solid #151515;
  background: #1fce58;
}

.camera {
  left: 35%;
  top: 42%;
  width: 28px;
  height: 24px;
  background: #090d12;
  box-shadow: 14px -8px 0 -4px #090d12, 0 28px 0 -10px #090d12;
}

.light {
  width: 22px;
  height: 44px;
  background: #f2f7ff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
}

.light.left {
  left: 8%;
  top: 15%;
}

.light.right {
  left: 52%;
  top: 17%;
}

.upload-desk {
  left: 15%;
  top: 34%;
  width: 86px;
  height: 46px;
  background: #8e5432;
  box-shadow: 0 9px 0 #42241a;
}

.server-rack {
  left: 42%;
  top: 24%;
  width: 36px;
  height: 84px;
  background: repeating-linear-gradient(0deg, #10243a 0 13px, #1ab5fa 13px 16px);
  border: 3px solid #273646;
}

.sofa {
  right: 10%;
  bottom: 22%;
  width: 100px;
  height: 48px;
  border-radius: 10px 10px 5px 5px;
  background: linear-gradient(180deg, #1a8ce5, #07569a);
  box-shadow: inset 34px 0 0 rgba(255, 255, 255, 0.08), inset 66px 0 0 rgba(0, 0, 0, 0.1);
}

.trophy {
  left: 13%;
  top: 14%;
  width: 26px;
  height: 34px;
  background: #ffc94f;
  clip-path: polygon(20% 0, 80% 0, 72% 45%, 55% 45%, 55% 75%, 78% 75%, 78% 100%, 22% 100%, 22% 75%, 45% 75%, 45% 45%, 28% 45%);
}

.plant {
  position: absolute;
  width: 22px;
  height: 36px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#31be69 0 40%, #7d4b2d 40%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}

.p1 { left: 3%; top: 6%; }
.p2 { left: 32%; top: 14%; }
.p3 { left: 57%; top: 7%; }
.p4 { right: 3%; top: 12%; }
.p5 { left: 36%; bottom: 8%; }
.p6 { right: 8%; bottom: 8%; }

.office-floor > .plant {
  display: none;
}

.agent {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 64px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  transform: translate(-50%, -50%);
  user-select: none;
  cursor: pointer;
  touch-action: none;
}

.agent:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.agent.dragging {
  z-index: 20;
  cursor: grabbing;
}

.agent-sprite {
  --skin: #f3b177;
  --hair: #2c1b16;
  --shirt: #338fff;
  --accent-wear: #ffd866;
  position: relative;
  display: block;
  width: 42px;
  height: 54px;
  filter: drop-shadow(0 9px 3px rgba(0, 0, 0, 0.34));
}

.agent-sprite::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 24px;
  height: 27px;
  border-radius: 45% 45% 48% 48%;
  background:
    radial-gradient(circle at 34% 47%, #12151e 0 2px, transparent 2.4px),
    radial-gradient(circle at 66% 47%, #12151e 0 2px, transparent 2.4px),
    radial-gradient(circle at 50% 68%, rgba(160, 55, 55, 0.75) 0 1.4px, transparent 1.8px),
    var(--skin);
  border: 1px solid rgba(80, 38, 20, 0.35);
  box-shadow:
    -3px 8px 0 -1px var(--hair),
    3px 8px 0 -1px var(--hair),
    inset 0 5px 0 rgba(255, 255, 255, 0.16);
  z-index: 3;
}

.agent-sprite::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 30px;
  height: 21px;
  border-radius: 48% 52% 34% 36%;
  background:
    radial-gradient(circle at 18% 70%, var(--hair) 0 6px, transparent 6.5px),
    radial-gradient(circle at 46% 52%, rgba(255, 255, 255, 0.16) 0 3px, transparent 3.4px),
    var(--hair);
  z-index: 4;
}

.agent-sprite .agent-body,
.agent-sprite .agent-feet,
.agent-sprite .agent-badge {
  display: none;
}

.agent .agent-sprite {
  background:
    linear-gradient(var(--shirt), var(--shirt)) 9px 32px / 24px 17px no-repeat,
    linear-gradient(#172234, #0f1826) 12px 48px / 7px 6px no-repeat,
    linear-gradient(#172234, #0f1826) 24px 48px / 7px 6px no-repeat,
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), transparent 62%) 14px 35px / 14px 6px no-repeat;
}

.agent .agent-sprite > i,
.tiny-avatar > i,
.profile-dot > i {
  display: none;
}

.agent .agent-sprite {
  border-radius: 0;
}

.agent .agent-sprite:focus {
  outline: none;
}

.boss-agent .agent-sprite {
  --hair: #1e1715;
  --shirt: #f6be3f;
  --accent-wear: #111827;
}

.boss-agent .agent-sprite::after {
  background:
    linear-gradient(90deg, transparent 0 18%, #f7c948 18% 82%, transparent 82%) 5px -1px / 20px 7px no-repeat,
    radial-gradient(circle at 9px 7px, #f7c948 0 4px, transparent 4.5px),
    radial-gradient(circle at 22px 7px, #f7c948 0 4px, transparent 4.5px),
    var(--hair);
}

.mina-agent .agent-sprite {
  --hair: #b3532d;
  --shirt: #38c6ff;
}

.mina-agent .agent-sprite::after {
  height: 26px;
  border-radius: 52% 48% 42% 42%;
  box-shadow: 0 8px 0 -1px var(--hair);
}

.leo-agent .agent-sprite {
  --hair: #4b2144;
  --shirt: #ff5da8;
}

.sam-agent .agent-sprite {
  --hair: #243127;
  --shirt: #43d57b;
}

.sam-agent .agent-sprite::before {
  background:
    linear-gradient(90deg, transparent 0 21%, #17202d 21% 28%, transparent 28% 72%, #17202d 72% 79%, transparent 79%) 0 12px / 100% 5px no-repeat,
    radial-gradient(circle at 34% 47%, #12151e 0 2px, transparent 2.4px),
    radial-gradient(circle at 66% 47%, #12151e 0 2px, transparent 2.4px),
    radial-gradient(circle at 50% 68%, rgba(160, 55, 55, 0.75) 0 1.4px, transparent 1.8px),
    var(--skin);
}

.ava-agent .agent-sprite {
  --skin: #f0c09a;
  --hair: #e9edf2;
  --shirt: #e8f2ff;
}

.ava-agent .agent-sprite::before {
  border-color: rgba(170, 185, 196, 0.55);
}

.upload-agent .agent-sprite {
  --hair: #6a4a19;
  --shirt: #f8d84d;
}

.agent {
  z-index: 12;
  gap: 0;
  width: 70px;
  transition: filter 140ms ease, transform 140ms ease;
}

.agent::after {
  content: "";
  order: 2;
  display: block;
  width: 34px;
  height: 8px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(1px);
}

.agent:hover {
  filter: brightness(1.12);
}

.agent.access-locked {
  cursor: not-allowed;
  filter: grayscale(0.72) opacity(0.52);
}

.agent.access-locked:hover {
  filter: grayscale(0.72) opacity(0.62);
}

.agent.dragging {
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(75, 215, 255, 0.45));
}

.agent .agent-sprite {
  --skin: #f3b177;
  --hair: #2c1b16;
  --shirt: #338fff;
  --shirt-dark: color-mix(in srgb, var(--shirt) 72%, #07111d);
  --shoe: #101722;
  --trim: #f7d35a;
  position: relative;
  display: block;
  width: 42px;
  height: 58px;
  border-radius: 0;
  background:
    linear-gradient(var(--shoe), var(--shoe)) 12px 51px / 7px 6px no-repeat,
    linear-gradient(var(--shoe), var(--shoe)) 24px 51px / 7px 6px no-repeat,
    linear-gradient(var(--shirt-dark), var(--shirt-dark)) 10px 45px / 10px 7px no-repeat,
    linear-gradient(var(--shirt-dark), var(--shirt-dark)) 23px 45px / 10px 7px no-repeat,
    linear-gradient(var(--skin), var(--skin)) 4px 34px / 7px 13px no-repeat,
    linear-gradient(var(--skin), var(--skin)) 31px 34px / 7px 13px no-repeat,
    linear-gradient(var(--trim), var(--trim)) 16px 34px / 10px 4px no-repeat,
    linear-gradient(var(--shirt), var(--shirt)) 11px 31px / 21px 18px no-repeat,
    linear-gradient(var(--shirt-dark), var(--shirt-dark)) 9px 48px / 25px 5px no-repeat;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
  image-rendering: pixelated;
}

.agent .agent-sprite::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  z-index: 3;
  width: 27px;
  height: 26px;
  border: 2px solid rgba(87, 42, 24, 0.42);
  border-radius: 7px 7px 9px 9px;
  background:
    radial-gradient(circle at 32% 48%, #111926 0 2px, transparent 2.4px),
    radial-gradient(circle at 68% 48%, #111926 0 2px, transparent 2.4px),
    linear-gradient(#b34b52, #b34b52) 14px 20px / 4px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 6px 5px / 17px 3px no-repeat,
    var(--skin);
  box-shadow:
    -4px 12px 0 -2px var(--hair),
    4px 12px 0 -2px var(--hair);
}

.agent .agent-sprite::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  z-index: 4;
  width: 32px;
  height: 18px;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(var(--hair), var(--hair)) 0 10px / 8px 9px no-repeat,
    linear-gradient(var(--hair), var(--hair)) 28px 10px / 8px 9px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) 9px 4px / 12px 3px no-repeat,
    var(--hair);
  box-shadow:
    0 4px 0 -1px rgba(0, 0, 0, 0.12),
    0 8px 0 -5px var(--hair);
}

.boss-agent .agent-sprite {
  --hair: #1d1714;
  --shirt: #f6bd3f;
  --trim: #151f2d;
}

.boss-agent .agent-sprite::after {
  top: 1px;
  height: 24px;
  background:
    linear-gradient(#ffd75b, #ffd75b) 8px 0 / 20px 7px no-repeat,
    linear-gradient(#1d1714, #1d1714) 3px 8px / 30px 15px no-repeat,
    radial-gradient(circle at 7px 8px, #ffd75b 0 5px, transparent 5.4px),
    radial-gradient(circle at 29px 8px, #ffd75b 0 5px, transparent 5.4px),
    var(--hair);
}

.mina-agent .agent-sprite {
  --hair: #bd5b31;
  --shirt: #36c9ff;
  --trim: #eef9ff;
}

.mina-agent .agent-sprite::after {
  height: 26px;
  box-shadow:
    -4px 11px 0 -3px var(--hair),
    4px 11px 0 -3px var(--hair),
    0 15px 0 -8px var(--hair);
}

.leo-agent .agent-sprite {
  --hair: #6a2456;
  --shirt: #ff5da8;
  --trim: #fff0f7;
}

.sam-agent .agent-sprite {
  --hair: #263b2d;
  --shirt: #43d57b;
  --trim: #dfffee;
}

.sam-agent .agent-sprite::before {
  background:
    linear-gradient(#142033, #142033) 7px 13px / 6px 3px no-repeat,
    linear-gradient(#142033, #142033) 18px 13px / 6px 3px no-repeat,
    linear-gradient(#142033, #142033) 13px 14px / 5px 1px no-repeat,
    radial-gradient(circle at 32% 48%, #111926 0 2px, transparent 2.4px),
    radial-gradient(circle at 68% 48%, #111926 0 2px, transparent 2.4px),
    linear-gradient(#b34b52, #b34b52) 14px 20px / 4px 2px no-repeat,
    var(--skin);
}

.ava-agent .agent-sprite {
  --skin: #f0c09a;
  --hair: #e7eef6;
  --shirt: #dbe9ff;
  --trim: #ff6b83;
  --shoe: #6c7280;
}

.ava-agent .agent-sprite::before {
  border-color: rgba(154, 171, 184, 0.58);
}

.upload-agent .agent-sprite {
  --hair: #704818;
  --shirt: #f8d84d;
  --trim: #23c5ff;
}

.tiny-avatar,
.profile-dot {
  --avatar: #43dfff;
  --hair: #182334;
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 46%, #12151e 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 62% 46%, #12151e 0 1.3px, transparent 1.6px),
    linear-gradient(var(--hair) 0 27%, transparent 27%),
    linear-gradient(#f3b177 0 58%, var(--avatar) 58%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.tiny-avatar.boss,
.profile-dot.boss {
  --avatar: #f6be3f;
  --hair: #1e1715;
}

.tiny-avatar.mina,
.profile-dot.mina {
  --avatar: #38c6ff;
  --hair: #b3532d;
}

.tiny-avatar.leo,
.profile-dot.leo {
  --avatar: #ff5da8;
  --hair: #4b2144;
}

.tiny-avatar.sam,
.profile-dot.sam {
  --avatar: #43d57b;
  --hair: #243127;
}

.tiny-avatar.ava,
.profile-dot.ava {
  --avatar: #e8f2ff;
  --hair: #e9edf2;
}

.tiny-avatar.uploader,
.profile-dot.uploader {
  --avatar: #f8d84d;
  --hair: #6a4a19;
}

.tiny-avatar,
.profile-dot,
.message-avatar {
  --avatar-y: 0%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background:
    #041b31
    url("./assets/characters/benz-team-avatar-sheet.png")
    center var(--avatar-y) / 100% 600%
    no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 0 rgba(0, 0, 0, 0.3);
}

.tiny-avatar.boss,
.profile-dot.boss,
.message-avatar.boss {
  --avatar-y: 0%;
}

.tiny-avatar.mina,
.profile-dot.mina,
.message-avatar.mina {
  --avatar-y: 20%;
}

.tiny-avatar.leo,
.profile-dot.leo,
.message-avatar.leo {
  --avatar-y: 40%;
}

.tiny-avatar.sam,
.profile-dot.sam,
.message-avatar.sam {
  --avatar-y: 60%;
}

.tiny-avatar.ava,
.profile-dot.ava,
.message-avatar.ava {
  --avatar-y: 80%;
}

.tiny-avatar.uploader,
.profile-dot.uploader,
.message-avatar.uploader {
  --avatar-y: 100%;
}

.agent-tag {
  order: -1;
  max-width: 72px;
  margin-bottom: -2px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(100, 217, 255, 0.34);
  background: rgba(6, 11, 18, 0.86);
  color: #dff6ff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.26);
}

.generated-scene .agent {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.generated-scene .agent::after,
.generated-scene .agent-sprite {
  display: none;
}

.generated-scene .agent-tag {
  position: absolute;
  left: 50%;
  bottom: 78px;
  max-width: 92px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.generated-scene .agent:hover .agent-tag,
.generated-scene .agent:focus-visible .agent-tag,
.generated-scene .agent.dragging .agent-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

.generated-scene .agent:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 4px;
  background: rgba(35, 167, 255, 0.14);
}

.animated-scene .agent {
  width: 76px;
  height: 110px;
  z-index: 16;
  border-radius: 0;
}

.animated-scene .agent::after {
  display: block;
  width: 36px;
  height: 9px;
  margin-top: -7px;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(1px);
}

.animated-scene .agent-sprite {
  display: block;
  animation: agent-idle 1.9s steps(2, end) infinite;
}

.animated-scene .agent-tag {
  order: -2;
  margin-bottom: -1px;
  opacity: .92;
}

.animated-scene .agent-activity {
  order: -1;
  max-width: 104px;
  margin-bottom: 2px;
  min-height: 18px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(12, 30, 42, 0.84);
  color: #bdf2ff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
  text-align: center;
  white-space: normal;
}

.animated-scene .mina-agent .agent-sprite,
.animated-scene .leo-agent .agent-sprite,
.animated-scene .sam-agent .agent-sprite,
.animated-scene .ava-agent .agent-sprite,
.animated-scene .upload-agent .agent-sprite {
  animation-name: agent-typing;
  animation-duration: 1.15s;
}

.animated-scene .boss-agent .agent-sprite {
  animation-name: agent-review;
  animation-duration: 2.2s;
}

.animated-scene .agent-sprite::before {
  animation: agent-blink 4.8s steps(1, end) infinite;
}

.animated-scene .agent::before {
  content: "";
  position: absolute;
  left: 53px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50e68b;
  box-shadow:
    0 0 0 2px rgba(5, 24, 17, 0.8),
    0 0 10px rgba(80, 230, 139, 0.75);
  animation: status-pulse 1.7s ease-in-out infinite;
}

.animated-scene .boss-agent::before {
  background: #ffce55;
  box-shadow:
    0 0 0 2px rgba(38, 27, 8, 0.8),
    0 0 10px rgba(255, 206, 85, 0.78);
}

.animated-scene .agent.is-working::before {
  background: #5cf4aa;
  box-shadow:
    0 0 0 2px rgba(5, 31, 24, 0.78),
    0 0 12px rgba(92, 244, 170, 0.76);
}

.animated-scene .agent.is-talking::before {
  background: #5bdcff;
  box-shadow:
    0 0 0 2px rgba(4, 26, 39, 0.78),
    0 0 12px rgba(91, 220, 255, 0.78);
}

.animated-scene .agent.is-alert::before {
  background: #ffce55;
  box-shadow:
    0 0 0 2px rgba(42, 28, 8, 0.78),
    0 0 14px rgba(255, 206, 85, 0.86);
}

.animated-scene .agent:hover,
.animated-scene .agent.dragging,
.animated-scene .agent.selected {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(73, 217, 255, 0.34));
}

.animated-scene .agent.selected .agent-tag {
  border-color: rgba(255, 218, 92, 0.68);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.26),
    0 0 14px rgba(255, 218, 92, 0.28);
}

@keyframes agent-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@keyframes agent-typing {
  0%, 100% { translate: 0 0; }
  33% { translate: -1px -1px; }
  66% { translate: 1px 0; }
}

@keyframes agent-review {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -1px; }
  70% { translate: 1px 0; }
}

@keyframes agent-blink {
  0%, 92%, 100% { filter: none; }
  94% { filter: brightness(.82); }
}

@keyframes status-pulse {
  0%, 100% { opacity: .72; scale: .9; }
  50% { opacity: 1; scale: 1.15; }
}

/* Generated character sprite sheet: 6 agents x 4 animation frames. */
.animated-scene .agent {
  width: 88px;
  height: 112px;
}

.animated-scene .agent::after {
  width: 46px;
  height: 10px;
  margin-top: -11px;
}

.animated-scene .agent-sprite {
  width: 82px;
  height: 82px;
  background: url("./assets/characters/benz-team-standing-sprite-sheet-grid.png") 0 var(--sprite-y, 0%) / 400% 600% no-repeat;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.14))
    drop-shadow(0 10px 4px rgba(0, 0, 0, 0.36));
  animation:
    generated-sprite-cycle var(--sprite-speed, 4.4s) steps(1, end) infinite,
    generated-sprite-bob 2.8s ease-in-out infinite;
  animation-delay: var(--sprite-delay, 0s), var(--bob-delay, 0s);
}

.animated-scene .agent-sprite::before,
.animated-scene .agent-sprite::after {
  content: none;
  display: none;
}

.animated-scene .boss-agent .agent-sprite {
  --sprite-y: 0%;
  --sprite-speed: 5.2s;
  --sprite-delay: -.3s;
  --bob-delay: -.2s;
}

.animated-scene .mina-agent .agent-sprite {
  --sprite-y: 20%;
  --sprite-speed: 4.1s;
  --sprite-delay: -.9s;
  --bob-delay: -.8s;
}

.animated-scene .leo-agent .agent-sprite {
  --sprite-y: 40%;
  --sprite-speed: 4.7s;
  --sprite-delay: -1.6s;
  --bob-delay: -1.1s;
}

.animated-scene .sam-agent .agent-sprite {
  --sprite-y: 60%;
  --sprite-speed: 4.5s;
  --sprite-delay: -2.1s;
  --bob-delay: -.4s;
}

.animated-scene .ava-agent .agent-sprite {
  --sprite-y: 80%;
  --sprite-speed: 4.9s;
  --sprite-delay: -1.2s;
  --bob-delay: -1.6s;
}

.animated-scene .upload-agent .agent-sprite {
  --sprite-y: 100%;
  --sprite-speed: 4.3s;
  --sprite-delay: -2.7s;
  --bob-delay: -1.9s;
}

.animated-scene .agent.is-talking .agent-sprite {
  --sprite-speed: 2.6s;
  animation-name: generated-sprite-talk, generated-sprite-bob;
}

.animated-scene .agent.is-working .agent-sprite {
  --sprite-speed: 3.1s;
  animation-name: generated-sprite-work, generated-sprite-bob;
}

.animated-scene .agent.is-alert .agent-sprite {
  --sprite-speed: 2.9s;
  animation-name: generated-sprite-alert, generated-sprite-bob;
}

.animated-scene .agent-activity {
  position: relative;
  margin-bottom: 2px;
  padding: 4px 7px;
  border-color: rgba(135, 228, 255, 0.34);
  border-radius: 6px;
  background: rgba(8, 24, 36, 0.92);
  color: #dff8ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 5px 0 rgba(0, 0, 0, 0.24);
}

.animated-scene .agent.is-talking .agent-activity {
  border-color: rgba(91, 220, 255, 0.52);
  color: #ecfbff;
  animation: bubble-pop 1.6s ease-in-out infinite;
}

.animated-scene .agent.is-working .agent-activity {
  border-color: rgba(92, 244, 170, 0.5);
  color: #e7fff3;
}

.animated-scene .agent.is-alert .agent-activity {
  border-color: rgba(255, 206, 85, 0.58);
  color: #fff4c4;
}

.animated-scene .agent-activity::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(135, 228, 255, 0.34);
  border-bottom: 1px solid rgba(135, 228, 255, 0.34);
  background: rgba(8, 24, 36, 0.92);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes generated-sprite-cycle {
  0%, 30%, 100% { background-position: 0 var(--sprite-y, 0%); }
  34%, 40% { background-position: 33.333% var(--sprite-y, 0%); }
  58%, 76% { background-position: 66.667% var(--sprite-y, 0%); }
  86%, 94% { background-position: 100% var(--sprite-y, 0%); }
}

@keyframes generated-sprite-talk {
  0%, 22%, 100% { background-position: 0 var(--sprite-y, 0%); }
  26%, 34% { background-position: 33.333% var(--sprite-y, 0%); }
  48%, 66% { background-position: 66.667% var(--sprite-y, 0%); }
  76%, 88% { background-position: 100% var(--sprite-y, 0%); }
}

@keyframes generated-sprite-work {
  0%, 18%, 100% { background-position: 66.667% var(--sprite-y, 0%); }
  24%, 34% { background-position: 0 var(--sprite-y, 0%); }
  48%, 58% { background-position: 33.333% var(--sprite-y, 0%); }
  72%, 86% { background-position: 100% var(--sprite-y, 0%); }
}

@keyframes generated-sprite-alert {
  0%, 28%, 100% { background-position: 0 var(--sprite-y, 0%); }
  34%, 46% { background-position: 100% var(--sprite-y, 0%); }
  62%, 74% { background-position: 33.333% var(--sprite-y, 0%); }
}

@keyframes generated-sprite-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@keyframes bubble-pop {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -1px; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-scene .agent::before,
  .animated-scene .agent-sprite,
  .animated-scene .agent-activity {
    animation: none !important;
  }
}

.reset-button {
  position: absolute;
  right: 14px;
  bottom: 12px;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.hint-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(85, 193, 255, 0.32);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(13, 103, 163, 0.88), rgba(8, 67, 116, 0.92));
}

.metric-card.danger {
  border-color: rgba(255, 89, 109, 0.5);
  background: linear-gradient(180deg, rgba(134, 43, 88, 0.94), rgba(71, 28, 70, 0.95));
}

.metric-card strong {
  display: block;
  font-size: 18px;
}

.metric-card span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}

.metric-icon {
  --metric-a: #4fc3ff;
  --metric-b: #1577c9;
  display: grid;
  place-items: center;
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  font-weight: 900;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.66), transparent 20%),
    linear-gradient(145deg, var(--metric-a), var(--metric-b));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -8px 12px rgba(0, 23, 44, 0.22),
    0 5px 0 rgba(0, 0, 0, 0.22),
    0 0 16px color-mix(in srgb, var(--metric-a) 54%, transparent);
}

.metric-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background: rgba(2, 18, 33, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.metric-icon .pixel-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.blue { --metric-a: #62d5ff; --metric-b: #1478e8; }
.purple { --metric-a: #c79bff; --metric-b: #7649ff; }
.green { --metric-a: #83f0a8; --metric-b: #25a965; }
.teal { --metric-a: #61eee5; --metric-b: #098f95; }
.amber { --metric-a: #ffd46b; --metric-b: #d27818; }
.cyan { --metric-a: #67f6ff; --metric-b: #0499d6; }
.red { --metric-a: #ff8fa1; --metric-b: #d52d52; }

.progress-panel {
  margin-bottom: 12px;
  min-width: 0;
  overflow: hidden;
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.progress-row {
  min-width: 0;
  border: 1px solid rgba(90, 190, 255, 0.28);
  border-radius: 7px;
  padding: 10px;
  background: rgba(4, 30, 53, 0.72);
}

.progress-row strong {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  min-width: 0;
}

.progress-row strong span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.progress-row strong span:last-child {
  flex: 0 0 auto;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.chat-panel {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chat-header h2 {
  font-size: 15px;
}

.chat-header p {
  margin: 3px 0 0;
  font-weight: 800;
}

.active-stack {
  display: flex;
}

.tiny-avatar {
  width: 20px;
  height: 20px;
  margin-left: -5px;
}

.agent-profile {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(83, 190, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 43, 73, 0.78);
}

.agent-profile h3,
.agent-profile p {
  margin: 0;
}

.agent-profile h3 {
  font-size: 14px;
}

.agent-profile p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.profile-dot {
  width: 34px;
  height: 38px;
  border-radius: 50%;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 6px 3px 12px;
}

.message {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 7px;
  align-items: end;
  gap: 4px;
  max-width: 90%;
}

.message.mine {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 28px;
}

.message.mine .message-avatar {
  grid-column: 2;
  grid-row: 1;
}

.message.mine .message-content {
  align-items: stretch;
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.message .author {
  color: #8bdfff;
  font-size: 11px;
  font-weight: 900;
}

.bubble {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 82, 130, 0.86);
  color: #eaf8ff;
  font-size: 12px;
  line-height: 1.45;
}

.mine .bubble {
  background: linear-gradient(180deg, #0f90ff, #0768c3);
}

.composer {
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}

.attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.composer input:not(.attachment-input) {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(86, 192, 255, 0.32);
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
  color: var(--text);
  background: rgba(4, 42, 71, 0.9);
}

.attachment-button,
.send-button,
.quick-actions button,
.primary-action,
.secondary-action {
  border: 1px solid rgba(89, 198, 255, 0.35);
  color: var(--text);
  background: rgba(9, 75, 125, 0.88);
}

.attachment-button,
.send-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  border-radius: 7px;
  font-weight: 900;
}

.send-button {
  background: #1489f2;
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(89, 198, 255, 0.2);
  border-radius: 7px;
  background: rgba(4, 32, 54, 0.72);
}

.attachment-tray[hidden] {
  display: none;
}

.attachment-chip,
.message-attachment {
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(112, 215, 255, 0.26);
  border-radius: 7px;
  background: rgba(7, 54, 88, 0.78);
  color: #eaf8ff;
}

.attachment-chip {
  max-width: 100%;
  padding: 6px 7px;
}

.attachment-chip .pixel-icon,
.message-attachment .pixel-icon {
  width: 16px;
  height: 16px;
  color: #9de8ff;
}

.attachment-chip strong,
.message-attachment strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip small,
.message-attachment small {
  display: block;
  color: #a9c7d6;
  font-size: 9px;
  line-height: 1.15;
}

.attachment-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(1, 20, 34, 0.78);
  color: #f1fbff;
  cursor: pointer;
}

.message-attachments {
  display: grid;
  gap: 6px;
}

.message.mine .message-attachments {
  justify-items: end;
}

.message-attachment {
  grid-template-columns: 18px minmax(0, 1fr);
  width: fit-content;
  max-width: min(100%, 260px);
  padding: 7px 8px;
}

.message.attachment .bubble {
  border-color: rgba(151, 230, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 132, 226, 0.9), rgba(8, 82, 154, 0.96));
}

.message.attachment .author em {
  border-color: rgba(151, 230, 255, 0.38);
  color: #e4f9ff;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.quick-actions button {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 10px;
}

.chat-access-empty {
  width: 100%;
  border: 1px solid rgba(255, 205, 78, 0.28);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(64, 45, 12, 0.28);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 800;
}

.primary-action {
  background: #0878c8;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    padding: 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand > div:not(.brand-mark),
  .nav-item span:last-child,
  .workspace-switcher > div,
  .workspace-caret {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .workspace-switcher {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chat-panel {
    grid-column: 1 / -1;
    min-height: 560px;
  }

  .metrics-grid,
  .progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    overflow-x: auto;
  }

  .connection-card {
    min-width: 148px;
  }

  .office-map {
    min-height: 340px;
  }

  .office-floor {
    inset: 12px;
  }
}

/* Design polish pass: make the office scene feel like the primary workspace. */
.app-shell {
  grid-template-columns: 172px minmax(740px, 1fr) 284px;
  gap: 8px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    radial-gradient(circle at 52% 34%, rgba(36, 158, 224, 0.12), transparent 42%);
}

.sidebar,
.main-panel,
.chat-panel {
  border-color: rgba(113, 203, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(4, 24, 39, 0.94), rgba(2, 13, 23, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 42px rgba(0, 0, 0, 0.38);
}

.sidebar,
.main-panel,
.chat-panel,
.dashboard-card,
.progress-panel,
.nav-item,
.connection-card,
.boss-pill,
.agent-profile,
.metric-card,
.bubble,
.composer input:not(.attachment-input),
.primary-action,
.secondary-action,
.quick-actions button {
  border-radius: 6px;
}

.sidebar {
  padding: 10px;
}

.brand {
  gap: 10px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.logo-b {
  left: 7px;
  top: 6px;
  font-size: 20px;
}

.logo-v {
  right: 7px;
  bottom: 6px;
  font-size: 15px;
}

.brand-name {
  font-size: 15px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  line-height: 1.15;
}

.nav-list {
  gap: 6px;
}

.nav-item {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  border-color: rgba(92, 179, 226, 0.26);
  background:
    linear-gradient(180deg, rgba(14, 79, 124, 0.72), rgba(7, 44, 74, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 0 rgba(0, 0, 0, 0.18);
}

.nav-item.active {
  border-color: rgba(96, 207, 255, 0.66);
  background:
    linear-gradient(180deg, rgba(19, 137, 220, 0.9), rgba(8, 83, 147, 0.88));
}

.workspace-switcher {
  grid-template-columns: 24px 1fr 14px;
  gap: 7px;
  padding: 9px;
  border-color: rgba(92, 179, 226, 0.24);
  background: rgba(5, 45, 75, 0.72);
}

.main-panel {
  gap: 7px;
  padding: 7px;
  overflow: auto;
}

.topbar {
  min-height: 36px;
  gap: 5px;
}

.connection-card {
  grid-template-columns: 22px minmax(0, 1fr);
  min-width: 98px;
  height: 34px;
  padding: 4px 6px;
  border-color: rgba(76, 176, 232, 0.25);
  background:
    linear-gradient(180deg, rgba(10, 67, 106, 0.72), rgba(5, 41, 70, 0.78));
}

.connection-card span {
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-card strong {
  font-size: 9px;
}

.connection-card strong::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}

.connection-icon,
.icon-button {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.boss-pill {
  grid-template-columns: 25px 1fr;
  min-width: 76px;
  height: 34px;
  padding: 4px 6px;
  background: rgba(8, 43, 68, 0.72);
}

.boss-pill .tiny-avatar {
  width: 22px;
  height: 22px;
}

.boss-pill span,
.boss-pill strong {
  font-size: 10px;
}

.dashboard-card,
.progress-panel {
  padding: 8px;
  border-color: rgba(84, 185, 244, 0.22);
  background:
    linear-gradient(180deg, rgba(6, 50, 82, 0.78), rgba(3, 25, 45, 0.9));
}

.dashboard-card {
  flex: 0 0 auto;
  min-height: 0;
}

.section-heading {
  min-height: 24px;
  margin-bottom: 5px;
}

h1,
h2 {
  font-size: 16px;
}

.office-map {
  height: min(
    calc(100vh - 8px - 8px - 34px - 7px - 16px - 24px - 5px - 22px - 50px - 7px - 64px),
    calc((100vw - 178px - 350px - 24px - 14px - 14px - 16px) * 0.6667)
  );
  min-height: 430px;
  min-height: 0;
  aspect-ratio: 3 / 2;
  width: min(100%, calc((100vh - 8px - 8px - 34px - 7px - 16px - 24px - 5px - 22px - 50px - 7px - 64px) * 1.5));
  margin-inline: auto;
  border-color: rgba(90, 194, 255, 0.3);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 38%, rgba(20, 83, 121, 0.48), transparent 58%),
    #020812;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 6px rgba(9, 38, 64, 0.86),
    inset 0 0 34px rgba(0, 0, 0, 0.56);
}

.office-floor {
  inset: 6px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  transform: none;
  border: 7px solid #071f35;
  background:
    radial-gradient(circle at 50% 54%, rgba(16, 74, 112, 0.32), transparent 52%),
    #02070d;
  box-shadow:
    inset 0 0 0 1px rgba(96, 203, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.36);
}

.office-art {
  object-fit: contain;
  object-position: center;
}

.reset-button {
  right: 12px;
  bottom: 10px;
  height: 27px;
  padding: 0 9px;
  border-color: rgba(90, 201, 255, 0.25);
  background: rgba(6, 54, 91, 0.78);
  font-size: 10px;
}

.hint-line {
  min-height: 16px;
  margin-top: 4px;
  font-size: 10px;
  opacity: .82;
}

.animated-scene .agent {
  width: 82px;
  height: 122px;
}

.animated-scene .agent-sprite {
  width: 76px;
  height: 76px;
}

.animated-scene .agent::before {
  left: 50px;
  top: 31px;
  width: 7px;
  height: 7px;
}

.animated-scene .agent-tag {
  max-width: 68px;
  padding: 2px 6px;
  border-color: rgba(117, 214, 255, 0.24);
  background: rgba(3, 9, 15, 0.72);
  color: rgba(226, 248, 255, 0.92);
  font-size: 9px;
  opacity: .72;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.animated-scene .agent:hover .agent-tag,
.animated-scene .agent.selected .agent-tag,
.animated-scene .agent.is-talking .agent-tag {
  opacity: 1;
}

.animated-scene .agent-activity {
  max-width: 108px;
  min-width: 74px;
  padding: 4px 7px;
  border-color: rgba(118, 210, 255, 0.24);
  background: rgba(4, 17, 28, 0.86);
  font-size: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 4px 0 rgba(0, 0, 0, 0.2);
}

.metrics-grid {
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 5px;
}

.metric-card {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 42px;
  padding: 5px 6px;
  border-color: rgba(85, 193, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(11, 79, 124, 0.78), rgba(5, 50, 85, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 14px rgba(0, 0, 0, 0.22);
}

.metric-card strong {
  font-size: 14px;
  line-height: 1;
}

.metric-card span {
  font-size: 8.5px;
}

.metric-icon {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -6px 10px rgba(0, 23, 44, 0.2),
    0 3px 0 rgba(0, 0, 0, 0.18),
    0 0 10px color-mix(in srgb, var(--metric-a) 38%, transparent);
}

.metric-icon .pixel-icon {
  width: 16px;
  height: 16px;
}

.progress-panel {
  margin-bottom: 0;
}

.progress-list {
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 6px;
}

.progress-row {
  padding: 5px 6px;
  background: rgba(3, 26, 45, 0.68);
}

.progress-row strong {
  margin-bottom: 5px;
  font-size: 10px;
}

.chat-panel {
  padding: 9px;
  background:
    linear-gradient(180deg, rgba(4, 23, 36, 0.96), rgba(1, 11, 20, 0.98));
}

.chat-header {
  margin-bottom: 10px;
}

.chat-header h2 {
  font-size: 15px;
}

.chat-header p {
  font-size: 13px;
}

.active-stack .tiny-avatar {
  width: 19px;
  height: 19px;
  border-color: rgba(255, 255, 255, 0.22);
}

.agent-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-height: 0;
  padding: 8px;
  border-color: rgba(83, 190, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(7, 50, 78, 0.72), rgba(3, 27, 45, 0.78));
}

.agent-profile-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
}

.agent-profile h3 {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.15;
}

.agent-profile p {
  margin: 4px 0 0;
  font-size: 10.5px;
}

.profile-kicker {
  display: block;
  margin-bottom: 3px;
  color: #7fdfff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-dot {
  width: 30px;
  height: 34px;
}

.agent-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.agent-status-grid span {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(105, 198, 255, 0.16);
  border-radius: 5px;
  background: rgba(2, 23, 39, 0.62);
}

.agent-status-grid strong,
.agent-status-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-status-grid strong {
  color: #ecfbff;
  font-size: 10.5px;
  line-height: 1.15;
}

.agent-status-grid small {
  margin-top: 3px;
  color: rgba(159, 197, 216, 0.9);
  font-size: 8px;
  font-weight: 800;
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tool-strip span {
  padding: 4px 7px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 9.5px;
  font-weight: 900;
}

.agent-focus-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-focus-list li {
  position: relative;
  padding-left: 12px;
  color: #c6e7f5;
  font-size: 10.5px;
  line-height: 1.28;
}

.agent-focus-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .48em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #58dcff;
  box-shadow: 0 0 8px rgba(88, 220, 255, 0.5);
}

.messages {
  gap: 9px;
  padding: 5px 2px 10px;
}

.message {
  grid-template-columns: 27px minmax(0, 1fr);
  max-width: 94%;
}

.message-avatar {
  width: 26px;
  height: 26px;
}

.message .author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.15;
}

.message .author em {
  display: inline-grid;
  place-items: center;
  min-height: 15px;
  padding: 0 5px;
  border: 1px solid rgba(125, 221, 255, 0.22);
  border-radius: 999px;
  color: #bdeeff;
  background: rgba(7, 45, 72, 0.72);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.bubble {
  padding: 9px 11px;
  border: 1px solid rgba(102, 198, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 78, 122, 0.86), rgba(10, 53, 88, 0.92));
  font-size: 11.5px;
  line-height: 1.42;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.mine .bubble {
  border-color: rgba(92, 205, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(18, 132, 226, 0.94), rgba(8, 89, 164, 0.96));
}

.message.command .bubble {
  border-color: rgba(91, 220, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(18, 132, 226, 0.94), rgba(8, 82, 154, 0.96));
}

.message.summary .bubble {
  border-color: rgba(100, 214, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(18, 82, 126, 0.88), rgba(8, 54, 88, 0.94));
}

.message.readonly .bubble {
  border-color: rgba(98, 231, 179, 0.28);
  background:
    linear-gradient(180deg, rgba(14, 91, 87, 0.84), rgba(6, 55, 70, 0.94));
}

.message.approval .bubble {
  border-color: rgba(255, 205, 78, 0.42);
  background:
    linear-gradient(180deg, rgba(119, 82, 22, 0.84), rgba(70, 50, 18, 0.94));
}

.message.warning .bubble {
  border-color: rgba(255, 98, 116, 0.48);
  background:
    linear-gradient(180deg, rgba(124, 45, 64, 0.9), rgba(72, 28, 46, 0.96));
}

.message.readonly .author em {
  border-color: rgba(98, 231, 179, 0.32);
  color: #c8ffe8;
  background: rgba(7, 67, 59, 0.74);
}

.message.approval .author em {
  border-color: rgba(255, 205, 78, 0.38);
  color: #ffedb0;
  background: rgba(89, 63, 13, 0.76);
}

.message.warning .author em {
  border-color: rgba(255, 98, 116, 0.42);
  color: #ffd3da;
  background: rgba(91, 30, 47, 0.78);
}

.message.summary .author em {
  border-color: rgba(100, 214, 255, 0.25);
}

.composer {
  grid-template-columns: 32px 1fr 36px;
  gap: 6px;
}

.composer input:not(.attachment-input) {
  height: 38px;
  border-color: rgba(86, 192, 255, 0.22);
  background: rgba(2, 31, 53, 0.9);
  font-size: 12px;
}

.attachment-button,
.send-button {
  width: 32px;
  height: 38px;
}

.quick-actions {
  gap: 6px;
}

.quick-actions button {
  min-height: 26px;
  border-color: rgba(89, 198, 255, 0.24);
  background: rgba(8, 62, 104, 0.78);
  font-size: 9.5px;
}

.action-row {
  gap: 7px;
  margin-top: 10px;
}

.primary-action,
.secondary-action {
  min-height: 39px;
  border-color: rgba(89, 198, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(11, 101, 166, 0.88), rgba(7, 67, 116, 0.94));
  font-size: 12px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr) 343px;
  }

  .brand > div:not(.brand-mark),
  .nav-item span:last-child,
  .workspace-switcher > div,
  .workspace-caret {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Final design lock: balanced desktop proportions and stable visible chrome. */
body {
  background:
    linear-gradient(135deg, #04101d 0%, #08233d 48%, #031019 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%);
}

.app-shell {
  grid-template-columns: 178px minmax(700px, 1fr) 350px;
  gap: 9px;
  padding: 9px;
}

.sidebar {
  padding: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 16px;
}

.nav-item {
  min-height: 38px;
  font-size: 13px;
}

.workspace-switcher {
  min-height: 58px;
}

.main-panel {
  gap: 8px;
  padding: 8px;
  scrollbar-gutter: stable;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 0 2px;
  background:
    linear-gradient(180deg, rgba(2, 14, 24, 0.98), rgba(2, 14, 24, 0.78) 78%, transparent);
}

.connection-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 132px;
  height: 36px;
  padding: 5px 6px;
}

.connection-card span {
  font-size: 10px;
}

.connection-card strong {
  font-size: 8.5px;
}

.topbar-spacer {
  flex: 0 0 2px;
}

.notification-button {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.notification-button .icon-bell {
  width: 16px;
  height: 16px;
  transform: translateY(.5px);
}

.boss-pill {
  flex: 0 0 82px;
  min-width: 82px;
  height: 36px;
}

.dashboard-card {
  padding: 9px;
}

.section-heading {
  min-height: 26px;
}

h1,
h2 {
  font-size: 16.5px;
}

.office-map {
  height: clamp(410px, calc(100vh - 276px), 640px);
  width: min(100%, calc(clamp(410px, calc(100vh - 276px), 640px) * 1.5));
  border-color: rgba(100, 205, 255, 0.34);
}

.office-floor {
  inset: 4px;
  border-width: 5px;
}

.reset-button {
  right: 10px;
  bottom: 9px;
}

.hint-line {
  margin-top: 5px;
  font-size: 10.5px;
}

.metrics-grid {
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 6px;
}

.metric-card {
  min-height: 45px;
  padding: 6px 7px;
}

.metric-card strong {
  font-size: 15px;
}

.metric-card span {
  font-size: 9px;
}

.progress-panel {
  padding: 8px;
}

.progress-row strong {
  font-size: 10.5px;
}

.chat-panel {
  padding: 10px;
}

.chat-header {
  margin-bottom: 9px;
}

.chat-header h2 {
  font-size: 15.5px;
}

.chat-header p {
  font-size: 12px;
}

.agent-profile {
  padding: 9px;
}

.agent-profile h3 {
  font-size: 13px;
}

.agent-profile p,
.agent-focus-list li {
  font-size: 10.8px;
}

.agent-status-grid strong {
  font-size: 10.5px;
}

.messages {
  gap: 8px;
}

.message .author {
  font-size: 10.7px;
}

.bubble {
  padding: 9px 10px;
  font-size: 11.8px;
  line-height: 1.44;
}

.quick-actions button {
  min-height: 27px;
  padding: 0 9px;
}

.primary-action,
.secondary-action {
  min-height: 40px;
}

.workspace-view {
  display: none;
  min-height: 0;
}

.workspace-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-view.active > * {
  flex: 0 0 auto;
}

.view-hero,
.hub-card {
  border: 1px solid rgba(84, 185, 244, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(6, 50, 82, 0.78), rgba(3, 25, 45, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.view-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
}

.view-kicker {
  display: block;
  margin-bottom: 6px;
  color: #72ddff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.view-hero h1 {
  margin: 0;
  font-size: 24px;
}

.view-hero p {
  max-width: 620px;
  margin: 7px 0 0;
  color: #b9d9e8;
  font-size: 13px;
  line-height: 1.45;
}

.view-status-pill {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(92, 231, 170, 0.28);
  border-radius: 6px;
  background: rgba(7, 57, 55, 0.72);
  color: #eafff6;
  font-size: 12px;
}

.command-center-hero {
  min-height: 92px;
}

.command-summary-grid {
  grid-template-columns: repeat(6, minmax(108px, 1fr));
}

.command-summary-grid .metric-card {
  min-height: 58px;
}

.command-center-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.command-map-card {
  min-width: 0;
}

.command-map-card .office-map {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: clamp(520px, 64vh, 860px);
  aspect-ratio: 3 / 2;
  margin-inline: 0;
}

.command-side-panel,
.command-lower-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.command-side-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-lower-grid {
  grid-template-columns: minmax(240px, 0.95fr) minmax(260px, 1.15fr) minmax(240px, 0.95fr);
  align-items: stretch;
}

.command-panel {
  min-width: 0;
  padding: 10px;
}

.decision-list,
.overview-backend-list,
.overview-agent-grid,
.overview-activity-list {
  display: grid;
  gap: 7px;
}

.decision-row,
.overview-backend-row,
.overview-activity-row {
  display: grid;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(84, 185, 244, 0.2);
  border-radius: 6px;
  background: rgba(3, 27, 48, 0.7);
  color: var(--text);
  text-align: left;
}

.decision-row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.decision-row:hover,
.overview-agent-row:hover {
  border-color: rgba(113, 221, 255, 0.45);
  background: rgba(7, 48, 78, 0.86);
}

.decision-row span,
.overview-backend-row b,
.overview-activity-row b {
  color: #73ddff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-row strong,
.overview-backend-row strong,
.overview-agent-row strong,
.overview-activity-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.decision-row b {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.decision-row em,
.overview-backend-row em,
.overview-activity-row em {
  grid-column: 2 / -1;
  min-width: 0;
  color: #a8cadb;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.decision-row.review,
.overview-backend-row.review {
  border-color: rgba(255, 205, 90, 0.34);
}

.decision-row.locked,
.overview-backend-row.locked {
  border-color: rgba(255, 89, 109, 0.42);
  background: rgba(63, 24, 46, 0.74);
}

.overview-backend-row {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 5px 9px;
}

.overview-agent-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(84, 185, 244, 0.2);
  border-radius: 6px;
  background: rgba(3, 27, 48, 0.7);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overview-agent-row.active {
  border-color: rgba(116, 240, 177, 0.55);
  box-shadow: inset 0 0 0 1px rgba(116, 240, 177, 0.2);
}

.overview-agent-row span,
.overview-agent-row b {
  color: #b9d9e8;
  font-size: 10px;
  white-space: nowrap;
}

.overview-agent-row em {
  grid-column: 2 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.overview-agent-row em i {
  display: block;
  width: var(--ready);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.overview-activity-row {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 5px 8px;
}

@media (min-width: 1600px) and (min-height: 1100px) and (max-aspect-ratio: 3 / 2) {
  .app-shell {
    grid-template-columns: 188px minmax(0, 1fr) 320px;
    gap: 10px;
    padding: 10px;
  }

  body[data-active-view="overview"] .app-shell {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  body[data-active-view="overview"] .chat-panel {
    display: none;
  }

  body[data-active-view="overview"] .sidebar {
    padding: 9px;
  }

  body[data-active-view="overview"] .main-panel {
    overflow-y: auto;
  }

  .workspace-view.active {
    gap: 10px;
  }

  .command-center-hero {
    min-height: 86px;
    padding: 13px 16px;
  }

  .command-center-hero p {
    max-width: 820px;
  }

  .command-summary-grid {
    grid-template-columns: repeat(6, minmax(128px, 1fr));
    gap: 8px;
  }

  .command-summary-grid .metric-card {
    min-height: 54px;
    padding: 7px 10px;
  }

  .command-map-card {
    padding: 8px;
  }

  .command-map-card .office-map {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    margin-inline: 0;
  }

  .command-map-card .office-floor {
    inset: 6px;
    border-width: 6px;
  }

  .command-side-panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .command-lower-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .decision-row,
  .overview-backend-row,
  .overview-agent-row,
  .overview-activity-row {
    min-height: 54px;
  }

  .progress-list {
    grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  }

  body[data-active-view="overview"] .command-map-card .office-map {
    min-height: clamp(780px, calc(100vh - 360px), 1380px);
  }
}

.chat-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.summary-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid rgba(84, 185, 244, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(7, 57, 91, 0.78), rgba(3, 33, 56, 0.9));
}

.summary-tile strong {
  color: #effbff;
  font-size: 22px;
  line-height: 1;
}

.summary-tile span {
  color: #b9d9e8;
  font-size: 11px;
  font-weight: 900;
}

.summary-tile.warning {
  border-color: rgba(255, 205, 78, 0.35);
  background: rgba(76, 56, 22, 0.48);
}

.summary-tile.danger {
  border-color: rgba(255, 98, 116, 0.38);
  background: rgba(83, 30, 47, 0.52);
}

.summary-tile.safe {
  border-color: rgba(92, 231, 170, 0.28);
  background: rgba(7, 67, 59, 0.48);
}

.chat-center-layout {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.15fr) minmax(220px, .8fr);
  gap: 8px;
  min-height: 0;
}

.hub-card {
  min-height: 296px;
  padding: 11px;
}

.hub-note {
  margin: -2px 0 10px;
  color: #9fc5d8;
  font-size: 11px;
  line-height: 1.35;
}

.command-list {
  display: grid;
  gap: 8px;
}

.command-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border: 1px solid rgba(88, 191, 255, 0.18);
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
  background: rgba(3, 31, 53, 0.72);
  text-align: left;
}

.command-item.active,
.command-item:hover {
  border-color: rgba(96, 207, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(14, 89, 141, 0.82), rgba(5, 48, 82, 0.9));
}

.command-item.active {
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
}

.command-item strong,
.thread-card strong,
.approval-item strong {
  display: block;
  font-size: 12px;
}

.command-item small,
.approval-item span {
  display: block;
  margin-top: 3px;
  color: #9fc5d8;
  font-size: 10px;
  line-height: 1.25;
}

.command-item em {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(35, 167, 255, 0.18);
  color: #dff8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.thread-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 9px;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.18);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.72);
}

.thread-card.agent-reply {
  margin-left: 26px;
  border-color: rgba(92, 231, 170, 0.2);
  background: rgba(6, 55, 70, 0.72);
}

.thread-card p {
  margin: 4px 0 0;
  color: #d8eef7;
  font-size: 12px;
  line-height: 1.42;
}

.chat-center-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.chat-center-actions button {
  min-height: 38px;
  border: 1px solid rgba(89, 198, 255, 0.26);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(11, 101, 166, 0.88), rgba(7, 67, 116, 0.94));
  font-size: 12px;
  font-weight: 800;
}

.chat-center-actions button,
.workflow-template-card,
.sop-playbook-card,
.report-inbox-item,
.report-recommendation-item,
.settings-notification-row,
.settings-reset-button,
.workspace-switcher,
.quick-actions button,
.primary-action,
.secondary-action {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.chat-center-actions button:active,
.workflow-template-card:active,
.sop-playbook-card:active,
.report-inbox-item:active,
.report-recommendation-item:active,
.settings-notification-row:active,
.settings-reset-button:active,
.workspace-switcher:active,
.quick-actions button:active,
.primary-action:active,
.secondary-action:active {
  transform: translateY(1px);
}

.chat-center-actions button:focus-visible,
.workflow-template-card:focus-visible,
.sop-playbook-card:focus-visible,
.report-inbox-item:focus-visible,
.report-recommendation-item:focus-visible,
.settings-notification-row:focus-visible,
.settings-reset-button:focus-visible,
.quick-actions button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 2px solid rgba(255, 205, 78, 0.82);
  outline-offset: 3px;
}

.mock-action {
  position: relative;
}

.mock-action::after {
  content: "Preview";
  display: inline-grid;
  place-items: center;
  min-height: 14px;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #c9eaff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.mock-action.flash {
  border-color: rgba(255, 205, 78, 0.55);
  box-shadow: 0 0 18px rgba(255, 205, 78, 0.18);
}

.approval-lane {
  display: flex;
  flex-direction: column;
}

.approval-item {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 205, 78, 0.2);
  border-radius: 6px;
  background: rgba(76, 56, 22, 0.42);
}

.approval-item.warning {
  border-color: rgba(255, 98, 116, 0.34);
  background: rgba(83, 30, 47, 0.54);
}

.chat-lower-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 8px;
}

.chat-lower-grid .hub-card {
  min-height: 184px;
}

.rule-list,
.activity-list {
  display: grid;
  gap: 8px;
}

.rule-list span,
.activity-list span {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.rule-list strong {
  color: #eaf8ff;
  font-size: 12px;
}

.rule-list em,
.activity-list span {
  color: #b9d9e8;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.activity-list b {
  color: #72ddff;
  margin-right: 7px;
}

.character-bank-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.25fr) minmax(260px, .75fr);
  gap: 8px;
}

.character-bank-layout.production-only {
  grid-template-columns: minmax(330px, .72fr) minmax(520px, 1.28fr);
}

.agent-capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.agent-registry-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(260px, .75fr);
  gap: 8px;
}

.character-sheet-card,
.character-detail-card {
  min-height: 0;
}

.character-sheet-image {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border: 1px solid rgba(84, 185, 244, 0.22);
  border-radius: 6px;
  background: #061421;
  image-rendering: pixelated;
}

.selected-character-preview {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin-bottom: 12px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 42%, rgba(60, 190, 255, 0.12), transparent 45%),
    rgba(3, 31, 53, 0.62);
}

.character-detail-card p {
  margin: 0;
  color: #b9d9e8;
  font-size: 12px;
  line-height: 1.45;
}

.production-character-panel {
  padding: 11px;
  border: 1px solid rgba(84, 185, 244, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(6, 50, 82, 0.78), rgba(3, 25, 45, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.active-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.registry-agent-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 112px;
  padding: 11px;
  border: 1px solid rgba(96, 207, 255, 0.22);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
  text-align: left;
}

.registry-agent-card.active,
.registry-agent-card:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 20px rgba(89, 223, 255, 0.13);
}

.registry-agent-card .profile-dot {
  align-self: start;
}

.registry-agent-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.registry-agent-copy strong,
.registry-agent-copy em,
.registry-agent-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-agent-copy strong {
  font-size: 13px;
}

.registry-agent-copy em,
.registry-agent-copy small {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
}

.registry-agent-card b {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgba(92, 231, 170, 0.22);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(7, 67, 59, 0.5);
  font-size: 9px;
  line-height: 1;
}

.production-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.production-character-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 168px;
  padding: 11px;
  border: 1px solid rgba(96, 207, 255, 0.24);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(14, 76, 112, 0.82), rgba(4, 39, 68, 0.92));
  text-align: left;
}

.production-character-card.active,
.production-character-card:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 20px rgba(89, 223, 255, 0.13);
}

.motion-stage {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 128px;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 48%, rgba(86, 218, 255, 0.18), transparent 54%),
    rgba(2, 18, 33, 0.64);
}

.detail-stage {
  overflow: visible;
  width: 284px;
  height: 312px;
}

.motion-stage::after {
  content: none;
}

.motion-ready {
  position: relative;
  z-index: 1;
  transform-origin: 50% 88%;
  animation:
    future-agent-idle 1.7s ease-in-out infinite;
}

.production-sprite {
  display: block;
  position: relative;
  z-index: 1;
  width: 122px;
  height: 122px;
  background:
    url("./assets/characters/future-agents/future-agent-production-sprite-sheet-v2.png")
    0 var(--sprite-y, 0%) / 400% 400%
    no-repeat;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.12))
    drop-shadow(0 5px 4px rgba(0, 0, 0, 0.22));
  image-rendering: pixelated;
  transform-origin: 50% 88%;
  animation:
    future-production-cycle 4.2s steps(1, end) infinite,
    future-agent-idle 2.4s ease-in-out infinite;
}

.production-sprite.large {
  width: 284px;
  height: 284px;
}

.motion-stage::before {
  content: none;
}

.detail-stage::before {
  content: none;
}

.motion-dot {
  position: absolute;
  right: 9px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cf4aa;
  box-shadow:
    0 0 0 2px rgba(5, 31, 24, 0.78),
    0 0 11px rgba(92, 244, 170, 0.72);
  animation: status-pulse 1.7s ease-in-out infinite;
}

.motion-bubble {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 4;
  max-width: 150px;
  padding: 5px 8px;
  border: 1px solid rgba(130, 230, 255, 0.34);
  border-radius: 999px;
  color: #eaf8ff;
  background: rgba(3, 31, 53, 0.92);
  box-shadow: 0 0 18px rgba(89, 223, 255, 0.18);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: motion-bubble-pop 1.55s ease-in-out infinite;
}

.production-character-copy {
  display: grid;
  gap: 3px;
}

.production-character-copy strong {
  font-size: 12px;
  line-height: 1.2;
}

.production-character-copy em,
.production-character-copy small {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

.motion-chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.motion-chip-row b {
  padding: 3px 6px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 9px;
  line-height: 1;
}

.agent-registry-detail-body {
  display: grid;
  gap: 10px;
}

.registry-detail-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.registry-detail-hero.future {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
}

.registry-detail-hero h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.registry-detail-hero p,
.registry-section p {
  margin: 5px 0 0;
  color: #b9d9e8;
  font-size: 12px;
  line-height: 1.45;
}

.registry-section {
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.registry-section strong {
  color: #eaf8ff;
  font-size: 12px;
}

.activation-card {
  min-height: 0;
}

.activation-checklist {
  display: grid;
  gap: 8px;
}

.activation-checklist span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.activation-checklist b {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #eaf8ff;
  background: rgba(35, 167, 255, 0.22);
  font-size: 11px;
}

.activation-checklist strong {
  font-size: 12px;
}

.activation-checklist em,
.activation-note {
  color: #b9d9e8;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.activation-note {
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.character-routing-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.character-routing-matrix span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.character-routing-matrix strong {
  color: #eaf8ff;
  font-size: 12px;
}

.character-routing-matrix em,
.character-routing-matrix small {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

.character-routing-matrix b {
  justify-self: start;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 9px;
  line-height: 1;
}

.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.workflow-control-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.4fr) minmax(280px, .6fr);
  gap: 8px;
}

.workflow-board-card,
.workflow-detail-card,
.workflow-approval-card,
.workflow-workload-card {
  min-width: 0;
  min-height: 0;
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.workflow-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 150px;
  min-height: 300px;
  padding: 8px;
  border: 1px solid rgba(88, 191, 255, 0.15);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.52);
}

.workflow-column.waiting-approval {
  border-color: rgba(255, 205, 78, 0.34);
  background: rgba(76, 56, 22, 0.34);
}

.workflow-column.blocked {
  border-color: rgba(255, 98, 116, 0.32);
  background: rgba(83, 30, 47, 0.36);
}

.workflow-column.done {
  border-color: rgba(92, 231, 170, 0.24);
  background: rgba(7, 67, 59, 0.28);
}

.workflow-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: #eaf8ff;
}

.workflow-column-header strong {
  font-size: 11px;
}

.workflow-column-header span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 6px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 10px;
  font-weight: 900;
}

.workflow-task-list {
  display: grid;
  gap: 8px;
}

.workflow-task-card {
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 9px;
  border: 1px solid rgba(96, 207, 255, 0.18);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
  text-align: left;
}

.workflow-task-card.active,
.workflow-task-card:hover,
.workflow-approval-item.active,
.workflow-approval-item:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
}

.workflow-task-top {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.workflow-task-top strong,
.workflow-detail-hero h3,
.workflow-template-card strong {
  color: #eaf8ff;
  font-size: 12px;
  line-height: 1.22;
}

.workflow-task-card em,
.workflow-task-card small,
.workflow-detail-hero p,
.workflow-template-card em,
.workflow-template-card small {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
  line-height: 1.32;
}

.workflow-task-card small {
  min-height: 38px;
}

.workflow-task-meta,
.workflow-safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-task-meta b,
.workflow-safety-strip span {
  padding: 3px 6px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 9px;
  line-height: 1;
}

.workflow-detail-body {
  display: grid;
  gap: 10px;
}

.workflow-detail-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.workflow-detail-hero h3,
.workflow-detail-hero p {
  margin: 0;
}

.workflow-detail-hero p {
  margin-top: 4px;
}

.workflow-lower-grid {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr);
  gap: 8px;
}

.workflow-approval-list,
.workflow-workload-list,
.workflow-template-grid {
  display: grid;
  gap: 8px;
}

.workflow-approval-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255, 205, 78, 0.22);
  border-radius: 6px;
  color: var(--text);
  background: rgba(76, 56, 22, 0.38);
  text-align: left;
}

.workflow-approval-item.warning {
  border-color: rgba(255, 98, 116, 0.34);
  background: rgba(83, 30, 47, 0.5);
}

.workflow-approval-item > span {
  grid-row: span 2;
}

.workflow-approval-item strong,
.workflow-workload-row strong {
  color: #eaf8ff;
  font-size: 12px;
}

.workflow-approval-item em,
.workflow-workload-row em {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
}

.workflow-workload-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.workflow-workload-row .tiny-avatar {
  grid-row: span 2;
}

.workflow-workload-row b {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 21, 35, 0.9);
}

.workflow-workload-row b::before {
  content: "";
  display: block;
  width: var(--load);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ce7aa, #59dfff, #ffcd4e);
}

.workflow-template-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.workflow-template-card {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(96, 207, 255, 0.2);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
  text-align: left;
}

.workflow-template-card:hover {
  border-color: rgba(96, 207, 255, 0.55);
}

.sop-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.sop-library-layout {
  display: grid;
  grid-template-columns: minmax(310px, .72fr) minmax(440px, 1.28fr);
  gap: 8px;
}

.sop-lower-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .86fr);
  gap: 8px;
}

.sop-list-card,
.sop-detail-card,
.sop-matrix-card,
.sop-rules-card {
  min-width: 0;
  min-height: 0;
}

.sop-list,
.sop-detail-body,
.sop-skill-matrix,
.sop-rule-list,
.sop-playbook-grid {
  display: grid;
  gap: 8px;
}

.sop-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 66px;
  padding: 9px;
  border: 1px solid rgba(96, 207, 255, 0.18);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
  text-align: left;
}

.sop-list-item.active,
.sop-list-item:hover,
.sop-playbook-card:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
}

.sop-list-item strong,
.sop-detail-hero h3,
.sop-playbook-card strong {
  color: #eaf8ff;
  font-size: 12px;
  line-height: 1.22;
}

.sop-list-item em,
.sop-playbook-card em,
.sop-playbook-card small,
.sop-detail-hero p,
.sop-skill-row em,
.sop-skill-row small,
.sop-rule-item em {
  color: #b9d9e8;
  font-size: 10px;
  font-style: normal;
  line-height: 1.32;
}

.sop-list-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sop-list-item b {
  padding: 4px 7px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 9px;
  line-height: 1;
}

.sop-detail-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.sop-detail-hero h3,
.sop-detail-hero p {
  margin: 0;
}

.sop-detail-hero p {
  margin-top: 4px;
}

.sop-checklist {
  display: grid;
  gap: 8px;
}

.sop-checklist span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.sop-checklist b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #eaf8ff;
  background: rgba(35, 167, 255, 0.22);
  font-size: 11px;
}

.sop-checklist em {
  color: #d8eef7;
  font-size: 11px;
  font-style: normal;
  line-height: 1.36;
}

.sop-skill-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  min-height: 74px;
  padding: 9px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.sop-skill-row .tiny-avatar {
  grid-row: span 3;
}

.sop-skill-row strong,
.sop-rule-item strong {
  color: #eaf8ff;
  font-size: 12px;
}

.sop-rule-item {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 205, 78, 0.2);
  border-radius: 6px;
  background: rgba(76, 56, 22, 0.34);
}

.sop-rule-item:nth-child(4) {
  border-color: rgba(255, 98, 116, 0.34);
  background: rgba(83, 30, 47, 0.48);
}

.sop-playbook-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.sop-playbook-card {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(96, 207, 255, 0.2);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
  text-align: left;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.report-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
}

.report-agent-card {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 11px;
  border: 1px solid rgba(96, 207, 255, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(8, 57, 91, 0.78), rgba(3, 34, 57, 0.92));
}

.report-agent-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.report-agent-head b {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 10px;
  line-height: 1;
}

.report-agent-head h3,
.report-agent-head p {
  margin: 0;
}

.report-agent-head h3 {
  color: #eaf8ff;
  font-size: 13px;
  line-height: 1.2;
}

.report-agent-head p,
.report-agent-card p,
.report-agent-card em {
  color: #b9d9e8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.report-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.report-metric-row span {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(105, 198, 255, 0.16);
  border-radius: 5px;
  background: rgba(2, 23, 39, 0.62);
}

.report-metric-row strong,
.report-metric-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-metric-row strong {
  color: #ecfbff;
  font-size: 13px;
  line-height: 1.1;
}

.report-metric-row small {
  margin-top: 3px;
  color: rgba(159, 197, 216, 0.9);
  font-size: 10px;
  font-weight: 800;
}

.report-agent-card em {
  padding: 9px;
  border: 1px solid rgba(92, 231, 170, 0.18);
  border-radius: 6px;
  background: rgba(7, 67, 59, 0.34);
  color: #dff8ff;
}

.report-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(260px, .75fr) minmax(300px, .95fr);
  gap: 8px;
}

.report-lower-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 8px;
}

.report-channel-list,
.report-trend-list,
.report-risk-list,
.report-inbox-list,
.report-recommendation-list {
  display: grid;
  gap: 8px;
}

.report-channel-row,
.report-risk-row,
.report-inbox-item,
.report-recommendation-item,
.report-trend-row {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
  color: var(--text);
  text-align: left;
}

.report-channel-row.good,
.report-channel-row.safe,
.report-trend-row.up {
  border-color: rgba(92, 231, 170, 0.22);
  background: rgba(7, 67, 59, 0.36);
}

.report-channel-row.risk,
.report-risk-row.warning {
  border-color: rgba(255, 98, 116, 0.34);
  background: rgba(83, 30, 47, 0.48);
}

.report-channel-row strong,
.report-risk-row strong,
.report-inbox-item strong,
.report-recommendation-item strong,
.report-trend-row strong {
  color: #eaf8ff;
  font-size: 13px;
  line-height: 1.24;
}

.report-channel-row b,
.report-risk-row b,
.report-inbox-item b,
.report-recommendation-item span {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.report-channel-row em,
.report-risk-row em,
.report-inbox-item em,
.report-recommendation-item em,
.report-trend-row em {
  color: #b9d9e8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.report-inbox-item:hover,
.report-recommendation-item:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
}

.report-trend-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.report-trend-row b {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 21, 35, 0.9);
}

.report-trend-row b::before {
  content: "";
  display: block;
  width: var(--trend);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ce7aa, #59dfff, #ffcd4e);
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.settings-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.settings-readiness-grid,
.settings-backend-grid,
.readonly-scope-grid,
.settings-main-grid,
.settings-lower-grid,
.settings-data-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 8px;
}

.settings-readiness-grid {
  grid-template-columns: minmax(460px, 1.35fr) minmax(280px, .65fr);
}

.settings-backend-grid {
  grid-template-columns: 1fr;
}

.workspace-setup-form {
  display: grid;
  gap: 12px;
}

.workspace-setup-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.workspace-logo-preview {
  flex: 0 0 auto;
}

.workspace-setup-preview strong {
  display: block;
  color: #eaf8ff;
  font-size: 14px;
  line-height: 1.2;
}

.workspace-setup-preview span:not(.logo-b):not(.logo-v) {
  display: block;
  margin-top: 4px;
  color: #b9d9e8;
  font-size: 12px;
  line-height: 1.35;
}

.workspace-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.workspace-setup-grid label,
.workspace-config-preview {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #dff8ff;
  font-size: 12px;
  font-weight: 900;
}

.workspace-logo-field {
  grid-column: span 2;
}

.workspace-setup-grid input,
.workspace-config-preview textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(88, 191, 255, 0.22);
  border-radius: 6px;
  background: rgba(2, 18, 31, 0.78);
  color: #effbff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.workspace-setup-grid input {
  min-height: 38px;
  padding: 0 10px;
}

.workspace-setup-grid input:focus,
.workspace-config-preview textarea:focus {
  border-color: rgba(96, 207, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(89, 223, 255, 0.1);
}

.workspace-upload-field input {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #b9d9e8;
}

.workspace-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.workspace-setup-actions .settings-reset-button,
.workspace-setup-actions .backend-sync-button {
  min-height: 38px;
  padding-inline: 12px;
}

.workspace-config-preview textarea {
  min-height: 144px;
  padding: 10px;
  resize: vertical;
  color: #bfefff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.backend-sync-heading {
  align-items: center;
}

.backend-sync-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.backend-sync-button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(96, 207, 255, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(11, 101, 166, 0.88), rgba(7, 67, 116, 0.94));
  color: #eaf8ff;
  font-size: 10px;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
}

.backend-sync-button:hover,
.backend-sync-button:focus-visible {
  border-color: rgba(96, 207, 255, 0.68);
  box-shadow: 0 0 16px rgba(89, 223, 255, 0.14);
  outline: none;
}

.backend-sync-button:active {
  transform: translateY(1px);
}

.backend-sync-button:disabled {
  cursor: wait;
  opacity: .62;
}

.readonly-pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}

.settings-connection-list,
.settings-permission-list,
.settings-rule-list,
.settings-notification-list,
.settings-data-list,
.production-readiness-list,
.launch-gate-list,
.backend-sync-list,
.readonly-api-list,
.backend-service-list {
  display: grid;
  gap: 8px;
}

.settings-audit-list,
.settings-audit-rows {
  display: grid;
  gap: 8px;
}

.settings-mode-card,
.settings-connection-row,
.settings-rule-row,
.settings-notification-row,
.settings-data-row,
.settings-audit-row,
.production-readiness-row,
.launch-gate-row,
.backend-sync-row,
.readonly-pilot-row,
.readonly-api-row,
.backend-service-row {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
  color: var(--text);
  text-align: left;
}

.settings-mode-card.safe,
.settings-connection-row.safe,
.production-readiness-row.safe,
.launch-gate-row.safe,
.backend-sync-row.safe,
.readonly-pilot-row.safe,
.readonly-api-row.safe,
.backend-service-row.safe {
  border-color: rgba(92, 231, 170, 0.22);
  background: rgba(7, 67, 59, 0.36);
}

.settings-mode-card.review,
.settings-connection-row.review,
.settings-rule-row,
.production-readiness-row.review,
.launch-gate-row.review,
.backend-sync-row.review,
.readonly-pilot-row.review,
.readonly-api-row.review,
.backend-service-row.review {
  border-color: rgba(255, 205, 78, 0.22);
  background: rgba(76, 56, 22, 0.34);
}

.settings-mode-card.locked,
.settings-connection-row.locked,
.settings-rule-row.locked,
.production-readiness-row.locked,
.launch-gate-row.locked,
.backend-sync-row.locked,
.readonly-pilot-row.locked,
.readonly-api-row.locked,
.backend-service-row.locked {
  border-color: rgba(255, 98, 116, 0.34);
  background: rgba(83, 30, 47, 0.48);
}

.settings-mode-card strong,
.settings-connection-row strong,
.settings-permission-row strong,
.settings-rule-row strong,
.settings-notification-row strong,
.settings-data-row strong,
.settings-audit-row strong,
.production-readiness-row strong,
.launch-gate-row strong,
.backend-sync-row strong,
.readonly-pilot-row strong,
.readonly-api-row strong,
.backend-service-row strong {
  color: #eaf8ff;
  font-size: 13px;
  line-height: 1.24;
}

.settings-audit-row {
  min-height: 54px;
  padding-block: 8px;
}

.settings-audit-pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(2, 20, 34, 0.68);
}

.settings-audit-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.settings-audit-page {
  min-width: 30px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(88, 191, 255, 0.24);
  border-radius: 6px;
  background: rgba(7, 50, 80, 0.7);
  color: #dff8ff;
  font-size: 11px;
  font-weight: 900;
}

.settings-audit-page.nav {
  min-width: 58px;
}

.settings-audit-page.active {
  border-color: rgba(255, 205, 78, 0.56);
  color: #fff6d2;
  background: rgba(76, 56, 22, 0.62);
}

.settings-audit-page:disabled {
  cursor: default;
  opacity: .42;
}

.settings-audit-gap {
  color: #86b5ca;
  font-size: 11px;
  font-weight: 900;
}

.settings-audit-page:not(:disabled):hover,
.settings-audit-page:not(:disabled):focus-visible {
  border-color: rgba(96, 207, 255, 0.68);
  box-shadow: 0 0 14px rgba(89, 223, 255, 0.12);
  outline: none;
}

.settings-audit-count {
  display: block;
  color: #9bc4d7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.settings-mode-card b,
.settings-connection-row b,
.settings-notification-row b,
.settings-data-row b,
.settings-audit-row b,
.production-readiness-row b,
.launch-gate-row b,
.backend-sync-row b,
.readonly-pilot-row b,
.readonly-api-row b,
.backend-service-row b {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgba(100, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 70, 106, 0.58);
  color: #dff8ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.settings-mode-card em,
.settings-connection-row em,
.settings-permission-row em,
.settings-permission-row small,
.settings-rule-row em,
.settings-notification-row em,
.settings-data-row em,
.settings-audit-row em,
.production-readiness-row em,
.launch-gate-row em,
.backend-sync-row em,
.readonly-pilot-row em,
.readonly-api-row em,
.readonly-api-row small,
.backend-service-row em {
  color: #b9d9e8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.readiness-meter {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(92, 231, 170, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(7, 67, 59, 0.42), rgba(3, 31, 53, 0.72));
}

.readiness-meter div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.readiness-meter strong {
  color: #effbff;
  font-size: 24px;
  line-height: 1;
}

.readiness-meter span {
  color: #b9d9e8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.32;
  text-align: right;
}

.readiness-meter b {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 21, 35, 0.9);
}

.readiness-meter b::before {
  content: "";
  display: block;
  width: var(--ready);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ce7aa, #59dfff, #ffcd4e);
}

.production-readiness-row,
.launch-gate-row,
.backend-sync-row,
.readonly-pilot-row,
.backend-service-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.production-readiness-row em,
.launch-gate-row em,
.backend-sync-row em,
.readonly-pilot-row em,
.backend-service-row em {
  grid-column: 1 / -1;
}

.readonly-api-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.readonly-api-row em,
.readonly-api-row small {
  grid-column: 1 / -1;
}

.readonly-api-row small {
  display: block;
}

.settings-permission-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(88, 191, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 31, 53, 0.62);
}

.settings-permission-row .tiny-avatar {
  grid-row: span 4;
}

.settings-permission-row small {
  display: grid;
  gap: 2px;
}

.settings-permission-row small b {
  color: #72ddff;
  font-size: 10px;
}

.settings-notification-row:hover,
.settings-reset-button:hover {
  border-color: rgba(96, 207, 255, 0.62);
  box-shadow:
    inset 3px 0 0 #59dfff,
    0 0 18px rgba(89, 223, 255, 0.12);
}

.settings-reset-button {
  min-height: 42px;
  border: 1px solid rgba(255, 205, 78, 0.28);
  border-radius: 6px;
  color: #fff4c7;
  background: rgba(76, 56, 22, 0.44);
  font-size: 12px;
  font-weight: 900;
}

/* Readability pass: gently raise working text without making the dense dashboard feel oversized. */
.nav-item,
.workspace-name {
  font-size: 14px;
}

.view-kicker,
.profile-kicker {
  font-size: 10px;
}

.view-hero h1 {
  font-size: 26px;
  line-height: 1.12;
}

.view-hero p {
  font-size: 14px;
  line-height: 1.52;
}

.view-status-pill,
.section-heading h2,
.section-heading span,
.summary-tile span,
.hub-note,
.command-item small,
.approval-item span,
.rule-list em,
.activity-list span,
.registry-section p,
.activation-note,
.workflow-task-card em,
.workflow-task-card small,
.workflow-template-card em,
.workflow-template-card small,
.sop-list-item em,
.sop-playbook-card em,
.sop-playbook-card small,
.sop-detail-hero p,
.sop-skill-row em,
.sop-skill-row small,
.sop-rule-item em {
  font-size: 12px;
  line-height: 1.42;
}

.command-item strong,
.thread-card strong,
.approval-item strong,
.rule-list strong,
.registry-section strong,
.activation-checklist strong,
.character-routing-matrix strong,
.workflow-task-top strong,
.workflow-detail-hero h3,
.workflow-template-card strong,
.workflow-approval-item strong,
.workflow-workload-row strong,
.sop-list-item strong,
.sop-detail-hero h3,
.sop-playbook-card strong,
.sop-skill-row strong,
.sop-rule-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.thread-card p,
.character-detail-card p,
.registry-detail-hero p,
.production-character-copy em,
.production-character-copy small,
.activation-checklist em,
.character-routing-matrix em,
.character-routing-matrix small,
.workflow-detail-hero p,
.sop-checklist em {
  font-size: 12px;
  line-height: 1.42;
}

.registry-agent-copy strong,
.production-character-copy strong {
  font-size: 13px;
}

.registry-agent-copy em,
.registry-agent-copy small,
.workflow-approval-item em,
.workflow-workload-row em {
  font-size: 11px;
  line-height: 1.34;
}

.agent-profile h3,
.chat-header h2 {
  font-size: 14px;
}

.chat-header p,
.agent-profile p,
.agent-focus-list li,
.message .author,
.composer input:not(.attachment-input),
.primary-action,
.secondary-action,
.chat-center-actions button {
  font-size: 12px;
}

.bubble {
  font-size: 12.6px;
  line-height: 1.5;
}

.agent-status-grid strong {
  font-size: 11.2px;
}

.agent-status-grid small,
.message .author em,
.quick-actions button,
.tool-strip span,
.registry-agent-card b,
.motion-chip-row b,
.character-routing-matrix b,
.workflow-task-meta b,
.workflow-safety-strip span,
.sop-list-item b {
  font-size: 10px;
}

.metric-card span,
.connection-card span {
  font-size: 10px;
}

.connection-card strong {
  font-size: 9.5px;
}

.progress-row strong {
  font-size: 11px;
}

@keyframes future-agent-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes future-agent-work {
  0%, 100% {
    filter: brightness(1);
    transform: rotate(0deg) scale(1);
  }

  25% {
    filter: brightness(1.08);
    transform: rotate(-3deg) scale(1.035);
  }

  50% {
    filter: brightness(1);
    transform: rotate(0deg) scale(1);
  }

  75% {
    filter: brightness(1.08);
    transform: rotate(3deg) scale(1.03);
  }
}

@keyframes future-agent-blink {
  0%, 91%, 100% { opacity: 0; }
  93%, 95% { opacity: .72; }
}

@keyframes future-production-cycle {
  0%, 26%, 100% { background-position: 0 var(--sprite-y, 0%); }
  30%, 38% { background-position: 33.333% var(--sprite-y, 0%); }
  48%, 68% { background-position: 66.667% var(--sprite-y, 0%); }
  78%, 90% { background-position: 100% var(--sprite-y, 0%); }
}

@keyframes motion-bubble-pop {
  0%, 100% {
    opacity: .62;
    translate: 0 1px;
  }

  45%, 65% {
    opacity: 1;
    translate: 0 -5px;
  }
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  max-width: min(460px, calc(100vw - 32px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 205, 78, 0.44);
  border-radius: 6px;
  color: #fff6d2;
  background: rgba(45, 33, 12, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 82px minmax(650px, 1fr) 341px;
  }

  .chat-panel {
    grid-column: auto;
    min-height: 0;
  }

  .brand > div:not(.brand-mark),
  .nav-item span:last-child,
  .workspace-switcher > div,
  .workspace-caret {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .connection-card {
    max-width: 116px;
  }

  .office-map {
    height: clamp(400px, calc(100vh - 270px), 610px);
    width: min(100%, calc(clamp(400px, calc(100vh - 270px), 610px) * 1.5));
  }

  .command-map-card .office-map {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: clamp(460px, 58vh, 720px);
    aspect-ratio: 3 / 2;
  }

  .metrics-grid {
    grid-template-columns: repeat(7, minmax(72px, 1fr));
  }

  .command-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-card {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 5px 6px;
  }

  .chat-center-layout {
    grid-template-columns: 1fr;
  }

  .chat-summary-grid,
  .chat-lower-grid,
  .command-center-grid,
  .command-lower-grid,
  .character-bank-layout,
  .agent-registry-layout,
  .agent-capacity-grid,
  .active-agent-grid,
  .character-routing-matrix,
  .workflow-summary-grid,
  .workflow-control-grid,
  .workflow-lower-grid,
  .workflow-template-grid,
  .sop-summary-grid,
  .sop-library-layout,
  .sop-lower-grid,
  .sop-playbook-grid,
  .report-summary-grid,
  .report-agent-grid,
  .report-main-grid,
  .report-lower-grid,
  .settings-summary-grid,
  .settings-mode-grid,
  .settings-readiness-grid,
  .settings-backend-grid,
  .readonly-pilot-grid,
  .readonly-scope-grid,
  .settings-main-grid,
  .settings-lower-grid,
  .settings-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-center-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
  }

  .chat-panel {
    grid-column: 1 / -1;
    min-height: 540px;
  }

  .topbar {
    overflow-x: auto;
  }

  .connection-card {
    flex: 0 0 116px;
  }

  .office-map {
    width: 100%;
    height: auto;
    min-height: 360px;
  }

  .command-map-card .office-map {
    width: 100%;
    height: auto;
    min-height: 340px;
  }

  .command-side-panel {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .chat-summary-grid,
  .chat-lower-grid,
  .command-center-grid,
  .command-lower-grid,
  .character-bank-layout,
  .agent-registry-layout,
  .agent-capacity-grid,
  .active-agent-grid,
  .character-routing-matrix,
  .production-character-grid,
  .workflow-summary-grid,
  .workflow-control-grid,
  .workflow-lower-grid,
  .workflow-template-grid,
  .sop-summary-grid,
  .sop-library-layout,
  .sop-lower-grid,
  .sop-playbook-grid,
  .report-summary-grid,
  .report-agent-grid,
  .report-main-grid,
  .report-lower-grid,
  .settings-summary-grid,
  .settings-mode-grid,
  .settings-readiness-grid,
  .settings-backend-grid,
  .readonly-pilot-grid,
  .readonly-scope-grid,
  .settings-main-grid,
  .settings-lower-grid,
  .settings-data-grid {
    grid-template-columns: 1fr;
  }

  .workspace-setup-grid {
    grid-template-columns: 1fr;
  }

  .workspace-logo-field {
    grid-column: auto;
  }

  .workflow-board {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 8px;
    overflow-x: hidden;
  }

  .sidebar,
  .main-panel,
  .chat-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar {
    display: flex;
    padding: 10px;
  }

  .brand {
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .brand > div:not(.brand-mark),
  .nav-item span:last-child,
  .workspace-switcher > div,
  .workspace-caret {
    display: block;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .nav-item {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 8px;
    justify-items: stretch;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .workspace-switcher {
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    margin-top: 10px;
    min-height: 48px;
  }

  .main-panel {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .workspace-view,
  .workspace-view.active,
  .dashboard-card,
  .progress-panel,
  .view-hero,
  .summary-tile,
  .hub-card,
  .production-character-panel,
  .registry-agent-card,
  .production-character-card,
  .workflow-task-card,
  .workflow-column,
  .workflow-template-card,
  .sop-list-item,
  .sop-playbook-card,
  .sop-skill-row,
  .sop-rule-item,
  .report-agent-card,
  .report-channel-row,
  .report-risk-row,
  .report-inbox-item,
  .report-recommendation-item,
  .report-trend-row,
  .settings-mode-card,
  .settings-connection-row,
  .settings-permission-row,
  .settings-rule-row,
  .settings-notification-row,
  .settings-data-row,
  .settings-audit-row,
  .production-readiness-row,
  .launch-gate-row,
  .backend-sync-row,
  .readonly-pilot-row,
  .readonly-api-row,
  .backend-service-row,
  .workspace-setup-form,
  .workspace-setup-preview,
  .workspace-setup-grid,
  .workspace-config-preview,
  .command-center-grid,
  .command-lower-grid,
  .decision-row,
  .overview-backend-row,
  .overview-agent-row,
  .overview-activity-row {
    max-width: 100%;
    min-width: 0;
  }

  .topbar {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .connection-card {
    flex: 0 0 118px;
  }

  .boss-pill {
    flex: 0 0 82px;
  }

  .office-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 240px;
    aspect-ratio: 3 / 2;
  }

  .office-floor {
    inset: 4px;
  }

  .animated-scene .agent {
    width: 58px;
    height: 86px;
  }

  .animated-scene .agent-sprite {
    width: 54px;
    height: 54px;
  }

  .animated-scene .agent-tag {
    max-width: 58px;
    font-size: 8px;
  }

  .animated-scene .agent-activity {
    max-width: 86px;
    min-width: 58px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .metrics-grid,
  .progress-list,
  .chat-summary-grid,
  .chat-lower-grid,
  .character-bank-layout,
  .character-bank-layout.production-only,
  .agent-registry-layout,
  .agent-capacity-grid,
  .active-agent-grid,
  .character-routing-matrix,
  .production-character-grid,
  .workflow-summary-grid,
  .workflow-control-grid,
  .workflow-lower-grid,
  .workflow-template-grid,
  .sop-summary-grid,
  .sop-library-layout,
  .sop-lower-grid,
  .sop-playbook-grid,
  .report-summary-grid,
  .report-agent-grid,
  .report-main-grid,
  .report-lower-grid,
  .settings-summary-grid,
  .settings-mode-grid,
  .settings-readiness-grid,
  .settings-backend-grid,
  .readonly-pilot-grid,
  .readonly-scope-grid,
  .settings-main-grid,
  .settings-lower-grid,
  .settings-data-grid {
    grid-template-columns: 1fr;
  }

  .workflow-board {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .workflow-column {
    flex: 0 0 min(270px, 84vw);
    scroll-snap-align: start;
  }

  .metric-card {
    min-height: 48px;
  }

  .view-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .view-hero h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .view-hero p,
  .registry-detail-hero p,
  .registry-section p {
    overflow-wrap: anywhere;
  }

  .view-status-pill {
    width: 100%;
  }

  .backend-sync-control {
    width: 100%;
    justify-content: space-between;
  }

  .chat-center-layout {
    grid-template-columns: 1fr;
  }

  .thread-card.agent-reply {
    margin-left: 0;
  }

  .chat-center-actions {
    grid-template-columns: 1fr;
  }

  .character-bank-layout.production-only {
    display: grid;
  }

  .selected-character-preview {
    min-height: 260px;
  }

  .detail-stage {
    width: 230px;
    height: 256px;
  }

  .production-sprite.large {
    width: 230px;
    height: 230px;
  }

  .production-character-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 150px;
    gap: 10px;
  }

  .registry-detail-hero.future {
    grid-template-columns: 1fr;
  }

  .motion-stage {
    width: 104px;
    height: 126px;
  }

  .production-sprite {
    width: 100px;
    height: 100px;
  }

  .chat-panel {
    min-height: 680px;
  }
}

.workspace-view[data-view-panel="overview"].active .command-map-card {
  display: block;
}

.workspace-view[data-view-panel="overview"].active .command-map-card .office-map {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  margin: 0 !important;
}

.workspace-view[data-view-panel="overview"].active .command-map-card .office-floor {
  inset: 4px;
}

.workspace-view[data-view-panel="overview"].active .animated-scene {
  --overview-agent-width: clamp(96px, 6vw, 136px);
  --overview-agent-height: clamp(132px, 8.2vw, 184px);
  --overview-agent-sprite: clamp(88px, 5.6vw, 126px);
  --overview-agent-tag-width: clamp(78px, 5.6vw, 118px);
  --overview-agent-bubble-width: clamp(118px, 7.4vw, 168px);
  --overview-agent-font: clamp(9px, 0.58vw, 12px);
  --overview-agent-bubble-font: clamp(9px, 0.64vw, 12.5px);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent {
  width: var(--overview-agent-width);
  height: var(--overview-agent-height);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent-sprite {
  width: var(--overview-agent-sprite);
  height: var(--overview-agent-sprite);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent::after {
  width: calc(var(--overview-agent-sprite) * 0.56);
  height: calc(var(--overview-agent-sprite) * 0.12);
  margin-top: calc(var(--overview-agent-sprite) * -0.12);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent::before {
  left: calc(50% + (var(--overview-agent-sprite) * 0.23));
  top: calc(var(--overview-agent-sprite) * 0.37);
  width: calc(var(--overview-agent-sprite) * 0.095);
  height: calc(var(--overview-agent-sprite) * 0.095);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent-tag {
  max-width: var(--overview-agent-tag-width);
  padding: 3px 8px;
  font-size: var(--overview-agent-font);
}

.workspace-view[data-view-panel="overview"].active .animated-scene .agent-activity {
  max-width: var(--overview-agent-bubble-width);
  min-width: calc(var(--overview-agent-bubble-width) * 0.72);
  min-height: calc(var(--overview-agent-sprite) * 0.25);
  padding: 5px 9px;
  font-size: var(--overview-agent-bubble-font);
}

@media (min-width: 1600px) and (min-height: 1100px) and (max-aspect-ratio: 3 / 2) {
  .workspace-view[data-view-panel="overview"].active .animated-scene {
    --overview-agent-width: clamp(140px, 7vw, 190px);
    --overview-agent-height: clamp(190px, 9.6vw, 252px);
    --overview-agent-sprite: clamp(128px, 6.4vw, 174px);
    --overview-agent-tag-width: clamp(112px, 5.9vw, 154px);
    --overview-agent-bubble-width: clamp(168px, 8.2vw, 226px);
    --overview-agent-font: clamp(11px, 0.54vw, 14px);
    --overview-agent-bubble-font: clamp(11px, 0.6vw, 14.5px);
  }
}

@media (max-width: 980px) {
  .workspace-view[data-view-panel="overview"].active .animated-scene {
    --overview-agent-width: 82px;
    --overview-agent-height: 122px;
    --overview-agent-sprite: 76px;
    --overview-agent-tag-width: 68px;
    --overview-agent-bubble-width: 108px;
    --overview-agent-font: 9px;
    --overview-agent-bubble-font: 9px;
  }
}

@media (max-width: 720px) {
  .workspace-view[data-view-panel="overview"].active .animated-scene {
    --overview-agent-width: 58px;
    --overview-agent-height: 86px;
    --overview-agent-sprite: 54px;
    --overview-agent-tag-width: 58px;
    --overview-agent-bubble-width: 86px;
    --overview-agent-font: 8px;
    --overview-agent-bubble-font: 8px;
  }
}

.workspace-view[data-view-panel="overview"].active .office-map {
  container: overview-office-map / inline-size;
}

@container overview-office-map (min-width: 650px) {
  .workspace-view[data-view-panel="overview"].active .animated-scene .agent {
    --overview-agent-width: clamp(96px, 8.2cqw, 152px);
    --overview-agent-height: clamp(136px, 11.4cqw, 210px);
    --overview-agent-sprite: clamp(90px, 7.6cqw, 142px);
    --overview-agent-tag-width: clamp(80px, 6.4cqw, 122px);
    --overview-agent-bubble-width: clamp(120px, 9.8cqw, 184px);
    --overview-agent-font: clamp(9px, 0.9cqw, 12px);
    --overview-agent-bubble-font: clamp(9.5px, 1cqw, 12.8px);
  }
}

@container overview-office-map (min-width: 1000px) {
  .workspace-view[data-view-panel="overview"].active .animated-scene .agent {
    --overview-agent-width: clamp(124px, 8.4cqw, 184px);
    --overview-agent-height: clamp(172px, 11.6cqw, 254px);
    --overview-agent-sprite: clamp(116px, 7.7cqw, 172px);
    --overview-agent-tag-width: clamp(100px, 6.4cqw, 150px);
    --overview-agent-bubble-width: clamp(152px, 9.5cqw, 224px);
    --overview-agent-font: clamp(10px, 0.8cqw, 14px);
    --overview-agent-bubble-font: clamp(10.5px, 0.86cqw, 14.5px);
  }
}

@container overview-office-map (min-width: 1500px) {
  .workspace-view[data-view-panel="overview"].active .animated-scene .agent {
    --overview-agent-width: clamp(150px, 8.2cqw, 210px);
    --overview-agent-height: clamp(204px, 11.2cqw, 284px);
    --overview-agent-sprite: clamp(140px, 7.4cqw, 194px);
    --overview-agent-tag-width: clamp(122px, 6.1cqw, 166px);
    --overview-agent-bubble-width: clamp(184px, 9.2cqw, 248px);
    --overview-agent-font: clamp(11px, 0.72cqw, 15px);
    --overview-agent-bubble-font: clamp(11.5px, 0.78cqw, 15px);
  }
}

body[data-display-preset="office-2360"][data-active-view="overview"] .app-shell,
body[data-display-preset="office-2560"][data-active-view="overview"] .app-shell {
  grid-template-columns: clamp(152px, 7vw, 184px) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .chat-panel,
body[data-display-preset="office-2560"][data-active-view="overview"] .chat-panel {
  display: none;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .sidebar,
body[data-display-preset="office-2560"][data-active-view="overview"] .sidebar {
  padding: 9px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .workspace-view.active,
body[data-display-preset="office-2560"][data-active-view="overview"] .workspace-view.active {
  gap: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-center-hero,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-center-hero {
  min-height: 74px;
  padding: 10px 14px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-center-hero p,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-center-hero p {
  max-width: 920px;
  margin-top: 4px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-summary-grid,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-summary-grid .metric-card,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-summary-grid .metric-card {
  min-height: 48px;
  padding: 6px 9px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-map-card,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-map-card {
  padding: 6px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-map-card .section-heading,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-map-card .section-heading {
  min-height: 22px;
  margin-bottom: 4px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-map-card .office-map,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-map-card .office-map {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  margin: 0 !important;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-map-card .office-floor,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-map-card .office-floor {
  inset: 3px;
  border-width: 5px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .hint-line,
body[data-display-preset="office-2560"][data-active-view="overview"] .hint-line {
  margin-top: 4px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-side-panel,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-side-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

body[data-display-preset="office-2360"][data-active-view="overview"] .command-lower-grid,
body[data-display-preset="office-2560"][data-active-view="overview"] .command-lower-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-display-preset="office-2360"][data-active-view="overview"] .decision-row,
body[data-display-preset="office-2360"][data-active-view="overview"] .overview-backend-row,
body[data-display-preset="office-2360"][data-active-view="overview"] .overview-agent-row,
body[data-display-preset="office-2360"][data-active-view="overview"] .overview-activity-row,
body[data-display-preset="office-2560"][data-active-view="overview"] .decision-row,
body[data-display-preset="office-2560"][data-active-view="overview"] .overview-backend-row,
body[data-display-preset="office-2560"][data-active-view="overview"] .overview-agent-row,
body[data-display-preset="office-2560"][data-active-view="overview"] .overview-activity-row {
  min-height: 50px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .progress-list,
body[data-display-preset="office-2560"][data-active-view="overview"] .progress-list {
  grid-template-columns: repeat(auto-fit, minmax(min(142px, 100%), 1fr));
}

body[data-display-preset="office-2360"][data-active-view="overview"] .animated-scene .agent {
  --overview-agent-width: clamp(138px, 7.4cqw, 198px);
  --overview-agent-height: clamp(188px, 10.2cqw, 268px);
  --overview-agent-sprite: clamp(128px, 6.8cqw, 184px);
  --overview-agent-tag-width: clamp(112px, 5.8cqw, 156px);
  --overview-agent-bubble-width: clamp(168px, 8.6cqw, 234px);
  --overview-agent-font: clamp(10.5px, 0.62cqw, 14px);
  --overview-agent-bubble-font: clamp(11px, 0.68cqw, 14.5px);
}

body[data-display-preset="office-2560"][data-active-view="overview"] .animated-scene .agent {
  --overview-agent-width: clamp(146px, 7.3cqw, 210px);
  --overview-agent-height: clamp(198px, 10.1cqw, 284px);
  --overview-agent-sprite: clamp(136px, 6.7cqw, 194px);
  --overview-agent-tag-width: clamp(118px, 5.7cqw, 166px);
  --overview-agent-bubble-width: clamp(178px, 8.4cqw, 248px);
  --overview-agent-font: clamp(11px, 0.6cqw, 15px);
  --overview-agent-bubble-font: clamp(11.5px, 0.66cqw, 15px);
}

.tiny-avatar,
.profile-dot,
.message-avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  flex: 0 0 auto;
}

.tiny-avatar {
  width: 20px;
  height: 20px;
}

.active-stack .tiny-avatar {
  width: 20px;
  height: 20px;
}

.boss-pill .tiny-avatar {
  width: 22px;
  height: 22px;
}

.message-avatar {
  width: 28px;
  height: 28px;
}

.profile-dot {
  width: 34px !important;
  height: 34px !important;
}

.registry-agent-card .profile-dot,
.registry-detail-hero .profile-dot,
.report-agent-card .profile-dot {
  width: 38px !important;
  height: 38px !important;
}

.workflow-workload-row .tiny-avatar,
.sop-skill-row .tiny-avatar,
.settings-permission-row .tiny-avatar,
.overview-agent-row .tiny-avatar {
  align-self: center;
  justify-self: center;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .app-shell,
body[data-display-preset="office-2560"][data-active-view="overview"] .app-shell {
  grid-template-columns: clamp(152px, 6.8vw, 176px) minmax(0, 1fr) clamp(260px, 11.2vw, 292px);
  gap: 8px;
  padding: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .chat-panel,
body[data-display-preset="office-2560"][data-active-view="overview"] .chat-panel {
  display: flex;
  padding: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .chat-header,
body[data-display-preset="office-2560"][data-active-view="overview"] .chat-header {
  margin-bottom: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .agent-profile,
body[data-display-preset="office-2560"][data-active-view="overview"] .agent-profile {
  gap: 7px;
  padding: 7px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .messages,
body[data-display-preset="office-2560"][data-active-view="overview"] .messages {
  gap: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .quick-actions,
body[data-display-preset="office-2560"][data-active-view="overview"] .quick-actions {
  gap: 5px;
  margin-top: 8px;
}

body[data-display-preset="office-2360"][data-active-view="overview"] .quick-actions button,
body[data-display-preset="office-2560"][data-active-view="overview"] .quick-actions button {
  min-height: 27px;
  padding-inline: 8px;
}

body[data-auth-state="checking"],
body[data-auth-state="signed-out"] {
  min-height: 100vh;
}

body[data-auth-state="checking"] .app-shell,
body[data-auth-state="signed-out"] .app-shell,
body[data-auth-state="checking"] .login-screen,
body[data-auth-state="signed-in"] .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(8, 31, 46, 0.88), rgba(6, 20, 30, 0.96)),
    url("./assets/benz-office-no-chairs.png") center / min(92vw, 980px) auto no-repeat;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(102, 185, 230, 0.42);
  border-radius: 8px;
  background: rgba(5, 24, 36, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand span {
  display: block;
  color: rgba(193, 226, 245, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.login-brand h1 {
  margin: 3px 0 0;
  color: #f3fbff;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.1;
}

.login-copy,
.login-note {
  margin: 0;
  color: rgba(213, 234, 246, 0.78);
  line-height: 1.55;
}

.login-note {
  font-size: 0.82rem;
}

.login-field {
  display: grid;
  gap: 8px;
  color: rgba(229, 243, 250, 0.88);
  font-size: 0.92rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(117, 190, 229, 0.44);
  border-radius: 6px;
  outline: none;
  background: rgba(1, 15, 24, 0.86);
  color: #f5fbff;
  font: inherit;
}

.login-field input:focus {
  border-color: rgba(111, 211, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(63, 169, 220, 0.18);
}

.login-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: #ffb5a8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-submit,
.owner-logout-button {
  border: 1px solid rgba(105, 189, 232, 0.56);
  border-radius: 6px;
  background: linear-gradient(180deg, #197aaa, #0e5b85);
  color: #f4fbff;
  font-weight: 900;
  cursor: pointer;
}

.login-submit {
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.98rem;
}

.login-submit:hover,
.login-submit:focus-visible,
.owner-logout-button:hover,
.owner-logout-button:focus-visible {
  border-color: rgba(165, 225, 255, 0.92);
  filter: brightness(1.08);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.owner-logout-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

@media (max-width: 620px) {
  .login-screen {
    align-items: stretch;
    padding: 14px;
  }

  .login-card {
    align-self: center;
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .command-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .command-summary-grid .metric-card {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 12px;
  }

  .command-summary-grid .metric-card .metric-icon {
    grid-column: 1;
    justify-self: center;
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .command-summary-grid .metric-card .metric-icon::before {
    inset: 6px;
    border-radius: 6px;
  }

  .command-summary-grid .metric-card .metric-icon .pixel-icon {
    width: 20px;
    height: 20px;
  }

  .command-summary-grid .metric-card > div {
    grid-column: 2;
    display: grid;
    gap: 3px;
    min-width: 0;
    text-align: left;
  }

  .command-summary-grid .metric-card > div > strong {
    font-size: 21px;
    line-height: 1;
  }

  .command-summary-grid .metric-card > div > span {
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .message-content {
    gap: 8px;
  }

  .message .author {
    line-height: 1.15;
  }

  .message.mine .author {
    justify-content: flex-end;
  }

  .bubble {
    margin-top: 0;
  }
}
