/* ============================================
   Docs / Install Panel — Refined
   ============================================ */

.docs-mode-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Toolbar grid ---- */
.docs-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.docs-toolbar-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.docs-toolbar-card-wide {
    grid-column: span 8;
}

/* ---- Summary strip ---- */
.docs-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
}

.docs-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.docs-summary-item-wide {
    grid-column: span 2;
}

.docs-summary-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* ---- Install rows ---- */
.docs-install-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-install-row {
    padding: 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.docs-command-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.docs-command-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-command-row-secondary {
    margin-top: 6px;
}

.docs-command-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
}

.docs-command-box .install-command {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    overflow-x: auto;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-family-mono);
    user-select: all;
}

.docs-command-prefix {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-right: 10px;
    border-radius: 999px;
    border: 1px solid rgba(200,121,99,0.18);
    background: var(--color-brand-light);
    color: var(--color-brand-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.docs-command-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.docs-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--color-border-soft);
    background: var(--color-surface-alt);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.docs-copy-btn {
    flex-shrink: 0;
    min-width: 64px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ---- Help section ---- */
.docs-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.docs-note-card {
    padding: 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.docs-note-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.docs-help-list {
    margin: 0;
}

.docs-static-list {
    margin: 0;
    padding-left: 18px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.docs-static-list li + li {
    margin-top: 8px;
}

.docs-section-note {
    margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .docs-toolbar-card,
    .docs-toolbar-card-wide {
        grid-column: span 12;
    }

    .docs-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-summary-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .docs-summary-strip,
    .docs-help-grid {
        grid-template-columns: 1fr;
    }

    .docs-summary-item-wide {
        grid-column: span 1;
    }

    .docs-command-box {
        flex-direction: column;
        align-items: stretch;
    }

    .docs-copy-btn {
        width: 100%;
    }
}
