/* Quiet creation workspace; keep the other Studio views unchanged. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#view-ideas .page-heading { padding-block: 32px 22px; }
#view-ideas .page-heading p { margin-top: 6px; }
.creation-steps { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0 0 23px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.creation-steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.creation-steps li > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; }
.creation-steps strong { font-size: 13px; font-weight: 500; }
.creation-steps [aria-current="step"] { color: var(--navy); }
.creation-steps [aria-current="step"] > span { color: var(--white); background: var(--navy); border-color: var(--navy); }
.creation-steps [aria-current="step"] strong { font-weight: 600; }
#view-ideas .ideas-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 36px; }
#view-ideas .brief-panel { padding: 24px; border-color: var(--line); border-radius: 10px; }
#view-ideas .panel-heading h2 { margin: 0; font-size: 19px; }
#view-ideas .brief-panel label[for="brief"] { margin-top: 24px; }
#view-ideas .brief-panel textarea { min-height: 116px; }
#view-ideas #generation-hint { margin-top: 8px; font-size: 12px; }
#view-ideas .platform-chips { gap: 5px; }
#view-ideas .platform-chips label { gap: 6px; padding-inline: 8px; border-radius: 6px; font-size: 12px; }
#view-ideas .platform-chips input { width: 14px; height: 14px; flex-basis: 14px; }
.visual-style-picker { margin-top: 20px; }
.visual-style-picker legend { margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.visual-style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.visual-style-options label, .brief-panel .visual-style-options label:first-child { display: flex; align-items: center; gap: 9px; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.visual-style-options label:hover { background: #f6f8fa; }
.visual-style-options label:has(input:checked) { border-color: #67829b; background: #edf3f8; }
.visual-style-options label:has(input:focus-visible) { outline: 3px solid #456f98; outline-offset: 3px; }
.visual-style-options label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.visual-style-options input[type="radio"] { appearance: auto; width: 16px; min-height: 16px; height: 16px; flex: 0 0 16px; padding: 0; margin: 0; accent-color: var(--navy); }
.visual-style-copy { min-width: 0; }
.visual-style-copy strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.4; }
.creation-help { color: var(--muted); font-size: 12px; margin-top: 5px; }
.creation-help summary { display: list-item; width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; }
.creation-help p { padding-bottom: 8px; font-size: 13px; }
#view-ideas .topic-section { margin-top: 16px; padding-top: 20px; }
#view-ideas .topic-choice { padding: 13px 12px; font-size: 13px; }
#view-ideas #new-topics { font-size: 12px; }
#view-ideas .section-heading { align-items: center; margin-bottom: 18px; }
#view-ideas #proposal-context { font-size: 14px; max-width: 620px; overflow-wrap: anywhere; white-space: pre-wrap; }
#view-ideas .empty-state { min-height: 182px; display: flex; flex-direction: column; justify-content: center; padding: 28px; border: 1px solid var(--line); border-radius: 10px; }
#view-ideas .empty-state h3 { font-size: 18px; }
#view-ideas .empty-state p { font-size: 14px; }
#view-ideas .idea-list { gap: 14px; }
#view-ideas .idea-card { padding: 22px 24px; border-radius: 10px; }
#view-ideas .idea-card > p { font-size: 14px; line-height: 1.65; }
#view-ideas .idea-meta { margin-bottom: 10px; }
#view-ideas .channel-label, #view-ideas .remove-idea { font-size: 12px; }
#view-ideas .idea-actions { margin-top: 14px; }
#view-ideas .idea-actions button { font-size: 13px; }
#view-ideas .posts-section { margin-top: 34px; }
#view-ideas .post-list .empty-state { min-height: 120px; padding: 22px; }
#view-ideas .post-row-meta { font-size: 12px; }
.creation-settings { margin: -8px 0 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.creation-progress { border: 1px solid #b8cbdc; border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; background: #edf3f8; }
.creation-progress strong { display: block; color: var(--navy); font-size: 14px; }
.creation-progress p { font-size: 13px; margin-top: 4px; }
.creation-progress.is-failed { border-color: #e1bdb7; background: var(--red-soft); }
.creation-progress.is-failed strong { color: var(--red); }
.creation-progress.is-working strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #5e7f9c; }
.creation-progress-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.creation-progress-actions button { font-size: 13px; }

/* Edit and preview side by side; on a phone, jump between sections. */
.post-dialog { width: min(1160px, 100%); padding: 0; scroll-padding-block: 142px 160px; overscroll-behavior: contain; }
.post-dialog .dialog-heading { top: 0; height: 76px; padding: 16px 28px; margin: 0; align-items: center; }
.post-dialog .dialog-heading h2 { font-size: 24px; margin: 0; }
.post-dialog .dialog-heading .button-square { margin: 0 -8px 0 0; }
.editor-section-nav { position: sticky; top: 76px; z-index: 6; display: flex; gap: 20px; padding: 0 28px; margin: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.editor-section-nav button { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0 12px; font-size: 13px; min-height: 46px; }
.editor-section-nav button:hover, .editor-section-nav button:focus-visible { color: var(--navy); border-bottom-color: var(--navy); }
#editor-to-preview { margin-left: auto; color: var(--navy); }
.post-dialog #post-form { padding: 24px 28px 0; }
.post-editor-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.post-editor-content { min-width: 0; }
.post-dialog .editor-state { padding-top: 0; border-top: 0; }
.post-dialog .status-badge { font-size: 12px; padding: 3px 9px; }
.post-dialog .editor-state .small-note { font-size: 12px; }
.post-dialog label, .post-dialog .platform-picker legend { font-size: 13px; }
.post-dialog .platform-chips label { border-radius: 6px; }
.post-dialog #post-title, .post-dialog #images-heading, .post-dialog #editor-plan-heading, #post-preview-heading { scroll-margin-top: 0; }
.post-dialog #post-content { min-height: 250px; font-size: 15px; line-height: 1.7; }
.post-content-count { margin-top: 5px; text-align: right; }
.post-dialog .editor-images { margin-top: 24px; padding-top: 24px; }
.post-dialog .images-heading h3, .post-dialog .editor-plan h3, #post-preview-heading { font-size: 17px; }
.post-dialog #post-visual-style { margin-top: 14px; }
.post-dialog .image-status { font-size: 12px; line-height: 1.6; margin-block: 12px 14px; }
#editor-images .image-option img { aspect-ratio: 4 / 5; max-height: none; object-fit: contain; }
.post-dialog .image-preview-photo { max-height: 330px; }
.post-dialog .image-option-label { font-size: 12px; }
.post-dialog .image-preview figcaption p { font-size: 13px; }
.post-dialog .image-ai-label { font-size: 12px; }
.post-dialog .image-generation summary, .post-dialog .image-generation-actions button, .post-dialog .image-download { font-size: 13px; }
.post-dialog .editor-plan { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-dialog .planning-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.post-dialog input[type="date"], .post-dialog input[type="time"] { max-width: 100%; }
.post-dialog .field-help { font-size: 12px; }
.post-preview-panel { position: sticky; top: 146px; max-height: calc(100dvh - 278px); min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 12px; scrollbar-width: thin; }
#post-preview-heading { margin-bottom: 16px; }
.post-dialog #editor-error, .post-dialog #editor-create-recovery { scroll-margin-block: 145px 160px; }
.post-dialog #editor-error:focus { outline: 2px solid var(--red); outline-offset: 3px; }
.post-dialog .editor-footer { position: sticky; bottom: 0; margin: 26px -28px 0; padding: 16px 28px 18px; background: var(--white); z-index: 7; box-shadow: 0 -8px 16px #ffffffed; }
.editor-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.post-dialog .editor-footer .button-danger-text { margin: 0; padding-inline: 8px; }
.post-dialog .editor-footer > .small-note { margin-top: 8px; font-size: 12px; }

@media (max-width: 1080px) {
  #view-ideas .ideas-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 26px; }
  #view-ideas .brief-panel { padding: 20px; }
  .post-editor-layout { gap: 24px; }
}
@media (max-width: 920px) {
  .post-dialog { width: min(640px, 100%); }
  .post-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .post-preview-panel { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 740px) {
  #view-ideas .ideas-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #view-ideas .brief-panel { padding: 22px; }
  .creation-steps { gap: 20px; margin-bottom: 24px; padding-bottom: 20px; }
  .creation-steps strong { font-size: 12px; }
  .creation-steps li { gap: 7px; }
  #view-ideas .platform-chips label { padding-inline: 10px; }
  .post-dialog .dialog-heading { padding-inline: 20px; }
  .editor-section-nav { gap: 22px; padding-inline: 20px; }
  .post-dialog #post-form { padding: 20px 20px 0; }
  .post-dialog .editor-footer { margin-inline: -20px; padding-inline: 20px; }
  .post-dialog .editor-footer-main { flex-wrap: wrap; gap: 5px; }
  .post-dialog .editor-save-actions { flex: 1 1 100%; }
  .post-dialog .editor-footer .button-danger-text { min-height: 32px; padding: 2px 0; }
  .post-dialog .image-option-label { font-size: 12px; }
  .post-dialog .image-preview-photo { max-height: 300px; }
  .post-dialog .image-generation input { font-size: 16px; }
}
@media (max-width: 380px) {
  .creation-steps { gap: 12px; }
  .creation-steps li { gap: 5px; }
  .creation-steps li > span { width: 22px; height: 22px; font-size: 12px; }
  .creation-steps strong { font-size: 12px; }
  #view-ideas .brief-panel { padding: 18px; }
  #view-ideas .platform-chips label { padding-inline: 7px; }
  .editor-section-nav { gap: 18px; }
  .editor-section-nav button { font-size: 12px; }
  .post-dialog .editor-save-actions { gap: 8px; }
  .post-dialog .editor-save-actions button { font-size: 12px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .creation-progress * { animation: none; } }
