/* PC shell (1440x960 design: P_Today.dc.html). Class names follow the design file. */
.pc { min-height: 100vh; background: var(--bg-pc); display: flex; flex-wrap: wrap; }
.pc-side { flex: 1 1 248px; max-width: 248px; background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px 8px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 9px; }
.brand-mark span:nth-child(1) { width: 3px; height: 13px; border-radius: 1px; background: var(--plask-blue); }
.brand-mark span:nth-child(2) { width: 7px; height: 7px; border-radius: 1px; background: var(--glass-mint); }
.brand-mark span:nth-child(3) { width: 9px; height: 5px; border-radius: 2.5px; background: var(--reagent); }
.brand-name { display: flex; flex-direction: column; gap: 1px; }
.brand-name b { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.brand-name span { font-size: 11.5px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav:hover { background: var(--hover); color: var(--text); }
.nav.on { background: var(--sel); color: var(--link); font-weight: 600; }
.sub { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px 0 16px; border-radius: 8px; color: var(--text-3); font-size: 13.5px; text-decoration: none; }
.sub:hover { background: var(--hover); color: var(--text); }
.cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.grp { display: flex; align-items: center; gap: 8px; padding: 18px 10px 6px; font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; }
.grp .sq { width: 8px; height: 8px; border-radius: 2px; }
.dt { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }
.pc-me { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 8px 2px 8px; border-top: 1px solid #EEF0F4; }
.me-av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--reagent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.me-txt { display: flex; flex-direction: column; gap: 1px; }
.me-txt b { font-size: 13px; font-weight: 600; }
.me-state { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ok-text); }
.me-ver { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }
.me-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }



.pc-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.pc-head { min-height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 32px; }
.pc-head .ttl { display: flex; flex-direction: column; gap: 3px; margin-right: auto; }
.pc-head h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.pc-head .ttl span { font-size: 12.5px; color: var(--muted); }
.pc-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 24px 32px 48px 32px; }
.pc-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pc-aside { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }

.tk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.tk:hover, .tk.sel { background: #FAFBFC; }
.tk-txt { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.tk-txt .t { font-size: 15px; font-weight: 600; text-decoration: none; }
.tk-txt .t.sm { font-size: 14.5px; }
.tk-txt .m { font-size: 12.5px; color: var(--muted); }
.qa-row { display: flex; gap: 4px; }
.qa { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #E4E7EC; background: #fff; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.qa.done { background: var(--ink); border-color: var(--ink); color: var(--reagent); }
.ico-box { width: 32px; height: 32px; border-radius: 9px; background: var(--sel); color: var(--link); display: flex; align-items: center; justify-content: center; }

.brief { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; }
.brief-top { display: flex; align-items: center; gap: 8px; }
.mini-mark { display: flex; align-items: flex-end; gap: 2px; }
.mini-mark i:nth-child(1) { width: 3px; height: 12px; border-radius: 1px; background: var(--plask-blue); }
.mini-mark i:nth-child(2) { width: 7px; height: 7px; border-radius: 1px; background: var(--glass-mint); }
.mini-mark i:nth-child(3) { width: 10px; height: 5px; border-radius: 2.5px; background: var(--reagent); }
.brief-lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #8B95A5; }
.brief-big { font-size: 19px; line-height: 1.4; font-weight: 700; }
.brief-btn { height: 44px; border-radius: 12px; border: none; background: var(--reagent); color: var(--ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px 12px 16px; }
.stat3 div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--bg-pc); }
.stat3 b { font-size: 20px; font-weight: 700; }
.stat3 span { font-size: 12px; color: var(--text-3); }

.nav.on.mint { background: var(--family-bg); color: var(--family-text); }
.sub.on { background: var(--sel); color: var(--link); font-weight: 600; }
.tk-act .qa-row { visibility: hidden; }
.tk-act:hover .qa-row, .tk-act:focus-within .qa-row, .tk-act.sel .qa-row { visibility: visible; }

/* ---- 목록: preview card, filter menus, change history (S05) ---- */
.lrow { position: relative; }
.lprev { display: none; position: fixed; z-index: 40; top: var(--py, 0); left: var(--px, 0); width: min(400px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #E4E7EC; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); flex-direction: column; gap: 12px; }
.lrow:hover .lprev, .lrow.peek .lprev { display: flex; }
.lrow:hover .row, .lrow.peek .row { background: #FAFBFC; }
/* 미리 보기 위치는 placePreview()가 정함 (아래 공간이 모자라면 위로) */
.lhist { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; width: 380px; max-height: 460px; overflow: auto; background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.lhist-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.lhist-r { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid #F0F2F5; text-decoration: none; color: inherit; }
.lhist-r:hover { background: #FAFBFC; }
.lhist-r .w { flex: 0 0 64px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.lhist-r .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.lhist-r .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhist-r .t span { color: var(--muted); font-size: 12.5px; }
.g1, .g2 { width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; font-family: inherit; color: inherit; cursor: pointer; text-align: left; }

/* ---- 빠른 입력 (P_QuickInput window, S03 sheet) ---- */
.q-win { position: fixed; z-index: 21; left: 50%; top: 120px; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 64px rgba(11, 15, 20, .28); }
.q-win .rc:hover { background: #F9FAFB; }
.q-sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; top: 112px; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 30px rgba(11, 15, 20, .18); display: flex; flex-direction: column; overflow: hidden; }
.q-talk { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; overflow: auto; }
.s-quick-m .q-dim { background: rgba(11, 15, 20, .42); }
.q-ring { stroke-dashoffset: 0; animation-name: q-count; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes q-count { to { stroke-dashoffset: 50.3; } }
@media (prefers-reduced-motion: reduce) { .q-ring { animation: none; } }


/* ---- 코드형 메모 (P_S05_Code): one grid line per task so columns stay aligned ---- */
.s-code div.cd { white-space: normal; }
.s-code div.cd .h { margin-top: 28px; }
.s-code .cl { display: grid; grid-template-columns: 3ch minmax(0, 40ch) 12ch 9ch 8ch auto; column-gap: 1ch; white-space: nowrap; }
.s-code .cl .t { overflow: hidden; text-overflow: ellipsis; }
.s-code .cl a.n { text-decoration: none; }
.s-code .cl a.n:hover { text-decoration: underline; }



/* ---- 「말로 고치기」 tweaks (core/ai/assist.js TWEAKS) ---- */
.tw-nocolor .chip, .tw-nocolor .m-pill, .tw-nocolor .m-tag, .tw-nocolor .dd, .tw-nocolor .pill, .tw-nocolor .st { background: #F2F4F7 !important; color: #344054 !important; border-color: #D0D5DD !important; outline-color: #D0D5DD !important; }
.tw-bigdue .dd, .tw-bigdue .m-pill, .tw-bigdue .row > span:nth-child(3) .chip, .tw-bigdue .tk .chip:last-of-type { font-size: 14.5px !important; height: 28px !important; padding: 0 11px !important; }
.tw-hidesource .m-row2 > span:not(.m-tag), .tw-hidesource .tk-txt .m, .tw-hidesource .rw > span > span + span, .tw-hidesource .row > span:nth-child(2) { visibility: hidden; }
.tw-compact .rw { min-height: 46px; } .tw-compact .row { min-height: 40px; } .tw-compact .m-card { padding-top: 10px; padding-bottom: 10px; } .tw-compact .tk { min-height: 52px; }

/* 새 기록 받는 중 (2026-10-11) */
.pc-collect { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 12px; border-radius: 12px; background: #F5F8FF; border: 1px solid #D6E2FF; text-decoration: none; color: #101828; }
.pc-collect-a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.pc-collect .btn { align-self: flex-start; }
.pc-collect-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-collect-h b { flex: 1; }
.pc-collect-p { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #1D47C2; }
.pc-collect-bar { display: block; height: 6px; border-radius: 3px; background: #DCE6FF; overflow: hidden; }
.pc-collect-bar span { display: block; height: 100%; background: #2560F0; border-radius: 3px; transition: width .4s ease; }
.pc-collect-t { font-size: 11.5px; line-height: 1.5; color: #475467; }
.pc-collect .rc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C7D7FE; border-top-color: #2560F0; animation: rc-spin .8s linear infinite; box-sizing: border-box; flex-shrink: 0; }

/* 간단히 둘째 줄: 사업 › 그룹 · 요청한 사람 · 출처 · 언제 (2026-10-11) */
.lctx { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lctx > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lctx .lc-biz { color: #1D47C2; font-weight: 600; }
.lctx .lc-from { color: #344054; font-weight: 500; }
.lctx .lc-when { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #98A2B3; }

/* 한 줄 앞 동그라미 = 끝 표시 버튼 */
.oc-btn { padding: 0; background: #FFFFFF; cursor: pointer; flex-shrink: 0; position: relative; }
.oc-btn:hover, .oc-btn:focus-visible { border-color: #067647 !important; background: #E7F6EC; }
.oc-btn:hover::after, .oc-btn:focus-visible::after { content: ""; position: absolute; left: 50%; top: 45%; width: 5px; height: 9px; border: solid #067647; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }

/* 한 줄 앞 동그라미 = 상태 고르기 (2026-10-11 사용자 결정) */
.ocwrap { position: relative; display: inline-flex; flex-shrink: 0; }
.oc-btn { padding: 0; background: #FFFFFF; cursor: pointer; }
.oc-btn:hover, .oc-btn:focus-visible, .oc-btn[aria-expanded="true"] { border-color: #2560F0 !important; box-shadow: 0 0 0 3px #E0E9FF; }
.lmenu.ocmenu { position: fixed; top: 0; left: 0; z-index: 45; min-width: 130px; }

/* 최신화할 채널 고르기 (2026-10-11) */
.rpick-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:230px;display:flex;flex-direction:column;padding:8px;border-radius:12px;background:#FFFFFF;border:1px solid #E6E8EE;box-shadow:0 12px 32px rgba(16,24,40,.14)}
.rpick-h{padding:4px 6px 8px;font-size:12px;font-weight:700;color:#475467}
.rpick-r{display:flex;align-items:center;gap:8px;height:34px;padding:0 6px;border-radius:7px;font-size:13.5px;color:#101828;cursor:pointer}
.rpick-r:hover{background:#F2F4F7}
.rpick-r input{width:16px;height:16px;margin:0;accent-color:#2560F0}
.rpick-all{border-bottom:1px solid #F2F4F7;border-radius:7px 7px 0 0;font-weight:600}
.rpick-e{padding:6px;font-size:12.5px;color:#667085}
.rpick-f{padding:8px 6px 2px;font-size:11.5px;line-height:1.5;color:#98A2B3}

/* 상태를 뺀 뒤의 수 (2026-10-11) */
.cnt-shown{font-weight:500;color:#2560F0}

/* 왼쪽 메뉴 접기·너비 조절 (2026-10-11) */
.pc-side .brand{position:relative}
.side-fold{margin-left:auto;width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#667085;cursor:pointer}
.side-fold:hover{background:#F2F4F7;border-color:#E6E8EE;color:#101828}
.side-split{flex:0 0 6px;margin-left:-6px;position:sticky;top:0;height:100vh;cursor:col-resize;z-index:5;touch-action:none}
.side-split:hover,.side-split:focus-visible,.side-dragging .side-split{background:linear-gradient(90deg,transparent 2px,#2560F0 2px,#2560F0 4px,transparent 4px);outline:none}
.side-dragging,.side-dragging *{cursor:col-resize !important;user-select:none !important}
.pc-side.folded{flex:0 0 64px;max-width:64px;padding:14px 8px;align-items:center}
.pc-side.folded .brand{flex-direction:column;gap:8px;padding:0}
.pc-side.folded .brand-name,.pc-side.folded .grp,.pc-side.folded .pc-collect,.pc-side.folded .kbd,.pc-side.folded .me-txt,.pc-side.folded [data-act=area-add],.pc-side.folded [data-act=area-sug],.pc-side.folded .cnt{display:none}
.pc-side.folded .side-fold{margin:0}
.pc-side.folded .nav,.pc-side.folded .sub{font-size:0;justify-content:center;padding:0;width:44px;height:40px;gap:0}
.pc-side.folded .nav .i{width:20px;height:20px;margin:0}
.pc-side.folded .sub .adot{margin:0;width:10px;height:10px}
.pc-side.folded .btn.wide{font-size:0;padding:0;width:44px;height:40px;justify-content:center}
.pc-side.folded .btn.wide .i{width:18px;height:18px}
.pc-side.folded .pc-me{justify-content:center;padding:6px 0}
/* 왼쪽 메뉴의 「말하거나 적기」: 넓은 버튼, 단축키는 오른쪽 끝 */
.pc-side .btn.wide { justify-content: space-between; height: 40px; margin-bottom: 6px; }
.pc-side .btn.wide > span { display: flex; align-items: center; gap: 8px; }
/* 오늘 오른쪽 「받은 것」 카드 (예전 AI 위임 카드 자리) */
.dlg { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-decoration: none; color: var(--text); }
.dlg:hover { background: var(--bg-soft); }
.dlg-h { display: flex; align-items: center; gap: 8px; }
.dlg-h b { font-size: 15px; font-weight: 700; }
.dlg-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
/* 자동 업데이트 줄 (화면 맨 위, 새 버전이 있을 때만) */
.pc-upd { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 32px; background: #F5F8FF; border-bottom: 1px solid #D6E2FF; font-size: 13px; color: #101828; box-sizing: border-box; }
.pc-upd-t { flex: 1; min-width: 0; line-height: 1.45; }
.pc-upd.err { background: var(--danger-bg); border-bottom-color: var(--danger-line); color: var(--danger-fg); }
.pc-upd .rc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C7D7FE; border-top-color: #2560F0; animation: rc-spin .8s linear infinite; box-sizing: border-box; flex-shrink: 0; }
.q-talk.q-talk-pc { flex-grow: 0; max-height: 360px; border-bottom: 1px solid #EEF0F4; } /* PC 입력 창의 대화 이력 (2026-10-31) */
/* 오늘 오른쪽 듣기 카드 · 받은 것 한 줄 (UX v2 P02·D2) */
.brief.brief-play .brief-row { display: flex; align-items: center; gap: 14px; }
.brief.brief-play .brief-big { flex: 1; min-width: 0; }
.brief-go { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--reagent); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.brief-go:hover { filter: brightness(.95); }
.dlg.dlg-one { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.dlg.dlg-one .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
