/* syncConflicts.css — the "two machines disagreed" popup.
   Self-contained and namespaced; owns its own overlay rather than borrowing a
   shared modal so it can never fight the player for the same layer. */

.sc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
}

.sc-overlay[hidden] { display: none; }

.sc-card {
    background: var(--panel-bg, #1c1c22);
    border: 1px solid var(--border, #33333d);
    border-radius: 10px;
    width: min(720px, calc(100vw - 48px));
    max-height: min(640px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    color: var(--text, #e8e8ee);
}

.sc-head { padding: 20px 24px 12px; border-bottom: 1px solid var(--border, #33333d); }
.sc-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}
.sc-title { margin: 0; font-size: 17px; font-weight: 600; }
.sc-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.5; opacity: 0.8; }

.sc-list { overflow-y: auto; padding: 8px 16px; flex: 1 1 auto; }

.sc-item {
    border: 1px solid var(--border, #33333d);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 10px 0;
}
.sc-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sc-item-meta { font-size: 12px; opacity: 0.65; margin-bottom: 10px; }

.sc-field { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; margin-bottom: 6px; }

.sc-choices { display: flex; gap: 10px; flex-wrap: wrap; }

.sc-choice {
    flex: 1 1 220px;
    min-width: 0;
    text-align: left;
    padding: 9px 11px;
    border-radius: 7px;
    border: 1px solid var(--border, #33333d);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
.sc-choice:hover:not(:disabled) { border-color: var(--accent, #6ea8fe); }
.sc-choice:disabled { opacity: 0.45; cursor: default; }
.sc-choice b { display: block; font-size: 11px; font-weight: 600; opacity: 0.65; margin-bottom: 3px; }
.sc-choice span {
    display: block;
    font-size: 13px;
    word-break: break-word;
    max-height: 3.2em;
    overflow: hidden;
}

.sc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border, #33333d);
}
.sc-foot-note { font-size: 12px; opacity: 0.6; }

.sc-btn {
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid var(--border, #33333d);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}
.sc-btn:hover { border-color: var(--accent, #6ea8fe); }
.sc-btn-primary {
    border-color: var(--accent, #6ea8fe);
    background: var(--accent, #6ea8fe);
    color: #10101a;
    font-weight: 600;
}
.sc-btn:disabled { opacity: 0.45; cursor: default; }
/* A failed optimistic conflict resolution remains visible for retry. */
.sc-error { color: #f19b94; font-size: 12px; margin: 10px 0 0; }
