/* =========================================================
   works.css — Artstore Works 전용 추가 스타일 (템플릿 위에 덧씌움)
   ========================================================= */
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page .content { padding-top: 12px; }
.page-title-row { padding: 14px 20px 0; }
.page-title { font-size: 20px; }
.page-title .pill { font-size: 10.5px; }
.ws-logo { background: #fff !important; overflow: hidden; }
.ws-logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
.login-logo { width: 150px; height: auto; margin: 0 auto 6px; display: block; background: #fff; border-radius: 22px; padding: 12px 18px; }
.av { display: inline-grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c, var(--accent)); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: -.02em; }
.av-btn { border: 2px solid var(--line); }
.avatar-sm { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.avatar-md { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-4); margin-right: 4px; transition: background .3s; }
.live-dot.on { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.small { font-size: 11.5px; color: var(--text-3); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-c { width: 9px; height: 9px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn-primary svg { color: inherit; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); border-color: transparent; }
.btn-danger { background: var(--red); color: #fff; border-color: transparent; }
.btn-danger:hover { background: var(--red); filter: brightness(1.08); }
.btn-danger-ghost { color: var(--red); }
.btn.xs { height: 24px; padding: 0 7px; font-size: 11px; box-shadow: none; }
.btn[disabled], .icon-btn[disabled] { opacity: .5; pointer-events: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 입력 */
.input, .select, .textarea { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev); color: var(--text); font: inherit; font-size: 13px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 90px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.form label > span.hint { font-weight: 400; color: var(--text-3); font-size: 11px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-inline { display: flex; align-items: center; gap: 8px; }
.color-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.color-swatches button { width: 22px; height: 22px; border-radius: 6px; background: var(--c); border: 2px solid transparent; }
.color-swatches button.on { border-color: var(--text); }

/* 로그인 */
.login-wrap { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.login-card h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.login-card p { margin: 0 0 8px; }
.login-card label { text-align: left; display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.login-err { background: var(--red-tint); color: var(--red); border-radius: 8px; padding: 8px 10px; font-size: 12px; }

/* KPI 스파크라인 */
.kpi .kpi-value small { font-size: 12px; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* 상태 pill 확장 */
.pill.todo { --c: var(--text-3); --t: var(--bg-active); }
.pill.doing, .pill.running, .pill.invoiced { --c: var(--blue); --t: var(--blue-tint); }
.pill.review, .pill.planned, .pill.paused, .pill.hold { --c: var(--orange); --t: var(--orange-tint); }
.pill.done, .pill.paid, .pill.ok, .pill.idle, .pill.active { --c: var(--green); --t: var(--green-tint); }
.pill.error, .pill.failed, .pill.overdue, .pill.urgent, .pill.stopped { --c: var(--red); --t: var(--red-tint); }
.pill.high { --c: var(--orange); --t: var(--orange-tint); }
.pill.normal { --c: var(--blue); --t: var(--blue-tint); }
.pill.low { --c: var(--text-3); --t: var(--bg-active); }
.pill.cancelled, .pill.archived { --c: var(--text-4); --t: var(--bg-active); text-decoration: line-through; }
.pill.claude { --c: #c96a2b; --t: color-mix(in srgb, #c96a2b 14%, transparent); }
.pill.codex { --c: #10a37f; --t: color-mix(in srgb, #10a37f 14%, transparent); }
.pill.scoped { --c: var(--purple); --t: var(--purple-tint); } .pill.retainer { --c: var(--teal); --t: var(--teal-tint); } .pill.internal { --c: var(--text-3); --t: var(--bg-active); }
.pill.sm { padding: 2px 7px; font-size: 10px; }

/* 칸반 */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.kcol.over { border-color: var(--accent); background: var(--accent-tint); }
.kcol-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.kcol-head b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--text-3); font-size: 11px; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; flex: 1; }
.kcard { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: grab; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; display: flex; flex-direction: column; gap: 7px; }
.kcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.kcard.dragging { opacity: .4; }
.kcard-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.kcard-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.kcard-foot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.kcard-foot .due { font-family: var(--font-mono); font-size: 10.5px; margin-left: auto; }
.kcard-foot .due.over { color: var(--red); font-weight: 600; }
.kcard-foot .due.today { color: var(--orange); font-weight: 600; }
.labels { display: flex; gap: 4px; flex-wrap: wrap; }
.label { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--bg-active); color: var(--text-2); font-weight: 500; }
.kadd { padding: 7px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--text-3); font-size: 12px; text-align: center; width: 100%; }
.kadd:hover { background: var(--bg-hover); color: var(--text); }

/* 리스트/테이블 확장 */
.table td.wrap { white-space: normal; }
.table tr.clickable { cursor: pointer; }
.table .muted { color: var(--text-3); }
.table.dense td { padding: 7px 10px; font-size: 12.5px; }
.table th.right, .table td.right { text-align: right; }
.won { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.won.neg { color: var(--red); } .won.pos { color: var(--green); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w); background: var(--c, var(--accent)); border-radius: 3px; transition: width .4s; }
.progress.lg { height: 10px; }

/* 프로젝트 카드 */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.proj-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.proj-head { display: flex; align-items: center; gap: 10px; }
.proj-logo { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.proj-name { font-weight: 600; font-size: 14px; }
.proj-client { font-size: 11.5px; color: var(--text-3); }
.proj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proj-stat { background: var(--bg-sunken); border-radius: 8px; padding: 8px 10px; }
.proj-stat span { display: block; font-size: 10.5px; color: var(--text-3); }
.proj-stat b { font-size: 14px; font-weight: 600; font-family: var(--font-mono); }
.proj-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.member-stack { display: flex; }
.member-stack .avatar-sm { margin-left: -6px; border: 2px solid var(--bg-elev); }
.member-stack .avatar-sm:first-child { margin-left: 0; }

/* 탭 */
.tabs.inner { padding: 0 20px; margin: 10px 0 0; background: transparent; border-bottom: 1px solid var(--line); }
.tabs.inner .tab { padding: 8px 12px 10px; }
.tabs.inner .tab .cnt { font-family: var(--font-mono); font-size: 10px; color: var(--text-4); margin-left: 4px; }

/* 상세 레이아웃 */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
.detail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.dl { grid-template-columns: 90px 1fr; }
.dl dd .btn { height: 26px; }
.prose { font-size: 13.5px; line-height: 1.7; color: var(--text); word-break: break-word; }
.prose p { margin: 0 0 8px; } .prose ul, .prose ol { margin: 0 0 8px; padding-left: 20px; } .prose li { list-style: revert; }
.prose code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 12px; margin: 0 0 8px; }
.prose pre code { background: none; padding: 0; }
.prose h1, .prose h2, .prose h3 { margin: 12px 0 6px; font-size: 15px; } .prose h1 { font-size: 17px; }
.prose a { color: var(--accent-text); text-decoration: underline; }
.prose blockquote { margin: 0 0 8px; padding: 4px 12px; border-left: 3px solid var(--line-strong); color: var(--text-2); }
.prose table { border-collapse: collapse; margin: 0 0 8px; font-size: 12.5px; } .prose th, .prose td { border: 1px solid var(--line); padding: 4px 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.prose input[type=checkbox] { margin-right: 6px; }

/* 댓글 */
.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; background: var(--bg-sunken); border-radius: 10px; padding: 8px 12px; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.comment-meta b { color: var(--text); font-size: 12px; }
.comment-meta .acts { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.comment:hover .comment-meta .acts { opacity: 1; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form .textarea { min-height: 44px; flex: 1; }
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attach { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--bg-elev); }
.attach svg { width: 13px; height: 13px; color: var(--text-3); }
.attach img { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; }

/* 피드 */
.feed li { align-items: flex-start; }
.feed .fav.task { --c: var(--blue); --t: var(--blue-tint); } .feed .fav.llm { --c: var(--purple); --t: var(--purple-tint); } .feed .fav.deploy { --c: var(--orange); --t: var(--orange-tint); }
.feed .fav.finance { --c: var(--green); --t: var(--green-tint); } .feed .fav.comment { --c: var(--teal); --t: var(--teal-tint); } .feed .fav.git { --c: var(--yellow); --t: var(--yellow-tint); } .feed .fav.other { --c: var(--text-3); --t: var(--bg-active); }
.feed .fav.project { --c: var(--purple); --t: var(--purple-tint); } .feed .fav.event { --c: var(--orange); --t: var(--orange-tint); }

/* 캘린더 */
.cal-layout { grid-template-columns: 1fr 300px; }
.cal-cell { min-height: 92px; }
.cal-ev { cursor: pointer; }
.cal-ev.done { opacity: .5; text-decoration: line-through; }
.cal-more { font-size: 10px; color: var(--text-3); }
.cal-cell.weekend .cal-day { color: var(--red); }
.agenda li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.agenda li:last-child { border-bottom: 0; }
.agenda .time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); width: 44px; flex: none; padding-top: 2px; }
.agenda b { display: block; font-size: 12.5px; font-weight: 500; } .agenda span { font-size: 11px; color: var(--text-3); }
.agenda i.bar { width: 3px; border-radius: 2px; background: var(--c); flex: none; }
.cal-week { display: grid; grid-template-columns: 50px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-week .wh { padding: 6px; text-align: center; font-size: 11px; color: var(--text-3); border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.cal-week .wh.today { color: var(--accent); font-weight: 700; }
.cal-week .wcol { border-left: 1px solid var(--line); min-height: 400px; position: relative; }
.cal-week .wev { position: absolute; left: 3px; right: 3px; border-radius: 5px; padding: 2px 5px; font-size: 10.5px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border-left: 3px solid var(--c); overflow: hidden; cursor: pointer; }
.cal-week .hr { height: 40px; border-top: 1px dashed var(--line); font-size: 9.5px; color: var(--text-4); padding: 2px 4px; font-family: var(--font-mono); }
.cal-week .wcol .hr { padding: 0; }

/* LLM 세션 */
.llm-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: calc(100vh - 56px); }
.llm-side { border-right: 1px solid var(--line); background: var(--bg-elev); display: flex; flex-direction: column; min-height: 0; }
.llm-side .sess-list { overflow-y: auto; flex: 1; padding: 6px; }
.sess-item { display: flex; gap: 8px; padding: 8px 9px; border-radius: 8px; cursor: pointer; align-items: flex-start; }
.sess-item:hover { background: var(--bg-hover); } .sess-item.active { background: var(--bg-active); }
.sess-item .prov { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.sess-item .prov.claude { background: #c96a2b; } .sess-item .prov.codex { background: #10a37f; }
.sess-item .prov.running { animation: pulse 1s infinite; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
@keyframes pulse { 50% { opacity: .4; } }
.sess-item b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-item span { display: block; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llm-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.llm-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-elev); flex-wrap: wrap; }
.llm-head .title-input { border: 0; background: transparent; font-size: 14px; font-weight: 600; outline: 0; color: var(--text); font-family: inherit; min-width: 120px; flex: 1; }
.chat { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 900px; width: 100%; }
.msg.user { align-self: flex-end; max-width: 760px; }
.msg.user .bubble { background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 14px 14px 4px 14px; padding: 10px 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }
.msg.assistant .bubble { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 16px; }
.msg-meta { font-size: 10.5px; color: var(--text-3); margin: 0 4px 4px; display: flex; gap: 8px; align-items: center; }
.msg.user .msg-meta { justify-content: flex-end; }
.tool { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-sunken); font-size: 12px; overflow: hidden; }
.tool summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.tool summary::-webkit-details-marker { display: none; }
.tool summary .tname { font-weight: 600; color: var(--text); }
.tool summary .tsum { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); }
.tool summary .terr { color: var(--red); }
.tool pre { margin: 0; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg-elev); font-size: 11.5px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.thinking { font-size: 12px; color: var(--text-3); border-left: 3px solid var(--line-strong); padding: 4px 10px; font-style: italic; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.sysline { font-size: 11px; color: var(--text-3); text-align: center; padding: 2px 0; }
.sysline.err { color: var(--red); background: var(--red-tint); border-radius: 8px; padding: 6px 10px; text-align: left; white-space: pre-wrap; }
.sysline code { font-family: var(--font-mono); }
.streaming { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.streaming::after { content: "▍"; animation: pulse .8s infinite; color: var(--accent); }
.composer { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { width: 100%; min-height: 54px; max-height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; resize: vertical; outline: 0; line-height: 1.5; }
.composer textarea:focus { border-color: var(--accent); }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.composer-row .small { flex: 1; }
.img-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.img-previews img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.usage-badge { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.provider-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.provider-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.provider-card:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.provider-card.on { border-color: var(--accent); background: var(--accent-tint); }
.provider-card b { font-size: 14px; } .provider-card span { font-size: 11.5px; color: var(--text-3); }
.provider-card.disabled { opacity: .5; pointer-events: none; }
.auth-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.auth-box .st { display: flex; align-items: center; gap: 8px; }
.auth-url { font-family: var(--font-mono); font-size: 11px; word-break: break-all; background: var(--bg-sunken); padding: 8px 10px; border-radius: 8px; }
.code-big { font-family: var(--font-mono); font-size: 22px; letter-spacing: .12em; text-align: center; padding: 8px; background: var(--bg-sunken); border-radius: 8px; }
.steps { padding-left: 18px; margin: 0; font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.steps li { list-style: decimal; }

/* 변경 이력 */
.commit-list li { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; cursor: pointer; }
.commit-list li:hover { background: var(--bg-hover); }
.commit-list li.sel { background: var(--accent-tint); }
.commit-list .hash { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); padding-top: 2px; width: 62px; flex: none; }
.commit-list b { display: block; font-size: 12.5px; font-weight: 500; }
.commit-list span { font-size: 11px; color: var(--text-3); }
.diff { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 70vh; }
.diff div { padding: 0 10px; white-space: pre; }
.diff .add { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.diff .del { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.diff .hunk { color: var(--blue); background: var(--blue-tint); }
.diff .file { color: var(--text); font-weight: 600; background: var(--bg-active); padding: 4px 10px; position: sticky; top: 0; }
.file-tree li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.file-tree li:hover { background: var(--bg-hover); }
.file-tree li svg { width: 14px; height: 14px; color: var(--text-3); }
.file-tree li .sz { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); }
.editor { width: 100%; min-height: 60vh; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg-sunken); color: var(--text); outline: 0; resize: vertical; tab-size: 2; white-space: pre; }
.crumb-path { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.crumb-path a { color: var(--accent-text); }

/* 서비스 인프라 */
.svc-status { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--text-4); flex: none; }
.svc-status.up { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.svc-status.down { background: var(--red); } .svc-status.stopped { background: var(--text-4); } .svc-status.unknown { background: var(--yellow); }
.svc-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 0 6px; }
.log-box { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; background: #0d0d0d; color: #d7d7d7; border-radius: 10px; padding: 10px 12px; max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-all; }
html[data-theme="light"] .log-box { background: #1c1f24; }

/* 정산 */
.fin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fin-tile { background: var(--bg-sunken); border-radius: 10px; padding: 12px 14px; }
.fin-tile span { display: block; font-size: 11px; color: var(--text-3); }
.fin-tile b { font-size: 18px; font-weight: 600; font-family: var(--font-mono); letter-spacing: -.02em; }
.share-row { display: grid; grid-template-columns: 1fr 90px 130px; gap: 8px; align-items: center; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 0 4px; }
.bar-chart .bc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar-chart .bc .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar-chart .bc i { display: block; width: 45%; max-width: 22px; border-radius: 3px 3px 0 0; background: var(--c); height: var(--h); transition: height .4s; }
.bar-chart .bc span { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); }

/* 팔레트/검색 */
.palette { width: min(640px, 100%); }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pal-item:hover, .pal-item.sel { background: var(--bg-hover); }
.pal-item .t { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); width: 54px; flex: none; }
.pal-item b { font-weight: 500; font-size: 13px; } .pal-item span { font-size: 11.5px; color: var(--text-3); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* 알림 팝오버 */
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-list li { display: flex; gap: 8px; padding: 8px; border-radius: 8px; cursor: pointer; align-items: flex-start; font-size: 12.5px; }
.notif-list li:hover { background: var(--bg-hover); }
.notif-list li.read { opacity: .6; }
.notif-list li b { display: block; font-weight: 500; } .notif-list li em { display: block; font-style: normal; font-size: 11px; color: var(--text-3); }
.notif-list li .unread { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }

/* 설정 */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 70px; }
.settings-nav button { text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.settings-nav button.active { background: var(--bg-active); color: var(--text); font-weight: 600; }
.chat-pick li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.chat-pick li:hover { background: var(--bg-hover); } .chat-pick li.on { background: var(--accent-tint); }
.chat-pick code { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* 반응형 */
@media (max-width: 1100px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { position: static; } .cal-layout { grid-template-columns: 1fr; } .fin-summary { grid-template-columns: repeat(2, 1fr); } .settings-layout { grid-template-columns: 1fr; } .settings-nav { flex-direction: row; flex-wrap: wrap; position: static; } }
@media (max-width: 960px) { .llm-layout { grid-template-columns: 1fr; height: auto; } .llm-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; } .llm-main { min-height: calc(100vh - 56px - 240px); } .kanban { grid-template-columns: repeat(5, 240px); } .chat { padding: 12px; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } .fin-summary { grid-template-columns: 1fr 1fr; } .form-row, .form-row.three { grid-template-columns: 1fr; } .share-row { grid-template-columns: 1fr 70px 100px; } .cal-cell { min-height: 60px; padding: 3px; } .cal-ev { font-size: 9px; padding: 1px 3px; } .page-title { font-size: 18px; } .provider-pick { grid-template-columns: 1fr; } .llm-head .title-input { width: 100%; } }
@media (display-mode: standalone) { .topbar { padding-top: max(10px, env(safe-area-inset-top)); } .sidebar { padding-top: max(10px, env(safe-area-inset-top)); } }

/* ---- 반응형 보강 (2026-09-04 폭 넘침 점검) ---- */
.detail-layout > *, .settings-layout > *, .cal-layout > *, .notes-layout > *, .llm-layout > * { min-width: 0; }
.changes-layout { grid-template-columns: 380px 1fr; }
.grid.two { grid-template-columns: 1fr 1fr; }
.cal-head { flex-wrap: wrap; }
.commit-list b, .commit-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.settings-body { min-width: 0; }
@media (max-width: 1100px) { .changes-layout { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .grid.two { grid-template-columns: 1fr; }
  .notes-layout { grid-template-columns: 1fr; min-height: 0; }
  .notes-list { border-right: 0 !important; border-bottom: 1px solid var(--line); max-height: 220px; overflow-y: auto; }
  .cal-head b { min-width: 0; flex: 1; }
  .cal-head .segmented { margin-left: 0; width: 100%; }
  .cal-head .segmented button { flex: 1; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; position: static; }
  .settings-nav button { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 640px) {
  .row.wrap .btn { flex: 1 1 auto; justify-content: center; }
  .auth-box .row { flex-wrap: wrap; }
  .pagehead-right .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar { gap: 6px; }
  .toolbar .search { flex: 1 1 140px; max-width: none; }
  .toolbar .btn { flex: 1 1 auto; justify-content: center; }
  .table { min-width: 560px; }
  .fin-summary { grid-template-columns: 1fr 1fr; }
  .fin-tile b { font-size: 15px; }
  .kpis .kpi-value { font-size: 22px; }
}
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { min-width: 0; }
.cal-week { grid-template-columns: 50px repeat(7, minmax(0, 1fr)); }

/* 아바타 이니셜 줄바꿈/깨짐 방지 */
.av, .avatar-sm, .avatar-md, .proj-logo, .ws-mini { white-space: nowrap; overflow: hidden; letter-spacing: -.06em; line-height: 1; }
.avatar-sm { font-size: 9px; }
.avatar-md { font-size: 11px; }
.member-stack .avatar-sm { box-sizing: content-box; }
