.studio-body{margin:0;background:var(--bg,#f7f8f8);color:var(--text,#101719);font:14px/1.45 Inter,system-ui,-apple-system,sans-serif}
.studio-frame{max-width:1600px;margin:auto;padding:18px 24px 70px}
.studio-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.studio-top h1{font-size:30px;margin:3px 0 4px;letter-spacing:-.03em}
.studio-top p{margin:0;color:var(--muted)}
.studio-head-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.studio-save{font-size:12px;color:var(--muted)}
.studio-save[data-state=error]{color:#c84a4a;font-weight:750}
.studio-book-link,.studio-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--border,#dce5e3);border-radius:10px;background:var(--surface,#fff);color:var(--text,#101719);padding:9px 13px;font-weight:700;cursor:pointer;font-size:13px}
.studio-btn:hover,.studio-book-link:hover{border-color:var(--primary,#107f82);color:var(--primary-dark,#087a77)}
.studio-btn.primary{background:var(--primary,#107f82);border-color:var(--primary,#107f82);color:white}
.studio-btn.danger{color:#ab3e3e}
.studio-btn.small{font-size:11px;padding:5px 9px}
.studio-btn:disabled{opacity:.5;cursor:not-allowed}
.studio-content{min-height:60vh}
.studio-breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-bottom:15px}
.studio-breadcrumb button{background:transparent;border:0;color:var(--primary-dark,#087a77);padding:4px 2px;cursor:pointer;font-weight:750}
.studio-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 18px;flex-wrap:wrap}
.studio-bar h2{margin:0;font-size:24px}
.studio-bar p{margin:3px 0 0;color:var(--muted)}
.studio-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:13px}
.studio-card{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:21px;border:1px solid var(--border);background:var(--surface,#fff);border-radius:15px;cursor:pointer;color:inherit}
.studio-card:hover{border-color:var(--primary,#107f82);box-shadow:var(--shadow)}
.studio-card .studio-card-icon{font-size:24px;line-height:1.1;flex:0 0 28px}
.studio-card strong{display:block;font-size:17px}
.studio-card small{display:block;color:var(--muted);margin-top:5px}
.studio-panel{background:var(--surface,#fff);border:1px solid var(--border,#ddd);border-radius:14px;margin-bottom:18px;overflow:hidden}
.studio-panel-head{padding:13px 16px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border,#ddd);flex-wrap:wrap}
.studio-panel-head h3{margin:0;font-size:15px}
.studio-panel-body{padding:16px}
.studio-table-wrap{overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch}
.studio-table{border-collapse:collapse;width:100%;min-width:760px;white-space:nowrap}
.studio-table th,.studio-table td{border-bottom:1px solid var(--border,#ddd);padding:9px 10px;text-align:left;font-size:12px}
.studio-table th{background:var(--surface-alt,#f1f4f3);color:var(--muted);font-weight:800}
.studio-table tr:last-child td{border-bottom:0}
.studio-table tbody tr:hover{background:var(--surface-alt,#f7f7f7)}
.studio-song-link{border:0;background:transparent;padding:0;color:var(--primary-dark,#087a77);font-weight:800;cursor:pointer;text-align:left}
.studio-progress{height:5px;width:95px;background:var(--border,#ddd);overflow:hidden;border-radius:20px}
.studio-progress>span{display:block;height:100%;background:var(--primary,#107f82)}
.studio-tabs{display:flex;border-bottom:1px solid var(--border);gap:4px;margin-bottom:19px}
.studio-tab{background:transparent;border:0;padding:12px 18px;font-size:14px;font-weight:800;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent}
.studio-tab[aria-selected=true]{color:var(--primary-dark,#087a77);border-color:var(--primary,#107f82)}
.studio-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px}
.studio-field{display:grid;gap:5px;min-width:0}
.studio-field label{font-size:11px;font-weight:800;color:var(--muted)}
.studio-field input,.studio-field textarea,.studio-field select,.studio-cell-input{background:var(--surface,#fff);border:1px solid var(--border,#cbd6d4);color:var(--text);padding:8px;border-radius:8px;width:100%;min-width:0}
.studio-field textarea{min-height:110px;resize:vertical}
.studio-matrix{min-width:1300px}
.studio-matrix th{text-align:center}
.studio-matrix td{text-align:center}
.studio-matrix td:first-child,.studio-matrix th:first-child{text-align:left;position:sticky;left:0;background:var(--surface,#fff);z-index:1;min-width:210px}
.studio-matrix th:first-child{background:var(--surface-alt,#f1f4f3)}
.studio-matrix .studio-cell-input{width:150px}
.studio-matrix input[type=checkbox]{width:17px;height:17px;accent-color:var(--primary,#107f82);cursor:pointer}
.studio-stage-recording{background:#e4f5f3!important;color:#156561!important}
.studio-stage-mixing{background:#eff2f4!important;color:#36454b!important}
.studio-help{font-size:12px;color:var(--muted);margin:0 0 11px}
.studio-bus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}
.studio-bus{padding:13px;border:1px solid var(--border,#ddd);border-radius:11px;display:grid;gap:9px}
.studio-bus strong{font-size:12px}
.studio-bus .studio-field{gap:3px}
.studio-section{border-bottom:1px solid var(--border,#ddd);padding:17px 0}
.studio-section:last-child{border-bottom:0}
.studio-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.studio-section-head input{max-width:240px;font-weight:800}
.studio-section-actions{display:flex;gap:5px}
.studio-chords textarea{color:#b4484b;font-weight:750;font-family:ui-monospace,monospace;white-space:pre;min-height:63px}
.studio-lyrics textarea{font-family:inherit;min-height:115px;line-height:1.65}
.studio-empty{padding:50px 22px;text-align:center;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:14px}
.studio-summary{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.studio-summary .studio-stat{font-size:12px;color:var(--muted)}
.studio-cell-input.studio-bus-name{width:160px}
@media(max-width:720px){.studio-frame{padding:16px 12px 45px}.studio-top h1{font-size:23px}.studio-bar h2{font-size:20px}.studio-top{align-items:flex-start;flex-direction:column}.studio-tabs{overflow:auto}.studio-tab{white-space:nowrap;padding:10px}.studio-panel-body{padding:11px}}

.studio-channel{width:60px!important;flex:none}
.studio-matrix td:first-child,.studio-matrix th:first-child{min-width:270px}
.studio-matrix td:first-child .studio-cell-input:not(.studio-channel){width:160px}
.studio-legacy>summary{cursor:pointer;list-style:none}
.studio-legacy>summary::-webkit-details-marker{display:none}
.studio-legacy>summary:after{content:"▾";font-size:15px;color:var(--primary-dark,#087a77)}
.studio-legacy[open]>summary:after{content:"▴"}
.studio-tracker-group{border-top:1px solid var(--border,#ddd);padding:14px 0}
.studio-tracker-group h4{margin:0 0 10px;font-size:13px;color:var(--primary-dark,#087a77)}
.studio-tracker-group .studio-field input{max-width:100px}


/* Recording Studio belongs inside the existing dashboard layout. */
.studio-embedded{max-width:none;width:100%;padding:0;margin:0;min-width:0}
.studio-shellbar{display:flex;gap:15px;justify-content:space-between;align-items:center;margin:0 0 12px}
.studio-shellbar p{margin:3px 0 0;color:var(--muted);font-size:12px}
.studio-shellbar .studio-save{flex:none}
.studio-embedded .studio-bar{margin:0 0 10px}
.studio-embedded .studio-bar h2{font-size:21px}
.studio-embedded .studio-breadcrumb{margin-bottom:7px}
.studio-embedded .studio-tabs{display:flex;flex-wrap:wrap;align-items:center;overflow:visible;gap:3px 7px;margin-bottom:12px;border-bottom:1px solid var(--border)}
.studio-embedded .studio-tab{padding:8px 9px;font-size:12px;white-space:nowrap;border-bottom-width:2px}
.studio-embedded .studio-panel{margin-bottom:12px}
.studio-embedded .studio-panel-head{padding:9px 12px}
.studio-embedded .studio-panel-body{padding:10px 12px}
.studio-embedded .studio-table{min-width:0;width:100%;table-layout:auto}
.studio-embedded .studio-table th,.studio-embedded .studio-table td{padding:6px 5px;font-size:11px}
.studio-embedded .studio-matrix th:not(:first-child){text-align:center;white-space:normal;line-height:1.15;min-width:54px}
.studio-embedded .studio-matrix td:not(:first-child){text-align:center}
.studio-embedded .studio-matrix td:first-child,.studio-embedded .studio-matrix th:first-child{min-width:200px;width:210px}
.studio-embedded .studio-instrument-cell{display:flex;align-items:center;gap:4px}
.studio-embedded .studio-channel{width:48px!important;flex:none}
.studio-embedded .studio-track-name{width:100px!important;flex:1;min-width:60px}
.studio-embedded .studio-matrix .studio-cell-input{width:100%;min-width:60px;padding:6px}
.studio-embedded .studio-matrix input[type=checkbox]{width:15px;height:15px}
.studio-embedded .studio-bus-table input{min-width:90px;width:100%;padding:6px}
.studio-embedded .studio-bus-table th{white-space:normal}
.studio-song-details>summary,.studio-legacy>summary{cursor:pointer;list-style:none}
.studio-song-details>summary::-webkit-details-marker{display:none}
.studio-song-details>summary:after{content:"▾";color:var(--primary-dark,#087a77)}
.studio-song-details[open]>summary:after{content:"▴"}
.studio-checklist{display:flex;gap:9px 20px;align-items:center;flex-wrap:wrap}
.studio-checklist label{font-size:12px;display:flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer}
.studio-checklist input{accent-color:var(--primary,#107f82);width:16px;height:16px}
@media(max-width:950px){.studio-embedded .studio-tabs{gap:2px 4px}.studio-embedded .studio-bar{align-items:flex-start}.studio-embedded .studio-table-wrap{overflow-x:auto}}
@media(max-width:720px){.studio-embedded .studio-table{min-width:570px}.studio-shellbar{flex-wrap:wrap}.studio-embedded .studio-tab{font-size:11px;padding:7px 6px}}


/* Song-by-stage album overview derived from RR Studio Log.xlsx. */
.studio-overview-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;border-bottom:1px solid var(--border);margin:0 0 11px}
.studio-overview-tabs .studio-tab{font-size:12px;padding:8px 10px;border-bottom-width:2px}
.studio-overview-table{min-width:0!important;width:100%;table-layout:auto}
.studio-overview-table thead th{font-size:11px;white-space:normal;min-width:67px;text-align:center;line-height:1.2}
.studio-overview-table th:first-child{min-width:175px;text-align:left}
.studio-overview-table th:nth-child(2),.studio-overview-table th:nth-child(3){min-width:60px}
.studio-overview-table td{padding:5px 6px;text-align:center}
.studio-overview-table td:first-child{text-align:left}
.studio-overview-title{white-space:normal;min-width:170px}
.studio-overview-title small{display:block;color:var(--muted);font-size:10px}
.studio-overview-cell input{width:100%;min-width:50px;max-width:70px;text-align:center;padding:6px 3px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;font:inherit;font-variant-numeric:tabular-nums}
.studio-overview-cell input:focus{outline:2px solid var(--primary);outline-offset:1px}
.studio-overview-cell input::placeholder{color:var(--muted);opacity:.6}
.studio-progress-outlier input{border-color:#c84a4a}
.studio-panel-head>span{color:var(--muted);font-size:11px}
@media(max-width:750px){.studio-overview-tabs{gap:2px 4px}.studio-overview-tabs .studio-tab{padding:6px;font-size:11px}.studio-overview-table{min-width:530px!important}}
