/* Course Studio: independent, scoped authoring surfaces. */
.ngss-studio { --studio-ink:#17263b; --studio-muted:#64748b; --studio-line:#dbe3ef; color:var(--studio-ink); max-width:1500px; margin:0 auto; }
.ngss-studio * { box-sizing:border-box; }
.ngss-studio [hidden] { display:none!important; }
.ngss-studio-top { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:28px; background:#fff; border:1px solid var(--studio-line); border-radius:18px 18px 0 0; }
.ngss-studio-top h1 { font-size:clamp(24px,3vw,36px); line-height:1.2; margin:8px 0; letter-spacing:-.025em; }
.ngss-studio-top p { margin:8px 0; color:var(--studio-muted); }
.ngss-studio-back { display:inline-block; margin-bottom:15px; color:#475569; font-size:13px; text-decoration:none; }
.ngss-studio-top-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ngss-studio-nav { display:flex; gap:24px; overflow-x:auto; background:#fff; padding:0 28px; border:1px solid var(--studio-line); border-top:0; border-radius:0 0 18px 18px; margin-bottom:24px; }
.ngss-studio-nav a { padding:18px 0; color:#526277; text-decoration:none; font-weight:600; white-space:nowrap; border-bottom:3px solid transparent; }
.ngss-studio-nav a[aria-current] { color:var(--ngss-primary,#334f9b); border-color:var(--ngss-primary,#334f9b); }
.ngss-studio-layout { display:grid; grid-template-columns:minmax(260px,330px) minmax(0,1fr); gap:24px; align-items:start; }
.ngss-studio-editor { min-width:0; }
.ngss-studio-outline,.ngss-studio-form,.ngss-studio-panel { background:#fff; border:1px solid var(--studio-line); border-radius:16px; min-width:0; overflow:hidden; }
.ngss-studio-outline { padding:20px; }
.ngss-studio-outline-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ngss-studio-outline-head h2 { margin:3px 0 15px; font-size:20px; }
.ngss-studio-outline-head>span { font-size:12px; color:var(--studio-muted); }
.ngss-studio .ngss-eyebrow { font-size:10px; letter-spacing:.12em; font-weight:700; color:#536c91; }
.ngss-studio-search { display:block; margin:8px 0 14px; }
.ngss-studio-search input { width:100%; border-radius:9px; }
.ngss-studio-add { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:15px 0 22px; }
.ngss-studio-add a { border:1px solid var(--studio-line); border-radius:8px; padding:9px; color:#334f9b; background:#f7f9ff; text-decoration:none; font-size:12px; font-weight:600; }
.ngss-studio-section { border-top:1px solid var(--studio-line); margin:15px 0; }
.ngss-studio-section summary { padding:16px 0 10px; cursor:pointer; font-weight:700; font-size:14px; overflow-wrap:anywhere; }
.ngss-studio-section summary>span { float:right; background:#edf2f8; border-radius:6px; padding:0 7px; font-size:12px; }
.ngss-studio-section article { border:1px solid transparent; border-radius:9px; margin:6px 0; padding:4px 8px; }
.ngss-studio-section article.is-selected { background:#f0f4ff; border-color:#b7c8ef; }
.ngss-studio-section article>a { display:flex; gap:10px; align-items:center; color:inherit; text-decoration:none; padding:8px 0; }
.ngss-studio-section article strong { font-size:13px; display:block; line-height:1.4; }
.ngss-studio-section article small { display:block; font-size:11px; color:var(--studio-muted); margin-top:5px; }
.ngss-studio-type { display:grid; place-items:center; width:28px; height:30px; flex-shrink:0; border:1px solid #d9e2f2; background:#fff; border-radius:7px; color:#385d9d; font-weight:700; }
.ngss-studio .ngss-outline-actions { display:flex; flex-wrap:wrap; gap:5px; margin:5px 0 8px; }
.ngss-studio .ngss-outline-actions .ngss-button { min-height:28px; padding:4px 7px; font-size:10px; border-radius:5px; }
.ngss-studio-section-tools>a,.ngss-studio-section-add,.ngss-studio-link { font-size:12px; color:#365d9f; background:none; border:0; cursor:pointer; padding:5px 0; display:inline-block; }
.ngss-studio-form { display:block!important; padding:0!important; }
.ngss-studio-form-heading { background:linear-gradient(135deg,#f8faff,#fff); border-bottom:1px solid var(--studio-line); padding:26px 30px; }
.ngss-studio-form-heading h2 { font-size:24px; letter-spacing:-.02em; margin:7px 0; }
.ngss-studio-form-heading p:last-child { color:var(--studio-muted); font-size:13px; margin:0; }
.ngss-studio-form-body { padding:28px 30px; display:grid; gap:24px; }
.ngss-studio :is(label,.ngss-studio-media) { min-width:0; }
.ngss-studio label:not(.ngss-studio-toggle) { display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:600; color:#34455b; }
.ngss-studio :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { width:100%; border-radius:8px; font-weight:400; }
.ngss-studio-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.ngss-studio-rich { min-width:0; }
.ngss-studio-rich>label { margin-bottom:10px; }
.ngss-studio-rich .wp-editor-wrap { max-width:100%; }
.ngss-studio-group { border:1px solid var(--studio-line); border-radius:12px; padding:18px; }
.ngss-studio-group summary { font-weight:700; cursor:pointer; font-size:15px; }
.ngss-studio-group[open] summary { margin-bottom:20px; }
.ngss-studio-group>label,.ngss-studio-group>.ngss-studio-media,.ngss-studio-group>div+label { margin-top:18px; }
.ngss-studio-group :is(p,small) { color:var(--studio-muted); font-size:12px; line-height:1.6; }
.ngss-studio-media { border:1px dashed #b7c6dc; padding:16px; border-radius:10px; background:#f9fbfe; }
.ngss-studio-media-actions { display:flex; flex-wrap:wrap; gap:15px; align-items:center; margin-top:12px; }
.ngss-studio-media .ngss-button { min-height:36px; font-size:12px; }
.ngss-studio-file { display:flex; align-items:center; gap:12px; padding:10px 0; overflow-wrap:anywhere; font-size:13px; }
.ngss-studio-file img { width:140px; max-width:45%; height:85px; object-fit:cover; border-radius:7px; }
.ngss-studio-video-preview { margin:16px 0; overflow:hidden; border-radius:10px; }
.ngss-studio-video-preview :is(iframe,video) { width:100%; aspect-ratio:16/9; height:auto; border:0; background:#101b2b; }
.ngss-studio-toggle { display:flex!important; flex-direction:row!important; gap:10px; align-items:flex-start; margin:16px 0; }
.ngss-studio-question-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; margin-bottom:15px; }
.ngss-studio-question-toolbar h3 { margin:0 0 5px; }
.ngss-studio-question-toolbar p { color:var(--studio-muted); margin:0; font-size:12px; }
.ngss-studio-question { border:1px solid var(--studio-line); border-radius:12px; padding:20px; margin:18px 0; display:grid; gap:18px; }
.ngss-studio-question>header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:center; }
.ngss-studio-question button { padding:5px 9px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#41536b; font-size:12px; min-height:32px; cursor:pointer; }
.ngss-studio-question header>div { display:flex; flex-wrap:wrap; gap:5px; }
.ngss-studio-options { display:grid; gap:10px; }
.ngss-studio-option { display:flex; gap:10px; align-items:center; }
.ngss-studio-option input[type=radio],.ngss-studio-option input[type=checkbox] { flex-shrink:0; width:18px; }
.ngss-studio-option>input:not([type=radio]):not([type=checkbox]),.ngss-studio-option>label { flex:1; min-width:0; }
.ngss-studio-match { display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 30px; gap:8px; align-items:end; }
.ngss-studio-match>span { align-self:center; }
.ngss-studio-position { width:25px; color:#64748b; text-align:center; }
.ngss-studio-question-error { color:#a1273b; font-size:13px; margin:0; }
.ngss-studio-savebar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:18px 30px; border-top:1px solid var(--studio-line); background:#f8faff; position:sticky; bottom:0; z-index:3; }
.ngss-studio-savebar>span { color:#64748b; font-size:12px; }
.ngss-studio-success { background:#edf9f2; color:#205b3e; border:1px solid #b9e4cc; padding:15px 20px; border-radius:10px; }
.ngss-studio-panel { padding:28px; }
.ngss-studio-delivery-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; }
.ngss-studio-delivery-links a { background:#f7f9fd; border:1px solid var(--studio-line); padding:20px; border-radius:10px; text-decoration:none; font-weight:600; }
.ngss-studio-danger { margin-top:25px; border:1px solid #f1ccd2; border-radius:12px; padding:24px; background:#fff9fa; }
.ngss-studio-delete { margin-top:18px; }
.ngss-studio-trash-row { display:flex; justify-content:space-between; gap:20px; align-items:center; border-top:1px solid var(--studio-line); padding:18px 0; }
.ngss-studio-trash-row small { display:block; color:var(--studio-muted); }
@media(max-width:1100px){.ngss-studio-layout{grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:16px}.ngss-studio-form-body,.ngss-studio-form-heading{padding:22px}.ngss-studio-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ngss-studio-layout{grid-template-columns:minmax(0,1fr)}.ngss-studio-top{padding:20px;align-items:flex-start;flex-direction:column}.ngss-studio-nav{padding:0 20px;gap:20px}.ngss-studio-outline{max-height:440px;overflow:auto}.ngss-studio-form-body,.ngss-studio-form-heading{padding:18px}.ngss-studio-question{padding:14px}.ngss-studio-savebar{padding:15px 18px}.ngss-studio-delivery-links{grid-template-columns:minmax(0,1fr)}.ngss-studio-trash-row{flex-wrap:wrap}}
