.usage-demo {
    margin: 36px 0 0;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.usage-demo-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.usage-demo-heading .eyebrow {
    margin: 0;
}

.usage-demo-heading > span,
.usage-demo figcaption,
.demo-help {
    color: var(--muted);
    font-size: 12px;
}

.usage-demo figcaption {
    margin-top: 24px;
}

.usage-button,
.direction-buttons button,
.clipboard-demo-toolbar select {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #57574d;
    border-radius: 0;
    background: #080808;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.usage-button,
.direction-buttons button {
    cursor: pointer;
}

.usage-button:enabled:hover,
.direction-buttons button:enabled:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.usage-button:disabled,
.direction-buttons button:disabled {
    opacity: 0.4;
    cursor: default;
}

.usage-button:focus-visible,
.direction-buttons button:focus-visible,
.clipboard-demo-toolbar select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.desk-walkthrough {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 36px;
}

.desk-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(130px, auto));
    gap: 14px;
}

.desk-station {
    min-width: 0;
    padding: 16px;
    border: 1px solid #42423b;
    background: #080808;
}

.desk-station span,
.desk-station strong,
.desk-station small {
    display: block;
}

.desk-station span {
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
}

.desk-station strong {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.desk-station small {
    margin-top: 16px;
    color: var(--muted);
    font-size: 10px;
}

[data-station="1"] [data-station-id="1"],
[data-station="2"] [data-station-id="2"],
[data-station="3"] [data-station-id="3"] {
    border-color: var(--accent);
}

[data-station="1"] [data-station-id="1"] small,
[data-station="2"] [data-station-id="2"] small,
[data-station="3"] [data-station-id="3"] small {
    color: var(--accent);
}

.desk-map-note {
    align-self: center;
    margin: 0;
    color: var(--accent);
    text-align: center;
    font-size: 22px;
}

.desk-map-note span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.desk-pointer {
    position: absolute;
    top: 76%;
    left: 26%;
    color: var(--accent);
    pointer-events: none;
    transition: top 650ms ease, left 650ms ease;
}

[data-station="1"] .desk-pointer {
    top: 24%;
}

[data-station="3"] .desk-pointer {
    left: 77%;
}

.direction-buttons:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.direction-buttons [data-direction="up"] {
    grid-column: 2;
}

.direction-buttons [data-direction="left"] {
    grid-row: 2;
    grid-column: 1;
}

.direction-buttons [data-direction="down"] {
    grid-row: 2;
    grid-column: 2;
}

.direction-buttons [data-direction="right"] {
    grid-row: 2;
    grid-column: 3;
}

.direction-buttons span {
    display: block;
    font-size: 10px;
}

.demo-help {
    margin: 18px 0 0;
}

.shortcut-example {
    width: min(100%, 310px);
}

.shortcut-example .usage-button {
    width: 100%;
    margin-block: 18px 14px;
}

.shortcut-example .demo-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

[data-step="0"] [data-key-step="0"],
[data-step="1"] [data-key-step="1"],
[data-step="2"] [data-key-step="2"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #000;
}

.clipboard-demo-toolbar:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 13px;
}

.clipboard-demo-toolbar select {
    max-width: 100%;
}

.transfer-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style-position: inside;
    color: var(--muted);
    font-size: 12px;
}

.transfer-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.transfer-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid #42423b;
    background: #080808;
}

.transfer-panel .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
}

.transfer-panel strong,
.transfer-panel > span {
    display: block;
}

.transfer-panel strong {
    font-size: 16px;
    font-weight: 400;
}

.transfer-panel > span {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

[data-step="0"] .transfer-source,
[data-step="1"] .transfer-menu,
[data-step="3"] .transfer-destination,
[data-step="accepted"] .transfer-destination {
    border-color: var(--accent);
}

[data-step="0"] .transfer-stages li:nth-child(1),
[data-step="1"] .transfer-stages li:nth-child(2),
[data-step="2"] .transfer-stages li:nth-child(3),
[data-step="3"] .transfer-stages li:nth-child(4),
[data-step="accepted"] .transfer-stages li:nth-child(4) {
    color: var(--accent);
}

.transfer-track {
    position: relative;
    height: 1px;
    margin-block: 26px;
    background: #42423b;
}

.transfer-track span {
    position: absolute;
    top: -3px;
    left: 0;
    width: 12px;
    height: 7px;
    background: var(--accent);
    opacity: 0;
    transition: left 750ms ease;
}

[data-step="2"] .transfer-track span {
    left: calc(100% - 12px);
    opacity: 1;
}

.clipboard-demo > .demo-status {
    margin-bottom: 0;
}

.clipboard-demo > .usage-button {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .desk-walkthrough {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .direction-buttons {
        max-width: 310px;
    }
}

@media (max-width: 680px) {
    .usage-demo {
        padding: 20px 16px;
    }

    .usage-demo-heading {
        gap: 8px;
    }

    .desk-map {
        gap: 10px;
    }

    .desk-station {
        padding: 12px;
    }

    .desk-station strong {
        font-size: 12px;
    }

    .transfer-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .transfer-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .transfer-panel {
        padding: 16px;
    }

    .transfer-panel .eyebrow {
        margin-bottom: 12px;
    }
}
