/* =========================================================
   케어러 화면(caretalk-renewal-roles M2) — Figma 03 케어러 222:2 · 영문 510:2
   틀: 상단 바(원드림 칩 + "케어러" + 이름) · 왼쪽 메뉴 240px · 본문 32px 여백 · 바탕 #F5F7F6
   모바일(≤900px): 왼쪽 메뉴 숨김 → 하단 탭 5개(홈 · 기록 · 리임 · 내 정보 · 더보기)
   ========================================================= */

.front-main.front-main-portal { max-width: none; padding: 0; background: var(--pm-color-surface); box-shadow: none; clip-path: none; }

/* 상단 바(222:4) — _v3.Header 의 공개 메뉴 줄 대신 */
.crr-bar { background: #fff; border-bottom: 1px solid var(--pm-color-border); }
.crr-bar-inner { display: flex; align-items: center; gap: 12px; padding: 16px 32px; }
.crr-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.crr-brand-chip { background: var(--pm-color-green); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; padding: 4px 8px; border-radius: 8px; }
.crr-brand-title { color: var(--pm-color-text); font-weight: 700; font-size: 18px; }
.crr-bar-space { flex: 1; }
.crr-me { display: inline-flex; align-items: center; gap: 8px; color: var(--pm-color-text); font-weight: 500; font-size: 16px; }
.crr-avatar { width: 32px; height: 32px; border-radius: 50%; background: #d9e8de; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--pm-color-green); overflow: hidden; }
.crr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crr-bar .ctf-lang { margin-right: 4px; }
.crr-logout { color: var(--pm-color-muted); font-size: 15px; text-decoration: none; margin-left: 8px; }
.crr-logout:hover { color: var(--pm-color-green); }

/* 몸통 = 왼쪽 메뉴 + 내용 */
.crr-shell { display: flex; align-items: stretch; min-height: calc(100vh - 140px); }
.crr-nav { width: 240px; flex: 0 0 240px; background: #fff; border-right: 1px solid var(--pm-color-border); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.crr-nav a { display: block; padding: 11px 14px; border-radius: 10px; color: #2e2a26; font-size: 17px; font-weight: 500; text-decoration: none; line-height: 1.45; }
.crr-nav a:hover { background: var(--pm-color-surface); }
.crr-nav a[aria-current="page"] { background: var(--pm-color-mint); color: var(--pm-color-green); font-weight: 700; }
.crr-nav .crr-nav-sub { padding: 7px 14px 7px 28px; font-size: 15px; color: var(--pm-color-body); }
.crr-content { flex: 1; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.crr-tabbar { display: none; }
/* persona-layout-containment §5.1 — 틀은 레이아웃(_CarerLayout · _AbnLayout)이 그림. 화면 루트(id · 메시지 data-*)는 상자 없이 — 틀 본문의 gap 유지 */
.crr-body { display: contents; }
.crr-shell.persona-skin { width: 100%; justify-self: stretch; }   /* 옛 mainV2 의 justify-items:center 가 틀을 내용 폭으로 늘리지 않게 */
.persona-skin > .crr-content { overflow-x: auto; }   /* 옛 서포터 화면 안쪽 고정 폭 요소 */

/* 머리 */
.crr-hello h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--pm-color-text); line-height: 1.45; }
.crr-hello p { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--pm-color-body); }
.crr-crumb { font-size: 15px; color: var(--pm-color-muted); }
.crr-crumb a { color: var(--pm-color-green); text-decoration: none; font-weight: 700; }

/* 카드 · 글 */
.crr-card { background: #fff; border: 1px solid var(--pm-color-border); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.crr-card-tight { padding: 16px 20px; gap: 8px; }
.crr-card-hl { border: 2px solid var(--pm-color-green); gap: 12px; }
.crr-card-offer { background: var(--pm-color-mint-pale); border-color: #e2cf8f; }
.crr-card h2, .crr-h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--pm-color-text); line-height: 1.45; }
.crr-card h3, .crr-h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--pm-color-text); }
.crr-row { display: flex; gap: 8px; align-items: center; }
.crr-row > .crr-grow, .crr-grow { flex: 1; min-width: 0; }
.crr-notice > .crr-grow { display: flex; flex-direction: column; gap: 1px; }
a.crr-chip, a.crr-btn, a.crr-roster-row, .crr-nav a, .crr-tabbar a { text-decoration: none; }
a.crr-chip:hover { text-decoration: none; }
.crr-cols { display: flex; gap: 20px; align-items: flex-start; }
.crr-cols > .crr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.crr-cols > .crr-side { width: 400px; flex: 0 0 400px; display: flex; flex-direction: column; gap: 20px; }
.crr-note { margin: 0; font-size: 15px; font-weight: 500; color: var(--pm-color-body); line-height: 1.45; }
.crr-big { margin: 0; font-size: 24px; font-weight: 700; color: var(--pm-color-text); }
.crr-text { margin: 0; font-size: 17px; font-weight: 500; color: #2e2a26; }
.crr-label { font-size: 15px; font-weight: 700; color: var(--pm-color-green); }
.crr-hr { height: 1px; background: var(--pm-color-border); border: 0; margin: 0; }
.crr-money { font-family: Figtree, var(--pm-font-family); font-weight: 700; font-size: 24px; color: var(--pm-color-green); }

/* 배지(pill) */
.crr-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.crr-pill-soon { background: var(--pm-color-mint-pale); color: var(--pm-color-yellow-text); }
.crr-pill-plan { background: #e7f0fb; color: #2155a3; }
.crr-pill-notes { background: #fff1dc; color: #9a5b00; }
.crr-pill-done { background: var(--pm-color-surface); color: var(--pm-color-muted); }
.crr-pill-live { background: var(--pm-color-green); color: #fff; }
.crr-pill-red { background: var(--pm-color-error-bg); color: var(--pm-color-error); }
.crr-pill-redsolid { background: var(--pm-color-error); color: #fff; padding: 3px 9px; }
.crr-pill-ok { background: var(--pm-color-mint); color: var(--pm-color-green); }
.crr-pill-wait { background: var(--pm-color-yellow-pale); color: var(--pm-color-yellow-text); }

/* 칩(선택) */
.crr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid #cfc9bf; background: #fff; color: #2e2a26; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1.3; }
.crr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.crr-chip[aria-pressed="true"], .crr-chip.is-on, .crr-chip:has(input:checked) { background: var(--pm-color-green); border-color: var(--pm-color-green); color: #fff; }
.crr-chip:focus-within { outline: 3px solid var(--pm-color-focus); outline-offset: 2px; }

/* 버튼 */
.crr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 700; line-height: 1.3; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.crr-btn-sm { padding: 10px 14px; font-size: 16px; }
.crr-btn-primary { background: var(--pm-color-green); color: #fff; }
.crr-btn-primary:hover { background: var(--pm-color-green-dark); color: #fff; }
.crr-btn-outline { background: #fff; color: var(--pm-color-green); border-color: var(--pm-color-green); }
.crr-btn-ghost { background: #fff; color: var(--pm-color-muted); border-color: #9a938a; }
.crr-btn-danger { background: var(--pm-color-error); color: #fff; }
.crr-btn-grow { flex: 1; }
.crr-btn[disabled], .crr-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* 공지 줄(256:7) */
.crr-notice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--pm-color-surface); text-decoration: none; }
.crr-notice.is-important { background: var(--pm-color-error-bg); }
.crr-notice-title { font-size: 16px; font-weight: 700; color: var(--pm-color-text); }
.crr-notice-meta { font-size: 15px; font-weight: 500; color: var(--pm-color-body); }
.crr-read { font-size: 15px; font-weight: 700; color: var(--pm-color-green); white-space: nowrap; text-decoration: none; background: none; border: 0; cursor: pointer; }

/* 로스터 줄(222:60) */
.crr-roster { display: flex; flex-direction: column; }
.crr-roster-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pm-color-border); text-decoration: none; }
.crr-roster-row:last-child { border-bottom: 0; }
.crr-roster-when { width: 130px; flex: 0 0 130px; display: flex; flex-direction: column; gap: 1px; }
.crr-roster-when b { font-size: 16px; color: var(--pm-color-text); }
.crr-roster-when span, .crr-roster-who span { font-size: 15px; font-weight: 500; color: var(--pm-color-body); }
.crr-roster-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.crr-roster-who b { font-size: 17px; color: var(--pm-color-text); }
.crr-empty { margin: 0; padding: 18px 0; color: var(--pm-color-muted); font-size: 16px; }

/* 제안 카드(222:115) */
.crr-offer { background: #fff; border: 1px solid var(--pm-color-border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.crr-offer-task { background: var(--pm-color-surface); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.crr-offer-task b { display: block; color: var(--pm-color-green); }
.crr-offer-task span { color: #2e2a26; font-weight: 500; white-space: pre-line; }

/* 바로 가기(222:132) */
.crr-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crr-quick a { background: var(--pm-color-surface); border-radius: 12px; padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.crr-quick b { font-size: 16px; color: var(--pm-color-text); }
.crr-quick span { font-size: 15px; font-weight: 500; color: var(--pm-color-body); }

/* 진행 표시(F2 · K2) */
.crr-progress { height: 10px; background: #e6e2db; border-radius: 999px; overflow: hidden; }
.crr-progress > i { display: block; height: 100%; background: var(--pm-color-green); }
.crr-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.crr-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--pm-color-border); font-size: 15px; font-weight: 700; color: var(--pm-color-muted); }
.crr-step.is-done { background: var(--pm-color-mint); border-color: var(--pm-color-mint); color: var(--pm-color-green); }
.crr-step.is-now { background: var(--pm-color-green); border-color: var(--pm-color-green); color: #fff; }

/* 아코디언(F2) */
.crr-acc { background: #fff; border: 1px solid var(--pm-color-border); border-radius: 16px; overflow: hidden; }
.crr-acc > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; }
.crr-acc > summary::-webkit-details-marker { display: none; }
.crr-acc-no { width: 32px; height: 32px; border-radius: 50%; background: var(--pm-color-surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pm-color-muted); flex: 0 0 32px; }
.crr-acc.is-done .crr-acc-no { background: var(--pm-color-green); color: #fff; }
.crr-acc.is-redo .crr-acc-no { background: var(--pm-color-error); color: #fff; }
.crr-acc-title { flex: 1; font-size: 19px; font-weight: 700; color: var(--pm-color-text); }
.crr-acc-body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--pm-color-border); padding-top: 18px; }
.crr-acc.is-locked > summary { opacity: .6; }

/* 폼 */
.crr-form { display: flex; flex-direction: column; gap: 16px; }
.crr-field { display: flex; flex-direction: column; gap: 6px; }
.crr-field > label, .crr-field > .crr-flabel { font-size: 16px; font-weight: 700; color: var(--pm-color-text); }
.crr-field small { font-size: 14px; color: var(--pm-color-muted); font-weight: 500; }
.crr-input, .crr-select, .crr-textarea { width: 100%; border: 1px solid #cfc9bf; border-radius: 10px; padding: 12px 14px; font-size: 17px; font-family: inherit; color: var(--pm-color-text); background: #fff; }
.crr-input:focus, .crr-select:focus, .crr-textarea:focus { outline: 3px solid rgba(0, 132, 61, .25); border-color: var(--pm-color-green); }
.crr-textarea { min-height: 110px; resize: vertical; }
.crr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.crr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.crr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: #2e2a26; font-weight: 500; }
.crr-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pm-color-green); }
.crr-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed #b9b2a7; border-radius: 12px; background: #fff; }
.crr-file .crr-grow { font-size: 16px; font-weight: 700; color: var(--pm-color-text); }
.crr-file small { display: block; font-size: 14px; font-weight: 500; color: var(--pm-color-muted); }
.crr-file input[type=file] { display: none; }
.crr-file.is-done { border-style: solid; border-color: var(--pm-color-mint-border); background: var(--pm-color-mint-pale); }
.crr-alert { padding: 12px 14px; border-radius: 12px; background: var(--pm-color-error-bg); color: var(--pm-color-error); font-size: 16px; font-weight: 700; }
.crr-info { padding: 12px 14px; border-radius: 12px; background: var(--pm-color-mint-pale); color: #2e2a26; font-size: 15px; font-weight: 500; }
.crr-warn { padding: 12px 14px; border-radius: 12px; background: var(--pm-color-yellow-pale); color: var(--pm-color-yellow-text); font-size: 15px; font-weight: 700; }
.crr-msg { font-size: 15px; font-weight: 700; }
.crr-msg.is-ok { color: var(--pm-color-green); }
.crr-msg.is-err { color: var(--pm-color-error); }
.crr-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--pm-color-body); display: flex; flex-direction: column; gap: 4px; }

/* 표 */
.crr-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.crr-table th { text-align: left; font-size: 14px; color: var(--pm-color-muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--pm-color-border); }
.crr-table td { padding: 12px 6px; border-bottom: 1px solid var(--pm-color-border); color: var(--pm-color-text); vertical-align: middle; }

/* 시간 칸 7 × 4(K5 · F2 6단계) */
.crr-week { display: grid; grid-template-columns: 110px repeat(7, minmax(0, 1fr)); gap: 6px; user-select: none; }
.crr-week .crr-wh { font-size: 14px; font-weight: 700; color: var(--pm-color-muted); text-align: center; padding: 6px 0; background: none; border: 0; cursor: pointer; }
.crr-week .crr-wl { font-size: 14px; font-weight: 700; color: var(--pm-color-body); display: flex; flex-direction: column; justify-content: center; background: none; border: 0; text-align: left; cursor: pointer; }
.crr-week .crr-wl small { font-weight: 500; color: var(--pm-color-muted); }
.crr-cell { height: 44px; border-radius: 8px; border: 1px solid var(--pm-color-border); background: #fff; cursor: pointer; }
.crr-cell[aria-pressed="true"] { background: var(--pm-color-green); border-color: var(--pm-color-green); }

/* 서명 */
.crr-sign { position: relative; border: 1.5px dashed #b9b2a7; border-radius: 12px; background: #fff; height: 180px; }
.crr-sign canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.crr-sign-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a39c92; pointer-events: none; font-size: 16px; }

/* 모달(K2-1) */
.crr-modal { position: fixed; inset: 0; background: rgba(38, 35, 31, .55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.crr-modal[hidden] { display: none; }
.crr-modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 560px; padding: 24px; display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.crr-modal-head { display: flex; align-items: center; gap: 8px; }
.crr-modal-head h2 { flex: 1; margin: 0; font-size: 22px; }
.crr-x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--pm-color-muted); }

/* 모바일 */
@media (max-width: 900px) {
    .crr-bar-inner { padding: 12px 16px; }
    .crr-me span:not(.crr-avatar) { display: none; }
    .crr-shell { display: block; min-height: 0; }
    .crr-nav { display: none; }
    .crr-content { padding: 20px 16px 96px; }
    .crr-cols { flex-direction: column; }
    .crr-cols > .crr-side, .crr-cols > .crr-main { width: 100%; max-width: 100%; flex: 1 1 auto; }
    .crr-row, .crr-file, .crr-acc > summary, .crr-chips { flex-wrap: wrap; }
    .crr-file input[type=date] { width: 100% !important; }
    .crr-card, .crr-acc, .crr-acc-body { min-width: 0; max-width: 100%; }
    .crr-grid2, .crr-grid3 { grid-template-columns: 1fr; }
    .crr-hello h1 { font-size: 22px; }
    .crr-week { grid-template-columns: 70px repeat(7, minmax(0, 1fr)); gap: 4px; }
    .crr-week .crr-wl small { display: none; }
    .crr-cell { height: 38px; }
    .crr-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--pm-color-border); z-index: 900; }
    .crr-tabbar a { flex: 1; text-align: center; padding: 10px 0 12px; font-size: 14px; font-weight: 700; color: var(--pm-color-muted); text-decoration: none; }
    .crr-tabbar a[aria-current="page"] { color: var(--pm-color-green); }
    .crr-roster-when { width: 104px; flex-basis: 104px; }
    .crr-table thead { display: none; }
    .crr-table tr { display: block; border-bottom: 1px solid var(--pm-color-border); padding: 8px 0; }
    .crr-table td { display: inline-block; border: 0; padding: 2px 8px 2px 0; }
}
