.layout-studio{width:min(1500px,calc(100vw - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;border:1px solid #cbd5c4;border-radius:12px;padding:0;margin:auto;color:#294539;background:#fafbf6;box-shadow:0 24px 90px #142e3340}
.layout-studio[open]{display:flex;flex-direction:column}.layout-studio::backdrop{background:#1b392b70;backdrop-filter:blur(3px)}.layout-studio *{box-sizing:border-box}
.layout-studio>header,.layout-studio>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:15px 22px;background:#fffefa}.layout-studio>header{border-bottom:1px solid #d9e1d1}.layout-studio>footer{border-top:1px solid #d9e1d1}.layout-studio h2{font:28px Georgia,serif;margin:5px 0}.layout-studio h3{font-size:13px;margin:8px 0}.layout-studio p{font-size:11px;color:#708066;line-height:1.5;margin:5px 0 12px}.layout-studio>header p{margin:0}.layout-studio button{font:12px 'Segoe UI',sans-serif;cursor:pointer;min-height:32px;border:1px solid #cbd7c3;border-radius:5px;padding:6px 10px;background:#fffefa;color:#345940}.layout-studio button:hover{background:#e8efe1}.layout-studio button:disabled{opacity:.45;cursor:default}.layout-studio>header>button{font-size:25px;border:0}.layout-studio :is(button,input,select):focus-visible{outline:2px solid #387b65;outline-offset:2px}
.tune-body{display:grid;grid-template-columns:280px minmax(0,1fr);flex:1;min-height:0}.tune-controls{overflow:auto;border-right:1px solid #d9e1d1;padding:15px 18px}.tune-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:10px 0}.tune-controls input[type=range]{width:100%;accent-color:#356952;cursor:ew-resize;height:24px;margin:0}.tune-range>span{display:flex;justify-content:space-between}.tune-range output{font-size:11px;color:#778569;font-variant-numeric:tabular-nums}.tune-controls select{min-width:0;width:100%;border:1px solid #cbd7c3;border-radius:5px;padding:7px;background:white;color:#294539;font:12px 'Segoe UI',sans-serif}.tune-controls hr{border:0;border-top:1px solid #d9e1d1;margin:20px 0}.tune-presets,.tune-order{display:flex;gap:6px}.tune-presets button,.tune-order button{flex:1}.tune-select-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tune-row-example{display:flex;align-items:center;justify-content:space-between;padding:0 9px;border:1px solid #d6dfce;background:#eef3e7;font-size:11px;border-radius:4px}.tune-row-example span:last-child{border:1px solid #c7d5bc;padding:3px 8px;border-radius:3px}.tune-reset{margin-top:18px}.tune-preview{display:flex;flex-direction:column;min-width:0;min-height:0;padding:18px;background:#edf1e7}.tune-preview-heading{display:flex;align-items:start;justify-content:space-between;gap:8px;font-size:13px}.tune-preview-heading>span{font-size:10px;color:#78876d}.tune-canvas{flex:1;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:8px;background:#e1e8d9;background-image:radial-gradient(#bbc8b0 1px,transparent 1px);background-size:12px 12px}.tune-frame{position:relative;flex:none}.tune-frame>.panel-grid{margin:0}.tune-frame [data-preview-panel]{cursor:grab;outline-offset:-3px}.tune-frame [data-preview-panel][aria-pressed=true]{outline:3px solid #317854;box-shadow:0 0 0 1px white}.tune-frame [data-preview-panel]>*{pointer-events:none}.tune-frame [data-preview-panel]:active{cursor:grabbing}.tune-preview-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:12px;font-size:12px}.tune-preview-footer>div{display:flex;gap:8px;align-items:center}.tune-fit-note{margin-top:10px!important;margin-bottom:0!important}.layout-studio .tune-save{background:#24533e;color:white;border-color:#24533e}.layout-studio>footer>div:last-child{display:flex;gap:8px;flex:none}.layout-studio [data-tune-status]{font-size:12px}.layout-studio [data-tune-error]{color:#a14332;margin:3px 0 0}
/* Tuned spacing applies to this board only, never Markup, Deadlines or the library. */
.panel-grid[data-tuned=true] .discipline-panel{--item-height:var(--desk-row-height);border-radius:6px}
.panel-grid[data-tuned=true] .module-actions{--action-row-height:var(--desk-row-height)}
.panel-grid[data-tuned=true] .density-comfortable{--item-height:max(52px,var(--desk-row-height));--action-row-height:max(58px,var(--desk-row-height))}
.panel-grid[data-tuned=true] :is(.panel-header,.module-header){min-height:35px;padding:5px 10px;gap:6px}.panel-grid[data-tuned=true] :is(.panel-header,.module-header) h2{font-size:19px}.panel-grid[data-tuned=true] :is(.panel-body,.module-body){padding:2px 10px 4px}.panel-grid[data-tuned=true] :is(.module-footer,.panel-footer){min-height:27px;height:27px;padding:1px 10px;flex:none}
.panel-grid[data-tuned=true] .action-list{gap:4px 6px}.panel-grid[data-tuned=true] .action-row{padding:2px 6px!important}.panel-grid[data-tuned=true] .action-buttons{gap:2px}.panel-grid[data-tuned=true] :is(.action-primary,.action-preview){min-height:26px;height:26px;padding-top:2px;padding-bottom:2px}.panel-grid[data-tuned=true] .action-description{display:none}.panel-grid[data-tuned=true] .density-comfortable .action-description{display:block}.panel-grid[data-tuned=true][data-thin=true] .density-compact .action-meta{display:none}.panel-grid[data-tuned=true][data-thin=true] .density-compact .action-copy{gap:0}.panel-grid[data-tuned=true] .keymap-row{min-height:var(--desk-row-height);padding:2px 0}.panel-grid[data-tuned=true] .reference-table :is(td,th){height:var(--desk-row-height);padding-top:2px;padding-bottom:2px}.panel-grid[data-tuned=true] .launch-link{min-height:var(--desk-row-height);padding:3px 8px}.panel-grid[data-tuned=true][data-thin=true] .density-compact .launch-host{display:none}
@media(max-width:750px){.layout-studio{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.layout-studio>header,.layout-studio>footer{padding:10px 12px}.layout-studio h2{font-size:24px}.tune-body{display:flex;flex-direction:column;overflow:auto}.tune-preview{order:-1;flex:none;height:300px;padding:10px;border-bottom:1px solid #d5dfca}.tune-controls{overflow:visible;padding:12px 16px;border-right:0}.tune-preview-heading>span{display:none}.tune-preview-heading p{margin-bottom:5px}.tune-fit-note{font-size:10px!important}.layout-studio>footer [data-tune-status]{font-size:10px}.layout-studio>footer .tune-save{max-width:115px}.panel-grid[data-tuned=true] .density-compact{--item-height:max(40px,var(--desk-row-height));--action-row-height:max(40px,var(--desk-row-height))}.panel-grid[data-tuned=true] :is(.action-primary,.action-preview){min-height:30px;height:30px}.panel-grid[data-tuned=true] .keymap-row{min-height:max(40px,var(--desk-row-height))}}
@media(max-height:500px){.layout-studio>header{padding:8px 14px}.layout-studio>header p,.layout-studio>header .eyebrow{display:none}.layout-studio>footer{padding:8px 14px}}

.tune-presets{display:grid;grid-template-columns:1fr 1fr}

.tune-advanced{margin:12px 0}.tune-advanced>summary{cursor:pointer;font-weight:600;padding:8px 0}.tune-advanced .tune-range{margin-top:12px}

.tune-mobile-panels,.layout-studio .tune-phone-preview{display:none}
@media(max-width:750px){.tune-mobile-panels{display:grid;gap:6px}.tune-mobile-panels button{text-align:left}.tune-mobile-panels [aria-pressed=true]{background:#e4ecdd;border-color:#597c65}.layout-studio .tune-phone-preview{display:inline-block;margin:8px 6px 8px 0}.layout-studio .tune-preview{display:none}.layout-studio[data-phone-preview=true] .tune-preview{display:flex;order:0}.tune-controls>label:has([name="selected-panel"]){display:none}}
