/* Software workbench. Approved mint music-player palette; application layout. */
:root {
    color-scheme: light;
    --bg: #f4f7f5;
    --surface: #ffffff;
    --ink: #233c32;
    --muted: #5d7268;
    --accent: #22825e;
    --action: #22825e;
    --mint: #e5f3eb;
    --line: #e5ece7;
    --line-strong: #c8d7cd;
    --card: #ffffff;
    --g-main: #f4f7f5;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --m-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-synthesis: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    color: inherit;
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
input,
textarea,
select {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 11px;
    outline: none;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #22825e12;
}
input[type="range"] {
    padding: 0;
    box-shadow: none;
    accent-color: var(--accent);
    height: 20px;
    cursor: pointer;
    border: 0;
}
input[type="range"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin: 0;
}
textarea {
    resize: vertical;
    min-height: 98px;
    line-height: 1.7;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.workspace[tabindex="-1"]:focus {
    outline: none;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.35;
}
h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
h3 {
    font-size: 14px;
    font-weight: 500;
}
small {
    font-size: 12px;
}
.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: middle;
}
.icon-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: white;
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
}
.skip-link:focus {
    top: 8px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: none;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
}
.button-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.button-secondary {
    background: #fff;
    border-color: var(--line-strong);
}
.button-soft {
    color: var(--accent);
    background: var(--mint);
}
.button-danger {
    color: #a94135;
    background: #fcebe7;
}
.icon-button {
    width: 36px;
    padding: 7px;
    color: var(--muted);
}
.icon-button:hover {
    background: #edf3ef;
    color: var(--ink);
}
.button-text {
    color: var(--muted);
    padding-inline: 8px;
}
.text-muted {
    color: var(--muted);
}
.app-shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr) 282px;
    grid-template-rows: 74px minmax(0, 1fr) 96px;
    height: 100dvh;
    min-height: 680px;
    overflow: hidden;
}
.sidebar {
    grid-column: 1;
    grid-row: 1 / 3;
    background: #edf4ef;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.brand {
    height: 89px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 23px;
}
.brand-mark {
    width: 35px;
    height: 35px;
}
.brand-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.6px;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.8px;
}
.side-nav {
    padding: 0 15px 23px;
    border-bottom: 1px solid #dfe9e2;
}
.nav-item {
    width: 100%;
    display: flex;
    gap: 11px;
    justify-content: flex-start;
    padding: 10px 13px;
    min-height: 42px;
    margin-top: 3px;
    color: #526c5e;
    font-size: 14px;
}
.nav-item.active {
    color: #1a6b4c;
    background: #daeade;
    font-weight: 500;
}
.sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px 10px 25px;
    color: var(--muted);
    font-size: 12px;
}
.sidebar-heading .icon-button {
    width: 32px;
    min-height: 32px;
    padding: 6px;
}
.cue-list {
    margin: 0;
    padding: 0 12px;
    list-style: none;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}
.cue-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    min-height: 72px;
}
.cue-item:hover {
    background: #e4eee6;
}
.cue-item.active {
    background: #fff;
    border-color: #dce9df;
    box-shadow: 0 2px 7px #233c3204;
}
.cue-item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    height: 25px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.cue-thumb {
    width: 39px;
    height: 43px;
    border-radius: 7px;
    object-fit: cover;
    background: #d3e5dc;
}
.cue-copy {
    min-width: 0;
    flex: 1;
}
.cue-title {
    font-size: 13px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.cue-caption {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.cue-number {
    color: #74877d;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    margin-right: 3px;
}
.cue-item.active .cue-number {
    color: var(--accent);
}
.cue-item.dragging {
    opacity: 0.45;
}
.cue-item.drag-over {
    border-top: 2px solid var(--accent);
}
.sidebar-bottom {
    padding: 17px 20px;
}
.local-note {
    padding: 14px 9px;
    margin-bottom: 4px;
    border-top: 1px solid #dbe5de;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.topbar {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 29px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    gap: 16px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
.breadcrumb .crumb-label {
    color: var(--muted);
    font-size: 12px;
}
.breadcrumb .icon {
    width: 12px;
    height: 12px;
    color: #94a49a;
}
.project-title {
    font-size: 14px;
    font-weight: 500;
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    justify-content: flex-start;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.save-state {
    display: flex;
    gap: 5px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin-right: 6px;
    white-space: nowrap;
}
.save-state[data-saved="false"] {
    color: #a04431;
}
.save-state-compact {
    display: none;
}
.save-state .icon {
    width: 14px;
    height: 14px;
}
.workspace {
    grid-column: 2;
    overflow-y: auto;
    padding: 27px 29px 28px;
    min-width: 0;
    scrollbar-width: thin;
}
.workspace-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}
.eyebrow {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}
.eyebrow .cue-tag {
    color: var(--accent);
    background: #e0eee5;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}
#cue-save-status {
    white-space: nowrap;
}
#cue-save-status[data-dirty="true"] {
    color: #8a541e;
}
.workspace-top .eyebrow {
    flex-wrap: wrap;
}
.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}
.cue-overview {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 24px;
}
.main-cover {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    flex: none;
    background: #d6e9dd;
}
.cue-overview-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}
.cue-description {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 13px;
    max-width: 440px;
}
.cue-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: wrap;
}
.cue-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cue-meta .icon {
    width: 13px;
    height: 13px;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
}
.panel-heading-left {
    display: flex;
    gap: 12px;
    align-items: center;
}
.panel-heading .section-sub {
    font-size: 12px;
    color: var(--muted);
}
.timeline-tools {
    display: flex;
    gap: 4px;
    align-items: center;
}
.timeline-tools .btn {
    min-height: 32px;
    font-size: 12px;
    padding: 4px 7px;
}
.timeline-tools .icon-button {
    width: 32px;
    padding: 0;
}
.timeline-tools .icon {
    width: 14px;
    height: 14px;
}
.timeline-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 10px 4px;
}
.timeline-scroll::-webkit-scrollbar {
    display: none;
}
.minimap-label {
    align-self: center;
    padding-left: 10px;
    color: var(--muted);
    font-size: 12px;
}
.timeline-minimap {
    position: relative;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: 36px;
    margin: 0 10px 10px;
    border-radius: 4px;
    background: #edf2ee;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}
.timeline-minimap:focus-visible {
    outline: 2px solid #367b59;
    outline-offset: 2px;
}
.minimap-lane {
    position: relative;
    color: #43875c;
    background: #f2f6f2;
}
.minimap-lane[data-minimap-track="voice"] {
    color: #517da2;
    background: #f0f4f8;
}
.minimap-clip {
    position: absolute;
    overflow: hidden;
    background: #dbeade;
}
[data-minimap-track="voice"] .minimap-clip {
    background: #dae6f0;
}
.minimap-loop {
    opacity: 0.65;
}
.minimap-clip .waveform {
    inset: 0;
    height: 100%;
    opacity: 1;
}
.minimap-window {
    position: absolute;
    inset-block: 0;
    box-sizing: border-box;
    border: 1px solid #46775b;
    border-radius: 4px;
    background: rgb(48 92 64 / 21%);
    pointer-events: none;
}
.timeline-inner {
    min-width: 0;
}
.ruler-row {
    height: 35px;
}
.ruler {
    position: relative;
    height: 35px;
    border-bottom: 1px solid var(--line);
    cursor: crosshair;
}
.ruler-label {
    position: absolute;
    bottom: 10px;
    color: #74857b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    transform: translateX(-50%);
    white-space: nowrap;
}
.ruler-label.at-start {
    transform: none;
}
.ruler-label.at-end {
    transform: translateX(-100%);
}
.ruler-label::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 5px;
    background: #d6e0d8;
    bottom: -11px;
    left: 50%;
}
.ruler-label.at-start::after {
    left: 0;
}
.ruler-label.at-end::after {
    left: auto;
    right: 0;
}
.track-row {
    min-height: 77px;
}
.track-heading {
    padding: 19px 10px 14px 18px;
    font-size: 12px;
}
.track-heading .icon {
    width: 13px;
    height: 13px;
    margin-right: 4px;
    color: #5b7969;
}
.track-heading small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    padding-left: 20px;
}
.track-lane {
    position: relative;
    min-width: 0;
    height: 77px;
    border-bottom: 1px solid #edf1ee;
    background-image: linear-gradient(to right, #eaf0ec 1px, transparent 1px);
    background-size: var(--grid-spacing, 16.6667%) 100%;
    cursor: crosshair;
}
.clip {
    display: block;
    position: absolute;
    top: 12px;
    height: 56px;
    border-radius: 6px;
    background: #e5f2e8;
    color: #2f7552;
    overflow: hidden;
    border: 1px solid #bfddc7;
    padding: 0;
    text-align: left;
    min-width: 12px;
}
.clip.selected {
    border-color: #70ad86;
    box-shadow: 0 0 0 1px #70ad861a;
}
.clip.voice {
    background: #e9f0f8;
    color: #547b9c;
    border-color: #c2d6e7;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.clip.voice.is-dragging {
    cursor: grabbing;
}
.clip.voice.selected {
    border-color: #8aacc5;
}
.clip-caption {
    position: absolute;
    left: 8px;
    top: 4px;
    font-size: 12px;
    z-index: 1;
    max-width: calc(100% - 13px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.clip-caption .icon {
    width: 11px;
    height: 11px;
    margin-right: 5px;
}
.waveform {
    display: block;
    position: absolute;
    bottom: 3px;
    height: 30px;
    width: 100%;
    opacity: 0.65;
    pointer-events: none;
}
#timeline-zoom {
    --zoom-thumb-radius: 8px;
    width: clamp(48px, 6vw, 96px);
    appearance: none;
    touch-action: none;
    background: transparent;
}
#timeline-zoom::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: #c6d8ce;
}
#timeline-zoom::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #c6d8ce;
}
#timeline-zoom::-webkit-slider-thumb {
    appearance: none;
    width: calc(2 * var(--zoom-thumb-radius));
    height: calc(2 * var(--zoom-thumb-radius));
    margin-top: calc(2px - var(--zoom-thumb-radius));
    border-radius: 50%;
    background: var(--accent);
}
#timeline-zoom::-moz-range-thumb {
    width: calc(2 * var(--zoom-thumb-radius));
    height: calc(2 * var(--zoom-thumb-radius));
    border: 0;
    border-radius: 50%;
    background: var(--accent);
}
.clip-item {
    display: contents;
}
.clip-item .clip,
.clip-continuation {
    touch-action: none;
    cursor: grab;
    user-select: none;
}
.clip-item .clip.is-dragging {
    cursor: grabbing;
}
.clip-continuation {
    position: absolute;
    top: var(--clip-top);
    left: calc(var(--clip-left) + var(--clip-width));
    height: 56px;
    overflow: hidden;
    border: 1px dashed #a6c8b4;
    border-radius: 5px;
    color: #6d947a;
    background: #f0f6f1;
}
.clip-continuation.voice {
    color: #869fb5;
    background: #f2f6fa;
    border-color: #bdccd8;
}
.clip-item.selected .clip-caption {
    left: 13px;
}
.trim-handle {
    position: absolute;
    top: calc(var(--clip-top) + 8px);
    height: 40px;
    width: 10px;
    z-index: 2;
    border: 1px solid #619774;
    border-radius: 4px;
    background: #d2e8d7;
    padding: 0;
    color: #457354;
    cursor: ew-resize;
    touch-action: none;
}
.trim-handle::after {
    content: "";
    display: block;
    width: 2px;
    height: 14px;
    margin: auto;
    background: currentColor;
}
.trim-handle[data-trim-edge="start"] {
    left: var(--clip-left);
}
.trim-handle[data-trim-edge="end"] {
    left: max(calc(var(--clip-left) + 13px), calc(var(--clip-left) + var(--clip-width) - 10px));
}
.inspector [data-action="extend-bgm-loop"][hidden],
.trim-handle[hidden],
.clip-continuation[hidden] {
    display: none;
}
.trim-editor {
    margin: 14px 0;
    padding: 12px 0;
    border-block: 1px solid var(--line);
}
.trim-heading,
.trim-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.trim-heading h3,
.trim-heading span,
.trim-actions .btn {
    margin: 0;
    font-size: 12px;
}
.trim-heading span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.trim-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0;
}
.trim-fields .field {
    margin: 0;
}
.trim-fields input {
    width: 100%;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}
#trim-error {
    margin: 6px 0;
    color: #93432e;
    font-size: 12px;
}
#trim-error:empty {
    display: none;
}
@media (min-width: 1600px) {
    .clip-continuation {
        height: 66px;
    }
    .trim-handle {
        height: 50px;
    }
}
.empty-track {
    border: 1px dashed #c8d9ce;
    background: #f8faf8;
    color: #698071;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    top: 14px;
    height: 51px;
    left: 0;
    width: 100%;
}
.playhead {
    position: absolute;
    left: 0;
    top: -3px;
    bottom: 0;
    width: 1px;
    background: #238760;
    z-index: 3;
    pointer-events: none;
}
.playhead::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 0;
    width: 9px;
    height: 7px;
    background: #238760;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.automation {
    padding: 9px 20px 11px 18px;
}
.automation-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    font-size: 12px;
    color: #597365;
}
.automation-head .icon {
    width: 13px;
    height: 13px;
    margin-right: 4px;
}
.automation-head small {
    color: var(--muted);
    font-size: 12px;
}
.envelope-area {
    margin-left: 92px;
    position: relative;
    height: 76px;
    background-image:
        linear-gradient(#edf2ee, #edf2ee), linear-gradient(#dfe9e2, #dfe9e2),
        linear-gradient(#edf2ee, #edf2ee);
    background-size: 100% 1px;
    background-position:
        left 10.526316%,
        left 50%,
        left 89.473684%;
    background-repeat: no-repeat;
}
.envelope {
    width: 100%;
    height: 76px;
    overflow: visible;
    touch-action: none;
    user-select: none;
    cursor: crosshair;
}
.envelope .envelope-line {
    fill: none;
    stroke: #69a080;
    stroke-width: 1.5;
}
.envelope circle {
    fill: white;
    stroke: #488861;
    stroke-width: 2;
    cursor: grab;
}
.envelope circle:hover {
    fill: #d9efdf;
    r: 5;
}
.envelope-label {
    position: absolute;
    right: calc(100% + 12px);
    font-size: 12px;
    color: #718276;
    line-height: 1;
    transform: translateY(-50%);
    white-space: nowrap;
}
.envelope-label.top {
    top: 10.526316%;
}
.envelope-label.middle {
    top: 50%;
    color: var(--muted);
}
.envelope-label.bottom {
    top: 89.473684%;
}
.timeline-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.timeline-edit-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.timeline-foot {
    gap: 8px;
    flex-wrap: wrap;
}
.timeline-edit-actions .btn {
    min-height: 32px;
    white-space: nowrap;
}
.timeline-foot span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.timeline-foot .icon {
    width: 12px;
    height: 12px;
}
.library {
    margin-top: 25px;
}
.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}
.library-title {
    display: flex;
    align-items: baseline;
    gap: 9px;
}
.library-title small {
    font-size: 12px;
    color: var(--muted);
}
.library-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}
.search-field {
    position: relative;
}
.search-field .icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 14px;
    height: 14px;
    color: #758b7f;
}
.search-field input {
    width: 146px;
    font-size: 12px;
    padding: 7px 10px 7px 30px;
    background: #edf2ee;
    border: 0;
}
.library-actions .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 6px 9px;
}
.library-actions .icon {
    width: 14px;
    height: 14px;
}
.asset-table {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.asset-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    min-height: 59px;
    border-bottom: 1px solid #edf2ee;
}
.asset-row:last-child {
    border-bottom: 0;
}
.asset-type-icon {
    width: 32px;
    height: 32px;
    background: #e8f2e9;
    color: #4d8160;
    border-radius: 7px;
    display: grid;
    place-items: center;
}
.asset-type-icon.voice {
    color: #5a7f9d;
    background: #edf2f8;
}
.asset-type-icon .icon {
    width: 16px;
    height: 16px;
}
.asset-info {
    flex: 1;
    min-width: 0;
}
.asset-name {
    font-size: 12px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.asset-details {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.asset-duration {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.asset-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.asset-actions .btn {
    color: var(--accent);
    font-size: 12px;
    padding: 4px 6px;
    min-height: 32px;
    background: #f0f6f2;
}
.asset-actions .asset-remove {
    width: 32px;
    padding: 0;
}
.asset-actions .asset-remove .icon {
    width: 14px;
    height: 14px;
}
.library-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: center;
}
.library-note .icon {
    width: 12px;
    height: 12px;
}
.empty-library {
    padding: 23px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
.empty-library strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}
.empty-library p {
    margin: 8px 0 14px;
}
.asset-name.btn {
    min-height: 24px;
    padding: 0;
    max-width: 100%;
    text-align: left;
}
.asset-workspace-top p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}
.asset-library {
    margin-top: 0;
}
.asset-library .library-header {
    margin-bottom: 20px;
}
.asset-library .search-field input {
    width: min(260px, 30vw);
    font-size: 14px;
    min-height: 38px;
}
.asset-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.asset-kind-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: #eaf1ec;
    border-radius: var(--r-sm);
}
.asset-kind-tabs .btn {
    color: var(--muted);
    min-height: 32px;
    padding: 5px 9px;
}
.asset-kind-tabs .btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 3px #233c3210;
}
.asset-select-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}
.asset-select-label select {
    min-height: 36px;
    padding: 6px 28px 6px 10px;
    width: auto;
    font-size: 13px;
}
.asset-select-label {
    position: relative;
}
.asset-select-label::after {
    content: "⌄";
    position: absolute;
    right: 10px;
    top: 7px;
    pointer-events: none;
}
.asset-select-label select {
    appearance: none;
}
.asset-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
}
.asset-selection-bar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}
.asset-selection-bar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.asset-selection-bar .btn {
    min-height: 34px;
    font-size: 12px;
}
.asset-target {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    margin: 2px 0 12px;
}
.asset-target .icon {
    width: 14px;
    height: 14px;
}
.asset-target strong {
    font-weight: 500;
    color: var(--ink);
}
.asset-target select {
    width: auto;
    max-width: min(300px, 100%);
    min-height: 34px;
    padding: 5px 10px;
    font-size: 12px;
}
.muted-play-modal {
    width: min(430px, calc(100% - 32px));
}
.recording-modal {
    width: min(470px, calc(100% - 32px));
}
.recording-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 10px;
    color: var(--muted);
    font-size: 13px;
}
.recording-status time {
    color: var(--ink);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}
.recording-modal[data-recording="recording"] #record-voice-status {
    color: #a24739;
}
.recording-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}
.recording-controls .btn,
.recording-modal .modal-footer .btn {
    min-height: 40px;
}
.recording-controls .btn[hidden] {
    display: none;
}
.recording-error {
    color: #a24739;
    font-size: 13px;
    line-height: 1.7;
}
.recording-error:empty {
    display: none;
}
.recording-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
#record-voice-audio {
    display: none;
}
.muted-play-modal > p {
    color: var(--muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.muted-play-modal .modal-footer .btn {
    min-height: 40px;
    padding-inline: 18px;
}
.asset-target > span {
    margin-left: auto;
}
.asset-workspace .asset-row {
    display: grid;
    grid-template-columns: 18px 36px minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 15px;
}
.asset-row.asset-selected {
    background: #f0f8f3;
}
.asset-workspace .asset-name {
    font-size: 14px;
}
.asset-workspace .asset-actions {
    grid-column: 3 / 5;
    flex-direction: row;
    justify-content: flex-start;
}
.asset-workspace .asset-details {
    line-height: 1.6;
}
.asset-type-icon.preview-button {
    padding: 0;
    min-height: 32px;
    border: 0;
}
.preview-button[data-preview-state="playing"] {
    background: var(--accent);
    color: #fff;
}
.asset-preview-player {
    background: #edf5ef;
    border: 1px solid #d7e7dc;
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.preview-player-heading,
.preview-player-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}
.preview-player-heading > span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.preview-player-heading strong {
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-player-heading .icon {
    width: 15px;
    height: 15px;
}
.preview-player-heading .icon-button {
    width: 28px;
    min-height: 28px;
    padding: 5px;
}
.preview-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}
.preview-player-controls input {
    flex: 1;
    min-width: 0;
    width: auto;
}
.preview-player-controls time {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.preview-player-controls .preview-toggle {
    color: var(--accent);
    background: white;
    border-radius: 50%;
}
.preview-player-foot .btn {
    padding: 3px 5px;
    min-height: 30px;
    font-size: 12px;
}
.asset-import-status {
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
}
.asset-import-status progress {
    width: 100%;
    height: 6px;
    margin-top: 10px;
    accent-color: var(--accent);
}
.asset-import-status details {
    margin-top: 8px;
}
.asset-import-status summary {
    cursor: pointer;
    color: var(--ink);
}
.asset-import-status ul {
    padding-left: 20px;
    overflow-wrap: anywhere;
}
.asset-waveform {
    width: 100%;
    height: 88px;
    border: 1px solid #dbe9df;
    border-radius: var(--r-md);
    background: #edf6f0;
    color: #639b79;
    padding: 12px;
    cursor: crosshair;
}
.asset-waveform svg {
    width: 100%;
    height: 100%;
}
.asset-facts {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 23px;
}
.asset-inspector input,
.asset-inspector select {
    font-size: 14px;
}
.asset-inspector .asset-detail-preview {
    width: 100%;
    margin-top: 20px;
}
.asset-usage-list {
    margin-top: 12px;
}
.asset-usage-list > p {
    font-size: 13px;
    line-height: 1.7;
}
.asset-usage-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    white-space: normal;
    width: 100%;
    text-align: left;
    padding: 9px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.asset-usage-link small {
    color: var(--muted);
}
.asset-detail-delete {
    color: #a04431;
    padding-left: 0;
}
.asset-reference-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.asset-delete-error {
    color: #a04431;
    margin-top: 12px;
}
#delete-assets-description {
    overflow-wrap: anywhere;
    max-height: 220px;
    overflow-y: auto;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 24px;
}
@media (min-width: 1440px) {
    .asset-workspace .asset-row {
        grid-template-columns: 18px 36px minmax(0, 1fr) 42px auto;
    }
    .asset-workspace .asset-actions {
        grid-column: auto;
    }
}
@media (max-width: 640px) {
    .asset-library .library-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }
    .asset-library .search-field input {
        width: 100%;
    }
    .asset-workspace-top {
        align-items: center;
    }
    .asset-workspace-top p {
        font-size: 13px;
    }
    .asset-filters {
        gap: 12px 8px;
    }
    .asset-kind-tabs {
        width: 100%;
    }
    .asset-kind-tabs .btn {
        flex: 1;
    }
    .asset-select-label {
        flex: 1;
    }
    .asset-select-label select {
        width: 100%;
    }
    .asset-target > span {
        margin-left: 20px;
    }
    .asset-selection-bar {
        flex-wrap: wrap;
    }
    .asset-workspace .asset-row {
        gap: 7px 9px;
        padding: 13px 10px;
    }
    .asset-workspace .asset-actions .btn {
        min-height: 36px;
    }
    .preview-player-heading {
        font-size: 12px;
    }
}
.inspector {
    grid-column: 3;
    grid-row: 2;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid var(--line);
    scrollbar-width: thin;
    min-width: 0;
}
.inspector-heading {
    padding: 25px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.inspector-heading .icon {
    width: 16px;
    height: 16px;
    color: #7f9386;
}
.inspector-section {
    padding: 0 22px 22px;
    margin-bottom: 21px;
    border-bottom: 1px solid var(--line);
}
.inspector-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}
.field-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 7px;
}
.inspector-section > .field + .field {
    margin-top: 16px;
}
.field input,
.field textarea {
    font-size: 12px;
}
.track-timing-fields {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.track-timing-fields .field {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}
.track-timing-fields .field-label {
    margin: 0;
}
.time-stepper {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    justify-self: end;
    width: 100%;
    max-width: 160px;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}
.time-stepper button {
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: 15px;
    line-height: 1;
}
.time-stepper button:hover:not(:disabled) {
    color: var(--accent);
    background: var(--mint);
}
.time-stepper button:active:not(:disabled) {
    background: #d7ebe0;
}
.time-stepper input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.time-stepper input:focus-visible,
.time-stepper button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.track-tabs {
    display: flex;
    padding: 3px;
    border-radius: 8px;
    background: #f0f4f1;
    margin-bottom: 19px;
}
.track-tab {
    min-height: 32px;
    flex: 1;
    padding: 5px;
    font-size: 12px;
    border-radius: 6px;
    color: var(--muted);
}
.track-tab.active {
    color: var(--accent);
    background: #fff;
    box-shadow: 0 1px 3px #183b2520;
}
.track-tab .icon {
    width: 13px;
    height: 13px;
}
.track-file {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f8f6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 18px;
}
.track-file .icon {
    width: 16px;
    height: 16px;
    color: #6a8b75;
}
.track-file-name {
    font-size: 12px;
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}
.track-file-name small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.volume-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.volume-heading .field-label {
    margin: 0;
}
.volume-heading output {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    font-size: 12px;
    margin: 12px 0 0;
    cursor: pointer;
}
.checkbox-row small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}
.track-clear {
    color: #a24739;
    border: 1px solid #e7d1ca;
    background: #fff9f7;
    width: 100%;
    font-size: 12px;
    padding: 7px 10px;
    min-height: 34px;
    margin-top: 14px;
}
.track-clear .icon {
    width: 15px;
    height: 15px;
}
.track-clear:hover:not(:disabled) {
    color: #8d3024;
    border-color: #ce9889;
    background: #f9ece7;
}
.inspector-section h3 {
    margin-bottom: 11px;
}
.notes-field {
    font-size: 12px;
    min-height: 93px;
}
.inspector-footnote {
    color: var(--muted);
    font-size: 12px;
    padding: 0 22px 24px;
    line-height: 1.8;
}
.dock {
    grid-column: 1 / 4;
    grid-row: 3;
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 248px minmax(280px, 1fr) 295px;
    align-items: center;
    padding: 12px 25px;
    gap: 22px;
    box-shadow: 0 -4px 25px #22433303;
    z-index: 10;
}
.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.dock-cover {
    width: 50px;
    height: 50px;
    border-radius: 9px;
    object-fit: cover;
}
.now-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.now-meta {
    display: flex;
    gap: 5px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}
.now-meta .icon {
    width: 12px;
    height: 12px;
}
.now-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.transport .icon-button {
    width: 31px;
    min-height: 31px;
    padding: 6px;
}
.transport-play {
    width: 37px;
    height: 37px;
    min-height: 37px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    padding: 9px;
}
.transport-play .icon {
    width: 20px;
    height: 20px;
}
.seek-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #698071;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    margin-top: 5px;
}
.seek-row input {
    height: 12px;
    flex: 1;
}
.seek-row time {
    min-width: 31px;
}
.output-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.sound-control {
    color: var(--accent);
    border-color: #dce8df;
    font-size: 12px;
    min-height: 33px;
    padding: 6px 9px;
}
.sound-control .icon {
    width: 15px;
    height: 15px;
}
.output-volume {
    width: 67px !important;
}
.output-divider {
    width: 1px;
    height: 20px;
    background: var(--line);
    margin: 0 4px;
}
.output-label {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.toast {
    position: fixed;
    z-index: 100;
    bottom: 114px;
    left: 50%;
    transform: translate(-50%, 8px);
    opacity: 0;
    pointer-events: none;
    max-width: min(520px, calc(100% - 32px));
    background: #233c32;
    color: #fff;
    border-radius: 9px;
    padding: 12px 19px;
    font-size: 13px;
    transition:
        opacity 0.16s,
        transform 0.16s;
    box-shadow: 0 4px 20px #233c3220;
}
.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.modal {
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    width: min(440px, calc(100% - 32px));
    box-shadow: 0 16px 80px #243d3320;
}
.modal::backdrop {
    background: #203b324a;
    backdrop-filter: blur(3px);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-header h2 {
    font-size: 19px;
}
.modal p {
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}
.modal-note {
    font-size: 12px;
    color: var(--muted);
    background: #f1f6f2;
    padding: 13px;
    border-radius: 9px;
    line-height: 1.8;
}
.app-shell[data-view="projects"] {
    grid-template-columns: 224px minmax(0, 1fr);
    grid-template-rows: 74px minmax(0, 1fr);
    min-height: 0;
}
.projects-topbar {
    grid-column: 2;
}
.app-shell[data-view="projects"] .sidebar-bottom {
    margin-top: auto;
}
.projects-topbar .breadcrumb > span {
    font-size: 13px;
}
.projects-workspace {
    grid-row: 2;
}
@media (min-width: 1200px) {
    .workspace.projects-workspace {
        padding-inline: 29px;
    }
}
.project-heading-row,
.project-heading-copy,
.project-create-actions,
.projects-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.project-heading-row,
.projects-toolbar {
    justify-content: space-between;
    flex-wrap: wrap;
}
.project-heading-row {
    margin-bottom: 16px;
}
#project-count.count-reserved {
    visibility: hidden;
}
#project-count {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.projects-toolbar {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.project-search {
    width: min(228px, 100%);
    min-width: 0;
    margin-left: auto;
}
.project-search input {
    width: 100%;
    min-height: 40px;
}
.projects-list {
    padding-inline: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.project-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.project-row:last-child {
    border-bottom: 0;
}
.project-cover {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 9px;
    object-fit: cover;
}
.project-row-copy {
    flex: 1;
    min-width: 0;
}
.project-row-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.project-row-name {
    display: block;
    text-align: left;
    min-height: 25px;
    padding: 0;
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}
.project-row-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}
.project-active {
    font-size: 11px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: none;
    white-space: nowrap;
}
.project-active .icon {
    width: 12px;
    height: 12px;
}
.project-row-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}
.project-mode-actions,
.project-utility-actions {
    display: flex;
    align-items: center;
}
.project-mode-actions {
    gap: 6px;
}
.project-utility-actions {
    gap: 2px;
}
.project-row-actions .btn {
    min-height: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0;
}
.project-row-actions .project-mode-button {
    width: 72px;
    gap: 5px;
}
.project-row-actions .project-mode-button .icon {
    width: 14px;
    height: 14px;
}
.project-play-button {
    color: var(--muted);
    border-color: var(--line-strong);
}
.project-play-button:hover {
    color: var(--ink);
    background: #f0f5f1;
}
.project-row-actions .icon-button {
    width: 32px;
    padding: 7px;
}
.project-utility-actions .icon {
    width: 17px;
    height: 17px;
}
.project-delete-button:hover:not(:disabled) {
    color: #a04431;
    background: #fcefe9;
}
.empty-projects {
    color: var(--muted);
    text-align: center;
    padding: 36px 14px;
}
.mode-switch {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 3px;
    border-radius: var(--r-sm);
    background: #eff4f0;
}
.mode-switch .btn {
    min-height: 32px;
    padding: 5px 10px;
    color: var(--muted);
}
.mode-switch .btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 3px #233c3210;
}
.mode-short {
    display: none;
}
.project-title {
    flex-shrink: 1;
    min-width: 0;
}
.performance-workspace {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.performance-hero {
    display: grid;
    grid-template-columns: minmax(120px, 260px) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}
.performance-cover {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r-lg);
}
.performance-cue {
    min-width: 0;
}
.performance-cue h1 {
    font-size: clamp(26px, 2.6vw, 42px);
    overflow-wrap: anywhere;
}
.performance-cue .eyebrow {
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.performance-time {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 22px 0 18px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}
.performance-time time {
    font-size: 32px;
    color: var(--ink);
}
.performance-notes {
    border-top: 1px solid var(--line-strong);
    padding-top: 26px;
}
.performance-notes p {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.performance-next {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.performance-next .btn {
    white-space: normal;
    text-align: right;
}
.performance-mixer .field-label .icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}
.fader-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
}
.performance-cue .inspector-toggle {
    margin-top: 18px;
}
.projects-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 15px;
}
@media (max-width: 640px) {
    .performance-hero {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 18px;
    }
    .projects-toolbar {
        flex-wrap: wrap;
    }
    .projects-list {
        padding-inline: 14px;
    }
    .project-search {
        flex: 0 1 175px;
    }
    .project-create-actions .btn {
        padding: 6px 9px;
    }
    .project-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .project-row-actions {
        width: 100%;
        padding-left: 0;
        justify-content: space-between;
        gap: 12px;
    }
    .project-row-actions .btn {
        min-height: 36px;
        height: 36px;
    }
    .project-row-actions .icon-button {
        width: 36px;
    }
}
.shortcut-list {
    margin: 20px 0;
}
.shortcut-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.shortcut-list dd {
    margin: 0;
}
kbd {
    font-family: inherit;
    border: 1px solid #d4dfd7;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 9px;
    background: #f8faf8;
    font-size: 12px;
}
.drop-overlay {
    position: fixed;
    inset: 12px;
    border: 2px dashed var(--accent);
    background: #edf9f1ef;
    z-index: 90;
    border-radius: 19px;
    display: grid;
    place-items: center;
    text-align: center;
    pointer-events: none;
}
.drop-overlay[hidden] {
    display: none;
}
.drop-overlay .icon {
    width: 45px;
    height: 45px;
    color: var(--accent);
    margin-bottom: 20px;
}
.drop-overlay h2 {
    font-size: 26px;
    margin-bottom: 9px;
}
.drop-overlay p {
    color: var(--muted);
}
.mobile-only {
    display: none;
}
.drawer-backdrop {
    display: none;
}
@media (min-width: 1600px) {
    .app-shell[data-view="projects"] {
        grid-template-columns: 245px minmax(0, 1fr);
    }
    .app-shell {
        grid-template-columns: 245px minmax(0, 1fr) 306px;
    }
    .workspace {
        padding: 32px 40px;
    }
    .timeline-panel {
        margin-top: 30px;
    }
    .library {
        margin-top: 32px;
    }
    .main-cover {
        width: 108px;
        height: 108px;
    }
    .track-row,
    .track-lane {
        min-height: 90px;
        height: 90px;
    }
    .clip {
        height: 66px;
    }
    .waveform {
        height: 36px;
    }
    .track-labels .envelope-scale,
    .envelope-area,
    .envelope {
        height: 96px;
    }
}
@media (max-width: 1199px) {
    .mode-full {
        display: none;
    }
    .mode-short {
        display: inline;
    }
    .app-shell {
        grid-template-columns: 198px minmax(0, 1fr) 246px;
    }
    .workspace {
        padding: 23px 20px;
    }
    .topbar {
        padding: 0 20px;
    }
    .save-state {
        gap: 3px;
        margin-right: 2px;
    }
    .save-state-label {
        position: absolute;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        overflow: hidden;
    }
    .save-state-compact {
        display: inline;
    }
    .inspector-heading {
        padding: 23px 17px 17px;
    }
    .inspector-section {
        padding-left: 17px;
        padding-right: 17px;
    }
    .brand {
        padding: 0 18px;
    }
    .cue-item {
        gap: 7px;
        padding: 11px 8px;
    }
    .cue-thumb {
        width: 30px;
        height: 38px;
    }
    .cue-number {
        display: none;
    }
    .dock {
        grid-template-columns: 205px minmax(230px, 1fr) 233px;
        gap: 17px;
        padding: 12px 20px;
    }
    .output-label,
    .output-divider {
        display: none;
    }
    .library-actions {
        gap: 6px;
    }
    .search-field input {
        width: 120px;
    }
    .asset-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .asset-actions .btn {
        min-height: 32px;
        padding: 2px 5px;
        font-size: 12px;
    }
    .asset-actions .asset-remove {
        width: auto;
    }
    .cue-overview {
        gap: 12px;
    }
    .cue-meta {
        gap: 8px;
    }
}
@media (max-width: 999px) {
    .app-shell[data-view="projects"] {
        grid-template-columns: 198px minmax(0, 1fr);
    }
    .app-shell {
        grid-template-columns: 198px minmax(0, 1fr);
    }
    .topbar {
        grid-column: 2;
    }
    .workspace {
        grid-column: 2;
    }
    .inspector {
        display: none;
    }
    .dock {
        grid-column: 1 / 3;
        grid-template-columns: 190px minmax(200px, 1fr) 160px;
    }
    .mobile-only.inspector-toggle {
        display: inline-flex;
    }
    .app-shell.inspector-open .inspector {
        display: block;
        position: fixed;
        inset: 0 0 96px auto;
        width: 300px;
        z-index: 32;
        box-shadow: -10px 0 40px #243c3210;
    }
    .app-shell.inspector-open .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #223b322b;
        z-index: 31;
        border: 0;
    }
    .inspector .drawer-close {
        display: inline-flex;
        margin-left: auto;
    }
    .inspector .desktop-only {
        display: none;
    }
    .output-volume {
        width: 54px !important;
    }
    .cue-description {
        max-width: 100%;
    }
}
@media (max-width: 760px) {
    .performance-hero {
        gap: 20px;
    }
    .performance-notes p {
        font-size: 16px;
    }
    .app-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 64px minmax(0, 1fr) 130px;
        min-height: 580px;
    }
    .app-shell[data-view="projects"] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 64px minmax(0, 1fr);
    }
    .app-shell[data-view="projects"].sidebar-open .sidebar {
        bottom: 0;
    }
    .projects-topbar {
        grid-column: 1;
    }
    .sidebar {
        display: none;
    }
    .topbar {
        grid-column: 1;
        padding: 0 15px;
        gap: 9px;
    }
    .breadcrumb {
        gap: 6px;
    }
    .crumb-label,
    .breadcrumb > .icon {
        display: none;
    }
    .project-title {
        font-size: 13px;
        max-width: 150px;
    }
    .top-actions {
        gap: 4px;
    }
    .top-actions .btn {
        min-height: 34px;
        font-size: 12px;
        padding: 7px;
    }
    .top-actions .button-secondary span {
        display: none;
    }
    .mobile-only {
        display: inline-flex;
    }
    .workspace {
        grid-column: 1;
        padding: 22px 16px 30px;
    }
    h1 {
        font-size: 23px;
    }
    .workspace-top {
        margin-bottom: 21px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-actions {
        gap: 0;
    }
    .header-actions .icon-button {
        width: 36px;
    }
    .main-cover {
        width: 76px;
        height: 85px;
        border-radius: 10px;
    }
    .cue-overview {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 22px;
    }
    .cue-overview-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .cue-description {
        font-size: 12px;
        margin-bottom: 9px;
    }
    .cue-meta {
        font-size: 12px;
        gap: 7px;
    }
    .panel-heading {
        padding: 14px 13px;
    }
    .panel-heading h2 {
        font-size: 15px;
    }
    .panel-heading .section-sub {
        display: none;
    }
    .timeline-tools .btn {
        font-size: 12px;
        padding: 4px 5px;
    }
    .track-heading {
        padding: 20px 5px 10px 10px;
        font-size: 12px;
    }
    .track-heading small {
        padding-left: 0;
        font-size: 12px;
    }
    .track-heading .icon {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }
    .ruler-label {
        font-size: 12px;
    }
    .automation {
        padding: 10px 13px 11px 10px;
    }
    .automation-head small {
        display: none;
    }
    .envelope-area {
        margin-left: 63px;
    }
    .automation-head {
        font-size: 12px;
    }
    .timeline-foot {
        padding: 9px 11px;
        font-size: 12px;
    }
    .timeline-foot > span:last-child {
        display: none;
    }
    .clip-caption {
        font-size: 12px;
        left: 4px;
    }
    .library-header {
        align-items: flex-start;
    }
    .library-title {
        display: block;
    }
    .library-title small {
        font-size: 12px;
    }
    .library-actions {
        gap: 6px;
    }
    .search-field input {
        width: 100px;
    }
    .library-actions .btn {
        font-size: 12px;
        padding: 7px;
    }
    .asset-row {
        padding: 10px;
        gap: 8px;
    }
    .asset-name {
        font-size: 12px;
    }
    .asset-duration {
        display: none;
    }
    .asset-actions .btn {
        font-size: 12px;
    }
    .dock {
        grid-column: 1;
        grid-row: 3;
        position: relative;
        grid-template-columns: 1fr auto;
        grid-template-rows: 41px 40px;
        gap: 9px 10px;
        padding: 11px 16px;
        align-items: center;
    }
    .now-playing {
        gap: 8px;
    }
    .dock-cover {
        width: 35px;
        height: 35px;
        border-radius: 7px;
    }
    .now-title {
        font-size: 12px;
    }
    .now-meta {
        font-size: 12px;
        margin-top: 3px;
    }
    .transport-center {
        display: contents;
    }
    .transport {
        grid-column: 2;
        grid-row: 1;
        gap: 7px;
    }
    .transport .icon-button {
        width: 26px;
        min-height: 29px;
        padding: 4px;
    }
    .transport-play {
        width: 35px;
        min-height: 35px;
    }
    .seek-row {
        grid-column: 1;
        grid-row: 2;
        gap: 7px;
        margin: 0;
    }
    .output-controls {
        grid-column: 2;
        grid-row: 2;
    }
    .sound-control {
        min-height: 36px;
        font-size: 12px;
        padding: 6px 7px;
    }
    .output-volume {
        width: 43px !important;
    }
    .app-shell.sidebar-open .sidebar {
        display: flex;
        position: fixed;
        inset: 0 auto 130px 0;
        width: 245px;
        z-index: 32;
        box-shadow: 10px 0 40px #243c3210;
    }
    .app-shell.sidebar-open .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #223b322b;
        z-index: 31;
        border: 0;
    }
    .app-shell.inspector-open .inspector {
        bottom: 130px;
        width: min(300px, 85vw);
    }
    .toast {
        bottom: 145px;
        font-size: 12px;
    }
    .modal {
        padding: 21px;
    }
}
@media (pointer: coarse) {
    .time-stepper {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        height: 46px;
    }
    .recording-modal .btn,
    .asset-selection-bar .btn {
        min-width: 44px;
        min-height: 44px;
    }
    .project-row-actions .btn {
        min-height: 44px;
        height: 44px;
    }
    .project-row-actions .icon-button {
        min-width: 44px;
        width: 44px;
    }
    .project-row-actions {
        flex-wrap: wrap;
    }
    :is(.header-actions, .timeline-tools, .sidebar-heading, .transport, .asset-actions) .btn,
    .drawer-close,
    .sound-control,
    .track-tab,
    .track-clear {
        min-width: 44px;
        min-height: 44px;
    }
    .transport-play {
        width: 44px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
    .toast {
        transition: none;
    }
}

.timeline-body {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    padding-right: 20px;
}
.track-labels {
    border-right: 1px solid var(--line);
}
.timeline-body .automation {
    padding: 0 0 11px;
}
.timeline-body .automation-head {
    height: 36px;
    margin: 0;
}
.track-labels .automation-head {
    display: grid;
    align-content: center;
    padding-left: 10px;
    line-height: 15px;
}
.timeline-body .envelope-area {
    margin: 0;
}
.envelope-scale {
    height: 76px;
    position: relative;
}
.envelope-scale .envelope-label {
    right: 8px;
}
.timeline-inner .waveform {
    left: 0;
    mask-image: repeating-linear-gradient(to right, #000 0 2px, transparent 2px 3px);
}
.timeline-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.timeline-panel .panel-heading,
.timeline-tools {
    flex-wrap: wrap;
}
@media (max-width: 760px) {
    .timeline-body {
        grid-template-columns: 73px minmax(0, 1fr);
        padding-right: 13px;
    }
}

/* Local multi-user panel uses the existing workbench system. */
.multiuser-modal {
    width: min(680px, calc(100% - 32px));
    max-height: 90vh;
    overflow: auto;
}
.multiuser-modal .field {
    display: block;
    margin: 14px 0 8px;
}
.multiuser-modal .btn {
    margin: 4px 6px 4px 0;
}
.multiuser-modal code {
    display: block;
    overflow-wrap: anywhere;
    font-size: 11px;
}
.multiuser-modal .sync-member {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.multiuser-modal .sync-member select {
    width: 120px;
}
.multiuser-modal .sync-release {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.multiuser-modal .sync-release small {
    display: block;
    color: var(--muted);
}

#account-loading {
    display: none;
}
body[data-account-gated="true"]:has(#account-gate[hidden]) #account-loading,
body[data-account-gated="true"] #user-root > #account-loading:only-child {
    display: grid;
    height: 100dvh;
    place-items: center;
    color: var(--muted);
}
body[data-account-gated="true"] > :not(#user-root):not(noscript),
body[data-account-gated="true"] #user-root > :not(#account-gate):not(#account-loading) {
    display: none !important;
}
#account-gate:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    height: 100dvh;
    overflow: auto;
    background: #fafbf8;
}
.account-art {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 82px);
    color: white;
    background:
        linear-gradient(180deg, #102e2a91, transparent 45%, #092a21d9),
        url("../../assets/workbench/forest-cover.png") center / cover;
}
.account-art strong {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    letter-spacing: -0.04em;
}
.account-art span {
    font-size: clamp(28px, 3.4vw, 56px);
    font-weight: 600;
}
.account-form {
    align-self: safe center;
    justify-self: center;
    width: min(360px, calc(100% - 48px));
    padding: 32px 0;
}
.account-form h1 {
    font-size: 32px;
    letter-spacing: -0.04em;
}
#account-status {
    color: var(--muted);
    min-height: 1.5em;
}
.account-form label {
    display: block;
    margin: 20px 0;
    font-weight: 600;
}
.account-form input {
    width: 100%;
    margin-top: 6px;
    min-height: 46px;
}
#account-login,
#account-register {
    width: 100%;
    min-height: 46px;
    margin: 2px 0 12px;
}
#account-switch {
    color: var(--accent);
    text-decoration: none;
}
#account-switch:hover {
    background: var(--mint);
    border-color: var(--accent);
}
#account-retry {
    margin-left: 8px;
}
.account-help {
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
@media (max-width: 700px) {
    #account-gate:not([hidden]) {
        grid-template-columns: 1fr;
        grid-template-rows: 144px 1fr;
    }
    .account-art {
        padding: 20px 24px;
    }
    .account-form {
        align-self: start;
    }
}
#account-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    overflow-wrap: anywhere;
    font-size: 12px;
}
#account-banner[hidden] {
    display: none;
}

.account-form label:has(+ small:not([hidden])) {
    margin-bottom: 0;
}
.account-form small {
    display: block;
    margin: 5px 0 18px;
    color: var(--muted);
    line-height: 1.45;
}
.account-form input[aria-invalid="true"] {
    border-color: #a03428;
}
.account-form #account-status[data-error] {
    color: #94382a;
}

.account-form [hidden] {
    display: none !important;
}

.share-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: 86dvh;
    overflow: auto;
}
.share-dialog [hidden] {
    display: none !important;
}
.project-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
}
.project-tabs .btn {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 6px 2px;
    color: var(--muted);
}
.project-tabs [aria-pressed="true"] {
    color: var(--accent);
    border-bottom-color: currentColor;
}
.project-share-records .share-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.share-form .field,
.share-record .field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}
.share-dialog .field :is(input, select) {
    width: 100%;
    min-height: 40px;
}
.share-form [data-submit] {
    margin-top: 10px;
}
.share-dialog [role="status"] {
    color: var(--ink);
}
.share-dialog [role="status"]:empty {
    margin: 0;
}
.share-record {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.share-record header,
.share-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.share-record header {
    justify-content: space-between;
}
.share-record header span,
.share-record small,
.share-controls [data-device-status] {
    color: var(--muted);
    font-size: 12px;
}
.share-record small {
    user-select: text;
}
.share-controls {
    margin-top: 8px;
}
.share-controls summary {
    cursor: pointer;
}
.share-controls details[open] {
    width: 100%;
}

.project-row-actions [data-action="personal-share"] {
    padding-inline: 10px;
    margin-right: 4px;
}

.source-mark {
    display: inline-block;
    border-radius: 4px;
    background: var(--canvas);
    padding: 1px 5px;
    margin-right: 5px;
    font-size: 11px;
}
.project-share-records .share-record {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    margin-top: 8px;
}
.projects-list:empty {
    display: none;
}
.asset-create-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.asset-workspace .asset-workspace-top {
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: wrap;
}
.asset-library .asset-filters {
    margin-bottom: 6px;
    gap: 8px;
}
.asset-filters .search-field {
    margin-left: auto;
}
.asset-selection-bar {
    flex-wrap: wrap;
    padding: 6px 0 10px;
    gap: 8px;
    justify-content: flex-start;
}
.asset-selection-bar .asset-target {
    margin: 0;
}
.asset-selection-bar .bulk-asset-actions {
    margin-left: auto;
}
.asset-selection-bar .bulk-asset-actions:has(button:disabled):not(:has(button:enabled)) {
    display: none;
}
@media (max-width: 700px) {
    .asset-filters .search-field {
        margin-left: 0;
    }
}
.backup-menu {
    position: relative;
}
.backup-menu summary {
    cursor: pointer;
    list-style: none;
}
.backup-menu summary::-webkit-details-marker {
    display: none;
}
.backup-menu summary::after {
    content: "⌄";
}
.backup-menu > div {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 12;
    display: grid;
    padding: 4px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-sm);
    box-shadow: 0 4px 16px #233c3214;
}
.backup-menu > div button {
    min-width: 126px;
    white-space: nowrap;
    justify-content: center;
}
.backup-menu summary {
    border: 1px solid var(--line);
    background: var(--surface);
}
.account-menu {
    position: relative;
    width: 100%;
}
.account-menu summary {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 6px 3px;
    list-style: none;
    cursor: pointer;
    justify-content: flex-start;
}
.account-menu summary::-webkit-details-marker {
    display: none;
}
.account-menu summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-menu summary .icon {
    margin-left: auto;
    width: 14px;
}
.account-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--accent);
    background: #dcece2;
}
.account-menu > div {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: 0 4px 16px #233c3214;
}
.account-menu .account-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
}
.account-identity strong {
    color: var(--ink);
}
.account-menu #account-logout {
    border-top: 1px solid var(--line);
    border-radius: 0;
    margin-top: 3px;
}
.account-menu .button-text {
    justify-content: flex-start;
}
