/* Terminal app shell — minimal, no admin sidebar (F4) */

body.terminal-app {
  --term-bg: #0f172a;
  --term-surface: #1e293b;
  --term-text: #f1f5f9;
  --term-muted: #94a3b8;
  --term-accent: #14b8a6;
  --term-danger: #f87171;
  --term-warn: #fbbf24;
  background: var(--term-bg);
  color: var(--term-text);
}

body.terminal-app .term-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1rem 1rem 2rem;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.term-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.term-header .term-muted { color: var(--term-muted); font-size: 0.85rem; }

.term-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.term-tab {
  flex: 1;
  appearance: none;
  border: 1px solid transparent;
  background: var(--term-surface);
  color: var(--term-muted);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}
.term-tab[aria-selected="true"] {
  color: var(--term-text);
  border-color: var(--term-accent);
}

.term-row {
  background: var(--term-surface);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.term-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.term-code { font-weight: 700; letter-spacing: 0.02em; }
.term-amount { font-weight: 700; color: var(--term-accent); }
.term-meta { color: var(--term-muted); font-size: 0.8rem; }
.term-claimed {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--term-accent);
  margin-left: 0.35rem;
}
.term-countdown {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--term-warn);
}
.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.term-actions .btn { font-size: 0.85rem; }

.term-empty {
  text-align: center;
  color: var(--term-muted);
  padding: 2rem 1rem;
}

.term-access-ended {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--term-danger);
}

/* Owner on the Terminal: switcher + way back to the app */
.term-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.term-owner-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.term-switch { min-height: 2rem; border-radius: 8px; padding: 0 0.5rem; max-width: 12rem; }

/* Queue sections, alerts, badge (build 174) */
.term-head-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.term-section { margin-bottom: 1rem; }
.term-section-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; color: var(--term-muted); }
.term-count { font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--term-surface); color: var(--term-text); }
.term-section-guest_claimed .term-section-title { color: var(--term-accent); }
.term-stage-guest_claimed { border-left: 4px solid var(--term-accent); }
.term-stage-awaiting_payment { border-left: 4px solid var(--term-warn); }
.term-stage-pending { border-left: 4px solid var(--term-muted); opacity: 0.92; }
.term-badge { display: inline-block; min-width: 1.25rem; padding: 0 0.4rem; margin-left: 0.25rem; border-radius: 999px; font-size: 0.75rem; line-height: 1.25rem; background: var(--term-muted); color: var(--term-bg); }
.term-badge.urgent { background: var(--term-accent); }
.term-badge.hidden, .term-alert.hidden { display: none; }
.term-alert { margin-bottom: 0.75rem; padding: 0.65rem 0.85rem; border-radius: 8px; background: var(--term-surface); border: 1px solid var(--term-warn); font-weight: 600; }
.term-alert.urgent { border-color: var(--term-accent); }
