/* 분기 자료·로그인 */
.en { color: hsl(var(--muted-foreground)); font-weight: 400; font-size: 0.85em; }
.muted { color: hsl(var(--muted-foreground)); font-size: 12.5px; }
.section-title { font-size: 18px; margin: 28px 0 10px; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

.login-wrap { display: flex; justify-content: center; padding-top: 10vh; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { font-size: 22px; margin: 0; }
.login-card form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.login-card input { padding: 9px 10px; border: 1px solid hsl(var(--border)); border-radius: 6px; font: inherit; }

.closing-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.quarter-form { display: flex; gap: 8px; align-items: center; }
.quarter-form select, .check-form select, .check-form input, .request-form input, .request-form textarea,
.request-reply textarea, .request-reply select {
    padding: 6px 8px; border: 1px solid hsl(var(--border)); border-radius: 6px; font: inherit;
}
.deadline { font-size: 14px; }
.deadline .dday { margin-left: 8px; font-weight: 800; color: hsl(0 72% 45%); font-variant-numeric: tabular-nums; }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }

.checklist { display: flex; flex-direction: column; border: 1px solid hsl(var(--border)); border-radius: 10px; overflow: hidden; }
.check-row { padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); }
.check-row:last-child { border-bottom: 0; }
.check-main { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; }
.check-no { font-weight: 700; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.check-status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.check-status.done { background: hsl(142 76% 94%); color: hsl(142 76% 28%); }
.check-status.partial { background: hsl(38 92% 93%); color: hsl(30 90% 35%); }
.check-status.not_ready { background: hsl(0 84% 95%); color: hsl(0 72% 42%); }
.check-status.not_applicable { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); }
.check-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 38px; }
.check-form input[type=text] { flex: 1 1 280px; }
.memo { font-size: 13px; margin-top: 4px; }

.request-form { display: grid; grid-template-columns: 1fr 160px; gap: 8px; margin-bottom: 14px; }
.request-form textarea { grid-column: 1 / -1; }
.request-form button { grid-column: 1 / -1; justify-self: start; }
.requests { display: flex; flex-direction: column; gap: 10px; }
.request-card { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px 14px; }
.request-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.request-detail { margin: 6px 0 0; font-size: 13.5px; }
.request-reply { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.request-reply textarea { flex: 1 1 320px; }
.request-response { margin-top: 8px; font-size: 13.5px; }
.req-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: hsl(var(--secondary)); }
.req-status.open { background: hsl(0 84% 95%); color: hsl(0 72% 42%); }
.req-status.in_progress { background: hsl(38 92% 93%); color: hsl(30 90% 35%); }
.req-status.answered, .req-status.closed { background: hsl(142 76% 94%); color: hsl(142 76% 28%); }

.table-scroll { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
.data-table th { background: hsl(var(--secondary)); font-size: 12px; }
@media (max-width: 640px) { .request-form { grid-template-columns: 1fr; } }

/* 가독성 정리 (2026-09-19) */
.progress-wrap { margin: 4px 0 14px; }
.progress-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: hsl(var(--secondary)); gap: 2px; }
.progress-bar .seg.done { background: #1baf7a; }
.progress-bar .seg.not_applicable { background: #9ca3af; }
.progress-bar .seg.partial { background: #eda100; }
.progress-bar .seg.not_ready { background: #e34948; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; }
.progress-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.progress-legend .dot.done { background: #1baf7a; } .progress-legend .dot.not_applicable { background: #9ca3af; }
.progress-legend .dot.partial { background: #eda100; } .progress-legend .dot.not_ready { background: #e34948; }
.check-edit { margin: 6px 0 0 38px; }
.check-edit summary { cursor: pointer; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.check-edit .check-form { margin-left: 0; }
.memo { margin-left: 38px; }

/* 처음 보는 사람용 안내 */
.howto { margin: 8px 0 28px; padding: 20px 22px; border-radius: 12px; background: hsl(214 95% 97%); border: 1px solid hsl(214 80% 88%); }
.howto h2 { margin: 0 0 8px; font-size: 18px; }
.howto p { margin: 0 0 14px; line-height: 1.6; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.howto-steps li { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 10px; border: 1px solid hsl(214 60% 90%); }
.howto-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #2a78d6; color: #fff; display: grid; place-items: center; font-size: 15px; }
.howto-steps strong { display: block; margin-bottom: 4px; }
.howto-steps span { font-size: 13px; line-height: 1.5; color: hsl(var(--muted-foreground)); }
@media (max-width: 760px) { .howto-steps { grid-template-columns: 1fr; } }

.check-guide { margin: 10px 0 2px 38px; }
.check-guide summary { cursor: pointer; font-size: 13px; color: hsl(var(--muted-foreground)); }
.check-guide dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 10px 0; font-size: 14px; line-height: 1.55; }
.check-guide dt { font-weight: 600; color: hsl(var(--muted-foreground)); }
.check-guide dd { margin: 0; }
.check-guide .guide-go { margin-bottom: 4px; }
@media (max-width: 760px) { .check-guide { margin-left: 0; } .check-guide dl { grid-template-columns: 1fr; } .check-guide dt { margin-top: 6px; } }

/* 비밀번호 변경 */
.pw-form { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.pw-form label { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 6px; }
.pw-form input { padding: 8px 10px; border: 1px solid hsl(var(--border)); border-radius: 8px; font: inherit; }
.pw-form button { margin-top: 12px; align-self: flex-start; }
.app-nav-user .pw-link { margin-right: 8px; font-size: 12.5px; }

/* 지금 뭘 해야 하는지 — 상태 배지만으로는 할 일이 안 보인다 */
.check-row .todo-line {
    margin-top: 6px; font-size: 13px; line-height: 1.6;
    color: hsl(24 70% 32%); font-variant-numeric: tabular-nums;
}
