/* A compact workspace for the instrument, separate from the editorial site. */
.projects-page { max-width: 1240px; margin: 0 auto; padding: 38px 32px 72px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.workspace-kicker, .app-label { margin: 0 0 7px; color: #a1a1a8; font: 10px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.workspace-heading h1 { font-size: 36px; line-height: 1; letter-spacing: -.045em; margin: 0; }
.workspace-heading > p { margin: 0; color: #aaaab1; font-size: 13px; }
.project-app { background: #1d1d1f; border: 1px solid #48484c; box-shadow: 0 18px 50px #0004; }
.device-bar { display: flex; align-items: center; gap: 24px; padding: 18px 24px; background: #29292c; border-bottom: 1px solid #45454a; }
.device-identity { display: flex; align-items: center; gap: 14px; flex: 1; }
.device-identity .app-label { margin-bottom: 2px; }
.device-identity h2 .firmware-label { color: #aaaab1; font-size: 13px; font-weight: 400; }
.device-identity h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 0; }
.device-identity h2 #connect-title { color: inherit; font-weight: inherit; }
.device-icon { display: flex; align-items: end; gap: 3px; width: 40px; height: 34px; padding: 7px; border: 1px solid #77777e; background: #36363a; }
.device-icon span { flex: 1; height: 45%; background: #b8b8be; }.device-icon span:nth-child(2) { height: 80%; }.device-icon span:nth-child(3) { height: 60%; }
.device-connection { display: flex; align-items: center; gap: 8px; min-width: 190px; justify-content: flex-end; white-space: nowrap; color: #c8c8cd; font-size: 12px; }
.connection-indicator { width: 7px; height: 7px; border-radius: 50%; background: #88888e; }
.project-app[data-connected="true"] .connection-indicator { background: #78cf9d; box-shadow: 0 0 8px #78cf9d66; }
.projects-page .btn { min-height: 40px; padding: 11px 14px; font-size: 11px; }
.projects-page .btn-primary span { margin-left: 12px; font-size: 15px; }
.connection-detail { padding: 13px 24px; background: #242426; border-bottom: 1px solid #3b3b3f; color: #b7b7bd; font-size: 12px; }
.connection-detail p { margin: 0; }
.port-controls { display: flex; align-items: stretch; gap: 8px; }.port-controls select { flex: 1; }
.workspace-title { display: flex; align-items: end; justify-content: space-between; padding: 25px 24px 18px; }
.workspace-title h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.workspace-title > span { color: #a1a1a8; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.workspace-title > span span { padding: 0 5px; color: #666; }
.slot-workspace { padding: 0 24px 22px; }.slot-heading { display: flex; justify-content: flex-end; align-items: end; gap: 12px; margin-bottom: 12px; }.slot-heading h3 { margin: 0; font-size: 14px; font-weight: 500; }.slot-heading > p, .slot-hint { color: #a7a7ae; font-size: 11px; margin: 0; }.slot-tools { display: flex; align-items: center; gap: 16px; }.slot-tools p { color: #a7a7ae; font-size: 11px; margin: 0; }.projects-page .slot-tools .btn { border: 1px solid #5a5a60; background: transparent; color: #eeeef2; }.slot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }.slot-grid button { min-width: 0; min-height: 58px; padding: 8px; text-align: left; border: 1px solid #535359; background: #262629; color: #d4d4da; cursor: pointer; font: 11px var(--mono); }.slot-grid button span { display: block; }.slot-grid button .slot-number { font-size: 10px; opacity: .7; margin-bottom: 5px; }.slot-grid button .slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--sans); }.slot-grid button[aria-pressed="true"] { color: #151515; background: #eeeef2; border-color: #eeeef2; }.slot-grid button:hover:not(:disabled) { border-color: #eeeef2; }.slot-grid button:disabled { opacity: .5; cursor: default; }.slot-hint { margin-top: 9px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #3b3b3f; }
.project-panel { min-width: 0; padding: 24px; }.project-panel + .project-panel { border-left: 1px solid #3b3b3f; }
.action-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.action-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #65656a; color: #eeeef2; font-size: 20px; }
.action-symbol svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.action-heading .app-label { margin-bottom: 3px; }.action-heading h3 { font-size: 17px; font-weight: 500; margin: 0; }
.project-panel > p { color: #b7b7bd; font-size: 13px; line-height: 1.55; margin: 0; }
.project-field { display: block; color: #d3d3d8; font-size: 12px; font-weight: 600; margin: 22px 0 7px; }
.project-app select, .project-app input[type=file] { display: block; width: 100%; min-width: 0; min-height: 42px; color: #eeeef2; background: #151517; border: 1px solid #5a5a60; border-radius: 0; padding: 9px 11px; font: 13px var(--sans); }
.project-app input[type=file] { padding: 7px; }.project-app input[type=file]::file-selector-button { border: 1px solid #6a6a70; color: #eeeef2; background: #343438; padding: 5px 9px; margin-right: 10px; cursor: pointer; }
.project-app :is(button, select, input):focus-visible, .project-help summary:focus-visible { outline: 2px solid #eeeef2; outline-offset: 3px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }.projects-page .action-buttons .btn:not(.btn-primary) { border: 1px solid #5a5a60; background: transparent; color: #eeeef2; }.projects-page .action-buttons .btn:not(.btn-primary):hover:not(:disabled) { border-color: #eeeef2; }
.project-panel > .fine { color: #a7a7ae; font-size: 11px; line-height: 1.55; margin-top: 16px; }.project-panel #file-info { margin-top: 7px; }
.project-review { margin-top: 16px; padding: 12px; border: 1px solid #806d48; background: #e3a41b0c; font-size: 12px; }#delete-review { border-color: #9b5558; background: #d94a501c; }
.project-review p { margin: 0 0 10px; }.project-review .check { margin: 0; font-size: 12px; }
.transfer-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 20px 24px; border-top: 1px solid #3b3b3f; background: #242426; }.transfer-panel h2 { margin: 0; font-size: 16px; font-weight: 500; }.transfer-panel p { margin: 0 0 8px; font-size: 12px; }.transfer-panel .fine { color: #aaaab1; margin: 6px 0 0; } #transfer-progress { display: none; }
.project-notice { display: flex; gap: 20px; margin-top: 20px; color: #b9b9bf; font-size: 12px; line-height: 1.55; }.project-notice strong { color: #e2cf9d; white-space: nowrap; }.project-notice p { margin: 0; max-width: 85ch; }
.project-help { margin-top: 16px; color: #aaaab1; font-size: 12px; }.project-help summary { cursor: pointer; color: #dddde2; font-size: 12px; }.project-help p { max-width: 80ch; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .projects-page { padding: 28px 20px 56px; }.workspace-heading { align-items: start; flex-direction: column; gap: 10px; }.device-bar { flex-wrap: wrap; gap: 14px; padding: 16px; }.device-identity { min-width: 60%; }.device-bar .btn { width: 100%; }.connection-detail, .workspace-title { padding-inline: 16px; }.slot-workspace { padding-inline: 16px; }.slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.slot-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; }.slot-heading { align-items: start; flex-direction: column; gap: 6px; }.project-grid { grid-template-columns: 1fr; }.project-panel { padding: 22px 16px; }.project-panel + .project-panel { border-left: 0; border-top: 1px solid #3b3b3f; }.transfer-panel { grid-template-columns: 1fr; gap: 12px; padding: 20px 16px; }.project-notice { display: block; }.project-notice p { margin-top: 5px; }.port-controls { flex-wrap: wrap; }.port-controls select { flex-basis: 100%; } }

/* Editor modes share the instrument connection above. */
.editor-tabs { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid #45454a; }
.editor-tabs[hidden] { display: none; }
.editor-tabs button { position: relative; padding: 17px 0 15px; border: 0; background: transparent; color: #a7a7ae; font: 600 13px var(--sans); cursor: pointer; }
.editor-tabs button[aria-selected="true"] { color: #f2f2f5; }
.editor-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #eeeef2; content: ""; }
.editor-tabs button span, .planned-badge { margin-left: 6px; color: #b9b9bf; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.sounds-workspace { padding: 28px 24px 32px; }
.sounds-intro { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.sounds-intro h2 { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.sounds-intro p:not(.app-label), .sound-card p, .sounds-note { max-width: 65ch; margin: 0; color: #b7b7bd; font-size: 13px; line-height: 1.55; }
.planned-badge { padding: 6px 8px; border: 1px solid #5a5a60; white-space: nowrap; }
.sounds-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.sound-card { padding: 18px; border: 1px solid #45454a; background: #242426; }
.sound-card .action-symbol { margin-bottom: 15px; }
.sound-card h3 { margin: 0 0 7px; font-size: 15px; font-weight: 500; }
.sounds-workspace .sounds-note { margin-top: 20px; font-size: 12px; }
@media (max-width: 700px) { .editor-tabs { padding-inline: 16px; }.sounds-workspace { padding: 24px 16px; }.sounds-details { grid-template-columns: 1fr; } }

/* Slot actions open from beneath instrument memory when a slot is chosen. */
.project-actions { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 320ms ease, opacity 220ms ease; }
.project-actions > .project-grid { min-height: 0; overflow: hidden; }
.project-actions.is-open { grid-template-rows: 1fr; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .project-actions { transition: none; } }
.projects-page .download-all { margin-top: 12px; border: 1px solid #5a5a60; background: transparent; color: #eeeef2; }
.projects-page .download-all:hover:not(:disabled) { border-color: #eeeef2; }
.project-panel > .selected-project { margin-top: 18px; color: #eeeef2; font-size: 13px; font-weight: 600; }
@media (min-width: 701px) and (max-width: 900px) { .project-grid { grid-template-columns: 1fr; }.project-panel + .project-panel { border-left: 0; border-top: 1px solid #3b3b3f; } }
.slot-workspace .transfer-panel { display: block; padding: 0 0 12px; border: 0; background: transparent; }
.slot-workspace .transfer-panel[hidden] { display: none; }
.slot-workspace .transfer-panel p { color: #d4d4da; margin: 0 0 6px; }

.project-panel.is-empty-disabled { opacity: .4; }

@media (min-width: 701px) and (max-width: 900px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .connection-detail { font-size: 10px; } }

.slot-grid button[data-slot-status="present"]:not([aria-pressed="true"]) { background: #38383d; border-color: #9c9ca4; color: #f4f4f6; }
.slot-grid button[data-slot-status="empty"]:not([aria-pressed="true"]) { background: #212124; border-color: #505057; color: #aaaab1; }
.slot-grid button[data-slot-status]:hover:not(:disabled) { border-color: #f4f4f6; }
