/**
 * cockpit-skeleton.css — P52 · Synthesis Skeleton Cockpit
 *
 * Follows the same design language as cockpit-evidence.css:
 * - .sc-* namespace (Skeleton Cockpit)
 * - Fixed-width panel injected above the scroll area
 * - Crisp monochrome palette + accent tints for layers
 */

/* ── Mount / overlay ──────────────────────────────────────────────────────── */

.sc-mount {
    margin: 0 0 16px 0;
}

/* ── Cockpit shell ────────────────────────────────────────────────────────── */

.sc-cockpit {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #1a202c;
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.sc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sc-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-header-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.sc-header-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #94a3b8;
    padding: 0 4px;
    line-height: 1;
}
.sc-header-close:hover { color: #475569; }

/* ── Credit estimate ──────────────────────────────────────────────────────── */

.sc-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
    font-size: 13px;
    font-weight: 500;
}

.sc-estimate-credits {
    color: #15803d;
    font-weight: 700;
}

.sc-estimate-sep {
    color: #94a3b8;
}

.sc-estimate-time {
    color: #64748b;
}

/* ── Argument map ─────────────────────────────────────────────────────────── */

.sc-arg-map {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.sc-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.sc-arg-layers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-arg-layer {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.sc-layer-primary     { background: #eff6ff; border-color: #bfdbfe; }
.sc-layer-fallback    { background: #fff7ed; border-color: #fed7aa; }
.sc-layer-alt         { background: #f5f3ff; border-color: #ddd6fe; }
.sc-layer-drop        { background: #fef2f2; border-color: #fecaca; }

.sc-arg-layer-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: #475569;
}

.sc-arg-position {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 6px;
}

.sc-arg-authorities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.sc-authority-chip {
    display: inline-block;
    padding: 1px 6px;
    background: #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    color: #475569;
}

.sc-arg-conclusion {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* ── Section list ─────────────────────────────────────────────────────────── */

.sc-sections {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.sc-section-count {
    font-weight: 400;
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
}

.sc-section-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
}

.sc-sec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sc-drag-handle {
    color: #cbd5e1;
    cursor: grab;
    font-size: 14px;
    flex-shrink: 0;
}

.sc-sec-title-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #1a202c;
    background: #ffffff;
    min-width: 0;
}
.sc-sec-title-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

.sc-layer-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 2px 4px;
    flex-shrink: 0;
}

.sc-layer-select {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}
.sc-layer-select:focus { outline: none; }

.sc-sec-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #94a3b8;
    padding: 0 2px;
    flex-shrink: 0;
}
.sc-sec-remove:hover { color: #ef4444; }

.sc-sec-rationale {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 6px;
    font-style: italic;
}

.sc-planned-cites {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.sc-cites-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-right: 4px;
}

.sc-cite-chip {
    display: inline-block;
    padding: 1px 6px;
    background: #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    color: #475569;
    font-family: monospace;
    cursor: default;
}

.sc-empty {
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
}

.sc-btn-add-section {
    margin-top: 8px;
    background: none;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-family: inherit;
}
.sc-btn-add-section:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

/* ── Action bar ───────────────────────────────────────────────────────────── */

.sc-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sc-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.sc-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}
.sc-btn-primary:hover { background: #1d4ed8; }

.sc-btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}
.sc-btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }

.sc-btn-tertiary {
    background: none;
    color: #64748b;
    border-color: transparent;
}
.sc-btn-tertiary:hover { color: #374151; }

/* ── Loading state ────────────────────────────────────────────────────────── */

.sc-loading {
    color: #64748b;
    font-size: 13px;
    padding: 6px 4px;
    font-style: italic;
}
