/* Chatmany's light workspace: media and editing own the available space. */
.main-wrap:has(.studio), .main-wrap:has(.planner), .main-wrap:has(.shorts-studio) { max-width: 1500px; }
.studio, .planner { --studio-ink: #192738; --studio-muted: #526173; color: var(--studio-ink); font-size: 1rem; overflow-wrap: anywhere; }
.studio .page-title, .planner .page-title { font-size: clamp(1.55rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.studio .page-sub, .planner .page-sub { color: var(--studio-muted); font-size: 1rem; max-width: 70ch; }
.studio .card, .planner .card { padding: 1.5rem; border-radius: 12px; box-shadow: none; margin-block: 1.25rem; }
.studio h2 { font-size: 1.25rem; margin-block: 0 1rem; }
.studio h3 { font-size: 1.05rem; }
.studio p, .planner p { line-height: 1.55; }
.studio .hint { color: var(--studio-muted); font-size: .9rem; }
.studio input:not([type=radio]):not([type=checkbox]), .studio select, .studio textarea { width: 100%; min-height: 44px; padding: .7rem .8rem; border: 1px solid #7b8797; border-radius: 7px; background: #fff; color: var(--studio-ink); font: inherit; }
.studio textarea { resize: vertical; }
.studio label:not(.choice-card), .studio-label { display: block; font-weight: 600; margin-block: 1rem .4rem; }
.studio .btn, .studio-tabs button, .studio-step { min-height: 44px; font-size: .95rem; white-space: normal; }
.studio .btn.primary { background: #185abd; border-color: #185abd; color: #fff; }
.studio :focus-visible, .planner :focus-visible, .skip-link:focus { outline: 3px solid #005fcc; outline-offset: 3px; }
.studio [hidden], .planner [hidden] { display: none !important; }
.studio-icon { width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }
.studio-choices { min-inline-size: 0; border: 0; padding: 0; margin: 1.3rem 0; }
.studio-choices legend { font-weight: 650; margin-bottom: .65rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: .6rem; }
.planner-form label.choice-card, .choice-card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: .9rem .7rem; margin: 0; border: 1px solid #7b8797; border-radius: 9px; background: #fff; cursor: pointer; min-height: 112px; min-width: 0; }
.choice-card:has(input:checked) { border: 2px solid #185abd; background: #eef5ff; padding: calc(.9rem - 1px) calc(.7rem - 1px); }
.choice-card:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.choice-card strong { display: block; font-size: .93rem; }
.choice-card small { display: block; margin-top: .3rem; color: #526173; font-weight: 400; font-size: .8rem; line-height: 1.4; }
.planner-form .choice-card input[type=radio], .choice-card input[type=radio] { position: absolute; top: .7rem; right: .7rem; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: #185abd; }
.choice-art { min-height: 34px; display: flex; align-items: center; }
.choice-art .studio-icon { width: 32px; height: 32px; }
.ratio-art { height: 32px; max-width: 55px; border: 2px solid currentColor; border-radius: 3px; display: block; }
.studio-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.studio-split > *, .studio-grid > * { min-width: 0; }
.studio-preview { position: sticky; top: 1.5rem; padding: 1.3rem; border: 1px solid #b4c1d2; background: #edf2f8; border-radius: 12px; margin-block: 1.25rem; }
.studio-preview h2 { font-size: .95rem; margin: 0 0 1rem; }
.preview-post { background: #fff; border: 1px solid #c4ccda; border-radius: 10px; overflow: hidden; }
.preview-account { display: flex; align-items: center; gap: .7rem; padding: 1rem; }
.preview-account strong { display: block; }
.preview-account > div { min-width: 0; }
.preview-media { background: #e4eaf2; display: grid; place-items: center; overflow: hidden; width: 100%; max-height: 480px; }
.preview-media img, .preview-media video { display: block; width: 100%; height: 100%; object-fit: contain; max-height: 480px; }
.preview-media.empty { min-height: 240px; color: #526173; }
.preview-media .studio-icon { width: 60px; height: 60px; }
.preview-copy { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; line-height: 1.5; }
.preview-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem; }
.preview-thumbs img { width: 54px; height: 54px; object-fit: cover; }
.platform-logo { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 9px; background: #f0f3f8; color: #273b54; font-weight: 700; }
.platform-logo img { object-fit: contain; width: 30px; height: 30px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.account-grid .choice-card { flex-direction: row; align-items: center; gap: 1rem; min-height: 94px; padding: 1.1rem 2.5rem 1.1rem 1rem; }
.account-grid .choice-card:has(input:checked) { padding: calc(1.1rem - 1px) calc(2.5rem - 1px) calc(1.1rem - 1px) calc(1rem - 1px); }
.connection-strip { display: flex; gap: 1rem; align-items: center; justify-content: space-between; border-bottom: 1px solid #ced7e3; padding-block: .7rem 1rem; flex-wrap: wrap; }
.connection-strip p { margin: 0; }
.planner-item { display: flex; gap: 1rem; align-items: start; }
.planner-item .post-thumb { width: 96px; height: 104px; border-radius: 7px; background: #edf2f8; object-fit: cover; flex: 0 0 auto; }
.post-thumb.placeholder { display: grid; place-items: center; }
.planner-item .post-info { flex: 1; min-width: 0; }
.planner-item .planner-actions { margin-top: 0; max-width: 210px; }
.planner-item h3 { margin: .2rem 0 .4rem; }
.badge { display: inline-flex; padding: .25rem .6rem; background: #eaf2ff; color: #184a8c; border-radius: 5px; font-size: .8rem; font-weight: 600; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.studio-asset { border: 1px solid #acb9c9; border-radius: 10px; overflow: hidden; background: #fff; }
.studio-asset > img, .studio-asset > video { width: 100%; height: 225px; object-fit: contain; background: #edf2f8; display: block; }
.studio-asset .asset-body { padding: 1rem; }
.studio-asset .asset-body p { font-size: .9rem; }
.studio-asset label { margin: 0; }
.studio-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: 1.2rem; }
.studio-tabs button[aria-selected=true], .studio-step[aria-current=step] { background: #eaf2ff; border: 1px solid #185abd; color: #184a8c; }
.studio-steps { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; margin-block: 1.5rem; }
.studio-step { border-radius: 6px; border: 1px solid #7b8797; background: #fff; padding: .6rem .8rem; font: inherit; }
.studio-steps li { flex: 1; }
.studio-steps button { width: 100%; height: 100%; }
.studio-check { display: flex !important; align-items: start; gap: .75rem; min-height: 44px; }
.studio-check input { width: 24px; height: 24px; min-width: 24px; accent-color: #185abd; }
.review-details { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: .5rem 1rem; margin: 1rem 0; }
.review-details dt { font-weight: 600; }.review-details dd { margin: 0; overflow-wrap: anywhere; }
.review-thumbnail { max-width: 220px; max-height: 150px; object-fit: contain; }
.studio-alert { border-left: 3px solid #a95a00; background: #fff6e6; padding: .8rem 1rem; color: #714000; margin: 1rem 0; }
.studio-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.studio-error { color: #a11919; font-weight: 600; white-space: pre-wrap; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .8rem 1rem; background: #fff; color: #184a8c; z-index: 20; }.skip-link:focus { top: 1rem; }
@media (max-width: 1100px) { .studio-split { grid-template-columns: minmax(0, 1fr); }.studio-preview { position: static; max-width: 600px; width: 100%; margin-inline: auto; }.planner-item { flex-wrap: wrap; }.planner-item .planner-actions { max-width: none; } }
@media (max-width: 600px) { .studio .card, .planner .card { padding: 1rem; }.studio .page-head, .planner .page-head { display: block; }.account-grid { grid-template-columns: minmax(0, 1fr); }.studio-preview { padding: .75rem; }.studio-steps li { flex: 1 1 40%; min-width: 0; }.choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); }.planner-item .post-thumb { width: 68px; height: 80px; }.studio-grid { grid-template-columns: minmax(0, 1fr); }.review-details { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .studio *, .planner * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
