/* 🧹 청소 · ☕ 오픈 · 마감 (public/features/clean.js) — 2026-10-21 정리의 날에 style.css에서 옮김 (순서 그대로) */
/* 🧹 오늘 청소 (오전 조) */
.cl-pad { max-width: 760px; }
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-nav { display: flex; align-items: center; gap: 8px; }
.cl-nav b { font-size: 17px; min-width: 110px; text-align: center; }
.cl-crewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 12px; }
.cl-k { font-size: 12px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.cl-crew { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; }
.cl-crew b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--panel); font-size: 12px; }
.cl-crew small { color: var(--muted); font-size: 11.5px; }
.cl-crew.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cl-prog { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 14px; }
.cl-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: #5f9e6e; border-radius: 99px; transition: width .3s; }
.cl-sec { margin-bottom: 18px; }
.cl-sec h3 { font-size: 15px; margin: 0 0 8px; }
.cl-sec h3 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.cl-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 6px; }
.cl-row.done { background: transparent; opacity: .72; }
.cl-row.done .cl-x { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.cl-box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--accent); background: var(--panel); font-size: 17px; font-weight: 800; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cl-row.done .cl-box { background: #5f9e6e; border-color: #5f9e6e; }
.cl-main { flex: 1; min-width: 0; }
.cl-t { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.cl-z { font-size: 12.5px; font-weight: 800; }
.cl-miss { font-size: 11.5px; font-weight: 700; color: #b2442f; background: rgba(178, 68, 47, .1); padding: 1px 7px; border-radius: 99px; }
.cl-x { font-size: 14px; line-height: 1.45; }
.cl-note { margin-top: 5px; font-size: 13px; color: #b2442f; }
.cl-note small { color: var(--muted); }
.cl-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.cl-who { color: var(--muted); }
.cl-who.me { color: var(--accent-text, var(--accent)); font-weight: 800; }
.cl-ok { color: #4c8a5b; font-weight: 700; }
.cl-memo { margin-left: auto; font-size: 12px; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.cl-memo:hover { background: var(--accent-soft); }
.cl-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cl-wd { display: grid; gap: 2px; justify-items: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.cl-wd b { font-size: 13px; }
.cl-wd.full { background: rgba(95, 158, 110, .14); border-color: rgba(95, 158, 110, .5); }
.cl-wd.miss { background: rgba(178, 68, 47, .08); border-color: rgba(178, 68, 47, .35); }
.cl-wd.future { color: var(--faint); }
.cl-wd.on { box-shadow: 0 0 0 2px var(--text) inset; }
.hb-clean { flex: none; }
@media (max-width: 760px) { .cl-pad { padding: 14px 12px 40px; } .cl-row { padding: 10px; gap: 10px; } .cl-crew small { display: none; } }

/* 🧹 오늘 청소 — 담당(A · B) 열 + 장소 카드 */
.cl-pad { max-width: 1000px; }
.cl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-head .cl-seg { margin-left: auto; }
.cl-date { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.cl-date button { width: 36px; height: 36px; font-size: 18px; color: var(--muted); }
.cl-date button:hover { background: var(--accent-soft); color: var(--text); }
.cl-date b { padding: 0 10px; font-size: 15px; min-width: 112px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 36px; }
.cl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 14px; }
.cl-total { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.cl-total .cl-bar { display: block; width: 140px; flex: none; }
.cz-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cz-cols.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cz-cols.n1 { grid-template-columns: minmax(0, 1fr); }
.cz-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cz-colh { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; font-size: 14px; }
.cz-colh em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent-text, var(--accent)); }
.cz-slot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--panel); font-size: 12px; font-weight: 800; }
.cz-col.mine .cz { border-color: var(--accent); }
.cz { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.cz.full { border-color: rgba(95, 158, 110, .55) !important; }
.cz header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.cz.full header { background: rgba(95, 158, 110, .13); }
.cz header b { font-size: 14.5px; }
.cz header small { color: var(--muted); font-size: 12px; }
.cz-n { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.cz.full .cz-n { color: #3f7a4e; }
.cz-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 8px 7px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.cz header + .cz-row { border-top: 0; }
.cz-row:hover { background: rgba(0, 0, 0, .015); }
.cz-row .cl-box { width: 24px; height: 24px; font-size: 14px; border-radius: 7px; border-width: 2px; }
.cz-main { flex: 1; min-width: 0; }
.cz-x { font-size: 13.5px; line-height: 1.4; }
.cz-row.done .cz-x { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.cz-row.done .cl-box { background: #5f9e6e; border-color: #5f9e6e; }
.cz-m { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; font-size: 11.5px; }
.cz-m .cl-note { margin: 0; font-size: 12px; }
.cz-tags { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cz-tag { display: inline-block; padding: 0 7px; border-radius: 99px; font-weight: 700; font-size: 11px; line-height: 19px; white-space: nowrap; background: var(--line); color: var(--muted); }
.cz-tag.t-wk { background: rgba(180, 138, 90, .18); color: #8a6235; }
.cz-tag.t-zone { background: rgba(90, 120, 180, .13); color: #46628f; }
.cz-tag.t-miss { background: rgba(178, 68, 47, .12); color: #b2442f; }
.cz-memo { flex: none; width: 28px; height: 28px; border-radius: 8px; opacity: .35; font-size: 13px; }
.cz-row:hover .cz-memo, .cz-memo:focus { opacity: .9; }
.cz-mon { margin-top: 16px; }
.cl-sec { margin-top: 18px; }
@media (hover: none) { .cz-memo { opacity: .6; } }
@media (max-width: 760px) { .cz-cols, .cz-cols.n3 { grid-template-columns: minmax(0, 1fr); gap: 14px; } .cl-total { margin-left: 0; flex: 1; } .cl-total .cl-bar { flex: 1; width: auto; } .cl-crew { padding: 3px 9px 3px 3px; font-size: 13px; } .cl-crew b { width: 20px; height: 20px; } .cl-date b { min-width: 0; padding: 0 8px; font-size: 14px; } .cl-date button { width: 32px; } .cl-seg button { padding-left: 10px; padding-right: 10px; } }
.cl-date b[data-cldate] { cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cz-tag.t-wk { background: #4a3a26; color: #eac79a; } :root:not([data-theme="light"]) .cz-tag.t-zone { background: #26334a; color: #a9c4ee; } }
:root[data-theme="dark"] .cz-tag.t-wk { background: #4a3a26; color: #eac79a; } :root[data-theme="dark"] .cz-tag.t-zone { background: #26334a; color: #a9c4ee; }

.sale-codes { color: var(--text); } .sale-codes b { color: var(--accent-text, var(--accent)); }

/* ☕ 카페 오픈 · 🧹 청소 묶음 */
.cz-block { margin-bottom: 22px; }
.cz-colh.big { padding: 0 2px 8px; margin-bottom: 2px; border-bottom: 2px solid var(--line); font-size: 14px; flex-wrap: wrap; row-gap: 4px; }
.cz-ic { font-size: 18px; }
.cz-bt { font-size: 17px; margin-right: 2px; }
.cz-first { font-size: 11.5px; font-weight: 800; color: #fff; background: #b2442f; border-radius: 99px; padding: 1px 8px; }
.cz-sub { font-size: 12px; color: var(--muted); }
.cz-masonry { columns: 2 320px; column-gap: 14px; margin-top: 10px; }
.cz-masonry .cz { break-inside: avoid; margin-bottom: 12px; }
.cz-block .cz-cols { margin-top: 10px; }
@media (max-width: 760px) { .cz-masonry { columns: 1; } }
.cl-crew:not(:has(b)) { padding: 4px 11px; }

.chip.ev { background: rgba(90, 120, 180, .12); border-color: rgba(90, 120, 180, .35); color: #46628f; font-weight: 700; } .chip.ev.done { opacity: .6; }
:root[data-theme="dark"] .chip.ev { color: #a9c4ee; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.ev { color: #a9c4ee; } }

.sl-th { position: relative; } .sl-th img { cursor: pointer; }
.sl-ed { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; }
.prv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.lg-sum { margin-left: 6px; color: var(--accent-text, var(--accent)); font-size: 13px; }

/* 📖 오늘 청소 — 챕터로 한 섹션씩 */
.ch-rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin-bottom: 4px; }
.ch-rail::-webkit-scrollbar { display: none; }
.ch-grp { flex: none; display: flex; align-items: center; gap: 6px; }
.ch-gl { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.ch-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; white-space: nowrap; color: var(--text); }
.ch-chip b { font-size: 11.5px; color: var(--muted); }
.ch-chip.on { background: var(--text); border-color: var(--text); color: var(--panel); }
.ch-chip.on b { color: var(--panel); opacity: .8; }
.ch-chip.full:not(.on) { background: rgba(95, 158, 110, .13); border-color: rgba(95, 158, 110, .45); color: #3f7a4e; }
.ch-chip.full b { color: inherit; }
.ch-chip.miss:not(.full):not(.on) { border-color: rgba(178, 68, 47, .5); }
.ch-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.ch-card.full { border-color: rgba(95, 158, 110, .55); }
.ch-crumb { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ch-pos { margin-left: auto; font-weight: 800; }
.ch-card header { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); }
.ch-card header b { font-size: 19px; }
.ch-card.full header .cz-n { color: #3f7a4e; }
.ch-rows .cz-row { min-height: 56px; padding: 10px 12px 10px 16px; }
.ch-rows .cz-row:first-child { border-top: 0; }
.ch-rows .cz-x { font-size: 15px; }
.ch-rows .cl-box { width: 28px; height: 28px; font-size: 16px; }
.ch-nav { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .015); }
.ch-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-nav .btn:disabled { opacity: .45; }
@media (max-width: 760px) { .ch-card header b { font-size: 17px; } .ch-rows .cz-x { font-size: 14.5px; } }

/* 📋 오늘 청소 보고 화면 */
.cl-mine { display: flex; justify-content: flex-end; margin: -4px 2px 8px; font-size: 13px; color: var(--muted); }
.cl-mine label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.cl-sum .cl-crew { padding: 3px 11px; }
.rp { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 16px 18px 20px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rp-head small { display: block; color: var(--muted); font-size: 12.5px; }
.rp-head b { font-size: 19px; }
.rp-big { font-size: 22px; font-weight: 800; color: #b2442f; white-space: nowrap; }
.rp-big.ok { color: #3f7a4e; font-size: 17px; }
.rp-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.rp-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.rp-part span { font-weight: 700; font-size: 14px; }
.rp-part b { font-size: 16px; color: #b2442f; }
.rp-part.ok b { color: #3f7a4e; }
.rp-part .cl-bar { grid-column: 1 / -1; }
.rp-part small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.rp h4 { margin: 18px 0 8px; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.rp h4 em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.rp-bad { background: rgba(178, 68, 47, .12); color: #b2442f; } .rp-ok { background: rgba(95, 158, 110, .14); color: #3f7a4e; }
.rp-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.rp-p { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.rp-p span { color: var(--muted); font-size: 12.5px; }
.rp-miss div, .rp-notes div { padding: 8px 12px; border-left: 3px solid #b2442f; background: rgba(178, 68, 47, .05); border-radius: 0 8px 8px 0; margin-bottom: 6px; font-size: 13.5px; }
.rp-notes div { border-left-color: #b07a3c; background: rgba(176, 122, 60, .07); }
.rp-miss span, .rp-notes span { display: inline-block; margin-right: 8px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.rp-notes small { color: var(--muted); }
@media (max-width: 760px) { .rp { padding: 14px 14px 18px; } .rp-head b { font-size: 17px; } }
@media (max-width: 760px) { .cl-sum .cl-total { flex: 1 1 100%; margin-left: 0; } .rp-part { padding: 10px 12px; } .rp-parts { gap: 8px; } }
/* 🗓️ 이번 달 챕터 제목이 휴대폰에서 두 줄로 깨지지 않게 */
.cz > header > b { white-space: nowrap; }
.cz .cz-mhint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 🚫 이 날 뺀 청소 */
.cl-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(140, 95, 72, .07); font-size: 12.5px; color: var(--muted); }
.cl-skip span { color: var(--text); font-weight: 600; }
.cl-skip button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 🧹 오픈조 · 마감조 TO DO LIST 묶음: 세부 할 일은 펼쳐 보기만 */
.cz-steps { margin-top: 6px; font-size: 13px; }
.cz-steps summary { cursor: pointer; color: var(--accent-text); font-weight: 700; font-size: 12.5px; list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--paper); }
.cz-steps summary::-webkit-details-marker { display: none; }
.cz-steps[open] summary { margin-bottom: 6px; }
.czs-g { margin: 6px 0 2px; } .czs-g b { font-size: 12.5px; color: var(--text); }
.czs-g ul { margin: 3px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }

.st-snap { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--paper); color: var(--accent-text); font-size: 11px; font-weight: 700; vertical-align: 1px; }
/* 📱 휴대폰: 청소 챕터 줄도 옆으로 밀지 않고 다음 줄로 (2026-10-18 · style.css 「옆으로 밀어야 보이던 줄」에서 옮김 — 청소 줄 규칙보다 뒤에 있어야 해요) */
@media (max-width: 820px) {
  .ch-rail { flex-wrap: wrap; overflow-x: visible; }
  .ch-grp { flex: 1 1 100%; flex-wrap: wrap; }
  .ch-railw .ch-arr { display: none !important; }
  .ch-railw::before, .ch-railw::after { display: none; }
}
