:root{--muted:#696273;--red:#a6383d;--red-bg:#fff0f0}
:root[data-theme=dark]{--muted:#b9b1c7;--red:#f2a4aa;--red-bg:#422c32}
.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.content:focus{outline:none}.post-name{overflow-wrap:anywhere}.preview-thumbnails{display:flex;gap:6px;padding:9px 16px;border-bottom:1px solid var(--border)}.preview-thumbnails img{width:43px;height:43px;object-fit:cover;border-radius:5px}.preview-actions{display:flex;gap:8px}.preview-actions .button{white-space:normal}.button.danger{background:var(--red-bg);color:var(--red);border-color:transparent}.photo-count{position:absolute;right:10px;bottom:10px;background:var(--surface);border-radius:5px;padding:3px 7px;font-size:10px}.post-card .card-image{overflow:hidden}.post-row:focus-visible{outline-offset:-4px}.section-note,.grid-footer,.state-note,.card-topic,.card-footer,.badge,.preview-account small,.time-info small,.connection-note span:not([data-icon]){font-size:11px}.post-date strong{white-space:nowrap}.demo-bar{font-size:11px}.empty-results{text-align:left;padding:32px}.empty-results .empty-icon{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);border-radius:10px;width:40px;height:40px;margin-bottom:18px}.empty-results svg{width:20px;height:20px}.empty-results .button{margin-top:3px}.result-count{font-size:11px;color:var(--muted)}.page-heading .page-actions{display:flex;gap:8px;align-items:center}.content h1{overflow-wrap:anywhere}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px;flex-wrap:wrap}.segmented{display:flex;flex-wrap:wrap;gap:5px;background:var(--surface);border:1px solid var(--border);padding:4px;border-radius:9px}.segmented button{font-size:12px;border:0;background:transparent;padding:7px 11px;border-radius:6px;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink)}.media-card{padding:0;text-align:left;display:block;width:100%;color:inherit}.media-card:hover{border-color:var(--accent)}.media-card:focus-visible{outline-offset:3px}.asset-dialog{width:760px}.asset-layout{display:grid;grid-template-columns:1fr 260px;gap:24px;padding:22px}.asset-layout>img{width:100%;max-height:450px;object-fit:contain;border-radius:9px;background:var(--bg)}.asset-metadata{display:grid;align-content:start;gap:16px;font-size:12px}.asset-metadata dt{font-size:11px;color:var(--muted);margin-bottom:4px}.asset-metadata dd{margin:0}.asset-metadata .badge{white-space:normal}.draft-dialog{width:690px}.draft-dialog textarea{min-height:170px}.composer-images{margin:19px 22px}.field-label{font-size:12px;display:block;margin-bottom:9px}.field-help{font-size:11px;color:var(--muted);margin-top:8px}.image-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.image-option{border:2px solid transparent;background:var(--bg);border-radius:8px;padding:3px;position:relative}.image-option img{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:5px}.image-option[aria-pressed=true]{border-color:var(--accent)}.image-option .image-index{display:grid;place-items:center;position:absolute;top:6px;right:6px;width:19px;height:19px;border-radius:50%;background:var(--accent);color:var(--accent-on);font-size:10px}.image-order{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.ordered-image{display:flex;gap:5px;align-items:center;background:var(--bg);border-radius:7px;padding:5px}.ordered-image>img{width:35px;height:35px;border-radius:4px;object-fit:cover}.ordered-image .icon-button{width:27px;height:30px;padding:5px}.ordered-image svg{width:14px;height:14px}.ordered-image span{font-size:11px;color:var(--muted)}.composer-schedule{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:19px 22px}.draft-dialog .composer-schedule label{font-size:12px}.draft-dialog .composer-schedule input{width:100%;margin:7px 0 0}.composer-live{margin:0 22px 20px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}.composer-live summary{padding:12px 15px;font-size:12px}.composer-live .preview{max-width:380px;margin:0 auto 16px}.composer-live .preview-label,.composer-live .preview-actions{display:none}.composer-live .preview-photo{height:220px}.composer-live .preview-caption:empty{min-height:30px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.calendar-month{display:flex;align-items:center;gap:12px}.calendar-month h2{font-size:18px;font-weight:550;text-transform:capitalize}.calendar-month .icon-button{background:var(--surface);border-color:var(--border)}.calendar-board{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--bg);border-bottom:1px solid var(--border)}.calendar-weekdays span{padding:12px 10px;color:var(--muted);font-size:11px;text-align:center}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-cell{min-height:128px;padding:10px 7px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);min-width:0}.calendar-cell:nth-child(7n){border-right:0}.calendar-cell.outside{background:var(--bg)}.calendar-day{display:inline-grid;place-items:center;width:23px;height:23px;font-size:11px;color:var(--muted)}.calendar-day.today{background:var(--accent);color:var(--accent-on);border-radius:50%}.calendar-event{display:block;width:100%;margin-top:6px;padding:7px;border:0;background:var(--accent-soft);border-radius:5px;text-align:left;font-size:10px;overflow-wrap:anywhere}.calendar-event.meta{background:var(--green-bg)}.calendar-event.review{background:var(--amber-bg)}.calendar-event strong{font-size:11px;font-weight:500;display:block;color:var(--text);margin:3px 0}.calendar-event span{color:var(--muted);font-size:10px}.calendar-legend{display:flex;gap:13px;flex-wrap:wrap;margin-top:15px}.calendar-agenda{display:none}.agenda-day{display:grid;grid-template-columns:65px 1fr;gap:16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:12px}.agenda-date{font-size:12px;color:var(--muted)}.agenda-date strong{display:block;color:var(--text);font-size:24px;font-weight:500}.agenda-post{width:100%;display:flex;gap:12px;align-items:center;padding:0;background:none;border:0;text-align:left}.agenda-post img{width:50px;height:55px;object-fit:cover;border-radius:7px}.agenda-post strong{font-size:12px;display:block;margin-bottom:7px}.agenda-empty{color:var(--muted);font-size:12px;padding:23px}.panel-grid{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.data-panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-title{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border);gap:15px}.panel-title h2{font-size:14px;font-weight:550}.panel-title p{font-size:11px;color:var(--muted);margin-top:4px}.panel-title svg{width:17px;height:17px;color:var(--accent-ink)}.data-row{display:flex;gap:14px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);min-width:0}.data-row:last-child{border-bottom:0}.data-row>img{width:42px;height:46px;object-fit:cover;border-radius:6px}.data-row .row-copy{flex:1;min-width:0;font-size:12px}.data-row .row-copy strong{display:block;font-weight:550;overflow-wrap:anywhere}.data-row .row-copy small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.data-row .badge{white-space:normal}.status-summary{padding:20px}.status-summary .summary-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:12px;gap:10px}.status-summary .summary-line:last-child{margin-bottom:0}.status-summary strong{font-size:18px;font-weight:500}.panel-note{padding:17px 20px;font-size:11px;color:var(--muted);line-height:1.7;border-top:1px solid var(--border)}.quota-panel{padding:21px}.quota-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.quota-label strong{font-size:22px;font-weight:500;letter-spacing:-.5px}.quota-label small{font-size:12px;font-weight:400;color:var(--muted)}.quota-track{height:6px;border-radius:4px;background:var(--accent-soft);overflow:hidden;margin:15px 0 8px}.quota-fill{height:100%;background:var(--accent);width:15%}.quota-panel p{font-size:11px;color:var(--muted)}.member-avatar{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-size:12px}.history-icon{width:31px;height:31px;border-radius:8px;background:var(--bg);display:grid;place-items:center;color:var(--muted);flex-shrink:0}.history-icon svg{width:16px;height:16px}.timestamp{font-size:11px;color:var(--muted);white-space:nowrap}.access-heading{display:flex;align-items:center;gap:12px}.access-heading .ai-mark{width:34px;height:34px}.access-heading h2{font-size:15px;font-weight:550}.access-copy{padding:20px;font-size:12px;line-height:1.7}.access-copy p{color:var(--muted);margin:12px 0 20px}.settings-feedback{font-size:11px;color:var(--green);padding:0 22px 16px}.info-row strong{overflow-wrap:anywhere}.info-row>span{max-width:45%}.form-note{line-height:1.65}.dialog-header{gap:14px}.dialog-header h2{overflow-wrap:anywhere}.view-toggle button:focus-visible{outline-offset:1px}
@media(max-width:1100px){.calendar-cell{min-height:120px;padding:8px 4px}.calendar-event{padding:5px}.panel-grid{grid-template-columns:1fr 250px}.calendar-event strong{font-size:10px}.image-picker{gap:5px}}
@media(max-width:900px){.panel-grid{grid-template-columns:1fr}.status-summary{display:flex;gap:20px;flex-wrap:wrap}.status-summary .summary-line{gap:12px;margin-bottom:0}.calendar-board{display:none}.calendar-agenda{display:block}.calendar-toolbar{flex-wrap:wrap}.calendar-legend{margin-top:5px}.asset-layout{grid-template-columns:1fr 220px}.media-card img{height:200px}}
@media(max-width:760px){.panel-title{padding:16px}.data-row{padding:14px 16px}.asset-layout{grid-template-columns:1fr}.asset-layout>img{max-height:330px}.asset-metadata{grid-template-columns:1fr 1fr}.data-row .badge{font-size:10px}.section-note{line-height:1.6}}
@media(max-width:580px){.card-topic,.card-footer,.card-image .badge{font-size:11px}.card-body .post-name{font-size:12px}.card-image img{height:155px}.image-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.image-option img{aspect-ratio:1.3}.composer-schedule{gap:10px}.draft-dialog .composer-schedule label{font-size:11px}.calendar-month{gap:8px}.calendar-month h2{font-size:16px}.calendar-toolbar .button{font-size:11px;padding:9px 11px}.data-row{gap:10px;flex-wrap:wrap}.data-row .row-copy{min-width:140px}.data-row>img{width:35px;height:40px}.data-row .badge{font-size:11px}.timestamp{font-size:10px}.quota-label strong{font-size:21px}.page-heading .page-actions{flex-wrap:wrap}.info-row{flex-wrap:wrap}.info-row strong{max-width:65%;margin-left:auto}.info-row>span{max-width:100%}.result-count{font-size:10px}.card-footer{align-items:flex-start}.preview-details,.preview-label{font-size:12px}.preview-caption{font-size:13px}.media-copy h3,.media-copy p{font-size:12px}.demo-detail{font-size:10px}.summary-copy p,.summary-copy strong{font-size:11px}.library-toolbar .search{flex-basis:100%}.asset-layout{padding:16px}.calendar-legend .badge{font-size:10px}.form-note{font-size:12px}.info-note{font-size:12px}}
@media(pointer:coarse){.image-option,.segmented button{min-height:44px}.ordered-image .icon-button{width:34px;min-height:36px}.image-order{gap:7px}}

.toast-undo{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;text-decoration:underline;padding:5px 8px;margin-left:7px;border-radius:4px}.toast-undo:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Keep social publishing, paid advertising and management visibly separate. */
.button svg{width:16px;height:16px;flex-shrink:0}
.info-header svg{width:18px;height:18px;flex-shrink:0}
.platform-note{font-size:10px;line-height:1.6;color:var(--muted);margin:12px 3px 0}.ads-intro{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:24px}.ads-intro-copy h2{font-size:23px;line-height:1.3;font-weight:550;letter-spacing:-.6px;margin:9px 0 12px}.ads-intro-copy>p:not(.eyebrow){max-width:580px;font-size:13px;color:var(--muted);line-height:1.8}.module-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:23px}.module-tags span{font-size:11px;border:1px solid var(--border);border-radius:6px;padding:6px 9px;color:var(--muted)}.ads-preview-state{padding:21px;background:var(--bg);border:1px solid var(--border);border-radius:10px}.ads-preview-state h3{font-size:14px;font-weight:550;margin:15px 0 9px}.ads-preview-state p{font-size:12px;color:var(--muted);line-height:1.75;margin-bottom:19px}.ads-preview-state .button{width:100%;white-space:normal}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.module-card{display:flex;flex-direction:column;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:23px;min-width:0}.module-icon{display:grid;place-items:center;width:35px;height:35px;color:var(--accent-ink);background:var(--accent-soft);border-radius:9px;margin-bottom:18px}.module-icon svg{width:18px;height:18px}.module-card h2{font-size:14px;font-weight:550;line-height:1.5;margin-bottom:9px}.module-card p{font-size:12px;color:var(--muted);line-height:1.8;flex:1}.module-card .badge{margin-top:17px;white-space:normal}.module-card .button{margin-top:17px;white-space:normal;text-align:left}.module-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--border);border-radius:var(--radius);padding:23px;background:var(--surface)}.module-footer h2{font-size:14px;font-weight:550;margin-bottom:8px}.module-footer p{font-size:12px;color:var(--muted);line-height:1.75;max-width:600px}.module-links{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:24px;font-size:12px}.module-links>a:not(.button),.text-button{display:inline-flex;align-items:center;gap:7px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.module-links svg{width:14px;height:14px}.text-button{border:0;background:transparent;font:inherit;padding:5px 0}.module-links>a:hover,.text-button:hover{color:var(--accent-ink)}

@media(max-width:1100px){.ads-intro{grid-template-columns:minmax(0,1fr) 260px;padding:23px;gap:23px}.module-grid{gap:14px}.module-card{padding:19px}}
@media(max-width:900px){.ads-intro{grid-template-columns:1fr}.ads-preview-state{display:block}.ads-preview-state .button{width:auto}.module-grid{grid-template-columns:1fr}.module-card{padding:21px}.module-icon{margin-bottom:13px}.module-footer{align-items:flex-start;flex-direction:column;gap:17px}}
@media(max-width:760px){.ads-intro-copy h2{font-size:21px}.ads-intro{padding:21px}.topbar-actions .channel{display:none}.page-heading p{line-height:1.7}.module-links{align-items:flex-start;flex-direction:column}.ads-preview-state .button{width:100%}}

/* The preview uses the same single scroll area as the signed-in dashboard. */
.sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:calc(100vh - 31px);height:calc(100dvh - 31px);min-height:0;padding:0;overflow:hidden}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:18px 20px;flex-shrink:0}
.sidebar .logo{margin:0;font-size:20px}
.sidebar-scroll{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:0 14px 16px;scrollbar-width:thin;scroll-padding-block:12px;overscroll-behavior-y:contain}
.sidebar .workspace{margin:0 0 12px;padding:10px;border:1px solid var(--border);border-radius:9px}
.sidebar nav{display:block;overflow:visible;margin:0}
.sidebar .nav-heading{display:block;font-size:9px;letter-spacing:.8px;margin:16px 10px 6px}
.sidebar .nav-button{width:100%;min-height:40px;font-size:12px;padding:9px 10px;margin:2px 0;white-space:normal}
.sidebar .nav-count{margin-left:auto}
.sidebar-bottom{display:block;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
.sidebar-bottom .connection-note{padding:10px}
.sidebar .user{margin-top:12px;padding-top:12px}
.sidebar .owner-label{display:inline}
.mobile-menu{display:none}
@media(max-width:760px){
 .sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid var(--border)}
 .sidebar-header{min-height:68px;padding:12px 20px}
 .sidebar .logo{font-size:19px}
 .mobile-menu{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:44px;padding:10px 12px;border-color:var(--border);font-size:12px}
 .mobile-menu svg{width:17px;height:17px}
 .sidebar-scroll{display:none;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);padding:0 20px 16px}
 .sidebar.menu-open .sidebar-scroll{display:block}
 .sidebar .workspace-avatar{display:grid}
 .sidebar .workspace strong{font-size:12px}
 .sidebar .workspace span:not(.workspace-avatar){display:block}
 .sidebar .nav-button{min-height:44px}
 .sidebar .sidebar-bottom{display:block}
}
@media(max-width:580px){.sidebar-header{padding:12px 15px}.sidebar-scroll{padding:0 15px 14px}.sidebar .logo{font-size:18px}.sidebar .logo img{width:27px;height:27px}}
@media(pointer:coarse){.sidebar .nav-button{min-height:44px}}

.preview-about-link{margin-left:auto;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:4px 0}.preview-about-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* The post studio: an editable idea beside the result it will become. */
.draft-dialog{width:1080px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;border-radius:20px}
.draft-dialog .dialog-header{padding:23px 28px;background:var(--surface);position:sticky;top:0;z-index:3}
.draft-dialog .dialog-header h2{font-size:25px;font-weight:600;letter-spacing:-.7px;line-height:1.25}
.composer-intro{padding:17px 28px 0;font-size:13px;color:var(--muted);line-height:1.65}
.composer-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:30px;padding:24px 28px 28px;align-items:start}
.composer-editor{min-width:0}
.composer-section-heading{display:flex;align-items:center;gap:9px;margin-bottom:15px;flex-wrap:wrap}
.composer-section-heading h3{font-size:14px;font-weight:600;letter-spacing:-.2px}
.composer-section-heading .text-button{font-size:11px;margin-left:auto;padding:4px}
.composer-section-heading>.muted{margin-left:auto;font-size:11px}
.composer-step{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid var(--border);border-radius:50%;font-size:10px;color:var(--accent-ink);font-weight:600;flex-shrink:0;background:var(--accent-soft)}
.composer-editor>label{display:block;font-size:12px;margin:17px 0 7px;font-weight:550}
.draft-dialog .composer-editor input:not([type=checkbox]),.draft-dialog .composer-editor textarea{width:100%;margin:0;padding:11px 12px;font-size:14px}
.draft-dialog .composer-editor textarea{min-height:150px;line-height:1.65;resize:vertical}
.composer-text-meta{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);line-height:1.6;margin-top:8px}
.composer-text-meta p{max-width:260px}
.composer-text-meta>span{white-space:nowrap}
.draft-dialog .composer-images{margin:25px 0 0}
.draft-dialog .image-picker{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.draft-dialog .image-option{padding:2px;min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}
.draft-dialog .image-option img{aspect-ratio:1;width:100%;height:auto}
.draft-dialog .image-option:hover{transform:translateY(-2px)}
.draft-dialog .image-option[aria-pressed=true]{box-shadow:0 0 0 1px var(--accent)}
.draft-dialog .image-index{width:19px;height:19px;top:4px;right:4px;border:1px solid var(--surface)}
.draft-dialog .image-order{gap:7px;min-height:45px}
.draft-dialog .ordered-image{border:1px solid var(--border);padding:4px}
.draft-dialog .ordered-image>img{width:30px;height:30px}
.draft-dialog .ordered-image .icon-button{width:29px;height:30px;padding:6px;min-height:30px}
.composer-channels{margin:25px 0 0;padding:0;border:0;display:flex;flex-wrap:wrap;gap:10px}
.composer-channels legend{font-size:14px;font-weight:600;padding:0;margin-bottom:13px;display:flex;align-items:center;gap:9px}
.composer-channels label{display:flex;align-items:center;gap:8px;font-size:12px;min-height:44px;padding:10px 13px;background:var(--surface);border:1px solid var(--border);border-radius:9px;cursor:pointer;flex:1}
.draft-dialog .composer-channels input{display:block;width:15px;height:15px;margin:0;accent-color:var(--accent);padding:0;flex-shrink:0}
.composer-channels label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.composer-channels .field-help{width:100%;margin:0}
.channel-symbol{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:5px;font-weight:700;font-size:17px;line-height:1;flex-shrink:0}
.channel-facebook{color:#1877f2}.channel-instagram{color:#c84186}
.composer-timing{margin-top:22px;border-top:1px solid var(--border);padding-top:14px;font-size:11px;color:var(--muted)}
.composer-timing summary{cursor:pointer;padding:4px 0}
.draft-dialog .composer-schedule{margin:14px 0;gap:12px}
.draft-dialog .composer-schedule label{font-size:11px;color:var(--text);line-height:1.5}
.draft-dialog .composer-schedule input{font-size:13px;margin-top:6px}
.composer-output{background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:19px;min-width:0;position:sticky;top:101px}
.composer-output-heading{display:flex;justify-content:space-between;align-items:start;gap:13px;margin-bottom:16px}
.composer-output-heading h3{font-size:17px;line-height:1.45;letter-spacing:-.4px;font-weight:600}
.composer-output-heading .eyebrow{font-size:9px;margin-bottom:7px}
.composer-preview-badge{font-size:10px;background:var(--surface);border:1px solid var(--border);padding:4px 7px;border-radius:5px;color:var(--muted)}
.composer-preview-tabs,.saved-preview-tabs{display:flex;gap:4px;background:var(--surface);padding:4px;border:1px solid var(--border);border-radius:9px;margin-bottom:15px}
.composer-preview-tabs button,.saved-preview-tabs button{flex:1;border:0;border-radius:6px;background:transparent;font-size:11px;padding:8px 12px;min-height:36px;color:var(--muted);transition:background .15s,color .15s}
.composer-preview-tabs button[aria-pressed=true],.saved-preview-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.composer-preview-tabs button:disabled{opacity:.4}
#draft-live-preview .social-card{border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:hidden;animation:studio-result-in .18s ease-out}
.social-card .preview-account{position:relative}.social-more{margin-left:auto;color:var(--muted);font-size:19px;letter-spacing:1px}
.social-card .preview-account small{font-size:10px}
.social-photo-wrap{position:relative}.social-photo-count{position:absolute;top:12px;right:12px;background:#1c242ddd;color:#fff;border-radius:12px;padding:4px 8px;font-size:10px}
.social-card .preview-photo{height:auto;width:100%;aspect-ratio:1;object-fit:cover}
#draft-live-preview .preview-photo{max-height:285px;aspect-ratio:1.2}
.social-instagram-caption{padding:13px 16px 17px}.social-instagram-caption .preview-caption{margin-top:7px}
.social-reactions{font-size:20px;line-height:1.3;color:var(--text)}
.social-facebook-reactions{font-size:10px;color:var(--muted);display:flex;justify-content:center;padding:10px;border-top:1px solid var(--border)}
#draft-live-preview .preview-caption{font-size:12px;line-height:1.65;max-height:160px;overflow:auto;white-space:pre-wrap}
#draft-live-preview .preview-top{padding:14px}
#draft-live-preview .preview-top .preview-caption{margin-top:14px}
.social-no-photo,.social-no-channel{min-height:210px;display:grid;place-items:center;text-align:center;padding:25px;font-size:13px;line-height:1.7;color:var(--muted);background:var(--bg);border:1px dashed var(--border)}
.composer-preview-note{font-size:10px;color:var(--muted);line-height:1.65;margin:14px 2px 0}
.draft-dialog .form-note{font-size:11px;margin:0 28px 17px;line-height:1.65}
.draft-dialog .form-actions{position:sticky;bottom:0;z-index:2;background:var(--surface);padding:17px 28px;align-items:center;box-shadow:0 -8px 24px color-mix(in srgb,var(--text) 3%,transparent)}
.draft-dialog .form-actions>span{margin-right:auto;font-size:11px;color:var(--muted)}
.draft-dialog .form-actions .button{min-height:42px}
.draft-dialog .composer-error{margin:0 28px 15px;padding:12px 14px;background:var(--red-bg);color:var(--red);font-size:12px;line-height:1.6;border-radius:8px;border:1px solid var(--red)}
.saved-draft-notice{display:flex;align-items:center;gap:15px;background:var(--surface);border:1px solid var(--accent);border-radius:12px;padding:19px 21px;margin:0 0 23px}
.saved-draft-mark{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;background:var(--accent-soft);color:var(--accent-ink);border-radius:50%;font-size:18px}
.saved-draft-notice h2{font-size:14px;font-weight:600;margin-bottom:5px}
.saved-draft-notice p{font-size:11px;line-height:1.7;color:var(--muted);max-width:540px}
.saved-draft-notice .button{flex-shrink:0;margin-left:auto;font-size:11px}
.saved-draft-notice.session-only{border-color:var(--amber)}.session-only .saved-draft-mark{background:var(--amber-bg);color:var(--amber)}
.saved-preview-tabs{margin:12px 16px 0}
.preview .social-card{border:0}.preview .social-card .preview-photo{height:auto;aspect-ratio:1;max-height:420px}
.badge.approved{background:var(--green-bg);color:var(--green)}
.local-review-actions{display:grid;gap:10px;padding:15px 16px;border-top:1px solid var(--border)}
.local-review-actions .button{white-space:normal;line-height:1.5;text-align:center;width:100%}
.local-review-actions p{font-size:10px;line-height:1.65;color:var(--muted)}
.local-review-actions strong{font-size:11px;color:var(--green);line-height:1.6}
@keyframes studio-result-in{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.composer-layout{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:20px;padding:22px}.draft-dialog .dialog-header{padding:20px 22px}.composer-intro{padding:15px 22px 0}.composer-output{padding:15px}.composer-section-heading .text-button{margin-left:32px}.draft-dialog .image-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.draft-dialog .image-option img{aspect-ratio:1.4}.saved-draft-notice{align-items:flex-start;flex-wrap:wrap}.saved-draft-notice>div{flex:1}.saved-draft-notice .button{margin-left:50px}.composer-text-meta{flex-wrap:wrap;gap:3px}.composer-text-meta p{max-width:none}.composer-text-meta>span{margin-left:auto}}
@media(max-width:680px){.draft-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:15px}.draft-dialog .dialog-header{padding:18px}.draft-dialog .dialog-header h2{font-size:22px}.composer-intro{padding:14px 18px 0;font-size:12px}.composer-layout{grid-template-columns:1fr;padding:20px 18px;gap:23px}.composer-output{position:static;padding:16px}.draft-dialog .image-picker{grid-template-columns:repeat(6,minmax(0,1fr))}.draft-dialog .image-option img{aspect-ratio:1}.draft-dialog .image-index{font-size:9px;top:1px;right:1px;width:16px;height:16px}.composer-section-heading .text-button{margin-left:auto}.composer-output-heading h3{font-size:18px}.draft-dialog .form-actions{padding:14px 18px;flex-wrap:wrap;gap:8px}.draft-dialog .form-actions>span{flex-basis:100%;margin-right:0;font-size:10px}.draft-dialog .form-actions .button{flex:1;justify-content:center;font-size:12px}.draft-dialog .form-note{margin:0 18px 15px}.draft-dialog .composer-error{margin:0 18px 15px}.composer-text-meta{flex-wrap:nowrap;gap:10px}.composer-text-meta p{max-width:210px}.draft-dialog .composer-editor textarea,.draft-dialog .composer-editor input:not([type=checkbox]){font-size:16px}.saved-draft-notice{padding:16px}.saved-draft-notice .button{margin-left:0;width:100%;justify-content:center}.saved-draft-notice p{font-size:11px}.saved-draft-notice h2{font-size:13px}}
@media(pointer:coarse){.composer-preview-tabs button,.saved-preview-tabs button{min-height:44px}.draft-dialog .ordered-image .icon-button{min-height:36px;width:32px}.composer-section-heading .text-button{min-height:40px}}
@media(prefers-reduced-motion:reduce){#draft-live-preview .social-card{animation:none}.draft-dialog .image-option,.composer-preview-tabs button,.saved-preview-tabs button{transition:none}.draft-dialog .image-option:hover{transform:none}.post-card{transition:none}.post-card:hover{transform:none}}

/* Readable guidance and finger-sized controls throughout the mobile demo. */
@media(max-width:720px){
 .draft-dialog .dialog-header>div{min-width:0}
 .draft-dialog .dialog-header .icon-button,.post-dialog .preview-label .icon-button,.asset-dialog .dialog-header .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;flex-shrink:0}
 .composer-intro{font-size:14px;line-height:1.7}
 .composer-editor>label,.composer-channels legend,.composer-channels label{font-size:14px}
 .composer-section-heading .text-button{font-size:12px;min-height:44px;min-width:44px;padding:9px 6px}
 .composer-preview-tabs button,.saved-preview-tabs button{font-size:14px;min-height:44px;padding:10px 12px}
 .composer-timing summary{font-size:12px;min-height:44px;padding:12px 0}
 .draft-dialog .composer-schedule label{font-size:12px}
 .draft-dialog .composer-schedule input{min-height:44px;font-size:16px}
 .draft-dialog .field-help,.draft-dialog .form-actions>span,.draft-dialog .form-note,.composer-preview-note,.composer-text-meta{font-size:12px;line-height:1.7}
 .composer-text-meta{flex-wrap:wrap;gap:4px 10px}
 .composer-text-meta p{max-width:none;flex:1;min-width:170px}
 .composer-text-meta>span{margin-left:auto;align-self:flex-start}
 .draft-dialog .form-actions .button{font-size:14px;min-height:44px}
 .draft-dialog .image-option{min-width:44px;min-height:44px}
 .draft-dialog .ordered-image .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px}
 .draft-dialog .ordered-image{gap:5px;max-width:100%}
 .draft-dialog .image-order{gap:8px}
 .composer-section-heading>.muted,.composer-preview-badge{font-size:12px}
 #draft-live-preview .preview-caption{font-size:14px;line-height:1.7}
 .saved-draft-notice h2{font-size:14px}
 .saved-draft-notice p,.saved-draft-notice .button,.local-review-actions .button,.local-review-actions strong,.local-review-actions p{font-size:12px;line-height:1.7}
 .saved-draft-notice .button,.local-review-actions .button{min-height:44px}
}
@media(max-width:359px){.draft-dialog .image-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.composer-channels label{flex-basis:100%}}

/* Approved Campavio lockup keeps its original geometry in either theme. */
.sidebar .logo .campavio-wordmark{width:156px;height:auto;max-width:100%;display:block}
:root[data-theme=dark] .campavio-wordmark{content:url("/assets/branding/campavio-wordmark-on-dark.svg?v=campavio-20261011-1")}
@media(max-width:580px){.sidebar .logo .campavio-wordmark{width:144px;height:auto}}
