/* Posting task hierarchy; uses the existing application tokens. */
#app { font-weight:400; letter-spacing:0; }
#app :is(h1,h2,h3) { letter-spacing:0; }
#app .posting-intake-heading h1 { font-size:30px; font-weight:700; line-height:1.25; }
#app .posting-intake-heading p { font-size:16px; }
#app :is(.posting-section-heading h2,.posting-connected-summary h2,.posting-caption-heading h2) { margin:0; font-size:20px; font-weight:700; line-height:1.3; }
#app :is(.posting-section-heading p,#posting-caption-help) { font-size:16px; line-height:1.5; }
#app :is(.posting-profile-toolbar > label,.posting-caption-options > label,.comment-cta-field > .field-label) { font-size:16px; font-weight:600; }
#app .posting-caption-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:44px; }
#app .posting-caption-heading label { font-size:inherit; font-weight:inherit; min-height:0; cursor:pointer; }
#app .posting-caption-heading small { font-size:14px; font-weight:400; color:var(--v2-muted); }
#app .posting-intake-next { border-radius:8px; flex-wrap:wrap; }
#app .posting-intake-next > [role="status"] { flex:1 1 280px; min-width:0; }
#app .posting-intake-next strong { font-size:20px; font-weight:700; line-height:1.3; }
#app .posting-intake-next p { font-size:15px; }
#app .posting-intake-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#app .posting-intake-actions .btn { min-height:52px; font-size:16px; font-weight:600; padding:12px 18px; }
#app #posting-generate-captions { min-width:200px; font-size:18px; font-weight:700; }
#app #posting-generate-captions[hidden] { display:none; }
#app .posting-generate-action p { font-size:14px; line-height:1.5; }
@media(max-width:620px) {
    #app .posting-intake-actions { width:100%; }
    #app .posting-intake-actions .btn { width:100%; min-width:0; }
    #app .posting-caption-heading h2 { font-size:18px; }
}
/* Keep form fields legible and compact in both application themes. */
body { --posting-control-border:#697889; font-size:16px; line-height:1.5; background-image:none; }
html[data-theme="light"] body { --posting-control-border:#7f8b9a; }
#app :is(.muted,.tiny) { font-size:14px; line-height:1.5; }
#app .field-label { font-size:16px; font-weight:600; line-height:1.5; }
#app :is(label,.field-label) { text-transform:none; letter-spacing:0; color:var(--v2-white); }
#app :is(input[type="text"],input:not([type]),select,textarea) {
    width:100%; min-width:0; min-height:44px; padding:10px 12px;
    font-size:16px; color:var(--v2-white); background:var(--v2-slate);
    border-color:var(--posting-control-border);
}
#app :is(input,textarea)::placeholder { color:var(--v2-muted); opacity:1; }
#app .comment-cta-card { padding:14px; background:var(--v2-fill); border-color:var(--v2-border-strong); border-radius:8px; }
#app .comment-cta-card.is-enabled { background:var(--v2-fill); border-left:3px solid var(--v2-blue); }
#app .comment-cta-card h2 { font-size:20px; line-height:1.3; }
#app .comment-cta-fields { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.15fr); gap:12px; margin-top:12px; }
#app .comment-cta-field { gap:6px; }
#app #comment-trigger-word { width:100%; height:44px; min-width:0; font-size:18px; font-weight:700; letter-spacing:0; }
#app .comment-cta-destinations { grid-template-columns:minmax(0,1fr) 180px; gap:6px 12px; }
#app .comment-cta-placement-options { min-height:44px; background:var(--v2-slate); border-color:var(--v2-border-strong); border-radius:8px; }
#app .comment-cta-placement-option span { height:36px; font-size:15px; color:var(--v2-white); }
#app .comment-cta-placement-option input:checked + span { color:var(--v2-white); }
#app .comment-cta-platform-option { min-height:44px; font-size:15px; background:var(--v2-slate); color:var(--v2-white); border-color:var(--v2-border-strong); }
#app .comment-cta-platform-option:has(input:checked) { color:var(--v2-white); background:var(--v2-fill-hover); border-color:var(--v2-blue-light); }
#app .comment-cta-preview { margin-top:12px; padding:10px 0 0; background:transparent; border:0; border-top:1px solid var(--v2-border-strong); border-radius:0; gap:6px 8px; }
#app .comment-cta-preview strong { font-size:16px; color:var(--v2-white)!important; line-height:1.5; }
#app .comment-cta-preview-summary { flex-basis:100%; color:var(--v2-muted); }
#app .comment-cta-tooltip { font-size:14px; line-height:1.5; background:var(--v2-slate); color:var(--v2-white); border-color:var(--v2-border-strong); }
#app .comment-cta-tooltip strong, #app .comment-cta-tooltip .trademark-note { font-size:14px; color:var(--v2-white); }
#app .comment-cta-info-button { color:var(--v2-muted); }
#app .posting-caption-options { margin-top:12px; padding-top:12px; gap:10px; }
#app .posting-generate-action { gap:12px; margin-top:12px; }
#app .posting-destination { display:inline-flex; gap:8px; align-items:center; min-height:44px; font-size:16px; cursor:pointer; }
#app .posting-destination input { width:18px; height:18px; flex:none; padding:0; }
#app .posting-destination small { display:block; font-size:14px; color:inherit; }
#app .posting-connected-summary .posting-account-pill { font-size:14px; }
#app .posting-connected-summary .posting-account-pill > span { font-size:16px; }
#app .posting-connected-summary p, #app :is(.btn-sm,.btn-xs,.link-btn,.counter) { font-size:14px; }
@media(max-width:620px) {
    #app .comment-cta-fields, #app .comment-cta-destinations { grid-template-columns:minmax(0,1fr); }
    #app .comment-cta-destinations .comment-cta-placement { grid-column:1; grid-row:auto; margin:0; }
    #app .comment-cta-card > div:first-child > label { align-self:flex-start; }
}
.posting-intake-workspace { width:100%; display:flex; flex-direction:column; gap:20px; }
.posting-intake-heading h1 { margin:0; font-size:28px; font-weight:700; }
.posting-intake-heading p { margin:6px 0 0; color:var(--v2-muted); font-size:14px; line-height:1.5; }
.posting-profile-toolbar { display:flex; align-items:center; gap:12px; padding:12px 0; border-block:1px solid var(--v2-border); }
.posting-profile-toolbar > label { flex:none; font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; }
.posting-profile-toolbar > select { width:280px; max-width:100%; min-height:44px; }
.posting-profile-actions { display:flex; gap:4px; margin-left:auto; }
.posting-profile-actions .btn { min-height:44px; }
.posting-intake-grid { display:grid; grid-template-columns:minmax(0,1fr) 288px; align-items:start; gap:24px; }
.posting-upload-main { display:flex; flex-direction:column; gap:16px; min-width:0; }
.posting-upload-main #queue-card:empty { display:none; }
.posting-upload-main .dropzone { min-height:240px; padding:24px; gap:10px; font:inherit; color:var(--text-main); border-width:1px; }
.posting-upload-main .dropzone svg { width:36px; height:36px; }
.posting-upload-main .dropzone.is-compact { min-height:0; padding:16px; flex-direction:row; flex-wrap:wrap; justify-content:center; }
.posting-drop-title { font-size:20px; font-weight:600; }
.posting-browse-label { margin-top:6px; min-height:44px; pointer-events:none; box-shadow:none; }
.posting-upload-main .dropzone.is-compact .posting-browse-label { margin-top:0; }
.posting-upload-main .dropzone:focus-visible { outline:2px solid var(--v2-blue-light); outline-offset:4px; }
.posting-upload-main .posting-caption-choice { display:block; padding:4px 0 16px; border-bottom:1px solid var(--v2-border); }
.posting-caption-choice label { min-height:44px; justify-content:flex-start; font-size:14px; text-transform:none; letter-spacing:0; }
.posting-caption-choice p { margin:0 0 0 28px; max-width:62ch; color:var(--v2-muted); font-size:13px; line-height:1.5; }
.posting-connected-summary { padding:16px; background:var(--v2-fill); border:1px solid var(--v2-border); border-radius:16px; min-width:0; }
.posting-connected-summary h2 { margin:0 0 12px; font-size:15px; font-weight:600; }
.posting-connected-summary p { margin:16px 0 0; padding-top:12px; border-top:1px solid var(--v2-border); color:var(--v2-muted); font-size:12px; line-height:1.6; }
.posting-connected-summary .posting-account-pills { flex-direction:column; gap:0; margin:0; }
.posting-connected-summary .posting-account-pill { display:block; border:0; border-radius:0; padding:10px 0; background:transparent !important; font-size:11px; font-weight:600; }
.posting-connected-summary .posting-account-pill + .posting-account-pill { border-top:1px solid var(--v2-border) !important; }
.posting-connected-summary .posting-account-pill > span { display:block; margin-top:3px; color:var(--text-main); font-size:13px; font-weight:400; }
.posting-facebook-profile { display:block; margin-top:4px; color:var(--v2-muted); font-size:11px; font-weight:400; }
.posting-review-next { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.posting-workflow { gap:0; margin-top:12px; border-bottom:1px solid var(--v2-border); }
.posting-workflow .step-chip { padding:0 16px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; }
.posting-workflow .step-chip.active { background:transparent; color:var(--text-main); border-bottom-color:var(--v2-blue); }
.posting-workflow .step-chip.done { background:transparent; color:var(--v2-blue-light); }
@media (max-width:800px) {
    .posting-intake-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
    .posting-profile-toolbar { flex-wrap:wrap; gap:8px; }
    .posting-profile-toolbar > select { flex:1; width:auto; min-width:140px; }
    .posting-profile-actions { width:100%; margin-left:0; }
    .posting-intake-heading h1 { font-size:24px; }
    .posting-upload-main .dropzone { min-height:220px; padding:20px; }
    .posting-connected-summary .posting-account-pills { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px; }
    .posting-connected-summary .posting-account-pill { border-bottom:1px solid var(--v2-border) !important; }
    .posting-connected-summary .posting-account-pill + .posting-account-pill { border-top:0 !important; }
}
@media (prefers-reduced-motion:reduce) {
    .posting-upload-main .dropzone { transition:none; }
}
/* The same task hierarchy continues inside the review and scheduling steps. */
.review-fields { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.review-caption { border-radius: 8px; padding: 12px; min-height: 72px; resize: vertical; line-height: 1.5; }
.cover-control { display: flex; gap: 8px; align-items: center; }
.cover-trigger { width: 100%; text-align: left; color: inherit; font: inherit; }
.cover-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cover-copy strong { font-size: 13px; }
.cover-copy .tiny { color: var(--zinc-500); }
.scrub-wrap .btn, .scrub-wrap input[type="range"] { min-height:44px; }
.adv-head { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; min-height: 48px; }
.advanced-fields { display: grid; gap: 14px; padding: 12px 0 4px; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.schedule-main, .schedule-tools { display: grid; gap: 16px; min-width: 0; }
.schedule-tool, .profile-rule { border: 1px solid var(--zinc-800); border-radius: 10px; background: var(--zinc-950); }
.schedule-tool > summary, .profile-rule > summary { cursor: pointer; min-height: 48px; padding: 14px; font-size: 14px; font-weight: 700; }
.schedule-tool > summary .muted, .profile-rule > summary .muted { display: block; margin: 4px 0 0 16px; font-size: 12px; font-weight: 400; }
.schedule-tool-body, .profile-rule > div { padding: 0 14px 14px; }
.schedule-tool .row { flex-direction: column; align-items: stretch !important; gap: 14px; }
.schedule-tool .sched-row { flex-wrap: wrap; }
.profile-rules { display: grid; gap: 8px; }
.profile-rule textarea { width: 100%; }
.queue-row > div:first-child { flex:1 1 260px; min-width:0; }
.queue-row .qname { flex:1; min-width:0; }
.queue-row .counter { color:var(--v2-white)!important; }
.queue-error { color:var(--v2-red); font-size:12px; line-height:1.5; max-width:32ch; overflow-wrap:anywhere; }
.posting-upload-error { color:var(--v2-red); border-color:var(--v2-red); background:var(--v2-slate); }
.video-card.skipped { opacity:1; border-style:dashed; }
.video-card .btn-secondary:hover, .schedule-tool .btn-secondary:hover { color:var(--v2-white); }
#app .btn:disabled { color:var(--v2-muted); background:var(--v2-fill); opacity:1; box-shadow:none; }
.schedule-main .chip:disabled { opacity:1; }
.schedule-editor { border-top:1px solid var(--v2-border); padding:20px; background:var(--v2-fill); }
.schedule-editor > .row { display:grid; grid-template-columns:minmax(135px,1fr) minmax(210px,1.3fr) minmax(130px,1fr); }
.schedule-editor > .row > div { min-width:0; }
.schedule-editor-result { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:16px; padding:12px 16px; border:1px solid var(--v2-border); border-radius:10px; background:var(--v2-slate); }
.schedule-editor-result > div { min-width:0; flex:1 1 220px; }
.schedule-editor-result > button { flex:none; min-height:44px; }
.schedule-overrides { margin-top:16px; border:1px solid var(--v2-border); border-radius:10px; padding:0 12px; }
.schedule-overrides > summary { min-height:44px; padding-block:12px; font-size:14px; font-weight:600; cursor:pointer; }
.schedule-overrides > p { font-size:12px; margin:0 0 12px; line-height:1.5; }
.schedule-override-row { display:grid; grid-template-columns:minmax(100px,1fr) repeat(3,minmax(60px,72px)) auto auto; gap:8px; align-items:center; padding:10px 0; border-top:1px solid var(--v2-border); }
.schedule-override-row strong { font-size:13px; }
.schedule-override-row select { padding-inline:8px; min-height:44px; }
.schedule-override-row button { min-height:44px; }
.schedule-main .chip { color:var(--v2-white); min-height:36px; white-space:normal; text-align:left; }
.schedule-main .chip small { color:inherit; opacity:1; overflow-wrap:anywhere; }
.schedule-main .chip.off { color:var(--v2-muted)!important; background:var(--v2-fill)!important; border-color:var(--v2-border)!important; opacity:1; }
.posting-workflow .step-chip { color:var(--v2-muted); }
html .posting-connected-summary .posting-account-pill[data-platform] { color:var(--v2-muted)!important; }
.queue-row .num-badge, .schedule-main .num-badge, .schedule-tool .num-badge { color:var(--v2-white); background:var(--v2-slate)!important; border:1px solid var(--v2-border); }
.schedule-override-row .btn, .schedule-override-row .link-btn { color:var(--v2-white); }
.comment-cta-placement-option input:checked + span { color:var(--v2-white); }
.schedule-main .rightnow-chip, .schedule-tool .rightnow-chip { color:var(--v2-white); }
.schedule-overrides > summary:focus-visible { outline:2px solid var(--v2-blue-light); outline-offset:2px; }
@media(pointer:coarse) {
    .schedule-main .chip, .ptab, .cap-head .link-btn, .queue-row .link-btn { min-height:44px; }
    .comment-cta-placement-option span { min-height:44px; height:auto; }
}
@media (max-width: 1000px) {
    .schedule-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 620px) {
    .review-fields { padding: 14px; }
    .cover-trigger, .adv-head, .profile-rule > summary { min-height: 44px; }
    .cover-control > .link-btn { min-height: 44px; }
    .queue-row > div:last-child { flex:1 1 100%; }
    .queue-row > div:first-child { flex-wrap:wrap; }
    .queue-row .qname { flex-basis:100%; max-width:none; white-space:normal; overflow-wrap:anywhere; }
    .queue-error { flex:1 1 140px; }
    .schedule-editor { padding:14px; }
    .schedule-editor > .row { grid-template-columns:minmax(0,1fr); }
    .schedule-override-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .schedule-override-row > strong { grid-column:1/-1; }
    .schedule-override-row > button { justify-self:start; }
}
.calendar-post-preview { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.calendar-preview-body { padding: 20px 20px 0; min-height: 0; overflow-y: auto; }
.calendar-preview-workspace { display: grid; gap: 16px; }
.calendar-preview-workspace.has-media { grid-template-columns: 220px minmax(0,1fr); }
.calendar-preview-media { min-width: 0; position: relative; }
.calendar-preview-media video, .calendar-preview-media img { max-height: 380px; object-fit: contain; }
.calendar-destinations { min-width: 0; }
.calendar-destination { gap: 8px !important; padding: 12px !important; }
.calendar-destination > div { margin-left: 0 !important; padding: 10px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.calendar-preview-footer { flex: none; }
.calendar-preview-footer label { width: 100%; font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: normal; font-weight: 400; }
.calendar-preview-footer input { display: block; margin-top: 8px; }
.calendar-preview-body button[aria-label="Close post preview"] { min-height: 44px; min-width: 44px; }
@media (max-width:620px) {
    .calendar-preview-workspace.has-media { grid-template-columns: minmax(0,1fr); }
    .calendar-preview-media { max-width: 220px; margin-inline: auto; }
    .calendar-preview-footer { padding: 14px !important; }
    .calendar-preview-body { padding: 16px 14px 0; }
}

.profile-details { margin-top:6px; color:var(--v2-muted); }
.profile-details > summary { min-height:32px; display:list-item; cursor:pointer; font-size:12px; line-height:32px; }
.profile-details > summary:focus-visible { outline:2px solid var(--v2-blue-light); outline-offset:3px; border-radius:4px; }
.profile-details p { margin:4px 0 0; overflow-wrap:anywhere; }
.settings-wrap .conn-card .tiny { white-space:normal !important; overflow:visible !important; text-overflow:clip !important; overflow-wrap:anywhere; }
@media(pointer:coarse) { .profile-details > summary { min-height:44px; line-height:44px; } }
.brand-dialog { background:var(--v2-slate); color:var(--v2-white); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; }
.brand-dialog-copy, .brand-dialog .field-label { color:var(--v2-muted); }
.brand-dialog-error { color:var(--v2-red); }
.brand-dialog .btn:disabled { opacity:1; color:var(--v2-muted); background:var(--v2-fill); }
html[data-theme="light"] .settings-wrap .btn-danger,
html[data-theme="light"] .brand-dialog .btn-danger { background:var(--v2-slate); color:var(--v2-red); --sp-action-bg-hover:var(--v2-slate); }
#toasts { top:calc(var(--posting-header-bottom, 76px) + 12px); max-height:min(55dvh, calc(100dvh - var(--posting-header-bottom, 76px) - 28px), 680px); }

/* Intake: one media workspace, an optional writing tool, and a stable next step. */
#app .posting-intake-workspace { gap:24px; }
#app .posting-profile-toolbar { justify-content:flex-start; flex-wrap:wrap; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--v2-border-strong); }
#app .posting-profile-toolbar > select { flex:0 1 340px; width:340px; }
#app .posting-profile-actions { margin-left:0; }
#app .posting-profile-actions .btn { padding:8px 12px; }
#app .posting-intake-grid { grid-template-columns:minmax(0,2.2fr) minmax(300px,1fr); gap:32px; }
#app .posting-upload-main { display:block; min-width:0; }
#app :is(.posting-media-section,.posting-caption-choice) { display:block; padding:0; border:0; border-radius:0; background:transparent; min-width:0; }
#app .posting-section-heading h2 { font-size:28px; }
#app .posting-section-meta { font-size:14px; font-weight:500; }
#app .posting-caption-choice { border-left:1px solid var(--v2-border-strong); padding-left:24px; }
#app .posting-caption-heading { margin-bottom:8px; min-height:0; }
#app .posting-caption-heading h2 { font-size:20px; line-height:1.4; }
#app #posting-caption-help { margin:0; font-size:15px; }
#app .posting-ai-option { min-height:44px; font-size:16px; font-weight:600; margin-top:12px; }
#app .posting-caption-options { margin-top:12px; padding-top:16px; border-top:1px solid var(--v2-border-strong); }
#app #social-caption-context { min-height:64px; height:72px; }
#app .posting-caption-choice .comment-cta-card { margin-top:12px; padding:16px 0 0; border:0; border-top:1px solid var(--v2-border-strong); border-radius:0; background:transparent; }
#app .posting-caption-choice .comment-cta-card > div:first-child { flex-wrap:wrap; gap:8px; }
#app .posting-caption-choice .comment-cta-card h3 { margin:0; font-size:18px; font-weight:600; line-height:1.4; }
#app .posting-caption-choice .comment-cta-fields { grid-template-columns:minmax(0,1fr); }
#app .posting-caption-choice .comment-cta-destinations { grid-template-columns:minmax(0,1fr); }
#app .posting-caption-choice .comment-cta-placement { grid-column:1; grid-row:auto; margin-top:8px; }
#app .posting-caption-choice .comment-cta-preview { font-size:14px; }
#app .posting-caption-choice .comment-cta-preview strong { font-size:15px; }
#app .posting-media-section .queue-row { display:grid; grid-template-columns:76px 160px minmax(0,1fr) 144px; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--v2-border-strong); }
#app .posting-row-order { display:flex; flex:none; align-items:center; gap:4px; }
#app .posting-row-order .num-badge { width:28px; height:28px; }
#app .posting-media-section .wizard-media-button { width:160px; height:120px; background:#050505; }
#app .posting-media-section .wizard-media-button img { object-fit:contain; }
#app .posting-media-section .wizard-media-label { font-size:14px; font-weight:600; padding:4px; }
#app .posting-media-section .wizard-media-button > span:first-child { position:relative; z-index:1; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:rgba(0,0,0,.7); color:#fff; }
#app .posting-media-section .qname { font-size:16px; font-weight:600; white-space:normal; overflow-wrap:anywhere; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
#app .posting-video-info { display:grid; gap:6px; min-width:0; }
#app .posting-video-status { font-size:14px; line-height:1.5; flex-wrap:wrap; }
#app .posting-video-details { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#app .posting-video-details:empty { display:none; }
#app .posting-video-details .counter { background:var(--v2-fill); color:var(--v2-white); border:1px solid var(--v2-border-strong); font-size:13px; }
#app .posting-video-details .queue-error { font-size:14px; max-width:none; }
#app .posting-row-actions { display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
#app .posting-row-actions .reorder-controls { gap:4px; }
#app .posting-media-section :is(.reorder-handle,.reorder-step,.posting-row-remove,.posting-row-retry) { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border:1px solid var(--posting-control-border); border-radius:8px; color:var(--v2-white); background:var(--v2-slate); opacity:1; display:inline-flex; align-items:center; justify-content:center; }
#app .posting-media-section .reorder-handle svg { width:22px; height:22px; }
#app .posting-media-section .reorder-step { font-size:22px; font-weight:600; }
#app .posting-media-section :is(.reorder-handle,.reorder-step,.posting-row-remove,.posting-row-retry):not(:disabled):hover { background:var(--v2-fill-hover); border-color:var(--v2-blue); color:var(--v2-white); }
#app .posting-media-section .reorder-step:disabled { color:var(--v2-muted); border-style:dashed; background:var(--v2-fill); cursor:default; }
#app .posting-media-section .dropzone.is-compact { margin-top:16px; min-height:64px; padding:12px; background:var(--v2-fill); border-radius:8px; }
#app .posting-connected-summary { display:flex; align-items:center; gap:12px 24px; flex-wrap:wrap; padding:16px 0; border:0; border-block:1px solid var(--v2-border-strong); border-radius:0; background:transparent; }
#app .posting-connected-summary h2 { font-size:16px; font-weight:600; }
#app .posting-connected-summary .posting-account-pills { display:flex; flex-wrap:wrap; gap:12px 24px; flex-direction:row; margin:0; }
#app .posting-connected-summary .posting-account-pill { padding:0; border:0!important; font-size:14px; }
#app .posting-connected-summary .posting-account-pill > span { display:inline; margin:0 0 0 6px; font-size:15px; }
#app .posting-connected-summary p { margin:0; padding:0; border:0; font-size:14px; }
#app .posting-intake-next { position:static; top:auto; z-index:auto; padding:0 0 16px; border:0; border-radius:0; background:transparent; box-shadow:none; gap:12px 24px; }
#app .posting-intake-next strong { font-size:18px; }
#app .posting-intake-next .posting-generation-disclosure { flex:1 1 100%; margin:0; font-size:14px; }
#app .posting-intake-actions [hidden] { display:none; }
@media(min-width:1001px) {
    #app .posting-intake-workspace { padding-bottom:calc(var(--posting-next-height,180px) + 24px); }
    #app .posting-intake-next { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:calc(100% - 48px); max-width:1104px; z-index:4; padding:16px 0; border-top:1px solid var(--v2-border-strong); background:var(--bg-color); }
    html { scroll-padding-bottom:200px; }
}
@media(max-width:1000px) {
    #app .posting-intake-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
    #app .posting-caption-choice { border-left:0; border-top:1px solid var(--v2-border-strong); padding:24px 0 0; }
    #app .posting-caption-choice .comment-cta-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #app .posting-caption-choice .comment-cta-field:nth-child(3), #app .posting-caption-choice .comment-cta-destinations { grid-column:1/-1; }
    #app .posting-media-section .queue-row { grid-template-columns:76px 120px minmax(0,1fr) 144px; }
    #app .posting-media-section .wizard-media-button { width:120px; height:90px; }
}
@media(max-width:620px) {
    #app .posting-profile-toolbar > select { flex:1 1 100%; width:100%; }
    #app .posting-section-heading h2 { font-size:26px; }
    #app .posting-caption-choice .comment-cta-fields { grid-template-columns:minmax(0,1fr); }
    #app .posting-media-section .queue-row { grid-template-columns:76px minmax(0,1fr) 44px; gap:8px 12px; }
    #app .posting-row-order { grid-column:1; grid-row:1; }
    #app .posting-media-section .wizard-media-button { grid-column:1; grid-row:2; width:76px; height:57px; }
    #app .posting-media-section .wizard-media-button > span:first-child { display:none; }
    #app .posting-media-section .wizard-media-label { font-size:12px; padding:2px; }
    #app .posting-video-info { grid-column:2; grid-row:1/span 2; align-self:start; }
    #app .posting-row-actions { display:contents; }
    #app .posting-row-actions .reorder-controls { grid-column:2; grid-row:3; }
    #app .posting-row-remove { grid-column:3; grid-row:1; }
    #app .posting-row-retry { grid-column:3; grid-row:2; }
    #app .posting-connected-summary { gap:12px; }
    #app .posting-intake-next > [role="status"] { flex-basis:100%; }
    #app .posting-intake-next .posting-intake-actions { width:100%; flex-basis:100%; }
}
.posting-intake-workspace { gap:24px; }
.posting-intake-workspace .posting-profile-toolbar { padding:0; border:0; }
.posting-media-section, .posting-upload-main .posting-caption-choice {
    padding:20px; border:1px solid var(--v2-border); border-radius:16px; background:var(--v2-slate);
}
.posting-section-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.posting-section-heading h2 { margin:0; font-size:18px; font-weight:600; }
.posting-section-heading p { margin:4px 0 0; font-size:13px; color:var(--v2-muted); line-height:1.5; }
.posting-section-meta { color:var(--v2-muted); font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.posting-video-list { display:grid; gap:0; margin-bottom:16px; }
.posting-media-section .queue-row { border:0; border-bottom:1px solid var(--v2-border); border-radius:0; background:transparent; padding:12px 0; gap:12px; }
.posting-media-section .queue-row:first-child { padding-top:0; }
.posting-media-section .queue-row > div:first-child { flex:1; }
.posting-video-info { display:grid; gap:6px; min-width:0; flex:1; }
.posting-media-section .qname { max-width:none; display:block; font-size:14px; font-weight:500; }
.posting-video-status { display:flex; align-items:center; gap:6px; color:var(--v2-muted); font-size:12px; }
.posting-video-status svg { flex:none; }
.posting-media-section .wizard-media-button { flex:none; width:72px; height:54px; }
.posting-media-section .reorder-controls { display:flex; gap:2px; }
.posting-media-section .reorder-handle { min-width:28px; height:32px; }
.posting-media-section .reorder-step { min-width:24px; min-height:26px; }
.posting-media-section .num-badge { width:24px; height:24px; flex:none; }
.posting-media-section .dropzone { min-height:210px; border-radius:10px; background:var(--v2-fill); }
.posting-media-section .dropzone.is-compact { min-height:64px; padding:12px; justify-content:flex-start; gap:10px; }
.posting-media-section .dropzone.is-compact .posting-drop-title { font-size:14px; }
.posting-media-section .dropzone.is-compact svg { width:24px; height:24px; }
.posting-media-section .dropzone.is-compact #posting-upload-rules { display:none; }
.posting-media-section .dropzone.is-compact .posting-browse-label { margin-left:auto; }
.posting-caption-choice #social-captions-title { display:flex; align-items:center; gap:12px; font-size:16px; font-weight:600; }
.posting-caption-choice #social-captions-title small { font-size:12px; color:var(--v2-muted); font-weight:400; }
.posting-caption-choice p { margin-top:4px; }
.posting-caption-options { display:grid; gap:12px; margin-top:20px; padding-top:20px; border-top:1px solid var(--v2-border); }
.posting-caption-options > label { font-size:13px; min-height:0; font-weight:600; }
.posting-caption-options > label span { margin-left:8px; font-weight:400; }
.posting-caption-options textarea { min-height:84px; width:100%; font-size:14px; line-height:1.5; }
.posting-caption-options > .card { margin:0; padding:12px; box-shadow:none; border-radius:10px; }
.posting-generate-action { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.posting-generate-action p { flex:1 1 220px; margin:0; font-size:12px; color:var(--v2-muted); }
.posting-generate-action button { flex:none; min-height:44px; }
.posting-connected-summary { background:transparent; border-radius:16px; }
.posting-intake-next { position:sticky; top:calc(var(--posting-header-bottom, 76px) + 8px); z-index:3; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:var(--v2-slate); border:1px solid var(--v2-border); border-radius:14px; box-shadow:0 4px 24px rgba(0,0,0,.12); }
.posting-intake-next strong { font-size:14px; font-weight:600; }
.posting-intake-next p { margin:4px 0 0; font-size:12px; line-height:1.5; color:var(--v2-muted); }
.posting-intake-next button { flex:none; min-height:44px; gap:8px; }
.posting-intake-workspace :is(button,select,input,textarea):focus-visible { outline:2px solid var(--v2-blue-light); outline-offset:3px; }
.posting-intake-workspace :is(button,select,input,textarea) { scroll-margin-top:calc(var(--posting-header-bottom, 76px) + 112px); }
@media (max-width:800px) {
    .posting-media-section, .posting-upload-main .posting-caption-choice { padding:16px; }
    .posting-intake-next { position:static; padding:12px 16px; flex-wrap:wrap; gap:12px; }
    .posting-intake-next > div { flex:1 1 100%; }
    .posting-intake-next button { width:100%; }
    .posting-media-section .queue-row { flex-wrap:wrap; }
    .posting-media-section .queue-row > div:first-child { flex:1 1 100%; }
    .posting-media-section .queue-row > div:last-child { justify-content:space-between; }
    .posting-media-section .reorder-handle { min-width:44px; height:44px; }
    .posting-media-section .reorder-step { min-height:44px; min-width:44px; }
    .posting-media-section .queue-row button.link-btn { width:44px; min-width:44px; min-height:44px; }
    .posting-connected-summary button { min-height:44px; }
    .posting-media-section .wizard-media-button { width:56px; height:48px; }
    .posting-intake-workspace :is(select,textarea,input[type="text"]) { font-size:16px; }
    .posting-caption-choice #social-captions-title { flex-wrap:wrap; gap:4px 12px; }
    .posting-media-section .dropzone.is-compact .posting-browse-label { padding-inline:12px; }
}
@media (pointer:coarse) {
    .posting-media-section .reorder-step { min-height:44px; min-width:44px; }
    .posting-media-section .reorder-handle { min-width:44px; }
}
