.locations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.locations-header {
    margin-bottom: 2rem;
}

.locations-container .header-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
}

.locations-header h1 {
    font-size: 2.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.locations-header p {
    font-size: 1.05rem;
    color: #7f8c8d;
    margin: 0;
}

.locations-container .studio-selector {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.locations-container .studio-selector label {
    font-weight: 600;
    color: #34495e;
    margin: 0;
}

.locations-container .studio-select-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.locations-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.locations-actions-bar .actions-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.locations-actions-bar .actions-left h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.locations-actions-bar .actions-right {
    display: flex;
    gap: 0.5rem;
}

.studio-default-bid {
    font-size: 0.85rem;
    color: #5a6c7d;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.studio-default-bid code {
    background: transparent;
    color: #1e3a8a;
    font-weight: 600;
}

.locations-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.locations-banner.banner-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.locations-banner.banner-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.locations-banner.banner-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.locations-banner .btn-dismiss {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: 0.7;
}

.locations-table-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
}

.locations-table thead th {
    background: #f8fafc;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}

.locations-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.locations-table tbody tr:last-child td {
    border-bottom: none;
}

.locations-table .loc-name-cell {
    font-weight: 600;
    color: #2c3e50;
}

.locations-table .loc-id-cell {
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9rem;
}

.bid-override {
    background: #eff6ff;
    color: #1e3a8a;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.bid-inherits {
    color: #94a3b8;
    font-style: italic;
}

/* ─────────── Location form + bulk import modal ─────────── */

.location-modal .modal-content {
    max-width: 480px;
}

.location-modal .modal-content-wide {
    max-width: 760px;
}

.location-modal .field-note {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.bulk-import-help {
    color: #475569;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.bulk-import-help code {
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.bulk-textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9rem;
    width: 100%;
    resize: vertical;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0 1rem;
}

.bulk-counts {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.bulk-counts .count-valid   { color: #065f46; font-weight: 600; }
.bulk-counts .count-invalid { color: #991b1b; font-weight: 600; }

.bulk-preview-wrapper {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.bulk-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bulk-preview-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
}

.bulk-preview-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.bulk-preview-table tr.row-invalid  { background: #fef2f2; }
.bulk-preview-table tr.row-success  { background: #ecfdf5; }
.bulk-preview-table tr.row-failed   { background: #fef2f2; }

.status-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pill.status-ok      { background: #d1fae5; color: #065f46; }
.status-pill.status-err     { background: #fee2e2; color: #991b1b; }
.status-pill.status-pending { background: #e0e7ff; color: #3730a3; }

.bulk-summary {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bulk-summary.summary-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.bulk-summary.summary-mixed   { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.bulk-summary.summary-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ----------- Sync from Provider modal ----------- */

.sync-provider-help {
    color: #475569;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.sync-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sync-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.sync-summary-card .card-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sync-summary-card .card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.sync-summary-card.card-new       { border-color: #6ee7b7; background: #ecfdf5; }
.sync-summary-card.card-updated   { border-color: #fcd34d; background: #fffbeb; }
.sync-summary-card.card-unchanged { border-color: #cbd5e1; background: #f1f5f9; }

.bulk-preview-table tr.row-updated { background: #fffbeb; }
.bulk-preview-table tr td.empty-row {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 1.25rem;
}

.status-pill.status-new       { background: #d1fae5; color: #065f46; }
.status-pill.status-updated   { background: #fef3c7; color: #92400e; }
.status-pill.status-unchanged { background: #e2e8f0; color: #475569; }

/* Accent button: visually distinct from primary 'Add Location' so the
   one-click discovery affordance pops on empty-state studios. */
.btn.btn-accent {
    background: #7c3aed;
    color: #fff;
    border: 1px solid #6d28d9;
}
.btn.btn-accent:hover:not(:disabled)  { background: #6d28d9; }
.btn.btn-accent:disabled              { background: #c4b5fd; border-color: #c4b5fd; cursor: not-allowed; opacity: 0.7; }
