/* 아젠다 아키타입 (모바일 재구성) — SC-M03 · 여러 사람의 하루를 한 줄기로
 *
 * 데스크톱 격자는 사람을 컬럼으로 나눈다. 414px 에는 컬럼이 안 들어간다.
 * 그래서 시간순 한 줄기로 펴고 담당자를 이니셜 뱃지로 단다.
 *
 * 색은 상태가 쓴다 — 담당자에 색을 주면 상태와 경쟁한다 (SC-D01 과 같은 규칙).
 * SC-D01 은 본인 것만 보므로 시간 비례 그리드가 되지만, 여기는 네 사람이 겹쳐 그럴 수 없다.
 */

.m--agenda .head { background: #fff; }

.m--agenda .hd-row { display: flex; align-items: center; justify-content: space-between;
                     padding: .3rem .5rem .3rem .25rem; }
.m--agenda .nav { display: flex; align-items: center; }
.m--agenda .step { width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
                   color: var(--ink-3); font-size: .8rem; }
.m--agenda .day { font-size: 1.02rem; font-weight: 700; letter-spacing: -.03em; }
.m--agenda .day em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.m--agenda .add { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .7rem;
                  background: var(--live); color: #fff; font-size: .78rem; font-weight: 600;
                  text-decoration: none; border-radius: 3px; }

.m--agenda .stat { display: flex; gap: .9rem; padding: 0 .9rem .5rem; font-size: .72rem;
                   color: var(--ink-3); }
.m--agenda .stat b { font-size: .92rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.m--agenda .stat .lead b { color: var(--live); }
.m--agenda .stat .bad { color: var(--alert); text-decoration: none; }
.m--agenda .stat .bad b { color: var(--alert); }

/* 담당자 필터 — 캔버스가 "기능 신설 후보"라 적어 둔 것. 없으면 모바일이 성립하지 않는다 */
.m--agenda .whos { display: flex; align-items: center; gap: .25rem; padding: 0 .9rem .55rem;
                   overflow-x: auto; }
.m--agenda .whos button { flex: none; height: 30px; padding: 0 .6rem; border-radius: 999px;
                          border: 1px solid var(--grid); background: #fff; font: inherit;
                          font-size: .75rem; color: var(--ink-2); cursor: pointer; }
.m--agenda .whos button.on { background: var(--ink); border-color: var(--ink); color: #fff;
                             font-weight: 600; }
.m--agenda .whos .hint { flex: none; font-size: .62rem; color: var(--wait-pay); margin-left: .15rem; }

/* ── 시간 줄기 ─────────────────────────────────── */

.m--agenda .ag { list-style: none; margin: 0; padding: .5rem .8rem 2.5rem; }
.m--agenda .row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .5rem;
                  padding-bottom: .4rem; }
.m--agenda .row .t { font-size: .74rem; font-weight: 700; color: var(--ink-2);
                     letter-spacing: -.03em; padding-top: .5rem; text-align: right; }

.m--agenda .it { display: block; padding: .5rem .6rem; background: #fff;
                 border: 1px solid var(--grid); border-left: 3px solid var(--grid-2);
                 text-decoration: none; color: inherit; position: relative; }
.m--agenda .it .hd { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap;
                     font-size: .9rem; font-weight: 700; letter-spacing: -.02em; }
.m--agenda .it .sub { display: block; font-size: .72rem; color: var(--ink-2);
                      margin-top: .15rem; line-height: 1.45; }
.m--agenda .it .sub b { font-weight: 700; color: var(--ink); }
.m--agenda .ch { font-style: normal; font-size: .64rem; font-weight: 500; color: var(--ink-3);
                 border: 1px solid var(--grid); padding: .02rem .28rem; }
.m--agenda .rk { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--alert); }

/* 담당자 — 이니셜. 색을 주지 않는다 */
.m--agenda .av { display: inline-flex; align-items: center; justify-content: center;
                 width: 20px; height: 20px; border-radius: 50%; background: #e7e4dd;
                 font-style: normal; font-size: .64rem; font-weight: 700; color: var(--ink-2);
                 flex: none; }
.m--agenda .av.dim { background: #f1efe9; color: #b3b0a7; }

/* 상태 — 여기가 이 화면의 색 축이다 */
.m--agenda .st { position: absolute; top: .5rem; right: .55rem; font-size: .62rem;
                 font-weight: 700; padding: .08rem .34rem; }
.m--agenda .st.set { background: var(--set-f); color: var(--set); }
.m--agenda .st.on { background: var(--live); color: #fff; }
.m--agenda .st.wait { background: var(--wait-pay); color: #fff; }
.m--agenda .st.req { position: static; display: inline-block; margin-top: .25rem;
                     background: #f2f1ec; color: var(--ink-3); }
.m--agenda .st.alt { background: var(--alert); color: #fff; }

.m--agenda .it.live { border-left-color: var(--live); background: #f2f8f6; }
.m--agenda .it.pay { border-left-color: var(--wait-pay); background: var(--wait-pay-f); }
.m--agenda .it.ask { border-style: dashed; background: transparent; }
.m--agenda .it.clash { border-left-color: var(--alert); background: #fdf1ee; }
.m--agenda .row.off .it { background: #f6f5f1; border-left-color: transparent; color: var(--ink-3); }
.m--agenda .row.off .hd { font-weight: 600; color: var(--ink-2); }

/* 방치 — 색이 아니라 질감. SC-D01 과 같은 관용구다 */
.m--agenda .rest { padding: .45rem .6rem; border: 1px dashed #c9d3d1;
                   background: repeating-linear-gradient(-45deg, #edf0ef 0 5px, transparent 5px 11px); }
.m--agenda .rest .hd { display: flex; align-items: center; gap: .3rem; font-size: .8rem;
                       font-weight: 700; color: #4f6260; }
.m--agenda .rest .hd em { font-style: normal; font-weight: 500; font-size: .72rem; }
.m--agenda .rest .sub { display: block; font-size: .7rem; color: #7d8d8b; margin-top: .1rem; }
.m--agenda .rest .sub b { color: #3f5250; }

/* 방치 안에 들어간 예약 — 소속을 선으로 보인다 */
.m--agenda .row.nest .it { margin-left: .7rem; }
.m--agenda .row.nest { position: relative; }
.m--agenda .row.nest::before { content: ""; position: absolute; left: 46px; top: -.4rem;
                               width: .55rem; height: 1.4rem; border-left: 2px dotted #7d8d8b;
                               border-bottom: 2px dotted #7d8d8b; border-bottom-left-radius: 6px; }

/* 빈 시간 */
.m--agenda .free { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
                   padding: .45rem .55rem .45rem .7rem; border: 1px dashed var(--line-2, #d8d3c8);
                   font-size: .76rem; color: var(--ink-2); }
.m--agenda .free b { color: var(--ink); font-weight: 700; }
.m--agenda .free a { flex: none; min-height: 30px; display: inline-flex; align-items: center;
                     padding: 0 .6rem; border: 1px solid var(--live); color: var(--live);
                     font-size: .72rem; font-weight: 600; text-decoration: none; }

.m--agenda .cutnote { margin: .5rem .8rem 0; padding: .55rem .7rem; background: #f4f2ee;
                      font-size: .7rem; line-height: 1.6; color: var(--ink-2); }
.m--agenda .cutnote b { color: var(--ink); font-weight: 700; }
.m--agenda .kx { opacity: .72; }
.m--agenda .cutnote.soft { background: none; border: 1px dashed var(--grid); color: var(--ink-3); }
.m--agenda .cutnote a { color: var(--live); font-weight: 700; }
