:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-light: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;

  --status-available: #22c55e;
  --status-working: #38bdf8;
  --status-reviewing: #eab308;
  --status-waiting: #f97316;
  --status-attention: #ef4444;
  --status-offline: #64748b;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-badges {
  display: flex;
  gap: 10px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-light);
  color: var(--muted);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.badge-ok .dot {
  background: #22c55e;
}

.app-body {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ---------- Building scene ---------- */

.building-scene {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.building-svg {
  width: min(100%, 900px);
  height: 100%;
  max-height: 100%;
}

.command-center-hotspot,
.floor-hotspot-active {
  cursor: pointer;
}

.command-center-hotspot:hover circle:first-of-type {
  filter: brightness(1.3);
}

.floor-hotspot-active:hover rect {
  filter: brightness(1.15);
}

.svg-label-strong {
  fill: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.svg-label-muted {
  fill: var(--muted);
  font-size: 11px;
}

.svg-floor-label {
  fill: var(--muted);
  font-size: 14px;
}

.svg-floor-label-active {
  fill: #ecfeff;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Finance floor scene ---------- */

.floor-scene {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.floor-scene-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.dept-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
}

.dept-heading h2 {
  margin: 0;
  font-size: 18px;
}

.dept-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
}

.dept-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.dept-tally-ok,
.dept-tally-off {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dept-tally-ok i,
.dept-tally-off i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dept-tally-ok i {
  background: var(--status-available);
}

.dept-tally-off i {
  background: var(--status-offline);
}

.dept-tally-ok {
  color: #86efac;
}

.dept-tally-off {
  color: var(--muted);
}

.floor-room {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Matches OfficeScene's own sky/ceiling tones so any letterboxed edge blends in, rather than
     the old dark "night building" navy this used to be. */
  background: #eaf4fb;
}

/* ---------- Workroom (premium floor) ---------- */

.workroom {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

.finance-hut-tally-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
}

.office-scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.workstation {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  transition: transform 0.2s ease;
}

.workstation:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.workstation:hover {
  transform: translate(-50%, -50%) translateY(-2px);
}

.ws-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}

@media (prefers-reduced-motion: no-preference) {
  .workstation.reviewing .ws-svg {
    animation: ws-bob 1.1s ease-in-out infinite;
  }
  .workstation.working .ws-svg {
    animation: ws-shake 0.5s ease-in-out infinite;
  }
}

@keyframes ws-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes ws-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

.ws-dot-html {
  position: absolute;
  top: 15%;
  left: 62%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dot-available {
  background: var(--status-available);
}
.dot-working {
  background: var(--status-working);
}
.dot-reviewing {
  background: var(--status-reviewing);
}
.dot-waiting {
  background: var(--status-waiting);
}
.dot-attention {
  background: var(--status-attention);
}
.dot-offline {
  background: var(--status-offline);
}

@media (prefers-reduced-motion: no-preference) {
  .workstation.reviewing .ws-dot-html,
  .workstation.working .ws-dot-html {
    animation: dot-pulse 1s ease-in-out infinite;
  }
}

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

.ws-away .ws-svg {
  opacity: 0.4;
}

.ws-away-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f6d78b;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ws-tally-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ws-tally-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.ws-tally-chip.ok {
  color: #bbf7d0;
}
.ws-tally-chip.ok i {
  background: #22c55e;
}
.ws-tally-chip.fail {
  color: #fecaca;
}
.ws-tally-chip.fail i {
  background: #ef4444;
}

.ws-plate {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 3px 10px 4px;
}

.ws-plate strong {
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ws-plate span {
  font-size: 10px;
  color: #e2e8f0;
}

.ws-count {
  font-weight: 700;
}

.tone-low {
  color: #6ee7b7;
}
.tone-medium {
  color: #fde68a;
}
.tone-high {
  color: #fca5a5;
}

/* ---------- Chat panel ---------- */

.chat-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(320px, 28vw, 420px);
  max-width: 92vw;
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f1ea;
  border: 2px solid var(--ws-accent, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 12px;
  color: #0b1220;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.5);
}

.chat-identity h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.chat-role {
  font-size: 11px;
  color: var(--muted);
}

.chat-close {
  padding: 4px 10px;
}

.chat-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.chip-btn {
  background: var(--panel-light);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.finance-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.finance-card {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finance-card-label {
  font-size: 10.5px;
  color: var(--muted);
}

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

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  color: var(--muted);
  font-size: 13px;
}

.chat-message {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 88%;
  white-space: pre-wrap;
}

.chat-message.user {
  align-self: flex-end;
  background: #0e7490;
  border-bottom-right-radius: 4px;
}

.chat-message.agent {
  align-self: flex-start;
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  opacity: 0.6;
}

.chat-panel-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-panel-input input {
  flex: 1;
  min-width: 0;
}

/* ---------- Dashboard ---------- */

.dashboard {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  overflow-y: auto;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.tab {
  background: var(--panel-light);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.item-row input {
  flex: 1;
  min-width: 90px;
}

input,
select {
  background: var(--panel-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

button.primary-btn {
  background: var(--accent);
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

button.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

.settings-btn {
  background: var(--panel-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Settings window ---------- */

.settings-app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-header h1 {
  margin: 0 0 4px;
}

.settings-header p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.settings-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-section-title h2 {
  margin: 0;
  font-size: 15px;
}

.settings-section label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.settings-section input {
  font-size: 14px;
  color: var(--text);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-app a {
  color: var(--accent);
}

/* ---------- Campus scene ---------- */

.campus-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.campus-hud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #263025;
  white-space: nowrap;
}

.campus-hud-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.campus-hud-stat.ok {
  color: #1e7a3c;
}

.campus-hud-stat.warn {
  color: #b45309;
}

.campus-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.campus-hut-active {
  cursor: pointer;
}

.campus-hut-active:hover {
  filter: brightness(1.04);
}

.campus-hut-muted {
  opacity: 0.65;
}

.campus-hut-label {
  font: 700 15px system-ui, sans-serif;
  fill: #1f2a1f;
}

.campus-hut-label.muted {
  fill: #5a6558;
}

.campus-hut-sublabel {
  font: 500 11px system-ui, sans-serif;
  fill: #55605a;
}

.campus-prop text {
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .campus-tree-canopy {
    transform-origin: center bottom;
    animation: campus-sway 4.5s ease-in-out infinite;
  }
  .campus-fern {
    transform-origin: bottom center;
    animation: campus-sway 3.6s ease-in-out infinite;
  }
  .campus-stream {
    animation: campus-stream-shift 6s ease-in-out infinite;
  }
  .campus-stream-glint {
    animation: campus-glint 2.4s ease-in-out infinite;
  }
  .campus-butterfly {
    animation: campus-flutter 5s ease-in-out infinite;
  }
  .campus-bird {
    animation: campus-fly 16s linear infinite;
    opacity: 0;
  }
  .campus-lantern circle {
    animation: campus-glow 2.6s ease-in-out infinite;
  }

  .campus-paused .campus-tree-canopy,
  .campus-paused .campus-fern,
  .campus-paused .campus-stream,
  .campus-paused .campus-stream-glint,
  .campus-paused .campus-butterfly,
  .campus-paused .campus-bird,
  .campus-paused .campus-lantern circle {
    animation-play-state: paused;
  }
}

@keyframes campus-sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
@keyframes campus-stream-shift {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}
@keyframes campus-glint {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateX(30px);
    opacity: 0.6;
  }
}
@keyframes campus-flutter {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(6px, -8px) rotate(8deg);
  }
  50% {
    transform: translate(-4px, -14px) rotate(-6deg);
  }
  75% {
    transform: translate(4px, -6px) rotate(6deg);
  }
}
@keyframes campus-fly {
  0% {
    transform: translate(-60px, 0);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  45% {
    transform: translate(620px, -40px);
    opacity: 0.8;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translate(1300px, -40px);
    opacity: 0;
  }
}
@keyframes campus-glow {
  0%,
  100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 2px #ffd77a);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px #ffd77a);
  }
}

/* ---------- Tally panel ---------- */

.tally-panel {
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tally-panel-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #333;
}

.tally-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tally-dot-ok {
  background: #22c55e;
}

.tally-dot-fail {
  background: #ef4444;
}

.tally-dot-unknown {
  background: #9ca3af;
}

.tally-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  color: #444;
}

.tally-panel-muted {
  color: #888;
  font-style: italic;
}

.tally-panel-label {
  color: #888;
}

.tally-panel-value {
  font-weight: 600;
  text-align: right;
}

/* ---------- Employee panel ---------- */

.employee-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.employee-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.employee-panel-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.employee-panel-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
  margin-bottom: 6px;
}

.employee-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.employee-panel-dot.dot-ok {
  background: #22c55e;
}

.employee-panel-dot.dot-busy {
  background: #f59e0b;
}

.employee-panel-dot.dot-off {
  background: #9ca3af;
}

.employee-panel-activity {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.employee-panel-actions {
  display: flex;
  gap: 8px;
}

.employee-panel-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border, #e3e5e8);
  background: #f5f6f7;
  font-size: 12px;
  cursor: pointer;
}

.employee-panel-btn.primary {
  background: var(--accent, #3949ab);
  color: #fff;
  border-color: transparent;
}

.employee-panel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* ---------- Command bar ---------- */

.command-bar-wrap {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  width: min(640px, 90%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-bar-reply {
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 10px;
  padding: 10px 14px;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.command-bar-reply pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12.5px;
  color: #333;
}

.command-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.command-bar-target {
  border: none;
  background: #f2f3f4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.command-bar-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  padding: 6px 4px;
}

.command-bar-mic {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: not-allowed;
  opacity: 0.5;
}

.command-bar-send {
  border: none;
  background: var(--accent, #3949ab);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.command-bar-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Activity feed ---------- */

.activity-feed {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 6;
  width: 260px;
}

.activity-feed-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.activity-feed-count {
  background: #eef0f1;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}

.activity-feed-caret {
  margin-left: auto;
  color: #888;
}

.activity-feed-list {
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--border, #e3e5e8);
  border-radius: 10px;
  padding: 8px 10px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.activity-feed-empty {
  font-size: 12px;
  color: #888;
  padding: 6px 2px;
}

.activity-feed-item {
  font-size: 12px;
  color: #444;
  padding: 5px 2px;
  border-bottom: 1px solid #f0f1f2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.activity-feed-item:last-child {
  border-bottom: none;
}

.activity-feed-item strong {
  color: #222;
}

.activity-feed-time {
  margin-left: auto;
  color: #999;
  font-size: 11px;
}

/* ---------- Finance hut transition ---------- */

.finance-hut-enter {
  animation: hut-enter 0.5s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .finance-hut-enter {
    animation: none;
  }
}

@keyframes hut-enter {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
