.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.app-empty {
  padding: 2rem 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;

  /* centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.app {
  width: 100%;
  max-width: 100%;
  padding: 2rem 2rem 2rem 2rem;
  padding-right: 2rem;
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.workspace-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  pointer-events: none;
}

.workspace-footer-content {
  pointer-events: auto;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg);
}

.workspace-footer .copyright-symbol {
  font-size: 1.1em;
  vertical-align: baseline;
}

/* region ── Layout ─────────────────────────────────────────────────────────── */
.main-layout {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 8rem);
  position: relative;
}

.left-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 820px;
  min-width: 200px;
  gap: 1.5rem;
  position: relative;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-play {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.btn-play:hover {
  background: rgba(232, 255, 71, 0.1);
  box-shadow: 0 0 16px rgba(232, 255, 71, 0.2);
}


.project-title-bar {
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-title-bar .title-left {
  flex: 1;
  min-width: 0;
}

.project-server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.project-cloud-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
  opacity: 0.85;
}
.project-cloud-badge.local {
  color: var(--muted);
  border-color: rgba(107,107,122,0.35);
}
.project-cloud-badge.server {
  color: var(--accent2);
  border-color: rgba(71,200,255,0.3);
  background: rgba(71,200,255,0.06);
}
.project-cloud-badge.modified {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-faint);
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(107,107,122,0.35);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0.6;
}
.header-action-btn:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  opacity: 1;
}
.header-action-btn.active {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  opacity: 1;
}
.header-action-btn.active:hover {
  background: rgba(232,255,71,0.15);
  border-color: var(--accent);
}
.header-action-btn img {
  display: block;
  width: 14px;
  height: 14px;
}

.project-push-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--accent-border);
  background: rgba(232,255,71,0.05);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.project-push-btn:hover {
  background: rgba(232,255,71,0.12);
  border-color: var(--accent);
}

.project-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  cursor: text;
  border-radius: 3px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.15s;
  display: inline-block;
}
.project-title:hover { background: rgba(255,255,255,0.05); }

.project-title-input {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--accent);
  outline: none;
  padding: 2px 4px;
  margin: -2px -4px;
  width: 100%;
  max-width: 600px;
}

/* Shared styles for editable speaker name — used in legend and transcript */
.speaker-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: background 0.15s;
}

.speaker-name:hover { background: rgba(255,255,255,0.06); }

.speaker-name-input {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--text);
  outline: none;
  padding: 1px 4px;
  width: 10em;
}

/* Override transcript speaker-label to use same editable style */
.speaker-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0;
}