/* Mongoose Screens app: gallery, editor, my screens, account. Dark studio look so previews read true. */
:root { --bg: #0b0d14; --surface: #141824; --surface2: #1b2030; --line: #2a3145; --text: #eef1f8; --muted: #9aa3b8; --accent: #4de3ff; --accent2: #b9a7ff;
  --good: #7be0a6; --warn: #ffcf70; --radius: 14px; --font: system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: #0e111a; position: sticky; top: 0; z-index: 50; }
.tabs { display: flex; gap: 6px; }
.tabs a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.tabs a[aria-current="page"] { color: var(--text); background: var(--surface2); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); border-radius: 999px; padding: 9px 16px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: #3d4766; }
.btn.primary { background: var(--accent); color: #031018; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.view { max-width: 1320px; margin: 0 auto; padding: 24px; min-height: 70vh; outline: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; padding: 22px 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #f6f4ee; color: #121212; padding: 11px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .3s; pointer-events: none; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: 30px; letter-spacing: -.5px; }
h2 { font-size: 21px; margin-top: 26px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, #142742, #2a1d4a); border: 1px solid #34407a; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 16 / 9; background: #05070d center / cover no-repeat; display: block; position: relative; }
.card .thumb.kind-core { background-image: radial-gradient(circle at 50% 46%, #bff6ff 0, #4de3ff 6%, #1c2a6b 22%, #05070d 52%); }
.card .thumb.kind-aurora { background-image: linear-gradient(180deg, #03060f, #0c3a3a 50%, #2a1d4a); }
.card .thumb.kind-gradient, .card .thumb.kind-color { background-image: linear-gradient(135deg, #0f2027, #2c5364); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body h3 { font-size: 16px; margin: 0; }
.card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.preview-wrap { position: sticky; top: 72px; }
.preview { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #02040a; }
.preview:fullscreen { border-radius: 0; border: 0; }
.preview-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.preview-bar .grow { flex: 1; min-width: 160px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ptabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.ptabs button { background: transparent; border: 0; color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.ptabs button[aria-selected="true"] { color: var(--text); background: var(--surface2); }
.pbody { padding: 14px; display: grid; gap: 12px; max-height: calc(100vh - 220px); overflow: auto; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea, .field input[type="search"] { width: 100%; background: #0d1018; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.field textarea { min-height: 76px; resize: vertical; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.field input[type="color"] { width: 46px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: #0d1018; color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg button[aria-pressed="true"] { color: #031018; background: var(--accent); border-color: transparent; font-weight: 700; }
.colors { display: flex; gap: 8px; align-items: center; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; background: #10131c; }
.item .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs button { aspect-ratio: 16 / 10; border: 2px solid transparent; border-radius: 8px; background: #05070d center / cover no-repeat; cursor: pointer; padding: 0; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.note { font-size: 12px; color: var(--muted); }
.gen-status { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.share { display: flex; gap: 6px; align-items: center; }
.share input { flex: 1; min-width: 0; background: #0d1018; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .editor { grid-template-columns: 1fr; } .preview-wrap { position: static; } .pbody { max-height: none; } }
@media (max-width: 560px) { .view { padding: 14px; } .topbar { padding: 8px 12px; } .tabs a { padding: 7px 10px; } .who .email { display: none; } }
.preview-bar input[type="text"] { background: #0d1018; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--text); }
.preview-bar .field { min-width: 220px; }
.card .body .pill { align-self: flex-start; }
/* The store, in Account */
.store { display: grid; gap: 10px; max-width: 640px; margin: 18px 0; }
.store .item { background: var(--surface2, #10131c); }
