.cp-section {
  --cp-ink: #211b2d; --cp-muted: #635c70; --cp-line: #dedbe5; --cp-accent: #5134bd;
  color: var(--cp-ink); scroll-margin-top: 1rem;
}
.cp-section [hidden] { display: none !important; }
.cp-section :is(button,input,textarea,select) { font: inherit; }
.cp-section :is(button,summary,select) { cursor: pointer; }
.cp-section :is(button,a,summary,input,textarea,select):focus-visible, .cp-choices input:focus-visible + span {
  outline: 3px solid #6850d0; outline-offset: 2px;
}
.cp-window { background: #fff; border: 1px solid #d4cedf; border-radius: 20px; overflow: hidden; box-shadow: 0 22px 55px -32px #47385e60; text-align: left; }
.cp-bar, .cp-workspace, .cp-posthead, .cp-attachment, .cp-nav, .cp-foot, .cp-release, .cp-row-top, .cp-preview-title { display: flex; align-items: center; }
.cp-bar, .cp-foot, .cp-row-top, .cp-preview-title { justify-content: space-between; gap: .65rem; }
.cp-bar { border-bottom: 1px solid var(--cp-line); padding: .65rem clamp(.85rem, 2.4vw, 2rem); background: #fbfafc; flex-wrap: wrap; }
.cp-workspace { gap: .3rem; min-width: 0; }
.cp-workspace img { flex: none; }
.cp-workspace select { min-width: 0; max-width: 100%; padding: .4rem .1rem; min-height: 44px; color: var(--cp-ink); border: none; border-radius: 5px; font-size: .9rem; font-weight: 700; background: transparent; }
.cp-nav { gap: .15rem; padding: .12rem; border-radius: 10px; background: #eae7ef; }
.cp-nav button { border: none; min-height: 44px; border-radius: 8px; color: var(--cp-muted); background: transparent; padding: .3rem .8rem; font-size: .86rem; font-weight: 650; }
.cp-nav button[aria-pressed=true] { color: var(--cp-ink); background: #fff; box-shadow: 0 1px 4px #20142a21; }
.cp-count { display: inline-grid; place-items: center; min-width: 1.22rem; font-size: .74rem; border-radius: 6px; background: #dcd7eb; color: #433753; }
.cp-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.cp-editor, .cp-stage { min-width: 0; padding: clamp(1.15rem, 3.2vw, 2.65rem); }
.cp-editor { align-self: center; }
.cp-device-draft { margin: .4rem 0 1rem; padding: .25rem 0 .9rem; border-bottom: 1px solid var(--cp-line); }
.cp-draft-tools, .cp-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.cp-device-draft .cp-inline { padding: .3rem 0; }
.cp-device-draft .cp-storage-note, .cp-device-draft .cp-draft-status { font-size: .81rem; line-height: 1.45; max-width: 46ch; margin: .4rem 0 0; }
.cp-storage-note { color: var(--cp-muted); }
.cp-draft-status { color: #443385; }
.cp-device-draft .cp-draft-status:empty { margin: 0; }
.cp-device-draft + .cp-actions .cp-add { color: var(--cp-accent); background: #eeeaf9; }
.cp-own-photo { border-top: 1px solid var(--cp-line); }
.cp-own-photo input { display: block; width: 100%; font-size: .85rem; color: var(--cp-ink); }
.cp-own-photo input::file-selector-button { min-height: 44px; font: inherit; color: var(--cp-accent); background: white; border: 1px solid var(--cp-line); border-radius: 8px; padding: .45rem .7rem; }
.cp-own-photo p { font-size: .81rem; color: var(--cp-muted); margin: .5rem 0; }
.cp-own-photo p:empty { margin: 0; }
.cp-section[data-own-photo] .cp-cover-type, .cp-section[data-own-photo] .cp-art::after { display: none; }
.cp-editor h3, .cp-release h3 { font-size: clamp(1.55rem, 2.65vw, 2.3rem); line-height: 1.09; letter-spacing: -.055em; margin: 0 0 1.3rem; }
.cp-picker, .cp-batch-options { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
.cp-picker legend, .cp-field, .cp-settings > label:not(.cp-check), .cp-batch-options legend { display: block; font-size: .9rem; font-weight: 650; padding: 0; margin: 0 0 .35rem; }
.cp-choices { display: flex; flex-wrap: wrap; gap: .18rem .35rem; }
.cp-choices label { display: inline-flex; align-items: center; min-height: 44px; position: relative; cursor: pointer; }
.cp-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.cp-choices span { border: 1px solid var(--cp-line); border-radius: 8px; font-size: .84rem; line-height: 1.2; padding: .52rem .66rem; }
.cp-choices label:hover span { border-color: #9c93ad; }
.cp-choices input:checked + span { background: #eee9ff; color: #452da3; border-color: #a79acb; font-weight: 650; }
#cp-caption, #cp-time { border: 1px solid #bfb8cb; border-radius: 8px; color: var(--cp-ink); background: white; width: 100%; min-width: 0; line-height: 1.5; padding: .65rem .75rem; }
#cp-caption { display: block; resize: vertical; min-height: 5.2rem; }
#cp-time { display: block; max-width: 20rem; }
.cp-attachment { gap: .65rem; padding-block: .8rem; }
.cp-attachment img, .cp-release img { flex: none; object-fit: cover; border-radius: 8px; }
.cp-attachment strong, .cp-attachment span, .cp-byline > * { display: block; line-height: 1.35; }
.cp-attachment strong { font-size: .9rem; }
.cp-attachment span, .cp-hint, .cp-release small, .cp-foot, .cp-byline small { color: var(--cp-muted); font-size: .8rem; }
.cp-settings, .cp-batch { border-top: 1px solid var(--cp-line); }
.cp-settings { margin-bottom: .7rem; }
.cp-section summary { width: fit-content; max-width: 100%; min-height: 44px; align-content: center; padding-block: .55rem; font-size: .9rem; font-weight: 650; }
.cp-settings[open] summary, .cp-batch[open] summary { margin-bottom: .3rem; }
.cp-check { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; color: var(--cp-ink); font-size: .9rem; cursor: pointer; }
.cp-check input { accent-color: var(--cp-accent); width: 18px; height: 18px; margin: 0; }
.cp-actions, .cp-row-actions { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; }
.cp-section .cp-add, .cp-section .cp-secondary, .cp-section .cp-inline, .cp-mobile-preview { min-height: 44px; border-radius: 8px; font-size: .9rem; font-weight: 630; }
.cp-add, .cp-secondary { padding: .58rem .95rem; }
.cp-add { border: none; color: white; background: var(--cp-accent); }
.cp-add:hover { background: #3e259e; }
.cp-add:disabled { background: #ebe8ef; color: var(--cp-muted); cursor: default; }
.cp-secondary { border: 1px solid var(--cp-line); background: white; color: var(--cp-ink); }
.cp-inline, .cp-mobile-preview { display: inline-flex; align-items: center; border: 0; color: var(--cp-accent); text-decoration: underline; background: transparent; }
.cp-mobile-preview { display: none; }
.cp-feedback, .cp-queue-report { font-size: .86rem; color: #45318c; }
.cp-section :is(.cp-feedback,.cp-queue-report):empty { margin: 0; }
.cp-stage { display: grid; align-content: center; justify-items: center; background: radial-gradient(ellipse at 50% 30%,#fbf8ff,#ece7f3); border-left: 1px solid var(--cp-line); }
.cp-preview-title, .cp-hint, .cp-post { width: min(100%, 21rem); }
.cp-preview-title { font-size: .82rem; margin: 0 0 .6rem; }
.cp-destination { color: var(--cp-muted); }
.cp-post { display: grid; grid-template-areas: "head" "art" "copy"; margin: 0; color: var(--cp-ink); background: white; border: 1px solid #d0cad9; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px -16px #30253980; }
.cp-posthead { grid-area: head; gap: .45rem; padding: .55rem .7rem; }
.cp-avatar { display: grid; place-items: center; flex: none; height: 1.9rem; width: 1.9rem; background: #39264b; border: 2px solid #fff; outline: 2px solid #af4c78; border-radius: 100%; color: white; font-family: Georgia,serif; font-weight: 650; }
.cp-byline strong { font-size: .81rem; }
.cp-byline small { font-size: .68rem; }
.cp-format { margin-left: auto; font-size: .71rem; font-weight: 650; }
.cp-art { position: relative; grid-area: art; overflow: hidden; background: #3c3143; }
.cp-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; }
.cp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg,transparent 20%,#17101a20 58%,#18101aab 100%); }
.cp-cover-type { position: absolute; z-index: 1; inset: auto .85rem .7rem; color: white; text-shadow: 0 1px 8px #100a14aa; }
.cp-cover-type small { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.cp-cover-type span { display: block; font-family: Georgia,serif; font-style: italic; font-size: clamp(1.75rem, 4vw, 3.2rem); letter-spacing: -.065em; line-height: 1.03; }
.cp-copy { grid-area: copy; margin: 0; max-height: 8rem; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; padding: .75rem; font-size: .87rem; line-height: 1.42; }
.cp-post[data-network=Facebook] { grid-template-areas: "head" "copy" "art"; border-radius: 7px; }
.cp-post[data-network=Facebook] .cp-avatar { background: #285b93; outline: 0; }
.cp-post[data-network=Facebook] .cp-art img { aspect-ratio: 1.85; }
.cp-post[data-network=Facebook] .cp-copy { padding-top: .12rem; }
.cp-post:is([data-network=TikTok],[data-network=YouTube]) { color: white; background: #1a1820; width: min(100%,16.5rem); }
.cp-post:is([data-network=TikTok],[data-network=YouTube]) .cp-byline small { color: #d8d5df; }
.cp-post:is([data-network=TikTok],[data-network=YouTube]) .cp-art img { aspect-ratio: 1.02; }
.cp-post[data-network=YouTube] { border-radius: 15px; grid-template-areas: "art" "head" "copy"; }
.cp-post[data-network=YouTube] .cp-avatar { outline: none; border-color: #e4e0eb; }
.cp-post[data-network=YouTube] .cp-format { color: #fda8a8; }
.cp-post[data-network=TikTok] { border-radius: 12px; }
.cp-post[data-network=TikTok] .cp-avatar { outline-color: #78caca; }
.cp-post[data-network=TikTok] .cp-format { color: #89e4dd; }
.cp-post[data-network=TikTok] .cp-cover-type span { font-family: inherit; font-weight: 750; font-style: normal; }
.cp-hint { margin: .7rem 0 0; line-height: 1.45; }
.cp-foot { flex-wrap: wrap; margin: 0; border-top: 1px solid var(--cp-line); padding: .7rem clamp(.85rem, 2.4vw, 2rem); background: #fbfafc; }
.cp-sample { color: #41364c; font-weight: 650; }
.cp-batch, .cp-queue { padding: .7rem clamp(1rem, 3.2vw, 2.65rem); }
.cp-batch[open], .cp-queue { padding-bottom: 1.5rem; }
.cp-batch-options .cp-check { margin-right: 1rem; }
#demo-result { max-width: 43rem; font-size: .92rem; overflow-wrap: anywhere; }
#demo-result dt { margin-top: .6rem; font-weight: 700; }
#demo-result dd { margin: 0; }
.cp-queue { min-height: 22rem; }
.cp-release { gap: .85rem; margin: 1rem 0; }
.cp-release h3 { margin: .12rem 0; }
.cp-progress { display: grid; gap: .25rem; max-width: 17rem; margin-bottom: 1rem; font-size: .84rem; font-weight: 630; }
.cp-progress progress { width: 100%; height: .45rem; accent-color: var(--cp-accent); }
.cp-list { list-style: none; padding: 0; margin: 0; }
.cp-list li { border-top: 1px solid var(--cp-line); padding: .85rem 0; }
.cp-row-top { flex-wrap: wrap; }
.cp-row-status { padding: .2rem .55rem; font-size: .74rem; font-weight: 650; border-radius: 5px; background: #eeeaf9; color: #52407f; }
.cp-row-status[data-state=handoff] { background: #f7ecdd; color: #734910; }
.cp-row-status[data-state=scheduled] { background: #e1f1e7; color: #285e3a; }
.cp-row-copy { margin: .36rem 0 .15rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.cp-row-actions { margin-top: .5rem; }
.cp-list time { color: var(--cp-muted); font-size: .82rem; }
.cp-handoff p { max-width: 34rem; margin-top: .2rem; }
@media (max-width: 720px) {
  .cp-body { grid-template-columns: 1fr; }
  .cp-mobile-preview { display: inline-flex; }
  .cp-stage { border: 0; border-top: 1px solid var(--cp-line); padding-block: 1.35rem; }
}
@media (max-width: 460px) {
  .cp-bar { gap: .15rem .5rem; }
  .cp-choices { display: grid; grid-template-columns: 1fr 1fr; }
  .cp-choices span { width: 100%; text-align: center; }
  .cp-foot { gap: .25rem .55rem; font-size: .75rem; }
  .cp-nav button { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) { .cp-section * { scroll-behavior: auto; } }
