.studio-shell,.studio-shell *{box-sizing:border-box}
.studio-shell{min-height:100vh;display:grid;grid-template-columns:270px 1fr;background:#f3f6fb;color:#101826;font-family:Arial,"Helvetica Neue",sans-serif}
.studio-sidebar{position:sticky;top:0;height:100vh;padding:28px 22px;display:flex;flex-direction:column;background:#071d4d;color:#fff}
.studio-brand{display:flex;align-items:center;gap:12px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.15);font-weight:800}
.studio-brand img{width:62px;height:62px;padding:5px;border-radius:50%;background:#fff;object-fit:contain}
.studio-brand span{max-width:110px;line-height:1.15}
.studio-sidebar nav{display:grid;gap:7px;margin-top:32px}
.studio-sidebar nav a,.studio-sidebar nav button{width:100%;padding:13px 15px;border:0;border-radius:8px;background:transparent;color:#dce6f6;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.studio-sidebar nav a:hover,.studio-sidebar nav button:hover,.studio-sidebar nav .active{background:#245be7;color:#fff}
.studio-user{margin-top:auto;padding:18px 0;display:flex;align-items:center;gap:11px;border-top:1px solid rgba(255,255,255,.15)}
.studio-user>span{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#e3aa2f;color:#071d4d;font-weight:900}
.studio-user strong,.studio-user small{display:block;max-width:155px;overflow:hidden;text-overflow:ellipsis}
.studio-user small{margin-top:3px;color:#b9c7db}
.studio-signout{padding:0;border:0;background:transparent;color:#f4c65f;font:inherit;font-weight:800;text-align:left;cursor:pointer}
.studio-main{min-width:0;padding:42px clamp(24px,5vw,72px) 80px}
.studio-topbar{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:32px}
.studio-kicker{margin:0 0 8px;color:#245be7;font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.studio-topbar h1{margin:0;color:#071d4d;font-size:clamp(2.5rem,5vw,4.8rem);line-height:.95;letter-spacing:-.05em}
.studio-primary{min-height:46px;padding:0 20px;border:0;border-radius:7px;background:#245be7!important;color:#fff!important;font-weight:800;cursor:pointer}
.studio-primary:hover{background:#1644bb!important}
.studio-alert,.studio-notice{margin:0 0 22px;padding:15px 18px;border-radius:8px;font-weight:700}
.studio-alert{border-left:5px solid #b42318;background:#fee4e2;color:#7a271a}
.studio-notice{border-left:5px solid #198754;background:#dff4e8;color:#155c3d}
.studio-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:25px}
.studio-metrics article{padding:25px;border:1px solid #d9e1eb;border-radius:13px;background:#fff}
.studio-metrics span{display:block;color:#637083;font-size:.78rem;font-weight:800;text-transform:uppercase}
.studio-metrics strong{display:block;margin-top:15px;color:#102b68;font-size:3rem;line-height:1}
.studio-panel{padding:28px;border:1px solid #d9e1eb;border-radius:15px;background:#fff;box-shadow:0 14px 36px rgba(8,29,73,.07)}
.studio-panel-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}
.studio-panel-heading h2{margin:0;color:#102b68;font-size:2rem}
.studio-panel-heading>span{color:#637083;font-weight:700}
.studio-subtitle{max-width:720px;margin:14px 0 0;color:#5f6d80;font-size:1.02rem;line-height:1.55}
.studio-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.7fr);gap:20px;align-items:start}
.studio-link-button{padding:4px;border:0;background:transparent;color:#1644bb;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.studio-quick-panel h2{margin:0 0 20px;color:#102b68;font-size:1.6rem}
.studio-quick-panel>a,.studio-quick-panel>button{width:100%;padding:15px 0;display:flex;justify-content:space-between;border:0;border-top:1px solid #e0e6ef;background:transparent;color:#102b68;font:inherit;font-weight:800;text-align:left;cursor:pointer}
.studio-quick-panel span{color:#d19418;font-size:1.25rem}
.studio-toolbar{margin-bottom:22px;display:flex;gap:12px;justify-content:space-between}
.studio-toolbar label:first-child{flex:1}
.studio-toolbar input,.studio-toolbar select{min-height:44px;width:100%;padding:10px 12px;border:1px solid #b9c4d2;border-radius:7px;background:#fff;color:#101826;font:inherit}
.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}
.studio-loading{padding:42px;text-align:center;color:#637083}
.studio-post-list{display:grid;gap:12px}
.studio-post{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid #e1e7ef;border-radius:11px}
.studio-post>img,.studio-post-logo{width:110px;height:90px;border-radius:8px;object-fit:cover}
.studio-post-logo{display:grid;place-items:center;background:#eef5ff}
.studio-post-logo img{width:64px;height:64px;object-fit:contain}
.studio-status,.studio-featured{display:inline-flex;margin:0 7px 8px 0;padding:4px 8px;border-radius:999px;font-size:.66rem;font-weight:900;text-transform:uppercase}
.studio-status.published{background:#dff4e8;color:#155c3d}
.studio-status.draft{background:#edf0f4;color:#4b5565}
.studio-featured{background:#fff0c8;color:#7a5200}
.studio-post-copy h3{margin:0 0 7px;color:#102b68;font-size:1.25rem}
.studio-post-copy p{margin:0 0 7px;color:#556274}
.studio-post-copy small{color:#7a8797}
.studio-post-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.studio-post-actions button,.studio-dialog footer button{min-height:38px;padding:0 12px;border:1px solid #c7d0dd;border-radius:6px;background:#fff;color:#102b68;font-weight:800;cursor:pointer}
.studio-post-actions .danger{border-color:#f3b7b2;color:#b42318}
.studio-post-actions button:disabled,.studio-dialog button:disabled{opacity:.55;cursor:wait}
.studio-empty{padding:56px 24px;text-align:center}
.studio-empty img{width:120px;height:120px;margin:0 auto 18px;object-fit:contain}
.studio-empty h3{margin:0 0 8px;color:#102b68;font-size:1.8rem}
.studio-empty p{margin:0 auto 22px;color:#637083}
.studio-dialog-backdrop{position:fixed;inset:0;z-index:500;padding:28px;display:grid;place-items:center;background:rgba(4,16,44,.72);overflow:auto}
.studio-dialog{width:min(100%,780px);max-height:calc(100vh - 56px);overflow:auto;border-radius:15px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.35)}
.studio-dialog form>header{padding:26px 28px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #e0e6ef}
.studio-dialog h2{margin:0;color:#102b68;font-size:1.75rem}
.studio-close{width:42px;height:42px;border:0;border-radius:50%;background:#eef2f7;color:#102b68;font-size:1.8rem;cursor:pointer}
.studio-form-grid{padding:26px 28px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.studio-form-grid label{display:grid;gap:7px;color:#263342;font-size:.82rem;font-weight:800}
.studio-form-grid label.wide{grid-column:1/-1}
.studio-form-grid input,.studio-form-grid textarea,.studio-form-grid select{width:100%;padding:11px 12px;border:1px solid #b9c4d2;border-radius:7px;background:#fff;color:#101826;font:inherit}
.studio-form-grid textarea{resize:vertical;line-height:1.5}
.studio-form-grid input:focus,.studio-form-grid textarea:focus,.studio-form-grid select:focus{outline:3px solid rgba(36,91,231,.2);border-color:#245be7}
.studio-form-grid .studio-check{display:flex;align-items:center;gap:10px}
.studio-check input{width:18px;height:18px}
.studio-dialog footer{padding:18px 28px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e0e6ef}
.studio-small-dialog{width:min(100%,580px)}
.studio-one-column{grid-template-columns:1fr}
.studio-form-note{margin:0;color:#5f6d80;line-height:1.55}
.studio-member-list{display:grid;gap:12px}
.studio-member{padding:18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;border:1px solid #e1e7ef;border-radius:11px}
.studio-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#dce8ff;color:#123c91;font-size:1.15rem;font-weight:900}
.studio-member-copy>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.studio-member h3{margin:0;color:#102b68}.studio-member p{margin:5px 0;color:#4f5d70}.studio-member small{color:#6d7887}
.studio-access-status{padding:4px 8px;border-radius:999px;font-size:.66rem;font-weight:900;text-transform:uppercase}.studio-access-status.active{background:#dff4e8;color:#155c3d}.studio-access-status.revoked{background:#fee4e2;color:#7a271a}
.studio-member-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.studio-member-actions button{min-height:38px;padding:0 12px;border:1px solid #c7d0dd;border-radius:6px;background:#fff;color:#102b68;font-weight:800;cursor:pointer}.studio-member-actions .danger{border-color:#f3b7b2;color:#b42318}.studio-member-actions .restore{border-color:#adddc1;color:#15633c}.studio-member-actions button:disabled{opacity:.55;cursor:wait}
.studio-activity-list{display:grid}.studio-activity-list article{position:relative;display:grid;grid-template-columns:20px 1fr;gap:12px;padding:15px 0}.studio-activity-list article:not(:last-child){border-bottom:1px solid #e5eaf1}.studio-activity-mark{width:10px;height:10px;margin-top:6px;border-radius:50%;background:#d8a129;box-shadow:0 0 0 5px #fff2ce}.studio-activity-list p{margin:0 0 5px;color:#263342}.studio-activity-list small{color:#6d7887}
.studio-credentials-header{padding:26px 28px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #e0e6ef}.studio-credentials-header h2{margin:0;color:#102b68;font-size:1.75rem}.studio-credentials{padding:26px 28px;display:grid;gap:18px}.studio-credentials>p{margin:0;color:#4f5d70;line-height:1.55}.studio-credentials label{display:grid;gap:7px;color:#263342;font-size:.82rem;font-weight:800}.studio-credentials input{width:100%;padding:12px;border:1px solid #b9c4d2;border-radius:7px;background:#f7f9fc;color:#101826;font:inherit;font-weight:700}.studio-login-address{padding:13px;border-radius:8px;background:#fff4d9;color:#5c4210!important}
.studio-access{min-height:100vh;padding:40px;display:grid;place-content:center;justify-items:center;background:#eef5ff;text-align:center}
.studio-access>img{width:190px;height:190px;object-fit:contain}
.studio-access h1{max-width:650px;margin:5px 0 14px;color:#102b68;font-size:clamp(2.2rem,5vw,4.5rem);line-height:1}
.studio-access>p:not(.studio-kicker){max-width:600px;color:#556274}
.studio-access>div{display:flex;align-items:center;gap:18px;margin-top:16px}
.studio-access>div>a:last-child{color:#1644bb;font-weight:800;text-decoration:underline}
.studio-login{min-height:100vh;padding:32px;display:grid;place-items:center;background:linear-gradient(145deg,#061943 0%,#0e347a 54%,#d99c22 150%);font-family:Arial,"Helvetica Neue",sans-serif}
.studio-login-card{width:min(100%,500px);padding:clamp(28px,6vw,52px);border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.3)}
.studio-login-brand{display:inline-block;margin-bottom:24px}
.studio-login-brand img{width:120px;height:120px;object-fit:contain}
.studio-login-card h1{margin:0 0 14px;color:#102b68;font-size:clamp(2.2rem,6vw,3.8rem);line-height:.98;letter-spacing:-.045em}
.studio-login-card>p:not(.studio-kicker){margin:0 0 24px;color:#556274;line-height:1.6}
.studio-login-card form{display:grid;gap:18px}
.studio-login-card label{display:grid;gap:8px;color:#263342;font-size:.84rem;font-weight:800}
.studio-login-card input{width:100%;min-height:50px;padding:11px 13px;border:1px solid #aeb9c8;border-radius:8px;background:#fff;color:#101826;font:inherit}
.studio-login-card input:focus{outline:3px solid rgba(36,91,231,.2);border-color:#245be7}
.studio-login-card .studio-primary{width:100%;margin-top:3px}
.studio-login-return{display:inline-block;margin-top:24px;color:#1644bb;font-weight:800;text-decoration:underline}
.fallback-page{min-height:100vh;display:grid;place-content:center;background:#eef5ff;text-align:center}

@media(max-width:900px){
  .studio-shell{grid-template-columns:1fr}
  .studio-sidebar{position:static;height:auto;padding:16px 20px;display:grid;grid-template-columns:1fr auto;gap:14px}
  .studio-brand{padding:0;border:0}.studio-brand img{width:50px;height:50px}.studio-sidebar nav{grid-column:1/-1;margin:0;display:flex;overflow:auto}.studio-sidebar nav a,.studio-sidebar nav button{width:auto;white-space:nowrap}
  .studio-user{display:none}.studio-signout{grid-column:2;grid-row:1;align-self:center}
  .studio-main{padding:30px 20px 70px}
  .studio-post{grid-template-columns:90px 1fr}.studio-post>img,.studio-post-logo{width:90px;height:80px}.studio-post-actions{grid-column:1/-1;justify-content:flex-start}
  .studio-dashboard-grid{grid-template-columns:1fr}.studio-member{grid-template-columns:auto 1fr}.studio-member-actions{grid-column:1/-1;justify-content:flex-start}
}

@media(max-width:600px){
  .studio-login{padding:18px}.studio-login-card{padding:28px 22px}.studio-login-brand img{width:96px;height:96px}
  .studio-topbar{align-items:stretch;flex-direction:column}.studio-topbar .studio-primary{width:100%}
  .studio-metrics{grid-template-columns:1fr}.studio-panel{padding:18px}
  .studio-post{grid-template-columns:1fr}.studio-post>img,.studio-post-logo{width:100%;height:180px}
  .studio-form-grid{grid-template-columns:1fr;padding:22px}.studio-form-grid label.wide{grid-column:auto}
  .studio-toolbar{flex-direction:column}.studio-member{grid-template-columns:1fr}.studio-avatar{width:44px;height:44px}.studio-member-actions{grid-column:auto}
  .studio-dialog-backdrop{padding:0}.studio-dialog{max-height:100vh;min-height:100vh;border-radius:0}
  .studio-dialog footer{position:sticky;bottom:0;background:#fff}
}
