/* Email Studio app shell. The base look (top bar, sign-in card, modal, toast, buttons and the Email Studio screen)
   comes from dashboard.css, which the page loads first. This file adds the views and pages of the shell. */

.app[data-view="loading"] .topbar { display: none; }
.app[data-view="account"] .view-account { display: block; }

.studio-noscript { padding: 32px 24px; }
.studio-sub { margin: 0 0 8px; }
.studio-note { margin: 0; }

.studio-who {
  color: var(--muted);
  font-size: 13px;
  margin-left: 12px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-notes:empty { display: none; }
.studio-notes { margin-bottom: 16px; }

.studio-card { max-width: 640px; margin-bottom: 16px; }
.studio-card h1, .studio-card h2 { margin-top: 0; }
.studio-card h2 { font-size: 16px; font-weight: 600; }

.studio-form { display: flex; flex-direction: column; gap: 12px; }
.studio-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.studio-form input,
.studio-form select {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}
.studio-form input:focus,
.studio-form select:focus { outline: none; border-color: var(--accent); }
.studio-form button { align-self: flex-start; }
.studio-form p { margin: 0; }

.studio-steps { margin-top: 16px; }
.studio-secret,
.studio-uri {
  display: inline-block;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  word-break: break-all;
}
.studio-secret { font-size: 16px; letter-spacing: 0.08em; }

.studio-users { margin-top: 8px; }
.studio-table { width: 100%; border-collapse: collapse; }
.studio-table th,
.studio-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.studio-table th { font-weight: 600; background: #f1f1ef; color: var(--muted); font-size: 12px; }
.studio-table tbody tr:last-child td { border-bottom: 0; }
.studio-actions { white-space: nowrap; }
.studio-actions button + button { margin-left: 6px; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .nav { flex-wrap: wrap; margin-left: 0; }
  .studio-who { margin-left: 0; }
  .main { padding: 24px 16px; }
  .table-wrap { overflow-x: auto; }
}
