/* 대시보드·회의·점검·보고·모달 (2026-11-26) */
.main[data-view="team"], .main[data-view="org"] { grid-template-columns: minmax(520px, 1fr) minmax(340px, 400px); }
.viewseg { display: flex; gap: 2px; background: var(--line-2); border-radius: 10px; padding: 3px; margin-bottom: 14px; position: sticky; top: -16px; z-index: 5; box-shadow: 0 0 0 6px var(--bg); }
.viewseg button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-3); }
.viewseg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.link { border: 0; background: none; color: var(--primary); font-size: 12.5px; font-weight: 700; padding: 2px 0; }
.link:hover { text-decoration: underline; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.tiles.six { grid-template-columns: repeat(6, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px 7px; text-align: center; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 20px; line-height: 1.1; }
.tile span { font-size: 11px; color: var(--text-3); font-weight: 600; }
.tile.bad { background: var(--red-soft); border-color: #ffc9c9; } .tile.bad b { color: var(--red); }
.tile.warn { background: var(--amber-soft); border-color: #ffd8a8; } .tile.warn b { color: var(--amber); }
.tile.info { background: var(--primary-soft); border-color: #d0dbff; } .tile.info b { color: var(--primary); }

.attn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }
.attn-head { display: flex; justify-content: space-between; align-items: center; }
.attn-sum { margin: 4px 0 6px; font-size: 13px; color: var(--text-2); }
.attn-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.attn-text { flex: 1; min-width: 0; }
.attn-text small { display: block; color: var(--text-3); font-size: 11.5px; }
.tag { flex: none; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--line-2); color: var(--text-2); }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.info { background: var(--primary-soft); color: var(--primary); }
.banner { background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner.warn { background: var(--amber-soft); color: #d9480f; }

.kind.보고 { background: #e6fcf5; color: #087f5b; }
.kind.도움 { background: var(--red-soft); color: var(--red); }
.kind.회의 { background: #fff0f6; color: #c2255c; }
.card.k-도움 { border-color: #ffc9c9; }
.card-detail.report { background: #f8f9fb; border-radius: 8px; padding: 8px 10px; }
.card-detail.report p { margin: 0 0 4px; }
.card-detail.report ul { margin: 2px 0 4px; padding-left: 18px; }
.card-detail.clip { max-height: 92px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.comments { margin-top: 8px; border-left: 2px solid var(--line); padding-left: 8px; display: grid; gap: 3px; }
.cmt { font-size: 12.5px; color: var(--text-2); }
.cmt small { color: var(--text-3); }
.inline { display: flex; gap: 6px; margin-top: 8px; }
.inline input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 13.5px; outline: none; }
.inline input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.checks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.check:last-of-type { border-bottom: 0; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.check b { font-size: 14px; display: block; }
.check small { color: var(--text-3); font-size: 12px; }
.check.done b { text-decoration: line-through; color: var(--text-3); }
.made { border-top: 1px dashed var(--line); padding: 8px 0; }
.made > small { color: var(--text-3); font-size: 11.5px; font-weight: 700; }
.made-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; padding-top: 5px; flex-wrap: wrap; }
.made-row small { color: var(--text-3); }
.made-row i { font-style: normal; font-size: 11.5px; margin-left: 4px; }

.meet .when { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-2); }
.meet.today { border-color: #fcc2d7; }
.meet.today .when { color: #c2255c; }
.agenda { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.agenda small { color: var(--text-3); }
.seg.room, .track .seg.room { background: #fcc2d7; color: #a61e4d; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }
.p-head { display: flex; align-items: center; gap: 8px; }
.p-head small { color: var(--text-3); font-size: 11.5px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.p-today { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.p-today.away { background: var(--amber-soft); color: var(--amber); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #40c057; display: inline-block; margin-right: 5px; }
.dot.off { background: var(--line); }
.p-nums { display: flex; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.p-nums .bad b { color: var(--red); }
.p-nums .warn b { color: var(--amber); }
.p-list { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.p-list small { color: var(--text-3); font-weight: 700; font-size: 11px; }
.p-list.ok div { color: var(--green); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ptable, .sched, .comp, .shares { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; box-shadow: var(--shadow); }
.prow { display: grid; grid-template-columns: 1fr auto auto 46px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.prow:last-child { border-bottom: 0; }
.prow small, .pteam, .pm { color: var(--text-3); font-size: 11.5px; }
.prow .p-today { margin: 0; }
.sday { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.sday:last-child { border-bottom: 0; }
.sdate { font-size: 12px; font-weight: 800; color: var(--text-2); margin-bottom: 4px; }
.sitem { display: flex; gap: 7px; align-items: center; font-size: 13px; padding: 2px 0; }
.sitem small { color: var(--text-3); }
.comp-row { display: grid; grid-template-columns: 1fr 70px 34px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.comp-row:last-child { border-bottom: 0; }
.comp-row small { color: var(--text-3); font-size: 11px; }
.bar { height: 7px; background: var(--line-2); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.share { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.share:last-child { border-bottom: 0; }
.share small { display: block; color: var(--text-3); font-size: 11.5px; }
.share p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }

.modal-back { position: fixed; inset: 0; background: rgba(20, 24, 40, .35); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: min(520px, 100%); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px 18px; }
.modal-body { padding: 0 18px 8px; overflow-y: auto; }
.modal-body textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; resize: vertical; outline: none; }
.modal-body textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.modal-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 14px 14px; }
.mnote { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 0 0 10px; }
.mnote.small { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.snap { background: #f8f9fb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
.snap-user { color: var(--primary); font-weight: 600; }
.snap-activity { color: var(--text-3); font-size: 12px; }

@media (max-width: 860px) {
  .main[data-view="team"], .main[data-view="org"] { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .tiles.six { grid-template-columns: repeat(3, 1fr); }
}

/* 지난 회의·회의록 보기 */
.sec-note { font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-left: 4px; }
.past { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 12px; box-shadow: var(--shadow); }
.past-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.past-row:last-child { border-bottom: 0; }
.past-when { flex: none; width: 92px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.past-title { flex: 1; min-width: 0; }
.past-title small, .past-none { color: var(--text-3); font-size: 11.5px; }
.modal:has(.minutes-doc) { width: min(680px, 100%); }
.minutes-doc { font-size: 13.5px; line-height: 1.6; }
.minutes-doc h1 { font-size: 17px; margin: 4px 0 8px; }
.minutes-doc h2 { font-size: 14.5px; margin: 14px 0 4px; color: var(--primary); }
.minutes-doc ul { margin: 2px 0; padding-left: 20px; }

/* 관리자 점검: 주간 점검표·사람별 자세히 */
.wtable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 12px; box-shadow: var(--shadow); }
.wrow { display: grid; grid-template-columns: 1.6fr 1fr .6fr .8fr 1.1fr .6fr .5fr; gap: 6px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; cursor: pointer; border-radius: 6px; }
.wrow:last-child { border-bottom: 0; }
.wrow:not(.whead):hover { background: var(--primary-soft); }
.wrow.whead { cursor: default; font-size: 11.5px; font-weight: 800; color: var(--text-3); }
.wrow small { color: var(--text-3); font-size: 11.5px; }
.wrow .bad { color: var(--red); font-weight: 800; }
.wrow .warn, .wrow small.warn { color: var(--amber); font-weight: 700; }
.modal:has(.rv-sec) { width: min(640px, 100%); }
.rv-sec { margin-bottom: 12px; }
.rv-sec h4 { margin: 0 0 4px; font-size: 13px; color: var(--primary); }
.rv-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.rv-row:last-child { border-bottom: 0; }
.rv-main { flex: 1; min-width: 0; }
.rv-main small { display: block; color: var(--text-3); font-size: 11.5px; }
@media (max-width: 860px) { .wrow { grid-template-columns: 1.4fr repeat(6, 1fr); font-size: 12.5px; } }
.tree { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.tree.top { font-weight: 700; color: var(--text); margin-top: 4px; }

/* 업무 지도 */
.modal:has(.map-doc), .modal:has(.fs-form) { width: min(760px, 100%); }
.mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0 12px; }
.mtable th, .mtable td { border-bottom: 1px solid var(--line-2); padding: 4px 6px; text-align: left; vertical-align: top; }
.mtable th { color: var(--text-3); font-size: 11.5px; }
.mtable td p { margin: 0; }
.map-doc ul ul { margin: 0; }
.mpath { font-size: 12px; color: var(--text-2); background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.mh { margin: 14px 0 4px; font-size: 14px; color: var(--primary); }
.mtree summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--primary); margin: 14px 0 6px; }
.map-doc .mnote.small { margin: 2px 0; }

a.mpath.go { cursor: pointer; color: var(--primary); text-decoration: none; }
a.mpath.go:hover { text-decoration: underline; background: var(--primary-soft); }

/* 회의 공간 목록·초대장 */
.rooms-strip { background: linear-gradient(135deg, #2b2d5c, #3d2f6b); border-radius: 14px; padding: 10px; margin: 10px 0 4px; box-shadow: var(--shadow); }
.rs-head { color: #ffe08a; font-weight: 800; font-size: 13.5px; margin: 0 2px 6px; }
.rs-head small { color: #c9c3ff; font-weight: 600; margin-left: 6px; font-size: 11.5px; }
.rs-room { width: 100%; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 8px 10px; margin-top: 6px; text-align: left; cursor: pointer; transition: transform .12s, background .12s; }
.rs-room:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.rs-room.need { border-color: #ffd43b; box-shadow: 0 0 0 2px rgba(255,212,59,.25); }
.rs-room.live { border-color: #69db7c; animation: rsglow 1.6s infinite; }
@keyframes rsglow { 50% { box-shadow: 0 0 0 4px rgba(105,219,124,.25); } }
.rs-door { font-size: 20px; }
.rs-main { flex: 1; min-width: 0; }
.rs-main b { display: block; font-size: 14px; }
.rs-main small { color: #c9c3ff; font-size: 11.5px; }
.rs-cnt { font-size: 11.5px; color: #e9e6ff; white-space: nowrap; }
.rs-me { font-size: 11px; font-weight: 800; background: #ffd43b; color: #3b2a00; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.rs-room.live .rs-me { background: #69db7c; color: #0b3d17; }
.card.invite { border: 2px dashed #b197fc; background: #f8f5ff; }
.rsvp-pick { display: flex; gap: 6px; margin-bottom: 8px; }
.rp { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; cursor: pointer; font-weight: 700; font-size: 14px; }
.rp input { display: none; }
.rp.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.rp-reason, .ag-row input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 13.5px; outline: none; margin-bottom: 8px; }
.ag-row { display: flex; gap: 6px; }
.ag-row select { border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font-size: 13px; height: 34px; }
.ag-row input { margin-bottom: 6px; }
.sug { display: grid; gap: 4px; }
.sug-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.sug-row small { display: block; color: var(--text-3); font-size: 11.5px; }
.toast .btn { margin-left: 8px; }

/* 자료 찾기 (업무 지도 창 맨 위) */
.fs-form { display: flex; gap: 6px; margin: 0 0 4px; }
.fs-form input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: var(--surface); color: var(--text); }
.fs-form select { padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; }
#fsOut { max-height: 46vh; overflow-y: auto; margin: 4px 0 10px; }
.fs-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-2); }
.fs-row:last-child { border-bottom: 0; }
.fs-kind { flex: none; min-width: 44px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--line-2); color: var(--text-2); }
.fs-kind.dir { background: #fff3bf; color: #8a6d00; }
.fs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-main b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.fs-main small { font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
.map-wrap { margin-top: 6px; } .map-wrap > summary { cursor: pointer; font-weight: 700; padding: 6px 0; } .map-wrap > summary small { font-weight: 400; color: var(--text-3); }
@media (max-width: 560px) { .fs-form { flex-wrap: wrap; } .fs-form input { flex-basis: 100%; } .fs-row { flex-wrap: wrap; } .fs-main { flex-basis: calc(100% - 60px); } }
