:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #fff;
  --bg-base: #0a0a0a;
  --bg-elevated: #141414;
  --bg-hover: #1c1c1c;
  --bg-inset: #1a1a1a;
  --border-subtle: rgb(255 255 255 / 6%);
  --border-strong: rgb(255 255 255 / 12%);
  --text-primary: #fff;
  --text-secondary: #888;
  --text-tertiary: #555;
  --brand: #6c5ce7;
  --brand-light: #a29bfe;
  --brand-glow: rgb(108 92 231 / 25%);
  --status-idle: #555;
  --status-busy: #4facfe;
  --status-speaking: #a29bfe;
  --status-offline: #2a2a2a;
  --status-complete: #50e3c2;
  --glass-bg: rgb(255 255 255 / 4%);
  --glass-border: rgb(255 255 255 / 6%);
}

* {
  box-sizing: border-box;
  font-style: normal !important;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px 14px;
  background: #111827;
  color: white;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
}

.topbar p {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

button,
select,
input {
  min-height: 40px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: white;
  color: #172033;
  font: inherit;
}

button {
  padding: 0 14px;
  font-weight: 650;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  background: #e8edf3;
  color: #324154;
}

.tab.active {
  border-color: #1f6fbc;
  background: #155a9c;
  color: #fff;
}

.toolbar {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.toolbar.single {
  grid-template-columns: 1fr;
}

.panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: white;
}

.panel h2 {
  font-size: 17px;
}

.compact-list {
  margin-bottom: 12px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.task-card {
  border-color: #cfd8e5;
  background: #f8fafc;
}

.command-center {
  position: relative;
  overflow: hidden;
  margin: -14px;
  min-height: calc(100vh - 82px);
  padding: 18px;
  color: #edf5ff;
  background:
    linear-gradient(135deg, rgb(5 10 20 / 96%), rgb(13 23 35 / 96%)),
    linear-gradient(90deg, rgb(88 213 201 / 6%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(88 213 201 / 5%) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
}

.command-center > *:not(.starfield) {
  position: relative;
  z-index: 1;
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
}

.starfield::before,
.starfield::after {
  position: absolute;
  inset: -80px;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 52%) 1px, transparent 1.5px),
    radial-gradient(circle, rgb(88 213 201 / 42%) 1px, transparent 1.5px);
  background-position: 0 0, 38px 58px;
  background-size: 118px 118px, 164px 164px;
  content: "";
  animation: driftStars 24s linear infinite;
}

.starfield::after {
  opacity: 0.55;
  transform: scale(1.3);
  animation-duration: 38s;
}

.command-hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.command-hero h2 {
  margin-top: 6px;
  font-size: 28px;
}

.command-hero p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 8px;
  color: #9fb2c8;
  line-height: 1.6;
}

.eyebrow {
  color: #58d5c9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.metric,
.glass-panel {
  border: 1px solid rgb(148 163 184 / 22%);
  background: rgb(15 23 42 / 68%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px);
}

.metric {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 14px;
  border-radius: 8px;
}

.metric strong {
  font-size: 24px;
}

.metric span {
  color: #91a4ba;
  font-size: 12px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.55fr) minmax(300px, 0.78fr) minmax(280px, 0.7fr);
  gap: 14px;
}

.glass-panel {
  border-radius: 8px;
  padding: 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8be0d6;
  font-size: 12px;
  font-weight: 800;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d399;
  box-shadow: 0 0 14px #35d399;
  content: "";
}

.office-panel {
  position: relative;
  overflow: hidden;
}

.office-stage {
  min-height: 520px;
  border: 1px solid rgb(88 213 201 / 12%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(8 13 24 / 52%), rgb(4 8 16 / 44%)),
    repeating-linear-gradient(60deg, rgb(148 163 184 / 5%) 0 1px, transparent 1px 24px);
  box-shadow: inset 0 0 80px rgb(59 130 246 / 10%);
}

.office-map {
  display: block;
  width: 100%;
  min-height: 520px;
}

.zone {
  stroke-width: 2;
  filter: url("#softGlow");
}

.working-zone {
  fill: rgb(31 56 83 / 50%);
  stroke: rgb(88 213 201 / 28%);
}

.lounge-zone {
  fill: rgb(70 78 102 / 36%);
  stroke: rgb(156 207 107 / 24%);
}

.meeting-zone {
  fill: rgb(38 76 132 / 46%);
  stroke: rgb(110 168 255 / 34%);
}

.floor-line {
  fill: none;
  stroke: rgb(255 255 255 / 10%);
  stroke-width: 2;
}

.iso-desk,
.meeting-table,
.coffee-table,
.sofa {
  transform-box: fill-box;
  transform-origin: center;
  transform: skewY(-26deg);
}

.iso-desk {
  fill: #253752;
  stroke: rgb(110 168 255 / 28%);
  stroke-width: 2;
}

.meeting-table {
  fill: #172d4d;
  stroke: rgb(88 213 201 / 24%);
  stroke-width: 2;
}

.coffee-table {
  fill: #334155;
}

.sofa {
  fill: #42526c;
}

.plant {
  fill: #4f8b65;
  stroke: #9ccf6b;
  stroke-width: 2;
}

.signal-lines path {
  fill: none;
  stroke: rgb(88 213 201 / 34%);
  stroke-width: 2;
  stroke-dasharray: 9 12;
  animation: flowLine 1.3s linear infinite;
}

.office-agent {
  cursor: pointer;
  outline: none;
}

.office-agent .pixel-person {
  animation: breathe 2.4s ease-in-out infinite;
}

.office-agent.busy .pixel-person {
  animation: workPulse 1.2s ease-in-out infinite;
}

.office-agent.offline {
  opacity: 0.46;
  filter: grayscale(1);
}

.office-agent:hover .agent-tooltip,
.office-agent:focus .agent-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.agent-shadow {
  fill: rgb(0 0 0 / 34%);
}

.pixel-head {
  fill: #f0c7a1;
  shape-rendering: crispEdges;
}

.pixel-hair {
  fill: #172033;
  shape-rendering: crispEdges;
}

.pixel-body {
  fill: var(--avatar-color);
  shape-rendering: crispEdges;
}

.pixel-leg {
  fill: #0f172a;
  shape-rendering: crispEdges;
}

.pixel-badge {
  fill: #eff6ff;
  shape-rendering: crispEdges;
}

.pixel-eye {
  fill: #0f172a;
  shape-rendering: crispEdges;
}

.headset {
  display: none;
  fill: none;
  stroke: #dbeafe;
  stroke-width: 4;
  stroke-linecap: square;
}

.office-agent.busy .headset {
  display: block;
}

.office-agent.busy .agent-shadow {
  fill: rgb(59 130 246 / 35%);
  animation: pulseShadow 1.4s ease-in-out infinite;
}

.status-bubble rect {
  fill: rgb(4 10 20 / 82%);
  stroke: rgb(148 163 184 / 28%);
}

.status-bubble text {
  fill: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.office-agent.busy .status-bubble rect {
  stroke: rgb(110 168 255 / 70%);
  filter: url("#softGlow");
}

.agent-tooltip {
  display: grid;
  gap: 3px;
  width: 146px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(3 7 18 / 84%);
  color: #edf5ff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.agent-tooltip strong {
  font-size: 12px;
}

.agent-tooltip span,
.agent-tooltip small,
.activity-item p,
.record-row p {
  color: #91a4ba;
  font-size: 12px;
  line-height: 1.45;
}

.zone-labels text {
  fill: rgb(203 213 225 / 46%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.assignment-panel {
  display: grid;
  gap: 11px;
  align-content: start;
}

.assignment-panel label {
  display: grid;
  gap: 6px;
  color: #cbd8e7;
  font-size: 12px;
  font-weight: 700;
}

.command-center input,
.command-center select {
  border-color: rgb(148 163 184 / 22%);
  background: rgb(3 7 18 / 60%);
  color: #edf5ff;
}

.command-center input::placeholder {
  color: #6f8197;
}

.command-center button {
  border-color: rgb(148 163 184 / 24%);
  background: rgb(21 33 52 / 84%);
  color: #edf5ff;
}

.primary-action {
  border-color: rgb(88 213 201 / 42%) !important;
  background: linear-gradient(135deg, #117c86, #2855a4) !important;
}

.status-line,
.console-muted {
  color: #91a4ba;
  font-size: 12px;
  line-height: 1.5;
}

.activity-log {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.activity-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 3px solid #58d5c9;
  border-radius: 6px;
  background: rgb(255 255 255 / 4%);
}

.activity-item strong {
  color: #edf5ff;
  font-size: 12px;
}

.activity-item span {
  color: #58d5c9;
  font-size: 13px;
  font-weight: 800;
}

.records-panel {
  margin-top: 14px;
}

.records-panel .panel-heading {
  align-items: end;
}

.records-panel input {
  max-width: 280px;
}

.task-rail {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.task-chip {
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
}

.task-chip span,
.task-chip em {
  display: block;
  color: #91a4ba;
  font-size: 12px;
  font-style: normal;
}

.task-chip strong {
  display: block;
  margin: 4px 0;
  color: #edf5ff;
  font-size: 13px;
}

.meeting-table {
  display: grid;
  gap: 8px;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px minmax(120px, 0.7fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
}

.record-row h2 {
  margin-bottom: 4px;
  color: #edf5ff;
  font-size: 15px;
}

.record-row span {
  color: #c3d1df;
  font-size: 12px;
}

.record-row button {
  min-height: 34px;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 16px rgb(74 144 226 / 16%), inset 0 1px 0 rgb(255 255 255 / 6%);
  }

  50% {
    box-shadow: 0 0 30px rgb(74 144 226 / 32%), inset 0 1px 0 rgb(255 255 255 / 8%);
  }
}

@keyframes driftStars {
  to {
    transform: translate3d(120px, 80px, 0);
  }
}

@keyframes flowLine {
  to {
    stroke-dashoffset: -42;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes workPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.04);
  }
}

@keyframes pulseShadow {
  0%,
  100% {
    rx: 32px;
    opacity: 0.55;
  }

  50% {
    rx: 44px;
    opacity: 0.95;
  }
}

select,
input {
  width: 100%;
  padding: 0 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.card h2 {
  font-size: 16px;
  line-height: 1.35;
}

.summary,
.content {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.meta {
  color: #6b7280;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #155a9c;
  font-size: 12px;
  font-weight: 700;
}

.load-more {
  width: 100%;
  margin: 14px 0 30px;
}

dialog {
  width: min(92vw, 680px);
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
}

dialog::backdrop {
  background: rgb(15 23 42 / 55%);
}

.detail {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.detail h2 {
  padding-right: 32px;
  font-size: 20px;
  line-height: 1.35;
}

.detail h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.detail-section {
  display: grid;
  gap: 6px;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
}

a {
  color: #0f62b8;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .command-hero,
  .control-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .command-center {
    padding: 12px;
  }

  .metrics-strip,
  .agent-grid,
  .record-row {
    grid-template-columns: 1fr;
  }

  .records-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .records-panel input {
    max-width: none;
  }
}

/* MemoBot v3: unified Linear-style command center */
.topbar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgb(10 10 10 / 96%);
  color: var(--text-primary);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  font-size: 20px;
  font-weight: 650;
  line-height: 28px;
}

.topbar p,
.summary,
.meta {
  color: var(--text-secondary);
}

button,
select,
input {
  border-radius: 8px;
  border-color: var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button:hover,
select:hover,
input:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: none;
  border-color: rgb(108 92 231 / 55%);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.tabs {
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #101010;
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
}

.tab.active {
  background: #1c1c1c;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.command-center {
  background:
    radial-gradient(circle at 18% 8%, rgb(108 92 231 / 16%), transparent 30%),
    radial-gradient(circle at 90% 12%, rgb(79 172 254 / 10%), transparent 28%),
    linear-gradient(180deg, #0a0a0a, #0d0d0f 44%, #0a0a0a);
}

.command-hero {
  align-items: center;
  margin-bottom: 18px;
}

.command-hero h2 {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 650;
  line-height: 34px;
}

.command-hero p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.eyebrow {
  color: var(--brand-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.metric,
.glass-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: rgb(20 20 20 / 86%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
  backdrop-filter: blur(18px);
}

.metric {
  min-height: 82px;
  padding: 16px;
}

.metric strong {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.metric span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.control-grid {
  grid-template-columns: minmax(580px, 1fr) minmax(320px, 0.76fr) minmax(300px, 0.66fr);
  align-items: stretch;
}

.glass-panel {
  padding: 16px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}

.live-dot {
  color: var(--status-complete);
}

.office-stage {
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 1%)),
    #101010;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.office-map {
  min-height: 0;
  height: auto;
  aspect-ratio: 760 / 430;
  min-height: 600px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 54% 40%, rgb(108 92 231 / 14%), transparent 42%),
    linear-gradient(180deg, #111, #0b0b0c);
}

.floor-top {
  fill: url("#floorGradient");
  stroke: var(--border-strong);
  stroke-width: 1.4;
}

.floor-left {
  fill: #0c0c0d;
}

.floor-right {
  fill: #151517;
}

.workspace-zone,
.lounge-zone,
.meeting-zone {
  fill: rgb(255 255 255 / 3%);
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.meeting-zone {
  fill: url("#glassRoom");
  stroke: rgb(79 172 254 / 35%);
  stroke-dasharray: 6 5;
}

.office-zones text {
  fill: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.office-caption text {
  fill: rgb(255 255 255 / 38%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.desks rect,
.meeting-table,
.coffee-table,
.sofa {
  fill: #141414;
  stroke: var(--border-strong);
  stroke-width: 1;
  transform: none;
}

.meeting-table {
  fill: rgb(79 172 254 / 8%);
  stroke: rgb(79 172 254 / 24%);
}

.sofa {
  fill: #1c1c1c;
}

.coffee-table {
  fill: #181818;
}

.plant {
  fill: rgb(80 227 194 / 20%);
  stroke: rgb(80 227 194 / 45%);
  stroke-width: 1;
}

.signal-lines path {
  fill: none;
  stroke: rgb(108 92 231 / 22%);
  stroke-width: 1;
  stroke-dasharray: none;
}

.flow-dot {
  fill: var(--brand-light);
  opacity: 0.82;
}

.flow-dot.secondary {
  fill: var(--status-busy);
}

.office-agent-marker {
  cursor: pointer;
  transition: opacity 180ms ease;
}

.office-agent-marker .station {
  fill: rgb(20 20 20 / 86%);
  stroke: rgb(255 255 255 / 10%);
  stroke-width: 1;
}

.office-agent-marker .status-orb {
  fill: var(--status-idle);
  filter: drop-shadow(0 0 8px rgb(85 85 85 / 40%));
}

.office-agent-marker.busy .station {
  stroke: rgb(79 172 254 / 55%);
}

.office-agent-marker.busy .status-orb {
  fill: var(--status-busy);
  animation: pulseOrb 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgb(79 172 254 / 80%));
}

.office-agent-marker.offline {
  opacity: 0.45;
}

.office-agent-marker.offline .status-orb {
  fill: var(--status-offline);
}

.office-agent-marker text {
  fill: var(--text-secondary);
  font-size: 9px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

.office-agent-marker .agent-mini-name {
  fill: rgb(255 255 255 / 62%);
  font-size: 9px;
  font-weight: 600;
}

.office-agent-marker:hover .station {
  stroke: rgb(108 92 231 / 65%);
}

.office-agent-marker:hover .office-ip-avatar {
  transform: translateY(-5px);
}

.agent-floor-shadow {
  fill: rgb(0 0 0 / 35%);
}

.office-ip-avatar {
  transition: transform 180ms ease;
  animation: officeBreathe 2.6s ease-in-out infinite;
}

.office-agent-marker.busy .office-ip-avatar {
  animation: officeWorking 1.4s ease-in-out infinite;
}

.ip-cloud {
  fill: #f6f7fb;
  stroke: rgb(255 255 255 / 65%);
  stroke-width: 1.2;
}

.ip-faceplate {
  fill: #17171a;
  stroke: var(--avatar-color);
  stroke-width: 1.2;
}

.ip-eye {
  fill: var(--avatar-color);
  filter: drop-shadow(0 0 6px var(--avatar-color));
}

.ip-smile {
  fill: none;
  stroke: rgb(255 255 255 / 70%);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.ip-scarf {
  fill: #6c5ce7;
  stroke: rgb(255 255 255 / 14%);
  stroke-width: 0.8;
}

.ip-body {
  fill: #202024;
  stroke: rgb(255 255 255 / 18%);
  stroke-width: 1;
}

.ip-arm {
  fill: none;
  stroke: rgb(255 255 255 / 45%);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.office-agent-marker.idle .ip-arm.left {
  d: path("M-14 17 L-25 15");
}

.office-agent-marker.idle .ip-arm.right {
  d: path("M14 17 L23 11");
}

.office-agent-marker.offline .ip-cloud,
.office-agent-marker.offline .ip-faceplate,
.office-agent-marker.offline .ip-scarf,
.office-agent-marker.offline .ip-body {
  fill: #303033;
}

.office-avatar-head,
.office-avatar-body,
.office-avatar-hair,
.office-avatar-leg,
.office-avatar-eye,
.office-avatar-screen {
  shape-rendering: crispEdges;
}

.office-avatar-head {
  fill: #d7b391;
}

.office-avatar-hair {
  fill: #2b2b2b;
}

.office-avatar-body {
  fill: var(--avatar-color);
}

.office-avatar-leg {
  fill: #111;
}

.office-avatar-eye {
  fill: #111;
}

.office-avatar-screen {
  fill: rgb(255 255 255 / 72%);
}

.office-avatar-headset {
  display: none;
  fill: none;
  stroke: #dbeafe;
  stroke-width: 3;
  stroke-linecap: square;
}

.office-agent-marker.busy .office-avatar-headset {
  display: block;
}

.mini-signal rect {
  fill: rgb(10 10 10 / 86%);
  stroke: var(--border-subtle);
}

.mini-signal text {
  fill: var(--text-secondary);
  font-size: 8px;
  font-weight: 650;
}

.office-agent-marker.busy .mini-signal rect {
  stroke: rgb(79 172 254 / 48%);
  fill: rgb(79 172 254 / 12%);
}

.office-agent-marker.busy .mini-signal text {
  fill: #dbeafe;
}

.agent-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 214px;
  overflow: auto;
}

.agent-card-v2 {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%), 0 0 30px var(--status-glow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.agent-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgb(108 92 231 / 40%);
  background: var(--bg-hover);
  box-shadow: 0 26px 70px rgb(0 0 0 / 28%), 0 0 30px var(--brand-glow);
}

.agent-card-v2.offline {
  opacity: 0.6;
}

.agent-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--status-color);
}

.ip-card-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 28%, rgb(255 255 255 / 14%), transparent 38%),
    #1a1a1a;
  box-shadow: inset 0 0 0 1px var(--border-subtle), 0 0 22px var(--status-glow);
}

.ip-card-avatar span {
  position: absolute;
  display: block;
}

.ip-card-cloud {
  top: 7px;
  left: 6px;
  width: 30px;
  height: 19px;
  border-radius: 16px 16px 12px 12px;
  background: #f6f7fb;
  box-shadow:
    7px -5px 0 -1px #f6f7fb,
    16px -2px 0 -2px #f6f7fb;
}

.ip-card-face {
  top: 13px;
  left: 10px;
  width: 22px;
  height: 12px;
  border: 1px solid var(--avatar-color);
  border-radius: 7px;
  background: #141414;
}

.ip-card-eye {
  top: 17px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--avatar-color);
  box-shadow: 0 0 8px var(--avatar-color);
}

.ip-card-eye.left {
  left: 17px;
}

.ip-card-eye.right {
  left: 25px;
}

.ip-card-scarf {
  top: 28px;
  left: 11px;
  width: 22px;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: #6c5ce7;
}

.pixel-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.pixel-avatar span {
  position: absolute;
  display: block;
  shape-rendering: crispEdges;
}

.pixel-avatar .hair {
  top: 5px;
  left: 8px;
  width: 18px;
  height: 7px;
  background: #2b2b2b;
}

.pixel-avatar .face {
  top: 10px;
  left: 9px;
  width: 16px;
  height: 13px;
  background: #d7b391;
}

.pixel-avatar .body {
  top: 23px;
  left: 8px;
  width: 18px;
  height: 8px;
  background: var(--avatar-color);
}

.pixel-avatar .eye {
  top: 15px;
  width: 3px;
  height: 3px;
  background: #111;
}

.pixel-avatar .eye.left {
  left: 13px;
}

.pixel-avatar .eye.right {
  left: 21px;
}

.agent-card-main {
  min-width: 0;
}

.agent-card-main h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
}

.agent-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.agent-role {
  margin-top: 4px;
  color: var(--brand-light);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.status-dot {
  position: relative;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 16px var(--status-glow);
}

.busy .status-dot::after {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--status-color);
  opacity: 0.22;
  content: "";
  animation: pulseOrb 2s ease-in-out infinite;
}

.score-bar {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-inset);
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  animation: scoreIn 620ms ease-out both;
}

.agent-email {
  margin-top: 7px;
  overflow: hidden;
  color: #444;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-panel label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.command-center input,
.command-center select {
  min-height: 42px;
  border-color: var(--border-subtle);
  border-radius: 8px;
  background: #0d0d0f;
  color: var(--text-primary);
}

.command-center input::placeholder {
  color: var(--text-tertiary);
}

.command-center button {
  border-color: var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.primary-action {
  border-color: rgb(108 92 231 / 50%) !important;
  background: linear-gradient(135deg, #6c5ce7, #5146c8) !important;
  box-shadow: 0 14px 32px rgb(108 92 231 / 20%);
}

.status-line,
.console-muted {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.activity-log {
  max-height: 560px;
}

.activity-item {
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--brand);
  border-radius: 12px;
  background: #101010;
}

.activity-item strong {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.activity-item span {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 550;
}

.activity-item p {
  color: var(--text-secondary);
}

.records-panel {
  margin-top: 14px;
}

.task-chip {
  border-color: var(--border-subtle);
  border-radius: 12px;
  background: #101010;
}

.task-chip span,
.task-chip em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}

.task-chip strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 550;
}

.record-row {
  grid-template-columns: minmax(0, 1.5fr) 124px minmax(120px, 0.7fr) 72px;
  min-height: 72px;
  border-color: var(--border-subtle);
  border-radius: 12px;
  background: #101010;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.record-row:hover {
  transform: translateY(-2px);
  border-color: rgb(108 92 231 / 34%);
  background: var(--bg-hover);
}

.record-row h2 {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
}

.record-row span,
.record-row p {
  color: var(--text-secondary);
}

@keyframes pulseOrb {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

@keyframes scoreIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes officeBreathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes officeWorking {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@media (max-width: 1180px) {
  .control-grid {
    grid-template-columns: 1fr;
  }

  .office-map {
    aspect-ratio: 760 / 430;
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .office-stage {
    padding: 10px;
  }

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

  .agent-roster {
    grid-template-columns: 1fr;
  }
}

/* MemoBot v10: Marvis-inspired wide command center */
.command-center {
  max-width: 1440px;
  margin: 0 auto;
  min-height: auto;
  padding: 28px 32px 32px;
  border: 1px solid rgb(255 255 255 / 4%);
  border-radius: 32px;
  background: radial-gradient(ellipse at 20% 30%, #111927, #0a0e17 70%);
  box-shadow: 0 20px 80px rgb(0 0 0 / 80%), inset 0 1px 1px rgb(255 255 255 / 4%);
}

.command-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-left .eyebrow,
.panel-heading .eyebrow {
  width: fit-content;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.hero-left .eyebrow {
  padding: 3px 12px;
  background: rgb(108 92 231 / 15%);
  color: #a29bfe;
}

.hero-left h2 {
  margin-top: 4px;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 650;
  line-height: 34px;
}

.hero-left p {
  max-width: 560px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 22px;
}

.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 9px 20px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(8px);
}

.metric-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
  white-space: nowrap;
}

.metric-item strong {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 650;
}

.metric-dot {
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-busy {
  background: #4facfe;
  box-shadow: 0 0 8px rgb(79 172 254 / 40%);
}

.dot-idle {
  background: #6b7280;
}

.dot-offline {
  background: #2a2a2a;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.9fr;
  gap: 20px;
  margin-bottom: 24px;
  min-height: 420px;
}

.glass-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 20px;
  background: rgb(255 255 255 / 3%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
  backdrop-filter: blur(12px);
}

.glass-panel:hover {
  border-color: rgb(255 255 255 / 10%);
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading .eyebrow {
  color: #6b7280;
  font-size: 10px;
  font-weight: 650;
}

.panel-heading h3 {
  margin-top: 2px;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 650;
}

.live-dot {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgb(79 172 254 / 12%);
  color: #4facfe;
  font-size: 11px;
}

.live-dot::before {
  width: 6px;
  height: 6px;
  background: #4facfe;
  box-shadow: 0 0 8px rgb(79 172 254 / 45%);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.office-panel {
  padding-bottom: 12px;
}

.office-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.office-map {
  flex-shrink: 0;
  width: 100%;
  max-height: 300px;
  min-height: 260px;
  border: 1px solid rgb(255 255 255 / 4%);
  border-radius: 16px;
  background: radial-gradient(ellipse at 30% 50%, #141c2a, #0a0e17);
}

.agent-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 10px;
  max-height: 150px;
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
}

.agent-card-v2 {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
  box-shadow: none;
  cursor: default;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.agent-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgb(108 92 231 / 30%);
  background: rgb(255 255 255 / 7%);
  box-shadow: 0 8px 20px rgb(0 0 0 / 30%);
}

.ip-card-avatar {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ip-card-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.agent-card-info {
  min-width: 0;
  flex: 1;
}

.agent-card-name {
  overflow: hidden;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 16px;
}

.status-dot-sm {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-busy .status-dot-sm {
  background: #4facfe;
  box-shadow: 0 0 8px rgb(79 172 254 / 45%);
  animation: pulse-dot 1.8s infinite;
}

.status-idle .status-dot-sm {
  background: #6b7280;
}

.status-offline .status-dot-sm {
  background: #2a2a2a;
}

.agent-card-count {
  margin-left: auto;
  color: #64748b;
  font-size: 10px;
}

.agent-card-meta {
  margin-top: 1px;
  overflow: hidden;
  color: #475569;
  font-family: Inter, "SF Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-panel {
  gap: 12px;
}

.assignment-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.command-center input,
.command-center select {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(0 0 0 / 30%);
  color: #f1f5f9;
  font-size: 13px;
}

.command-center input:focus,
.command-center select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgb(108 92 231 / 15%);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.action-row button {
  flex: 1;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 550;
}

.action-row .primary-action {
  border-color: #6c5ce7 !important;
  background: #6c5ce7 !important;
  color: #fff;
  box-shadow: 0 4px 12px rgb(108 92 231 / 25%);
}

.action-row .primary-action:hover {
  transform: translateY(-1px);
  background: #7c6cf0 !important;
  box-shadow: 0 6px 20px rgb(108 92 231 / 35%);
}

.activity-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  padding-right: 4px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-left: 2px solid rgb(255 255 255 / 6%);
  border-radius: 10px;
  background: rgb(255 255 255 / 3%);
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.activity-item .time {
  color: #475569;
  font-size: 10px;
  font-weight: 550;
}

.activity-item .content,
.activity-item .highlight {
  color: #e2e8f0;
}

.records-panel {
  margin-top: 4px;
  padding: 16px 20px 18px;
}

.records-header {
  align-items: center;
  margin-bottom: 12px;
}

.records-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.records-search input {
  width: 210px;
  min-height: 34px;
  border-radius: 999px;
}

.records-search span {
  color: #475569;
  font-size: 12px;
}

.meeting-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.meeting-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1fr 1fr 0.5fr;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 2%);
  font-size: 13px;
}

.meeting-row:hover {
  background: rgb(255 255 255 / 5%);
}

.meeting-row .title {
  overflow: hidden;
  color: #f1f5f9;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row .agent,
.meeting-row .time {
  color: #94a3b8;
}

.meeting-row .score {
  overflow: hidden;
  color: #4facfe;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row .action {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a29bfe;
  text-align: right;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

@media (max-width: 1100px) {
  .control-grid {
    grid-template-columns: 1fr 1fr;
  }

  .activity-panel {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .command-center {
    padding: 16px;
    border-radius: 20px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .activity-panel {
    grid-column: span 1;
  }

  .hero-left h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .metrics-strip {
    gap: 12px;
    padding: 7px 14px;
  }

  .meeting-row {
    grid-template-columns: 1fr 0.45fr 0.6fr;
  }

  .meeting-row .score,
  .meeting-row .action {
    display: none;
  }
}

/* MemoBot v11: warm Marvis-style virtual office */
:root {
  color-scheme: light;
  --bg-base: #faf8f5;
  --bg-canvas: #f5f2ed;
  --bg-card: #ffffff;
  --bg-subtle: #f0ede8;
  --bg-hover: #ebe7e1;
  --bg-selected: #ede9fe;
  --border-subtle: rgba(31, 26, 23, 0.06);
  --border-medium: rgba(31, 26, 23, 0.10);
  --border-strong: rgba(31, 26, 23, 0.16);
  --text-primary: #1f1a17;
  --text-secondary: #6b645c;
  --text-tertiary: #9a938b;
  --text-muted: #b8b2ab;
  --brand: #7c6df2;
  --brand-hover: #6b5ce0;
  --brand-light: #a89bf7;
  --brand-subtle: #ede9fe;
  --brand-glow: rgba(124, 109, 242, 0.18);
  --warm-coral: #f59e6b;
  --warm-amber: #f5c542;
  --soft-teal: #4ecdc4;
  --status-busy: #5b9bf7;
  --status-busy-bg: #e8f1fe;
  --status-ready: #7bc47f;
  --status-ready-bg: #e9f5ea;
  --status-lounge: #f59e6b;
  --status-lounge-bg: #fef3e8;
  --status-coffee: #c084fc;
  --status-coffee-bg: #f3e8ff;
  --status-onboarding: #f5c542;
  --status-onboarding-bg: #fef9e7;
  --status-offline: #a3a3a3;
  --status-offline-bg: #f0f0f0;
  --shadow-xs: 0 1px 2px rgba(31, 26, 23, 0.04);
  --shadow-sm: 0 2px 6px rgba(31, 26, 23, 0.05);
  --shadow-md: 0 6px 16px rgba(31, 26, 23, 0.07);
  --shadow-lg: 0 16px 40px rgba(31, 26, 23, 0.08);
  --shadow-brand: 0 8px 24px rgba(124, 109, 242, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  font-style: normal !important;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 249, 236, 0.8), transparent 34%),
    linear-gradient(180deg, #faf8f5 0%, #f5f2ed 100%);
  color: var(--text-primary);
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(250, 248, 245, 0.92);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.topbar p,
.summary,
.meta {
  color: var(--text-secondary);
}

.tabs {
  max-width: 1600px;
  margin: 0 auto 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-xs);
}

.tab {
  background: transparent;
  color: var(--text-secondary);
}

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

button,
select,
input {
  border-color: var(--border-medium);
  background: var(--bg-card);
  color: var(--text-primary);
}

button:hover,
select:hover,
input:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.memo-app.command-center {
  max-width: 1600px;
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  padding: 24px 32px 30px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 249, 236, 0.78), transparent 34%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-canvas) 100%);
  box-shadow: none;
}

.memo-header-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  margin-bottom: 20px;
  padding: 12px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.memo-brand {
  display: flex;
  align-items: center;
  min-width: 360px;
  gap: 12px;
}

.memo-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff;
  box-shadow: var(--shadow-brand);
  font-size: 18px;
  font-weight: 800;
}

.memo-brand h2 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.memo-brand p {
  max-width: 560px;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.memo-settings {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
}

.metrics-strip.stat-strip {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.metric-item.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.metric-item.stat-item strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 24px;
}

.metric-dot.stat-dot {
  width: 8px;
  height: 8px;
}

.dot-ready {
  background: var(--status-ready);
}

.dot-busy {
  background: var(--status-busy);
  box-shadow: 0 0 10px rgba(91, 155, 247, 0.42);
}

.dot-offline {
  background: var(--status-offline);
}

.memo-main-grid {
  display: grid;
  grid-template-columns: minmax(720px, 1.65fr) minmax(360px, 0.95fr);
  gap: 20px;
  min-height: calc(100vh - 330px);
}

.memo-card,
.glass-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.office-panel.memo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.office-header,
.panel-heading,
.card-header,
.records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-header h3,
.card-header h3,
.records-title h3 {
  margin: 2px 0 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--status-busy-bg);
  color: var(--status-busy);
  font-size: 12px;
  font-weight: 600;
}

.live-pill .live-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--status-busy);
  box-shadow: 0 0 10px rgba(91, 155, 247, 0.38);
  animation: memoPulse 1.8s ease-in-out infinite;
}

.live-pill .live-dot::before {
  display: none;
}

.office-viewport {
  position: relative;
  flex: 1;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(242, 234, 217, 0.96)),
    var(--bg-canvas);
}

.office-scene {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1000 / 640;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.floor-grid line {
  stroke: rgba(31, 26, 23, 0.045);
  stroke-width: 1;
}

.floor-edge {
  stroke: rgba(31, 26, 23, 0.10);
  stroke-width: 1.5;
}

.desk-label,
.zone-label {
  fill: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.desk-label {
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
}

.meeting-glow {
  fill: rgba(91, 155, 247, 0.08);
  filter: blur(3px);
}

.collab-line {
  fill: none;
  stroke: rgba(124, 109, 242, 0.18);
  stroke-width: 2;
  stroke-dasharray: 8 12;
  animation: memoFlow 1.6s linear infinite;
}

.collab-line.secondary {
  stroke: rgba(78, 205, 196, 0.22);
}

.flow-dot {
  fill: var(--brand);
  opacity: 0.72;
}

.flow-dot.secondary {
  fill: var(--soft-teal);
}

.character {
  cursor: pointer;
  transition: opacity 180ms ease;
}

.character-breath {
  animation: memoBreathe 2.4s ease-in-out infinite;
}

.character.busy .character-breath {
  animation: memoWork 1.5s ease-in-out infinite;
}

.character.offline .character-breath {
  filter: saturate(0.18);
  animation: none;
}

.character:hover .character-breath {
  transform: translateY(-5px);
}

.selection-ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  opacity: 0.88;
  filter: drop-shadow(0 0 10px var(--brand-glow));
  animation: memoSelectPulse 1s ease-out 2;
}

.status-pulse {
  animation: memoStatusPulse 2s ease-in-out infinite;
}

.bubble {
  animation: memoFloat 3s ease-in-out infinite;
}

.bubble text {
  font-family: Inter, "SF Pro Display", sans-serif;
}

.steam {
  animation: memoSteam 2s linear infinite;
}

.steam.delay {
  animation-delay: 0.8s;
}

/* 2026-10-06 用户钦定：名牌常显（原来 hover/选中才出现） */
.agent-tag {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.character:hover .agent-tag {
  transform: translateY(-2px);
}

.agent-tag rect {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(31, 26, 23, 0.08);
  filter: drop-shadow(0 4px 12px rgba(31, 26, 23, 0.10));
}

.agent-tag text {
  fill: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.scene-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: memoPulse 2s ease-in-out infinite;
}

.agent-roster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.agent-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px 11px 10px 13px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--card-bg, var(--bg-card)));
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.agent-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--card-accent);
  content: "";
}

.agent-card:hover {
  border-color: color-mix(in srgb, var(--card-accent), #fff 35%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agent-card.selected {
  border-color: var(--brand);
  background: var(--bg-selected);
  box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow-md);
}

.agent-card-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.agent-card-avatar svg {
  width: 100%;
  height: 100%;
}

.agent-card-info {
  min-width: 0;
}

.agent-card-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 16px;
}

.agent-card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
}

.agent-card-meta {
  overflow: hidden;
  margin-top: 1px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 9px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.dispatch-card.memo-card,
.activity-card.memo-card {
  padding: 20px;
}

.dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-header {
  justify-content: flex-start;
  margin-bottom: 2px;
}

.card-header h3 {
  flex: 1;
  margin: 0;
}

.card-icon {
  font-size: 16px;
}

.field,
.assignment-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.command-center input,
.command-center select,
.field input,
.field select {
  min-height: 42px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 18px;
}

.command-center input::placeholder {
  color: var(--text-muted);
}

.input-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  max-width: 120px;
  overflow: hidden;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--status-ready-bg);
  color: #4f9f55;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.input-badge.show {
  opacity: 1;
}

.action-row {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.95fr;
  gap: 8px;
  margin-top: 2px;
}

.action-row button,
.command-center button {
  min-height: 40px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.action-row .primary-action,
.dispatch-btn {
  overflow: hidden;
  border: 0 !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover)) !important;
  color: #fff !important;
  box-shadow: var(--shadow-brand);
}

.dispatching .dispatch-btn {
  animation: memoButtonPulse 620ms ease-out;
}

.status-line,
.console-muted {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.activity-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 260px;
}

.activity-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-subtle);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.activity-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  margin-top: 14px;
  overflow-y: auto;
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 8px 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 0;
  border-left: 2px solid var(--item-accent, var(--brand));
  border-radius: 12px;
  background: var(--bg-base);
  color: var(--text-secondary);
  animation: memoSlideDown 360ms ease-out;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--item-accent, var(--brand));
}

.activity-item .time {
  color: var(--text-muted);
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
}

.activity-item .content,
.activity-item .highlight {
  color: var(--text-primary);
}

.activity-item strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.activity-item p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.records-panel.memo-card {
  margin-top: 20px;
  padding: 18px 20px;
}

.records-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.records-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.records-tools input {
  width: 260px;
  min-height: 36px;
  border-radius: 999px;
}

.records-tools button {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
}

.task-rail {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  overflow-x: auto;
}

.task-chip {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-base);
  box-shadow: var(--shadow-xs);
}

.task-chip span,
.task-chip em {
  display: block;
  color: var(--text-tertiary);
  font-size: 11px;
  font-style: normal;
}

.task-chip strong {
  display: block;
  margin: 3px 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.meeting-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.meeting-row {
  display: grid;
  grid-template-columns: 26px minmax(220px, 1.6fr) 96px 150px minmax(120px, 0.8fr) 72px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  transition: background 180ms ease, border-color 180ms ease;
}

.meeting-row:hover {
  border-color: var(--border-subtle);
  background: var(--bg-subtle);
}

.meeting-row .doc {
  font-size: 16px;
}

.meeting-row .title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row .agent,
.meeting-row .time {
  color: var(--text-tertiary);
}

.meeting-row .score {
  overflow: hidden;
  color: var(--brand);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row .action {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-align: right;
  opacity: 0;
}

.meeting-row:hover .action {
  opacity: 1;
}

dialog {
  border-radius: var(--radius-lg);
}

dialog::backdrop {
  background: rgba(31, 26, 23, 0.28);
}

@keyframes memoPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes memoStatusPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes memoBreathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes memoWork {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes memoSelectPulse {
  from {
    opacity: 0.86;
    r: 30px;
  }

  to {
    opacity: 0;
    r: 48px;
  }
}

@keyframes memoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes memoSteam {
  0% {
    opacity: 0.78;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes memoFlow {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes memoButtonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 109, 242, 0.28), var(--shadow-brand);
  }

  100% {
    box-shadow: 0 0 0 18px rgba(124, 109, 242, 0), var(--shadow-brand);
  }
}

@keyframes memoSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1260px) {
  .memo-main-grid {
    grid-template-columns: 1fr;
  }

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

  .office-viewport {
    min-height: 430px;
  }
}

@media (max-width: 820px) {
  .memo-app.command-center {
    padding: 16px;
    border-radius: 20px;
  }

  .memo-header-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .memo-brand {
    min-width: 0;
  }

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

  .office-viewport {
    min-height: 0;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .records-header {
    align-items: stretch;
    flex-direction: column;
  }

  .records-tools,
  .records-tools input {
    width: 100%;
  }

  .meeting-row {
    grid-template-columns: 24px minmax(0, 1fr) 72px;
  }

  .meeting-row .agent,
  .meeting-row .score,
  .meeting-row .action {
    display: none;
  }
}

/* ── 实时会议资讯流（2026-10-06 v2：跟随 memo-app 浅色体系——
   memo-app 把 command-center 深底换成米白渐变，但 color 仍继承浅色 #edf5ff，
   故资讯流必须显式深字，底用半透明白叠在米白上）── */
.newsfeed {
  background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(140 120 90 / 14%);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.nf-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; position: relative; padding-left: 10px; }
.nf-head::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #c9a24b, #8a6d3b); }
.nf-head h3 { margin: 0; font-size: 15px; color: #2d2418; font-weight: 700; letter-spacing: 0.5px; }
.nf-src { font-size: 11px; color: #8a7a66; flex: 1; }
.nf-body { display: flex; flex-direction: column; gap: 2px; max-height: 250px; overflow-y: auto; }
.nf-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-bottom: 1px dashed rgb(140 120 90 / 16%); }
.nf-item:last-child { border-bottom: none; }
.nf-ic {
  flex: none; width: 20px; height: 20px; border-radius: 5px; margin-top: 1px;
  background: rgb(107 92 40 / 10%); color: #6b5c48; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.nf-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nf-title { font-size: 13.5px; color: #2f2818; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-meta { font-size: 11px; color: #8a7a66; }
.nf-empty, .nf-loading { font-size: 12px; color: #8a7a66; padding: 8px 4px; margin: 0; }

/* ── 高级抽屉（联调检查/模拟纪要，2026-10-06 收纳）── */
.adv-drawer { margin-top: 10px; border-top: 1px dashed rgb(140 120 90 / 20%); padding-top: 8px; }
.adv-drawer summary { font-size: 12px; color: #8a7a66; cursor: pointer; user-select: none; list-style: none; }
.adv-drawer summary::-webkit-details-marker { display: none; }
.adv-drawer summary::before { content: "▸ "; }
.adv-drawer[open] summary::before { content: "▾ "; }
.adv-body { padding: 10px 2px 2px; }
.adv-note { font-size: 11.5px; line-height: 1.7; color: #8a7a66; background: rgb(140 120 90 / 7%); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.adv-note b { color: #6b5c48; }
.adv-note a { color: #8a6d3b; }

/* ── 会议记录汇总·人类视角卡片（2026-10-06）── */
.meeting-row.human {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; cursor: pointer; border-bottom: 1px dashed rgb(140 120 90 / 15%);
}
.meeting-row.human:last-child { border-bottom: none; }
.meeting-row.human .mh-top { display: flex; gap: 8px; align-items: center; min-width: 0; }
.meeting-row.human .mh-top .title { font-size: 14px; font-weight: 600; color: #33291c; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row.human .mh-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: #8a7a66; }
.meeting-row.human .mh-sum {
  font-size: 12px; color: #5a4f42; line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meeting-row.human .mh-kb { font-size: 11.5px; color: #2e7d32; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row.human .action { align-self: flex-end; margin-top: 2px; }

/* ── 会议记录汇总 · 排版重整（2026-10-06）：新「人类视角」卡片适配 ──
   旧 .meeting-row 是五列表单式栅格，新卡片（mh-top/meta/sum/kb + 按钮）
   被硬塞五列致挤压换行；此处按「左主右辅」两栏行卡重排，列表高度放开。 */

.records-panel .records-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.records-panel .records-tools input {
  width: 230px;
  min-height: 34px;
  border-radius: 999px;
}

.records-panel .records-tools button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
}

.meeting-table {
  gap: 8px;
  max-height: min(52vh, 460px);
}

.meeting-row.human {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  grid-template-areas:
    "top  kb"
    "meta kb"
    "sum  btn";
  gap: 2px 16px;
  align-items: start;
  min-height: 0;
  padding: 12px 14px 11px;
  cursor: pointer;
}

.meeting-row.human:hover {
  transform: translateY(-1px);
}

.meeting-row.human .mh-top {
  grid-area: top;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.meeting-row.human .mh-top .title {
  overflow: hidden;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row.human .mh-top .doc {
  flex: none;
  font-size: 14px;
}

.meeting-row.human .mh-meta {
  grid-area: meta;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

.meeting-row.human .mh-meta span {
  flex: none;
}

.meeting-row.human .mh-meta span + span::before {
  color: #475569;
  content: "·";
  margin-right: 6px;
}

.meeting-row.human .mh-sum {
  grid-area: sum;
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meeting-row.human .mh-kb {
  grid-area: kb;
  align-self: start;
  color: #7dd3a8;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.meeting-row.human .action {
  grid-area: btn;
  justify-self: end;
  align-self: end;
  margin-top: 8px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a29bfe;
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
}

/* ── 三处联动选中态（2026-10-06）：名册卡片 + 工位形象 高亮 ── */
.agent-card.selected {
  outline: 2px solid #8a6d3b;
  outline-offset: 1px;
  background: linear-gradient(180deg, rgb(201 162 75 / 10%), transparent);
  box-shadow: 0 2px 10px rgb(138 109 59 / 18%);
}
.agent-card.selected .agent-card-name::after {
  content: " ✓ 已选中";
  font-size: 10px;
  color: #8a6d3b;
  font-weight: 600;
}
.character.selected .agent-tag rect { fill: #8a6d3b; }
.character.selected .agent-tag text { fill: #fff; font-weight: 700; }


/* ── 实时会议资讯抬头对齐 MemoBot 品牌行（2026-10-06，用户指正）── */
.nf-head { align-items: center; }
.nf-head .nf-brand { min-width: 0; }
.nf-head .nf-brand h3 { color: var(--text-primary); font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: 0.3px; }
.nf-head .nf-brand .nf-src { font-size: 12px; line-height: 18px; color: var(--text-secondary); margin-top: 2px; }

/* ── 资讯流分列（2026-10-06 用户钦定：按数据源四列）── */
.nf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nf-col {
  background: rgb(255 255 255 / 45%);
  border: 1px solid rgb(140 120 90 / 12%);
  border-radius: 10px;
  padding: 10px 10px 6px;
  min-width: 0;
  display: flex; flex-direction: column;
}
.nf-col-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 7px; margin-bottom: 4px;
  border-bottom: 1px solid rgb(140 120 90 / 14%);
}
.nf-col-head b { font-size: 12px; color: #2d2418; flex: 1; min-width: 0; }
.nf-col-count {
  font-size: 10px; color: #8a7a66; background: rgb(140 120 90 / 10%);
  border-radius: 8px; padding: 1px 7px; flex: none;
}
.nf-col .nf-item { padding: 6px 2px; cursor: default; }
.nf-col .nf-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1100px) { .nf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nf-cols { grid-template-columns: 1fr; } }

/* ── 资讯详情弹层 + 可点条目（2026-10-06）── */
.nf-item.nf-click { cursor: pointer; display: flex; align-items: flex-start; }
.nf-item.nf-click:hover { background: rgb(140 120 90 / 7%); border-radius: 6px; }
.nf-go { flex: none; color: #8a6d3b; font-size: 15px; line-height: 1; margin-top: 3px; opacity: 0; transition: opacity 120ms; }
.nf-item.nf-click:hover .nf-go { opacity: 1; }
.src-detail-dlg {
  border: none; border-radius: 14px; padding: 18px 20px;
  width: min(560px, 92vw); max-height: 78vh;
  box-shadow: 0 24px 64px rgb(31 26 23 / 24%);
  background: #fffdf8; color: #33291c;
}
.src-detail-dlg::backdrop { background: rgb(31 26 23 / 35%); }
.sd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sd-src-badge { font-size: 11px; color: #8a6d3b; background: rgb(201 162 75 / 14%); border-radius: 8px; padding: 2px 10px; font-weight: 700; }
#sdClose { border: none; background: transparent; font-size: 14px; cursor: pointer; color: #8a7a66; padding: 4px 8px; }
.src-detail-dlg h3 { margin: 4px 0 6px; font-size: 16px; }
.sd-meta { font-size: 11.5px; color: #8a7a66; margin: 0 0 10px; }
.sd-body { font-size: 13px; line-height: 1.75; overflow-y: auto; max-height: 46vh; }
.sd-qa { border-left: 2px solid rgb(201 162 75 / 40%); padding-left: 10px; margin: 8px 0; font-size: 12.5px; }
.sd-foot { margin-top: 12px; text-align: right; }
.sd-origin { font-size: 13px; color: #8a6d3b; font-weight: 700; text-decoration: none; border: 1px solid rgb(138 109 59 / 35%); border-radius: 8px; padding: 6px 14px; }
.sd-origin:hover { background: rgb(201 162 75 / 12%); }

/* 机器人电话牌（2026-10-07）：号码=accounts.json 真账本脱敏。
   配色复用 agent-tag 实证可见配方（白底 95%+次级深字）——首版半透明白在
   场景里渲染成黑块不可见（用户反馈），已弃用。 */
.agent-phone rect {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(31, 26, 23, 0.08);
  filter: drop-shadow(0 4px 12px rgba(31, 26, 23, 0.10));
}

.agent-phone text {
  fill: var(--text-secondary);
  font-size: 10px;
  font-family: var(--app-mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
}

/* 状态卡号码行（2026-10-07） */
.agent-card-phone {
  margin-top: 3px;
  color: #7d93ad;
  font-size: 11px;
  font-family: var(--app-mono, ui-monospace, monospace);
  letter-spacing: 0.03em;
}

/* 2026-10-10 实时状态：机器人卡片任务生命周期步骤条（派发者视角） */
.agent-task-strip {
  margin: 6px 0 2px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 147, 173, 0.28);
  border-radius: 9px;
  background: rgba(125, 147, 173, 0.07);
}
.agent-task-strip .ttitle {
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-task-strip .tsrc {
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 400;
  color: #7d93ad;
  border: 1px solid rgba(125, 147, 173, 0.4);
  border-radius: 4px;
  padding: 0 4px;
}
.agent-task-strip .tsteps {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-bottom: 4px;
}
.agent-task-strip .tstep {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  color: #9aa7b5;
  flex: 1;
}
.agent-task-strip .tstep i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9d3dd;
  display: inline-block;
}
.agent-task-strip .tstep.done { color: #2f7d4f; }
.agent-task-strip .tstep.done i { background: #57a87a; }
.agent-task-strip .tstep.now { color: #b07d1e; font-weight: 700; }
.agent-task-strip .tstep.now i { background: #e2a93b; box-shadow: 0 0 0 3px rgba(226, 169, 59, 0.22); }
.agent-task-strip .tstep.err { color: #b03a3a; font-weight: 700; }
.agent-task-strip .tstep.err i { background: #d95c5c; }
.agent-task-strip .tline {
  font-size: 11px;
  color: #51606f;
}
.agent-task-strip .tstage { font-weight: 600; }
.agent-task-strip .tstage.err { color: #b03a3a; }
.agent-task-strip .tage { color: #7d93ad; font-size: 10px; margin-left: 4px; }
.agent-task-strip .tdetail {
  font-size: 10.5px;
  color: #7d93ad;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-task-strip .tdetail.err { color: #a04848; white-space: normal; }
.agent-task-strip.failed { border-color: rgba(217, 92, 92, 0.4); background: rgba(217, 92, 92, 0.06); }

/* ── 机器人·大卡片（2026-10-10 用户钦定：实时工作状况+节点流水线）── */
.agent-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* 统一浅卡 + 左侧状态色条（视觉优化 2026-10-10：active/busy 不再整卡深蓝，
   状态色只出现在左条与徽标——整卡恒浅，避免刺眼与割裂） */
.agent-card.big {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 14px 16px 12px 20px; border-radius: 14px;
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(140 120 90 / 14%);
  box-shadow: 0 1px 4px rgb(31 26 23 / 4%);
  overflow: hidden;
}
.agent-card.big::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--card-accent, #c9a24b); opacity: .85;
}
.agent-card.big:hover { box-shadow: 0 4px 14px rgb(31 26 23 / 9%); transform: translateY(-1px); }
.ac-head { display: flex; align-items: center; gap: 10px; }
.ac-head .agent-card-avatar { width: 40px; height: 40px; flex: none; }
.ac-title { flex: 1; min-width: 0; }
.agent-card.big .agent-card-name { font-size: 15px; font-weight: 800; color: #33291c; letter-spacing: .3px; }
.ac-sel { color: #8a6d3b; font-size: 12px; }
.ac-sub { font-size: 10.5px; color: #8a7a66; margin-top: 2px; }
.ac-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.agent-card.big .agent-card-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgb(140 120 90 / 8%); color: #5a4f42;
}
.agent-card.big .agent-card-status.busy { background: rgb(53 114 176 / 10%); color: #2a5a8e; }
.agent-card.big .agent-card-status.offline { background: rgb(183 28 28 / 8%); color: #a33; }
.ac-badge { font-size: 10px; border-radius: 999px; padding: 1.5px 8px; font-weight: 700; }
.ac-badge.ok { color: #2e7d32; background: rgb(46 125 50 / 10%); }
.ac-badge.bad { color: #b71c1c; background: rgb(183 28 28 / 8%); }
.ac-task { font-size: 12px; color: #5a4f42; background: rgb(140 120 90 / 6%);
  border-radius: 8px; padding: 5px 10px; }
.ac-task b { color: #33291c; font-family: ui-monospace, monospace; letter-spacing: .5px; }
/* 时间线（防挤压：节点等分 + 真实 9.5px 不缩放 + 间距收紧） */
.tl { display: flex; align-items: flex-start; margin-top: 0; padding: 0 2px; }
.tl-node { display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1 1 0; min-width: 0; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #ddd4c5; background: #fff; z-index: 1; }
.tl-node em { font-style: normal; font-size: 9.5px; line-height: 1; color: #b0a392; white-space: nowrap; }
.tl-line { flex: 1 1 12px; height: 2px; background: #e8e0d1; margin-top: 4.5px; }
.tl-node.done .tl-dot { background: #35a065; border-color: #35a065; }
.tl-node.done em { color: #2c7a4e; font-weight: 700; }
.tl-node.active .tl-dot { background: #3572b0; border-color: #3572b0; animation: tlPulse 1.6s infinite; }
.tl-node.active em { color: #2a5a8e; font-weight: 800; }
.tl-node.failed .tl-dot { background: #d84a4a; border-color: #d84a4a; }
.tl-node.failed em { color: #b03a3a; font-weight: 800; }
@keyframes tlPulse { 0%,100% { box-shadow: 0 0 0 3px rgb(53 114 176 / .2);} 50% { box-shadow: 0 0 0 6px rgb(53 114 176 / .07);} }
.tl-detail { font-size: 11px; color: #6b5c48; margin-top: 2px; min-height: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl.idle { font-size: 11.5px; color: #9a8c7a; background: rgb(140 120 90 / 5%);
  border-radius: 8px; padding: 7px 10px; text-align: center; margin-top: 2px; }
.ac-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 11px; color: #6b5c48;
  border-top: 1px dashed rgb(140 120 90 / 16%); padding-top: 7px; }
.ac-meta-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
@media (max-width: 900px) { .agent-roster { grid-template-columns: 1fr; } }

.tl.idle.sched { color: #8a6d3b; background: rgb(201 162 75 / 10%); font-weight: 600; }

.ac-vnc { font-size: 10.5px; color: #8a6d3b; background: rgb(201 162 75 / 14%);
  border: 1px solid rgb(201 162 75 / 35%); border-radius: 999px; padding: 2px 9px;
  font-weight: 700; text-decoration: none; white-space: nowrap; }
.ac-vnc:hover { background: rgb(201 162 75 / 26%); }
.ac-vnc.off { color: #9a8c7a; background: rgb(140 120 90 / 6%); border-color: transparent; cursor: default; }
