/* Medical Conference Presentation Trainer — slide revision workspace styles.
   Kept separate from styles.css to respect the 500-line-per-file preference. */

.revise {
    margin-top: 18px;
    padding: 16px 16px 6px;
    background: #f7faff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.revise h3 { margin: 0 0 4px; }
.revise-round {
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.revise-overall {
    margin: 12px 0;
    padding: 12px 14px;
    background: #eef4fc;
    border-left: 3px solid var(--brand);
    border-radius: 8px;
}
.revise-overall p { margin: 4px 0 0; }

/* ---------- editable slide cards ---------- */
.slide-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0;
}
.slide-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.slide-no { font-weight: 700; font-size: .9rem; color: var(--brand-dark); }
.slide-meta { font-size: .78rem; color: var(--muted); }

.slide-edit {
    min-height: 2.4em;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfe;
    font: inherit;
    color: var(--ink);
}
.slide-edit:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 95, 174, .12);
    background: #fff;
}
.slide-edit:empty::before {
    content: '(no text on this slide — add your own) 此页无文字，可自行补充';
    color: var(--muted);
}

/* ---------- per-slide assistant comments ---------- */
.slide-sugg:empty { display: none; }
.sugg-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f4f6f9;
    border-left: 3px solid var(--ok);
    border-radius: 6px;
    font-size: .92rem;
}
.sugg-comment { margin: 0 0 4px; font-weight: 600; }
.sugg-comment-zh { margin: 0 0 6px; }
.sugg-rewrite {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}
.sugg-rewrite-label {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ok);
    margin-bottom: 4px;
}
.sugg-rewrite-text {
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    border: 1px solid var(--ok-line);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

/* ---------- controls ---------- */
.revise-actions { margin-top: 14px; }
.revise-ask-row { margin: 12px 0; }
.revise-ask-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
#revise-request {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    font: inherit;
    background: #fbfcfe;
    resize: vertical;
}
.revise-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.revise-status.ok { color: var(--ok); }
.revise-status.bad { color: var(--warn); }

@media (max-width: 620px) {
    .revise-buttons { flex-direction: column; }
    .revise-buttons .btn { width: 100%; justify-content: center; }
}
