/* Lucas Content Studio: all rules are scoped to the authenticated editor. */
#content-studio-root{--cs-bg:#111916;--cs-panel:#19251f;--cs-raised:#223229;--cs-line:#40574a;--cs-text:#edf4ef;--cs-muted:#afc4b6;--cs-green:#95d3a7;--cs-warn:#f2cf87;color:var(--cs-text);font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;margin:24px 0}
#content-studio-root *{box-sizing:border-box}#content-studio-root [hidden]{display:none!important}
#content-studio-root button,#content-studio-root input,#content-studio-root textarea,#content-studio-root select{font:inherit}
#content-studio-root button,#content-studio-root .cs-link{border:1px solid var(--cs-line);border-radius:7px;color:var(--cs-text);background:#25392e;padding:9px 12px;cursor:pointer;text-transform:none;letter-spacing:0;line-height:1.35;min-height:40px;box-shadow:none}
#content-studio-root button:hover:not(:disabled),#content-studio-root .cs-link:hover{background:#33503e;border-color:var(--cs-green)}
#content-studio-root button:disabled{cursor:not-allowed;opacity:.48}
#content-studio-root .cs-primary{background:#95d3a7;color:#11251a;border-color:#95d3a7;font-weight:750}
#content-studio-root .cs-danger{background:transparent;color:#ffb8ab;border-color:#89584e}
#content-studio-root .cs-quiet{background:transparent}#content-studio-root .cs-link{display:inline-block;text-decoration:none}
#content-studio-root :focus-visible{outline:3px solid #b6edc6;outline-offset:3px}
#content-studio-root input:not([type=checkbox]):not([type=radio]),#content-studio-root select,#content-studio-root textarea{width:100%;color:var(--cs-text);background:#101b15;border:1px solid #547060;border-radius:6px;padding:10px;box-shadow:none;min-height:42px}
#content-studio-root textarea{resize:vertical;line-height:1.65}#content-studio-root input[type=checkbox]{accent-color:#95d3a7;width:18px;height:18px;flex:none}
#content-studio-root label{display:block;font-size:.88rem;font-weight:650;color:var(--cs-text);text-transform:none;letter-spacing:0;margin:0}
#content-studio-root label>input,#content-studio-root label>textarea,#content-studio-root label>select{margin-top:6px}
#content-studio-root h2,#content-studio-root h3,#content-studio-root h4{font-family:inherit;line-height:1.25;text-transform:none;letter-spacing:0;font-style:normal;color:var(--cs-text);text-shadow:none;margin:0 0 12px}
#content-studio-root h2{font-size:1.8rem}#content-studio-root h3{font-size:1.25rem}#content-studio-root h4{font-size:1rem}
#content-studio-root p{margin:0 0 14px}#content-studio-root .cs-muted{color:var(--cs-muted);font-size:.86rem}
#content-studio-root .cs-shell{border:1px solid var(--cs-line);border-radius:14px;background:var(--cs-bg);overflow:hidden}
#content-studio-root .cs-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px;background:linear-gradient(125deg,#253f2e,#14241b);border-bottom:1px solid var(--cs-line)}
#content-studio-root .cs-eyebrow{font-size:.7rem;letter-spacing:.16em;font-weight:800;color:#b3dfbf;margin:0 0 6px;text-transform:uppercase}
#content-studio-root .cs-header p:last-child{margin:0;color:var(--cs-muted)}#content-studio-root .cs-header h2{margin-bottom:7px}
#content-studio-root .cs-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 24px;border-bottom:1px solid var(--cs-line);background:#17261d}
#content-studio-root .cs-tabs button[aria-selected=true]{background:#95d3a7;color:#12271a;font-weight:750}
#content-studio-root .cs-status{padding:12px 24px;border-bottom:1px solid var(--cs-line);color:var(--cs-muted);margin:0;min-height:47px;overflow-wrap:anywhere}
#content-studio-root .cs-status.cs-error{color:#ffccc3;background:#3a2421}#content-studio-root .cs-status.cs-success{color:#b5ebc4}
#content-studio-root .cs-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:550px}
#content-studio-root .cs-sidebar{background:#15221a;border-right:1px solid var(--cs-line);padding:18px;min-width:0}
#content-studio-root .cs-sidebar>label{margin-bottom:12px}#content-studio-root .cs-sidebar>button{width:100%;margin-bottom:14px}
#content-studio-root .cs-list{display:grid;gap:8px;margin-top:18px}
#content-studio-root .cs-list-row{width:100%;text-align:left;display:grid;gap:5px;background:#1e3025;padding:12px}
#content-studio-root .cs-list-row[aria-current=true]{border-color:#a1dfb3;box-shadow:inset 3px 0 #a1dfb3;background:#294634}
#content-studio-root .cs-list-row small{color:var(--cs-muted);font-size:.75rem}#content-studio-root .cs-list-row strong{font-size:.87rem;overflow-wrap:anywhere}
#content-studio-root .cs-editor{padding:24px;min-width:0}#content-studio-root .cs-empty{padding:45px 20px;text-align:center;color:var(--cs-muted)}
#content-studio-root .cs-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
#content-studio-root .cs-badge{display:inline-block;border:1px solid var(--cs-line);border-radius:20px;padding:3px 9px;font-size:.7rem;font-weight:750;color:#c6dfcf;white-space:nowrap}
#content-studio-root .cs-dirty{color:var(--cs-warn)}#content-studio-root .cs-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#content-studio-root .cs-wide{grid-column:1/-1}#content-studio-root .cs-block{margin-top:24px;border-top:1px solid var(--cs-line);padding-top:22px}
#content-studio-root .cs-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#content-studio-root .cs-row>*{max-width:100%}
#content-studio-root .cs-check{display:flex;align-items:flex-start;gap:10px;font-weight:500;margin:13px 0}
#content-studio-root .cs-cover{width:100%;max-width:760px;display:grid;place-items:center;overflow:hidden;margin:12px 0;border-radius:8px;background:#0a130d}
#content-studio-root .cs-cover>img,#content-studio-root .cs-cover>video{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;background:#0a130d}
#content-studio-root .cs-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:10px;background:#21362a;border:1px solid var(--cs-line);border-bottom:0;border-radius:7px 7px 0 0}
#content-studio-root .cs-toolbar+textarea{border-radius:0 0 7px 7px;font-family:ui-monospace,Consolas,monospace;font-size:.86rem;min-height:270px}
#content-studio-root .cs-link-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 10px}
#content-studio-root .cs-upload{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border:1px dashed #6c947a;border-radius:9px;background:#1a2d21;padding:16px;margin-bottom:14px}
#content-studio-root .cs-upload label{flex:1;min-width:190px}#content-studio-root input[type=file]{font-size:.82rem}
#content-studio-root progress{width:100%;height:14px;accent-color:#95d3a7}
#content-studio-root .cs-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:13px}
#content-studio-root .cs-media-card{border:1px solid var(--cs-line);border-radius:9px;overflow:hidden;background:#1b2b21;min-width:0}
#content-studio-root .cs-media-card img,#content-studio-root .cs-media-card video{width:100%;aspect-ratio:4/3;object-fit:contain;display:block;background:#0c140f}
#content-studio-root .cs-media-copy{padding:12px}#content-studio-root .cs-media-copy>label{margin:10px 0}#content-studio-root .cs-media-name{font-size:.75rem;overflow-wrap:anywhere;color:var(--cs-muted);margin-bottom:10px}
#content-studio-root .cs-media-copy button{font-size:.76rem;padding:7px 9px;min-height:34px}#content-studio-root .cs-media-card[draggable=true]{cursor:grab}
#content-studio-root .cs-media-card.cs-drag-over{outline:3px dashed #a7e9b9;outline-offset:2px}
#content-studio-root details{margin:12px 0}#content-studio-root summary{cursor:pointer;color:#badfc5;font-weight:650}
#content-studio-root .cs-lens{display:grid;gap:8px;padding-top:10px}#content-studio-root .cs-lens label{font-size:.75rem}
#content-studio-root .cs-library{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin:16px 0}
#content-studio-root .cs-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;position:sticky;bottom:0;background:rgba(17,29,21,.97);padding:16px;margin:26px -10px -10px;border:1px solid var(--cs-line);border-radius:9px;z-index:2}
#content-studio-root .cs-preview{padding:22px;background:#101b14;border:1px solid var(--cs-line);border-radius:10px;margin-top:15px;overflow-wrap:anywhere}
#content-studio-root .cs-preview h2{font-size:1.65rem}#content-studio-root .cs-preview h3{margin:24px 0 14px}#content-studio-root .cs-preview img,#content-studio-root .cs-preview video{max-width:100%;height:auto;border-radius:5px}#content-studio-root .cs-preview iframe{width:100%;aspect-ratio:16/9;border:0}#content-studio-root .cs-preview a{color:#a4e8b6}
#content-studio-root .cs-preview figure{margin:22px 0}#content-studio-root .cs-preview figcaption{color:var(--cs-muted);font-size:.84rem;margin-top:8px}
#content-studio-root .cs-album-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#content-studio-root .cs-album-preview figure{margin:0}#content-studio-root .cs-album-preview img{width:100%;aspect-ratio:4/3;object-fit:cover}
#content-studio-root .cs-section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}#content-studio-root .cs-section-heading h3{margin:0}
#content-studio-root .cs-note{padding:12px 15px;border-left:3px solid var(--cs-green);background:#22372a;color:var(--cs-muted);font-size:.86rem}
#content-studio-root .cs-hidden-input{display:none}#content-studio-root .cs-login{text-align:center;padding:34px}
@media(max-width:1100px){#content-studio-root .cs-workspace{grid-template-columns:210px minmax(0,1fr)}#content-studio-root .cs-editor{padding:18px}#content-studio-root .cs-media-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}
@media(max-width:980px){#content-studio-root .cs-header{padding:20px;align-items:flex-start}#content-studio-root .cs-header h2{font-size:1.45rem}#content-studio-root .cs-workspace{display:block}#content-studio-root .cs-sidebar{border-right:0;border-bottom:1px solid var(--cs-line)}#content-studio-root .cs-list{max-height:240px;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr))}#content-studio-root .cs-field-grid,#content-studio-root .cs-link-fields{grid-template-columns:1fr}#content-studio-root .cs-wide{grid-column:auto}#content-studio-root .cs-tabs{padding:12px 16px}#content-studio-root .cs-status{padding:12px 16px}#content-studio-root .cs-actions{position:static;margin:22px 0 0}#content-studio-root .cs-actions button{flex:1;min-height:44px}#content-studio-root .cs-library{grid-template-columns:1fr}#content-studio-root .cs-album-preview{grid-template-columns:repeat(2,minmax(0,1fr))}#content-studio-root .cs-header>.cs-row{max-width:110px}}
@media(max-width:480px){#content-studio-root .cs-list{grid-template-columns:1fr}#content-studio-root .cs-editor{padding:16px 12px}#content-studio-root .cs-album-preview{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#content-studio-root *{scroll-behavior:auto!important;transition:none!important}}
