/* 진행상황 초안 검토 페이지 — base.css 디자인 시스템 변수 사용 */
body {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 2rem 1rem;
}

.tracking-container {
    max-width: 780px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.5rem;
}

.pending-count {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

.empty-state {
    background: hsl(var(--card));
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.draft-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.draft-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.draft-card.done {
    opacity: 0;
    transform: translateY(-8px);
}

.draft-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.draft-project {
    font-weight: 600;
    font-size: 1.05rem;
}

.draft-date {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.draft-sources {
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.draft-card textarea,
.draft-card input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    resize: vertical;
}

.draft-card textarea:focus,
.draft-card input[type="text"]:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.draft-card .form-group {
    margin-bottom: 0.9rem;
}

.draft-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: hsl(var(--foreground));
}

.draft-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.draft-msg {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    text-align: right;
    min-height: 1rem;
}

.draft-msg.success { color: hsl(var(--positive-strong)); }
.draft-msg.error { color: hsl(var(--destructive)); }

@media (max-width: 560px) {
    .row-2 { grid-template-columns: 1fr; }
    .draft-head { flex-direction: column; }
    .draft-sources { white-space: normal; }
}
