/* Program & Collateral Studio surface — extends the app's existing design tokens.
   Her content carries the weight; controls stay quiet. */

.studio-backdrop {
  position: fixed; inset: 0; background: rgba(35, 51, 48, .45);
  z-index: 20; backdrop-filter: blur(2px);
}
.studio {
  position: fixed; z-index: 21; top: 3vh; bottom: 3vh; left: 0; right: 0; margin: 0 auto;
  width: min(46rem, 94vw); background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(35, 51, 48, .28); overflow-y: auto;
  padding: var(--s4) clamp(1.25rem, 5vw, 2.5rem) 2.5rem; animation: studioIn .3s ease;
}
@keyframes studioIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.studio-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.studio-mark { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--sage-deep); }
.studio-mark span { color: var(--first-light-deep); }
.studio-head-right { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }

.studio-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.studio-toggle .seg { background: transparent; border: none; padding: .4rem .95rem; font: inherit; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.studio-toggle .seg.on { background: var(--first-light); color: #2a1c10; font-weight: 700; }

.studio-intro { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0 0 var(--s3); max-width: 38rem; }
.studio-nudge { color: var(--first-light-deep); font-size: .92rem; margin: 0 0 var(--s3); }

.studio-blockf { display: block; margin: 0 0 var(--s3); }
.studio-label { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .2rem; }
.studio-hint { display: block; font-size: .88rem; color: var(--ink-faint); margin-bottom: .4rem; line-height: 1.45; }
.studio-field {
  width: 100%; box-sizing: border-box; padding: .7rem .85rem; font: inherit; font-size: 1.02rem; line-height: 1.55;
  color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius); resize: vertical;
}
.studio-field.grow { resize: none; overflow: hidden; }
.studio-field:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122, 146, 134, .16); }

.studio-section-tag {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep);
  margin: 2rem 0 var(--s3); padding-bottom: .4rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: .6rem;
}
.studio-section-tag span { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink-faint); }

.studio-lane { margin: 0 0 var(--s3); }
.studio-lane-opts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.studio .chip {
  padding: .45rem .9rem; font: inherit; font-size: .95rem; color: var(--ink-soft);
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.studio .chip.on { background: var(--sage); color: #fff; border-color: var(--sage); }

.studio-modules { margin-bottom: var(--s3); }
.studio-empty { color: var(--ink-faint); font-size: .98rem; font-style: italic; margin: 0 0 var(--s3); }
.studio-module { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin-bottom: var(--s3); background: var(--paper-raised); }
.studio-module-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.studio-module-n {
  display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
  border-radius: 999px; background: var(--first-light); color: #2a1c10; font-weight: 700; font-size: .9rem;
}
.studio-module .studio-blockf { margin-bottom: .8rem; }
.studio-module .studio-blockf:last-child { margin-bottom: 0; }
.studio-add { margin-top: .2rem; }

.studio .linklike.subtle { color: var(--ink-faint); font-size: .85rem; }

.studio-download-row { margin-top: 2rem; padding-top: var(--s3); border-top: 1px solid var(--line); }
.studio-download { width: 100%; justify-content: center; }
.studio-download-hint { font-size: .9rem; color: var(--ink-faint); margin: .6rem 0 0; text-align: center; }

/* ---- AI structuring: cold describe pad / warm revise / reset ---- */
.studio-lead { font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.4; color: var(--ink); margin: 0 0 var(--s3); max-width: 38rem; }
.studio-honesty { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; margin: 0 0 var(--s4); max-width: 38rem; border-left: 2px solid var(--first-light); padding-left: .85rem; }
.studio-describe { margin: 0 0 1.5rem; }
.studio-brief { min-height: 7.5rem; margin-bottom: .8rem; }
.studio-shape { width: 100%; justify-content: center; }
.studio-shape-hint { font-size: .9rem; color: var(--ink-faint); margin: .6rem 0 0; text-align: center; line-height: 1.5; }

.studio-revise { margin-top: 2rem; padding-top: var(--s3); border-top: 1px solid var(--line); }
.studio-revise-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 0 0 .5rem; }
.studio-ask { min-height: 3rem; margin-bottom: .6rem; }
.studio-askbtn { background: var(--sage); color: #fff; border: 1px solid var(--sage); padding: .6rem 1.25rem; border-radius: var(--radius); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.studio-askbtn:hover { filter: brightness(1.06); }
.studio-ask-hint { font-size: .88rem; color: var(--ink-faint); margin: .5rem 0 0; line-height: 1.5; }

.studio-reset-row { margin-top: 1.5rem; text-align: center; }

/* ---- gaps the AI honestly left blank — drawn to her eye, calm not alarming (warm amber, never red) ---- */
.studio-gap textarea { border-color: var(--first-light-deep); background: #fbf3e8; }
.studio-gap textarea:focus { box-shadow: 0 0 0 3px rgba(201, 130, 79, .15); }
.studio-gap .studio-label { color: var(--first-light-deep); }
.studio-gap-cue { display: none; }
.studio-gap .studio-gap-cue { display: inline; margin-left: .55rem; font-family: var(--body); font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--first-light-deep); vertical-align: middle; }
.studio-gap-block { border-left: 3px solid var(--first-light-deep); background: #fbf3e8; padding: .7rem .9rem; border-radius: var(--radius); color: var(--ink-soft); font-style: normal; }

/* ---- the gaps to-do list — "what still needs you" at a glance, tap any to jump ---- */
.studio-todo { margin: 0 0 var(--s4); padding: var(--s3) clamp(.9rem, 3vw, 1.1rem); background: #fbf3e8; border: 1px solid var(--first-light); border-radius: var(--radius); }
.studio-todo.done { background: #eef3ef; border-color: var(--line); }
.studio-todo-title { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--first-light-deep); margin: 0 0 .6rem; }
.studio-todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.studio-todo-item { background: var(--paper); border: 1px solid var(--first-light-deep); color: var(--first-light-deep); border-radius: 999px; padding: .35rem .85rem; font: inherit; font-size: .9rem; cursor: pointer; }
.studio-todo-item:hover { background: var(--first-light); color: #2a1c10; border-color: var(--first-light); }
.studio-todo-done { color: var(--sage-deep); margin: 0; font-size: .98rem; font-weight: 500; }

/* ---- Slice 2: module accordion cards (layout B) ---- */
.studio-mcard-head { display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .15rem 0; }
.studio-mcard-head:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: var(--radius); }
.studio-mcard-headtext { flex: 1; min-width: 0; }
.studio-mcard-title { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.studio-mcard-title.untitled { color: var(--ink-faint); font-style: italic; font-weight: 500; }
.studio-mchip { display: inline-block; margin-top: .15rem; font-size: .82rem; color: var(--sage-deep); }
.studio-mchip-empty { display: inline-block; margin-top: .15rem; font-size: .82rem; color: var(--ink-faint); font-style: italic; }
.studio-mcard-chev { color: var(--ink-faint); font-size: 1rem; flex: none; }
.studio-mcard-body { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.studio-mcard-row { display: flex; justify-content: flex-end; margin-bottom: .4rem; }
.studio-module.open { border-color: var(--line-strong); }
.studio-mcard-body .studio-blockf { margin-bottom: .8rem; }

/* ---- Slice 2: beats inside a module ---- */
.studio-beats { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.studio-beats-tag { margin-top: 0; }
.studio-beat-cta { margin: .2rem 0 .2rem; }
.studio-beat-draft { width: 100%; justify-content: center; }
.studio-beat-hint { font-size: .88rem; color: var(--ink-faint); margin: .5rem 0 0; text-align: center; line-height: 1.5; }
.studio-beatlist { display: flex; flex-direction: column; gap: .55rem; }
.studio-beat { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.studio-beat-main { flex: 1; min-width: 0; }
.studio-beat-point .studio-beat-lbl { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: .25rem; }
.studio-beat-point { margin-bottom: .35rem; }
.studio-beat-detail { margin-bottom: 0; }
.studio-beat-detail .studio-hint { margin-bottom: .25rem; }
.studio-beat-ta { font-size: .96rem; padding: .45rem .6rem; }
.studio-beat-ctrls { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: none; padding-top: .1rem; }
.studio-beat-mv { width: 1.7rem; height: 1.7rem; border: 1px solid var(--line-strong); background: var(--paper-raised); border-radius: var(--radius); color: var(--ink-soft); cursor: pointer; font-size: .9rem; line-height: 1; }
.studio-beat-mv:disabled { opacity: .35; cursor: default; }
.studio-beat-rm { margin-top: .15rem; }
.studio-beat-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .7rem; }
.studio-beat-refinebox { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.studio-beat-refine-title { font-size: 1rem; }
.studio-beat-refine { min-height: 2.6rem; margin-bottom: .5rem; }

/* ---- Slice 4: two documents in the download row (the overview + her session notes) ---- */
.studio-download-doc { margin-top: 1rem; }
.studio-download-doc:first-child { margin-top: 0; }
.studio-download-fp { width: 100%; justify-content: center; }

/* ---- Slice 4b: the leading section (how you open it / how you land it) ---- */
.studio-leading { margin-bottom: var(--s3); }
.studio-leading-draft { width: 100%; justify-content: center; }
.studio-leading-actions { display: flex; justify-content: flex-end; margin: .2rem 0 .4rem; }
.studio-leading-refine { min-height: 2.6rem; margin-bottom: .5rem; }
