.dsh-install {
    --dsh-card-bg: #f8fbfa;
    --dsh-card-border: #e0e9e5;
    --dsh-title: #263e35;
    --dsh-muted: #73867d;
    --dsh-accent: #238360;
    min-width: 0;
    margin: 26px 0;
    padding: 20px;
    border: 1px solid var(--dsh-card-border);
    border-radius: 16px;
    background: var(--dsh-card-bg);
    box-shadow: 0 8px 24px -22px rgba(20, 55, 40, .4);
}

.dsh-install .dsh-install-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dsh-install .dsh-install-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(35, 131, 96, .12);
    border-radius: 11px;
    background: rgba(35, 131, 96, .07);
    color: var(--dsh-accent);
}

.dsh-install .dsh-install-icon svg {
    width: 21px;
    height: 21px;
}

.dsh-install .dsh-install-title {
    color: var(--dsh-title);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .02em;
}

.dsh-install .dsh-install-subtitle {
    margin-top: 3px;
    color: var(--dsh-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* The theme sets scrolling on all article buttons; keep this command area wrapped. */
#post-content .dsh-install .dsh-install-copy {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 16px 17px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(120deg, #182b26, #131f25);
    color: #deeee7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    font: inherit;
    text-align: left;
    white-space: normal;
    cursor: copy;
    -webkit-user-select: text;
    user-select: text;
}

.dsh-install .dsh-install-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #8aa79a;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
}

.dsh-install .dsh-install-shell::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: #6dd6a8;
    vertical-align: 2px;
}

.dsh-install .dsh-install-action {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(146, 217, 183, .17);
    border-radius: 6px;
    background: rgba(146, 217, 183, .08);
    color: #b2e8cd;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    transition: background .15s ease, border-color .15s ease;
}

.dsh-install .dsh-install-action svg {
    width: 12px;
    height: 12px;
}

.dsh-install .dsh-install-copy:hover .dsh-install-action {
    border-color: rgba(146, 217, 183, .4);
    background: rgba(146, 217, 183, .18);
}

#post-content .dsh-install .dsh-install-copy:focus-visible {
    outline: 2px solid var(--dsh-accent);
    outline-offset: 4px;
}

#post-content .dsh-install .dsh-install-command {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #deeee7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0;
    text-shadow: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dsh-install .dsh-install-status {
    display: block;
    min-height: 18px;
    margin-top: 10px;
    color: var(--dsh-muted);
    font-size: 11px;
    line-height: 1.65;
}

html.theme-dark .dsh-install {
    --dsh-card-bg: #222c29;
    --dsh-card-border: #35443d;
    --dsh-title: #dcebe3;
    --dsh-muted: #9baea3;
    --dsh-accent: #86d5ae;
    box-shadow: none;
}

@media (max-width: 480px) {
    .dsh-install {
        margin: 22px 0;
        padding: 16px;
        border-radius: 13px;
    }

    .dsh-install .dsh-install-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    #post-content .dsh-install .dsh-install-copy {
        padding: 12px 13px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dsh-install .dsh-install-action {
        transition: none;
    }
}
