/* 2026-11-11 제안함·알림 UX */

/* 마이페이지 '제안 내역' */
.offer-summary{margin:28px 0}
.offer-summary h2{margin:4px 0 14px}
.offer-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.offer-summary-grid>div{border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;background:#fff}
.offer-sum-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.offer-sum-head h3{margin:0;font-size:18px}.offer-sum-head small{color:var(--muted);font-weight:600;margin-left:4px}
.offer-new-badge{background:var(--blue);color:#fff;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:800;white-space:nowrap}
.offer-sum-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:var(--surface);color:inherit;text-decoration:none}
.offer-sum-row:hover{background:var(--pale)}
.offer-sum-more{margin-top:auto;align-self:flex-start}
.offer-sum-empty{margin:6px 0}
.offer-card-main{display:grid;gap:2px;min-width:0;flex:1}
.offer-card-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 제안 카드 (받은·보낸 공통) */
.offer-list-intro{margin:0 0 6px}
.offer-count{margin:0 0 14px;color:var(--ink)}
.offer-cards{display:grid;gap:14px}
.offer-card{padding:0!important;overflow:hidden}
.offer-card>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none}
.offer-card>summary::-webkit-details-marker{display:none}
.offer-card>summary::after{content:'▾';color:var(--muted);transition:transform .2s}
.offer-card[open]>summary::after{transform:rotate(180deg)}
.offer-card.is-new>summary{background:var(--pale)}
.offer-card-body{padding:4px 20px 20px;display:grid;gap:12px}
.offer-card-body>p{margin:0}
.offer-card-body,.offer-card-main{overflow-wrap:anywhere;word-break:keep-all}
.offer-their-reply{background:var(--surface);border-radius:12px;padding:10px 12px}
.offer-switch{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}

/* 상태 표시: 새 제안·답변 대기·수락·거절·만료 */
.status-pill.offer-state-new{background:var(--blue);color:#fff}
.status-pill.offer-state-waiting{background:#fff4db;color:#8a5a00}
.status-pill.offer-state-accepted{background:#e6f8ee;color:#1f7a46}
.status-pill.offer-state-declined{background:#f1f3f6;color:#5b6575}
.status-pill.offer-state-closed{background:#f1f3f6;color:#8a93a3}

/* 답변 칸 */
.offer-reply{border-top:1px solid var(--line);padding-top:14px}
.offer-reply-form{display:grid;gap:10px}
.offer-reply-form[hidden],.offer-answered[hidden]{display:none}
.offer-reply-title{margin:0;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.offer-chips{display:flex;flex-wrap:wrap;gap:8px}
.offer-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font:inherit;font-size:14px;cursor:pointer;color:var(--ink)}
.offer-chip.accept{border-color:#cfe0ff}.offer-chip.decline{border-color:#e6e9ee;color:#5b6575}
.offer-chip:hover,.offer-chip.on{background:var(--pale);border-color:var(--blue)}
.offer-reply-error{color:#c0392b;font-size:14px}
.offer-reply-error:empty{display:none}
.offer-answered p{margin:0 0 10px}
.offer-share-check{font-size:15px}

/* 인재 제안 보내기: 위쪽 '보낸 제안 내역 보기' */
.proposals-top{gap:12px;flex-wrap:wrap;margin-bottom:16px}
.proposals-top .seg-tabs{margin:0}

/* 알림: 읽지 않은 점, 하나씩 지우기 */
.noti-list li{display:flex;align-items:flex-start;gap:6px}
.noti-list li a{flex:1;min-width:0;position:relative}
.noti-dot{position:absolute;left:4px;top:20px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.noti-list li.unread a{padding-left:18px}
.noti-del{padding:14px 8px;color:var(--muted);font-size:14px}
.noti-del:hover{color:var(--ink)}

@media(max-width:760px){
  .offer-summary-grid{grid-template-columns:1fr}
  .offer-card>summary{flex-wrap:wrap;padding:14px 16px}
  .offer-card-body{padding:4px 16px 16px}
  .offer-card-main strong{white-space:normal}
}
