/* Production additions to Mirko's Studio styles: no demo bar or demo state
   pickers, and the bar that shows the lock after submission. */
.preview-bar,
.preview-controls,
#load-sample,
#screen-picker { display: none !important; }

/* No sample content for real creators (Mirko, 2026-11-03): the sample
   document import (profile, program), the "this is a demo" notes on review
   and status, the "example app" tag and the prototype note on the referral offer. */
details.pi-import-demo,
details.pt-demo,
#ketchi-referral-proposal footer [data-t="prototype"],
#ketchi-review-thirteen .demo-label,
#ketchi-status-fourteen .demo,
#ketchi-referral-proposal .app-label [data-t="example"] { display: none !important; }

#studio-edit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 auto; padding: 12px 24px; background: var(--pale, #f0edff); color: var(--ink, #131a2e);
  border-bottom: 1px solid var(--line, #e2e7f1); font-size: 14px; line-height: 1.4;
}
#studio-edit-bar[hidden] { display: none; }
#studio-edit-bar .btn { white-space: nowrap; }
body.studio-locked #studio-panels input:disabled,
body.studio-locked #studio-panels textarea:disabled,
body.studio-locked #studio-panels select:disabled { opacity: .75; cursor: not-allowed; }
.dev-code { margin-top: 12px; }
@media (max-width: 640px) { #studio-edit-bar { flex-direction: column; align-items: stretch; padding: 12px 16px; } }
body.studio-locked #studio-panels .upload-button { opacity: .5; cursor: not-allowed; }

/* The selected app (always shown) and the chooser for it. */
#studio-app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; background: var(--paper, #fff); border-bottom: 1px solid var(--line, #e2e7f1);
  font-size: 14px; color: var(--ink, #131a2e);
}
#studio-app-bar[hidden] { display: none; }
#studio-app-bar .btn { white-space: nowrap; }
#studio-chooser {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(19, 26, 46, .45); overflow-y: auto;
}
#studio-chooser .chooser-card {
  width: min(520px, 100%); background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 20px 60px rgba(19, 26, 46, .25); display: grid; gap: 12px;
}
#studio-chooser h2, #studio-chooser h3 { margin: 0; }
#studio-chooser p { margin: 0; color: var(--muted, #6b7690); }
#studio-chooser .chooser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#studio-chooser .chooser-list .btn { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; }
#studio-chooser .chooser-list span { color: var(--muted, #6b7690); font-weight: 400; }
#studio-chooser form { display: grid; gap: 8px; }
#studio-app-bar .linkish { background: none; border: 0; padding: 0 0 0 6px; color: var(--violet, #5b3df5); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
#app-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
#app-rename label { font-size: 14px; }
#app-rename .input { flex: 1 1 200px; min-width: 0; padding: 6px 10px; }
#studio-chooser .linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 640px) { #studio-app-bar { flex-direction: column; align-items: stretch; padding: 10px 16px; } }
#studio-chooser .chooser-list span { color: inherit; opacity: .8; }
#studio-app-bar .btn { background: none; color: var(--violet, #5b3df5); border: 1px solid currentColor; box-shadow: none; padding: 6px 14px; min-height: 0; font-size: 14px; }
@media (max-width: 640px) { #studio-app-bar { flex-direction: row; flex-wrap: wrap; align-items: center; } }
