.admin-panel {
  display: none !important;
  flex-direction: column;
  width: 100%;
}
.card.admin-mode .admin-panel {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 0 !important;
}

/* Workspace Navigation */
.workspace-row { display: flex; align-items: center; gap: 10px; }

#btnSettings {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  color: rgba(255, 255, 255, 0.4); display: grid; place-items: center;
  cursor: pointer; z-index: 1100; flex-shrink: 0;
  transition: all 0.25s;
}
#btnSettings:hover { color: #4ECDC4; border-color: rgba(78,205,196,0.2); background: rgba(78,205,196,0.06); }
#btnSettings:active { transform: scale(0.95); }
body.overlay-open #btnSettings { display: none; }

.workspace-strip {
  flex: 1; display: flex; align-items: center; gap: 3px; overflow-x: auto;
  padding: 3px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px;
  background: rgba(0, 0, 0, 0.25); justify-content: flex-start;
  min-width: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.workspace-strip::-webkit-scrollbar { display: none; }

.ws-slide {
  flex: 1 0 auto; min-width: clamp(120px, 30vw, 160px); padding: 9px 12px;
  text-align: center; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.4); letter-spacing: 0.3px;
  white-space: nowrap; position: relative; border-left: none;
  scroll-snap-align: start; user-select: none; cursor: pointer;
  border-radius: 10px; transition: all 0.25s ease;
  border: 1px solid transparent;
}
.ws-slide:hover {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
}
.ws-slide.active {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.08);
  color: #fff; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25), 0 0 12px var(--ws-glow, rgba(78,205,196,0.1));
}
.ws-slide.active::after {
  content: ""; position: absolute;
  height: 2px; border-radius: 2px;
  bottom: 2px; left: 20%; right: 20%;
  background: var(--ws-accent, #4ECDC4);
  box-shadow: 0 0 8px var(--ws-glow, rgba(78, 205, 196, 0.5));
}
.ws-slide[data-ws="chess"] { --ws-accent: #4ECDC4; --ws-glow: rgba(78, 205, 196, 0.35); }
.ws-slide[data-ws="schedule"] { --ws-accent: #fbbf24; --ws-glow: rgba(251, 191, 36, 0.25); }
.ws-slide[data-ws="contractors"] { --ws-accent: #a78bfa; --ws-glow: rgba(167, 139, 250, 0.25); }

.ws-icon { font-size: 13px; margin-right: 4px; }

/* Action Bar — bottom part of the unified card */
/* ===== ACTION BAR ===== */
.action-bar {
  position: absolute; z-index: 1600;
  bottom: calc(var(--page-pad) + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - (var(--page-pad) * 2)); max-width: var(--mobile-width);
  height: var(--action-bar-height); border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.88) 0%, rgba(12, 12, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  backdrop-filter: blur(32px) saturate(1.5);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: stretch; padding: 4px 8px 6px; gap: 0;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  box-sizing: border-box; overflow: visible;
}

.action-btn {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  border: none; background: transparent !important; color: rgba(160, 160, 175, 0.6); cursor: pointer;
  position: relative; padding: 0; margin: 0;
  border-radius: 14px;
  transition: color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.action-btn::after {
  content: "";
  position: absolute;
  right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent 100%);
  pointer-events: none;
}
.action-btn:last-child::after,
.action-btn.action-btn-last::after { display: none; }

.action-btn-bg {
  position: absolute; inset: 3px; border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 0;
}

.action-btn:hover .action-btn-bg {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.action-btn.active {
  color: var(--btn-glow-color, #4ECDC4);
}
.action-btn.active .action-btn-bg {
  background: radial-gradient(ellipse at 50% 65%, var(--btn-glow-soft, rgba(78, 205, 196, 0.14)) 0%, transparent 75%);
  border-color: var(--btn-glow-border, rgba(78, 205, 196, 0.12));
  box-shadow: inset 0 0 18px var(--btn-glow-soft, rgba(78, 205, 196, 0.06));
}

.action-icon {
  width: 34px; height: 34px; object-fit: contain;
  filter: brightness(0.6) saturate(0.7) grayscale(0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}
.action-btn:hover .action-icon {
  filter: brightness(0.9) saturate(0.9) grayscale(0);
  transform: translateY(-2px) scale(1.04);
}

.action-btn.active .action-icon {
  transform: translateY(-3px) scale(1.18);
  filter: brightness(1.4) saturate(1.3) drop-shadow(0 0 12px var(--btn-glow, rgba(78, 205, 196, 0.6)));
  animation: icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes icon-pop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.25); }
  100% { transform: translateY(-3px) scale(1.18); }
}

.action-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
  opacity: 0.35;
  transition: all 0.35s ease;
  z-index: 2;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 4px;
}
.action-btn.active .action-label {
  opacity: 1;
  color: var(--btn-glow-color, #4ECDC4);
  text-shadow: 0 0 12px var(--btn-glow, rgba(78, 205, 196, 0.5));
}
.action-btn:hover .action-label {
  opacity: 0.6;
}

/* Active indicator dot */
.action-btn.active::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--btn-glow-color, #4ECDC4);
  box-shadow:
    0 0 6px var(--btn-glow-color, #4ECDC4),
    0 0 16px var(--btn-glow, rgba(78, 205, 196, 0.5));
  z-index: 2;
  animation: dot-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dot-in {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Per-button accent colors */
.action-btn[data-action="a1"] { --btn-glow: rgba(96, 165, 250, 0.6); --btn-glow-color: #60a5fa; --btn-glow-soft: rgba(96, 165, 250, 0.12); --btn-glow-border: rgba(96, 165, 250, 0.1); }
.action-btn[data-action="a2"] { --btn-glow: rgba(167, 139, 250, 0.6); --btn-glow-color: #a78bfa; --btn-glow-soft: rgba(167, 139, 250, 0.12); --btn-glow-border: rgba(167, 139, 250, 0.1); }
.action-btn[data-action="a3"] { --btn-glow: rgba(251, 191, 36, 0.6); --btn-glow-color: #fbbf24; --btn-glow-soft: rgba(251, 191, 36, 0.12); --btn-glow-border: rgba(251, 191, 36, 0.1); }
.action-btn[data-action="a4"] { --btn-glow: rgba(52, 211, 153, 0.6); --btn-glow-color: #34d399; --btn-glow-soft: rgba(52, 211, 153, 0.12); --btn-glow-border: rgba(52, 211, 153, 0.1); }
.action-btn[data-action="a5"] { --btn-glow: rgba(78, 205, 196, 0.6); --btn-glow-color: #4ECDC4; --btn-glow-soft: rgba(78, 205, 196, 0.12); --btn-glow-border: rgba(78, 205, 196, 0.1); }