/* AppSite Studio — module base stylesheet.
 *
 * This file previously contained a complete copy of the GALLERY module's
 * index.html — 283 lines of markup, no CSS. The stylesheet link in app.html
 * therefore loaded an HTML document, the browser discarded it, and Studio
 * rendered from nothing but its inline style block. That is why Studio did not
 * match the other modules. The same corruption is present upstream in
 * -appsitetm_studio and on both deployed sites.
 *
 * Tokens live HERE rather than inline so they sit in the same cascade position
 * as every other module's :root, and brand-seed.js can override them the same
 * way it does elsewhere. app.html keeps only Studio's own shell and components.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Light surfaces, matching the rest of the tree — Studio was the only module
     shipping a dark palette (--bg was #0b0e14 against everyone else's #f4f6f9).
     The orange accent is deliberately kept: it is Studio's identity and it
     reads correctly against the tenant's cream chrome. */
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #f2f4f7;
  --border: #dde3ed;
  --text: #1a2332;
  --muted: #6b7a8f;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, .12);
  --rec: #dc2626;
  --ok: #16a34a;
  --primary: #0f766e;
  --shadow: 0 1px 4px rgba(0, 0, 0, .08);
  --radius: 8px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* SSO banner — the strip every module shows above its own chrome. */
.sso-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  font-size: 13px;
}
.sso-avatar { width: 24px; height: 24px; border-radius: 50%; }
.sso-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn-link { color: var(--primary); text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.btn-sm {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
