:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#213041;background:#f6f8fb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{text-decoration:none;color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:248px;background:#172c3a;color:#c9d9df;display:flex;flex-direction:column;padding:28px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 42px;color:#fff}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#67d5cb,#74a5eb);color:#133a47;font-size:26px}.brand strong{display:block;font-size:19px;letter-spacing:.02em}.brand small{display:block;color:#9eb9c5;font-size:11px;letter-spacing:.16em;text-transform:uppercase}.sidebar nav{display:grid;gap:7px}.sidebar nav a{display:flex;gap:13px;align-items:center;padding:13px 16px;border-radius:12px;font-weight:600}.sidebar nav a:hover,.sidebar nav a.current{color:#fff;background:#284b5d}.sidebar-foot{margin-top:auto;padding:18px 12px 0;border-top:1px solid #34505c;font-size:12px;overflow-wrap:anywhere}.sidebar-foot button{background:none;border:0;color:#b2e6e3;padding:12px 0;cursor:pointer}.main{flex:1;min-width:0;padding:34px clamp(24px,4vw,68px) 80px}.topbar,.section-head,.card-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.topbar{margin-bottom:30px}.topbar h1{font-size:34px;letter-spacing:-.04em;margin:5px 0}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:800;color:#2b9ca3}.top-chip,.tag,.status{font-size:11px;font-weight:800;letter-spacing:.06em;padding:8px 11px;border-radius:99px;background:#e6f4f2;color:#188b91}.tag{display:inline-block;text-transform:uppercase}.status.off{background:#fff0df;color:#b57821}.hero{background:linear-gradient(120deg,#1b4b59,#2a7980 65%,#81cfc1);border-radius:24px;padding:38px;color:white;display:flex;justify-content:space-between;align-items:end;gap:20px}.hero .eyebrow{color:#b6f4e9}.hero h2{font-size:32px;letter-spacing:-.04em;max-width:550px;margin:12px 0}.hero p{color:#d9f0ec;max-width:560px;margin:0}.button,.primary{display:inline-flex;align-items:center;justify-content:center;background:#e1f3f2;color:#16656b;border:0;border-radius:10px;padding:11px 16px;font-weight:750;cursor:pointer}.button:hover{background:#c6e8e6}.button.light{background:#fff;white-space:nowrap}.primary{background:#187f85;color:white}.primary:hover{background:#126b70}.wide{width:100%}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0 26px}.stat,.panel,.card{background:#fff;border:1px solid #e2e9ef;border-radius:18px;box-shadow:0 8px 30px rgba(28,63,78,.035)}.stat{padding:20px}.stat span{font-size:12px;color:#738795;text-transform:capitalize}.stat strong{display:block;font-size:28px;margin-top:5px}.panel{padding:26px;margin-bottom:22px}.panel h2{margin:5px 0 12px;font-size:22px}.panel p,.card p{color:#748593}.toolbar{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}.toolbar input{min-width:260px;flex:1}.toolbar select{min-width:160px}input,select,textarea{background:#fff;border:1px solid #d7e2e8;border-radius:9px;padding:10px 12px;min-width:0;width:100%;color:#29404a}input:focus,select:focus,textarea:focus{outline:2px solid #72c7c5;border-color:#72c7c5}label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#526875;margin:10px 0}textarea{min-height:100px}.grid{display:grid;gap:18px}.cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.card{overflow:hidden}.card-body{padding:18px}.card h3{margin:14px 0 5px;font-size:17px}.card-top small,.media-card small{color:#8ba0ab;font-size:10px;overflow-wrap:anywhere}.image-wrap{height:175px;background:#f1f5f6;display:grid;place-items:center;overflow:hidden}.image-wrap img{width:100%;height:100%;object-fit:contain}.image-wrap span{font-size:60px;color:#7ec4c3}.link-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(22,67,79,.1)}.card-action{display:block;color:#15959a;font-weight:750;font-size:12px;margin-top:14px}.check,.check-row{display:flex;align-items:center;gap:8px}.check input{width:auto}.check-row{gap:25px;margin:13px 0}.file-field input{font-size:11px}.notice{padding:14px 18px;border-radius:12px;margin:16px 0}.notice.success{background:#e3f7eb;color:#22724b}.notice.error{background:#fff0ef;color:#a24b45}.notice ul{margin:8px 0 0}.edit-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:20px;align-items:start}.large-preview{height:350px;background:#f4f7f8;border-radius:14px;display:grid;place-items:center;overflow:hidden;margin:18px 0}.large-preview img{max-width:100%;max-height:100%;object-fit:contain}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .full{grid-column:1/-1}.category-select{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.category-select strong{width:100%}.category-select label{margin:0}.step-card{border:1px solid #e5edf0;border-radius:12px;margin:10px 0;padding:8px}.step-card summary{cursor:pointer;display:flex;align-items:center;gap:12px;list-style:none}.step-card summary img{width:50px;height:50px;object-fit:contain;background:#f5f8f9;border-radius:8px}.step-card summary span:last-child{margin-left:auto}.step-card small{display:block;color:#8a9ca7}.step-card form{padding:10px}.avatars{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.avatar-card{padding:18px}.avatar-card>img{width:100%;height:140px;object-fit:contain}.avatar-card h3{overflow-wrap:anywhere;font-size:13px}.media-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.media-card .image-wrap{height:145px}.media-card .card-body{padding:12px}.media-card p{font-size:11px}.back-link{display:inline-block;margin-bottom:15px;color:#198c91;font-weight:700}.login-body{display:grid;place-items:center;min-height:100vh;background:radial-gradient(circle at 70% 15%,#c4eeea,#f6f8fb 60%)}.login-card{background:#fff;padding:42px;border:1px solid #e5edf0;border-radius:24px;box-shadow:0 20px 70px #2d687022;width:min(420px,calc(100vw - 30px))}.login-card .brand{color:#173b48;margin:0 0 30px}.login-card .brand small{color:#6b9da1}.login-card h1{letter-spacing:-.04em}.login-card p{color:#82939e;margin-bottom:24px}.pagination{display:flex;gap:7px;justify-content:center;margin-top:24px}@media(max-width:920px){.sidebar{width:75px;padding:24px 10px}.sidebar .brand div,.sidebar nav span,.sidebar-foot{display:none}.sidebar nav a{justify-content:center}.main{padding:24px}.stats{grid-template-columns:repeat(3,1fr)}.edit-layout{grid-template-columns:1fr}}@media(max-width:620px){.sidebar{width:100%;height:auto;position:static;padding:12px}.shell{display:block}.sidebar .brand{display:none}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav a{min-width:50px}.main{padding:18px}.topbar h1{font-size:27px}.top-chip{display:none}.hero{display:block;padding:26px}.hero .button{margin-top:20px}.stats{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}}

/* Admin pagination */
.pager{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:26px;padding:16px 20px;background:#fff;border:1px solid #e2e9ef;border-radius:16px;box-shadow:0 8px 30px rgba(28,63,78,.035)}
.pager-summary{margin:0;color:#657d89;font-size:13px}
.pager-summary strong{color:#213f4b;font-weight:750}
.pager-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.pager-link{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 11px;border:1px solid #d8e5e8;border-radius:9px;color:#236d75;background:#fff;font-size:13px;font-weight:700;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.pager-link:hover{background:#e7f5f3;border-color:#9dd4d1}
.pager-link:focus-visible{outline:3px solid #72c7c5;outline-offset:2px}
.pager-link.is-current{color:#fff;background:#187f85;border-color:#187f85;cursor:default}
.pager-link.is-disabled{color:#a1b0b9;background:#f5f8f9;border-color:#e6edef;cursor:default}
.pager-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:24px;color:#81949e}
@media(max-width:620px){.pager{align-items:stretch;padding:14px}.pager-controls{justify-content:flex-start}.pager-link{min-width:36px;height:36px;padding:0 9px}}

.media-card .image-wrap{background-color:#f8fafb;background-image:linear-gradient(45deg,#eaf0f3 25%,transparent 25%),linear-gradient(-45deg,#eaf0f3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eaf0f3 75%),linear-gradient(-45deg,transparent 75%,#eaf0f3 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}

/* Content studio: match the Learn and Together pickers while keeping admin controls close by. */
.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}
.studio-heading h2{font-size:26px;letter-spacing:-.035em;margin:7px 0 5px}
.studio-heading p{color:#718698;margin:0;max-width:750px;font-size:14px;line-height:1.5}
.studio-live{flex:none;display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:12px 16px;border:1px solid #d7e5f4;border-radius:14px;background:#f0f5ff;color:#365775;font-size:12px}
.studio-live strong{color:#263caa}.studio-live span{font-weight:750;color:#5069cc}
.studio-sessions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.studio-sessions a{display:flex;align-items:center;gap:14px;padding:17px 20px;border:1px solid #dbe5ef;border-radius:18px;background:#fff;transition:transform .15s,box-shadow .15s,border-color .15s}
.studio-sessions a:hover{transform:translateY(-2px);box-shadow:0 12px 24px #253b7220}
.studio-sessions a.selected{border-color:#8ea3e9;background:linear-gradient(110deg,#f0f1ff,#fff);box-shadow:0 8px 20px #4259bd19}
.session-symbol{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:#eef0ff;color:#4058c6;font-size:24px}
.studio-sessions strong,.studio-sessions small{display:block}.studio-sessions strong{font-size:15px}.studio-sessions small{margin-top:3px;color:#7b8c9b;font-size:12px}
.source-strip{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:16px 0 19px;padding:10px 12px;background:#edf3f8;border-radius:14px}
.source-strip>span{font-size:12px;font-weight:800;color:#597084;margin:0 8px 0 3px}
.source-strip a,.media-kinds a{padding:9px 13px;border-radius:10px;font-size:13px;font-weight:750;color:#566b7b}
.source-strip a:hover,.media-kinds a:hover{background:#e1eafd}.source-strip a.selected{background:#fff;color:#283eaf;box-shadow:0 3px 10px #263e7417}
.source-strip small{font-size:11px;color:#8898a6;margin-left:auto}
.category-chips{display:flex;gap:9px;overflow-x:auto;padding:3px 0 16px;margin-bottom:8px;scrollbar-color:#b8c4e2 transparent}
.category-chip{display:inline-flex;align-items:center;gap:7px;flex:none;padding:8px 13px;border:1px solid #d9e3f0;border-radius:11px;background:#fff;color:#466078;font-size:13px;font-weight:750;white-space:nowrap}
.category-chip:hover{border-color:#9baae3;background:#f0f2ff}.category-chip.selected{background:#4556bb;color:#fff;border-color:#4556bb;box-shadow:0 5px 14px #4556bb3a}
.category-chip img{width:22px;height:22px;object-fit:contain}.chip-symbol{font-size:17px;line-height:1;color:#8d9ddd}.category-chip.selected .chip-symbol{color:#fff}
.studio-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:16px;background:#fff;border:1px solid #e2e9ef;border-radius:16px}
.studio-filters label{margin:0}.studio-search{flex:1;min-width:220px}.studio-status{min-width:190px}.studio-filters label span{font-size:11px;letter-spacing:.05em;text-transform:uppercase}
.studio-filters button{min-height:42px}.studio-results{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 14px;color:#536878;font-size:13px}
.studio-results strong{color:#263a4e;font-size:16px}.studio-results a{color:#3856b5;font-weight:800}.studio-results a:hover{text-decoration:underline}
.studio-lesson-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px}
.studio-lesson-card{display:block;transition:transform .15s,box-shadow .15s}.studio-lesson-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px #324b7524}
.studio-art{position:relative;aspect-ratio:1;background:linear-gradient(145deg,#eff0fc,#f9f6fa);display:grid;place-items:center;padding:8px;overflow:hidden}
.studio-art img{width:100%;height:100%;object-fit:contain}.studio-origin{display:inline-flex;align-items:center;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:850;letter-spacing:.055em;white-space:nowrap}
.studio-art .studio-origin{position:absolute;left:10px;top:10px;box-shadow:0 2px 8px #1f35502b}.origin-app1{background:#e5e6ff;color:#4147ae}.origin-app2{background:#dff4ed;color:#18725c}
.studio-hidden{position:absolute;right:9px;top:9px;padding:5px 8px;background:#fff1dc;color:#a96419;border-radius:7px;font-size:10px;font-weight:850}
.studio-art-info{padding:13px 15px 15px}.studio-art-info h3{font-size:14px;line-height:1.35;margin:0 0 7px;min-height:38px}.studio-art-info p{font-size:12px;margin:0}.studio-art-info>span{display:block;color:#3f5eba;font-size:11px;font-weight:800;margin-top:12px}
.studio-empty{padding:30px;text-align:center;background:#fff;border:1px dashed #cfdce8;border-radius:16px;color:#6d8291}
.studio-create{margin-top:26px}.studio-create summary{cursor:pointer;list-style:none;color:#2a5d7b}.studio-create summary::-webkit-details-marker{display:none}.studio-create[open] summary{margin-bottom:20px}
.studio-category-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));align-items:start}.studio-category-card{padding:18px}
.studio-category-head{display:flex;align-items:center;gap:14px}.studio-category-head h3{font-size:18px;margin:0 0 4px}.studio-category-head p{font-size:12px;margin:0}
.studio-category-open{border-radius:12px;padding:5px;margin:-5px;transition:background .15s}.studio-category-open:hover{background:#f1f4ff}.studio-category-open:hover h3,.studio-category-action:hover{color:#334db1}.studio-category-open:focus-visible,.studio-category-action:focus-visible{outline:3px solid #8397e0;outline-offset:3px}.studio-category-arrow{margin-left:auto;color:#4b64ba;font-size:22px;font-weight:700}.studio-category-action{display:inline-block;margin-top:14px;color:#435eaf;font-size:12px;font-weight:800}
.studio-category-icon{width:62px;height:62px;flex:none;display:grid;place-items:center;border-radius:14px;background:#eef0fc;color:#526bd0;font-size:26px;overflow:hidden}.studio-category-icon img{width:100%;height:100%;object-fit:contain}
.studio-category-sources{margin-top:17px;border-top:1px solid #e9eef2}.studio-source-editor{border-bottom:1px solid #e9eef2}.studio-source-editor:last-child{border-bottom:0}
.studio-source-editor summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:12px 0;color:#678092;font-size:11px}.studio-source-editor summary::-webkit-details-marker{display:none}.studio-source-editor summary span:last-child{margin-left:auto;color:#405fb4;font-weight:800}
.studio-source-editor form{padding:0 0 14px}.studio-source-editor label{margin:8px 0}.studio-source-editor .check{margin:10px 0}
.studio-avatar-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px}.studio-avatar-card{padding:12px}.studio-avatar-art{height:135px;display:grid;place-items:center;border-radius:12px;background:#f3f5fc;overflow:hidden}.studio-avatar-art img{width:100%;height:100%;object-fit:contain}
.studio-avatar-meta{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.studio-default,.studio-hidden-inline{font-size:10px;font-weight:800;padding:5px 8px;border-radius:7px;background:#fff0d5;color:#966317}.studio-hidden-inline{background:#f5e8e8;color:#9c5555}
.studio-avatar-edit{border-top:1px solid #e8edf3}.studio-avatar-edit summary{padding:10px 0 0;list-style:none;cursor:pointer;color:#405fb4;font-size:11px;font-weight:800}.studio-avatar-edit summary::-webkit-details-marker{display:none}.studio-avatar-edit form{padding:10px 0 0}
.media-kinds{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 16px}.media-kinds a{background:#fff;border:1px solid #e1e8f1}.media-kinds a.selected{background:#4556bb;color:#fff;border-color:#4556bb}
@media(max-width:780px){.studio-heading{align-items:start;flex-direction:column}.source-strip small{width:100%;margin-left:3px}.studio-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.studio-sessions{gap:8px}.studio-sessions a{padding:11px;gap:8px}.session-symbol{width:34px;height:34px;font-size:18px}.studio-sessions small{font-size:10px}.studio-category-grid{grid-template-columns:1fr}.studio-lesson-grid{gap:10px}.studio-art-info{padding:11px}.studio-art-info h3{font-size:12px;min-height:33px}.studio-filters{padding:12px}.studio-status{flex:1}.studio-heading h2{font-size:22px}}
