/* Hermes chat panel — reading-first typography and a chat-service layout. */
.hc { --hc-font: 15px; --hc-lh: 1.72; font-family: var(--font);
  letter-spacing: -0.005em; background: var(--bg); }
.hc-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.hc-sess { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: transparent; color: var(--fg); font-weight: 600; font-size: 14px;
  padding: 6px 8px; border-radius: 8px; text-align: left; }
.hc-sess:hover { background: var(--bg3); } .hc-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--acc); background: var(--acc-bg);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hc-drawer { border-bottom: 1px solid var(--line); max-height: 50%; overflow: auto; flex: none; background: var(--bg2); }
.hc-dhead { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-size: 13px; position: sticky; top: 0; background: var(--bg2); }
.hc-list { list-style: none; margin: 0; padding: 0 0 8px; } .hc-list li { display: flex; align-items: center; } .hc-list li.on { background: var(--sel); }
.hc-list a { flex: 1; min-width: 0; padding: 7px 14px; color: var(--fg); text-decoration: none; } .hc-list a:hover { background: var(--bg3); }
.hc-list .t { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hc-list .s { font-size: 12px; color: var(--mut); }
/* ✎ 이름 바꾸기 · ✕ 삭제: always in the row (owner 2026-11-04), faint until the row is hovered */
.hc-list .x, .hc-list .rn { flex: none; opacity: .45; } .hc-list li:hover .x, .hc-list li:hover .rn, .hc-list li.on .x, .hc-list li.on .rn { opacity: 1; }
.hc-list li.busy .t { color: var(--mut); }
/* 대화 내용 검색: the matching line under the title */
.hc-list .hc-qsnip { display: block; font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-list .hc-qsnip mark { background: color-mix(in srgb, var(--acc) 22%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
/* ✎ the title edited in its row: [input · ✨ · ✓] in place of the link */
.hc-list .hc-rn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 10px; }
.hc-list .hc-rn input { flex: 1; min-width: 0; height: 30px; font-size: 14px; padding: 0 8px; border: 1px solid var(--acc); border-radius: 6px; background: var(--bg); color: var(--fg); }
.hc-list .hc-rn .icon { flex: none; }
.hc-list li.rn-on .x, .hc-list li.rn-on .rn { display: none !important; }
.hc-agf { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 14px 6px; }
.hc-agf button { font-size: 12px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mut); cursor: pointer; }
.hc-agf button.on { background: var(--sel); color: var(--fg); border-color: transparent; }
.hc-list li.ext-head, .hc-list li.ext-wait { padding: 10px 14px 4px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); margin-top: 4px; }
.hc-list li.ext.busy { opacity: .5; }

.hc-log { flex: 1; overflow-y: auto; min-height: 0; padding: 18px 0 24px; }
.hc-log > * { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }
.hc-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding-top: 12vh !important; color: var(--mut); font-size: 14px; }
.hc-empty b { font-size: 20px; color: var(--fg); }

.hm { margin-bottom: 22px; font-size: var(--hc-font); line-height: var(--hc-lh); position: relative; }
.hm-user { display: flex; flex-direction: column; align-items: flex-end; }
.hm-bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--bg3); white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; } .hm-meta .mut { font-size: 12px; }
.hm-av { width: 22px; height: 22px; border-radius: 6px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.hm-body { overflow-wrap: anywhere; }
.hm-act { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; opacity: 0; transition: opacity .15s; }
.hm:hover .hm-act, .hm-act:focus-within { opacity: 1; }
.hm-act button { background: transparent; color: var(--mut); font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.hm-act button:hover { background: var(--bg3); color: var(--fg); }
.hm-flag { font-size: 12px; color: var(--mut); margin-top: 4px; } .hm-flag.err { color: var(--no); }
.hm-edit { margin-bottom: 22px; } .hm-edit textarea { font-size: var(--hc-font); line-height: var(--hc-lh); border-radius: 12px; padding: 10px 12px; min-height: 80px; }
.hm-edit-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* markdown */
.md > div > :first-child { margin-top: 0; } .md p { margin: .55em 0; } .md ul, .md ol { padding-left: 1.4em; margin: .5em 0; } .md li { margin: .2em 0; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.35; margin: 1.1em 0 .45em; } .md h1 { font-size: 1.35em; } .md h2 { font-size: 1.2em; } .md h3 { font-size: 1.08em; }
.md blockquote { margin: .7em 0; padding: .2em 1em; border-left: 3px solid var(--acc); color: var(--mut); background: var(--bg2); border-radius: 0 8px 8px 0; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "D2Coding", monospace; font-size: .88em; background: var(--bg3); padding: .1em .35em; border-radius: 5px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; } .md a { text-decoration: underline; text-underline-offset: 2px; }
.md-table { overflow-x: auto; margin: .7em 0; border: 1px solid var(--line); border-radius: 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: .93em; } .md th, .md td { padding: 7px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th { background: var(--bg2); font-weight: 600; } .md tr:last-child td { border-bottom: 0; }
.code-wrap { margin: .8em 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg2); }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; font-size: 12px; color: var(--mut); border-bottom: 1px solid var(--line); }
.code-bar button { background: transparent; color: var(--mut); font-size: 12px; padding: 2px 6px; } .code-bar button:hover { color: var(--fg); }
.md pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.md pre code { background: transparent; padding: 0; font-size: inherit; } .md pre code.hljs { background: transparent; padding: 0; }
.hm-body.cursor > div > :last-child::after { content: "▍"; color: var(--acc); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* next steps checklist */
.steps-list { list-style: none; padding-left: 0 !important; } .steps-list > li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; margin: 5px 0;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; } .steps-list > li:hover { border-color: var(--acc); }
.steps-list > li:has(input:checked) { border-color: var(--acc); background: var(--acc-bg); } .steps-list input { margin-top: .4em; flex: none; width: 16px; height: 16px; }
.steps-go { margin: 4px 0 8px; padding: 7px 14px; border-radius: 9px; } .steps-go:disabled { opacity: .45; cursor: default; }

/* tools / notes */
.hc-steps details { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); font-size: 13px; }
.hc-steps summary { cursor: pointer; padding: 6px 12px; color: var(--mut); font-weight: 500; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hc-steps summary::-webkit-details-marker { display: none; }
.hc-steps summary::before { content: "▸ "; } .hc-steps details[open] > summary::before { content: "▾ "; }
.st { border-top: 1px solid var(--line); } .st-line { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; } .st-line:hover { background: var(--bg3); }
.st-ic { width: 16px; text-align: center; color: var(--ok); } .st-error .st-ic { color: var(--no); } .st-stopped .st-ic { color: var(--mut); }
.st-arg { flex: 1; min-width: 0; color: var(--mut); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-dur { color: var(--mut); font-size: 11px; } .st-detail { padding: 2px 12px 10px 36px; } .st-k { font-size: 11px; color: var(--mut); margin: 6px 0 2px; }
.st-detail pre { margin: 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; font-size: 12px; max-height: 260px; overflow: auto; }
.st-note { padding: 6px 12px; color: var(--mut); font-style: italic; }
.st-note.md > div > :first-child { margin-top: 0; } .st-note.md > div > :last-child { margin-bottom: 0; } .st-note.md h1, .st-note.md h2, .st-note.md h3, .st-note.md h4 { margin: .8em 0 .35em; font-style: normal; } .st-note.md h1, .st-note.md h2 { font-size: 1.1em; }
.st-steer { padding: 6px 12px; color: var(--acc); }
.spin { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--acc); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* live status + approval */
.hm-working { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--acc); font-weight: 600; }
.hm-live .hm-act { display: none; }
.hm-approval { margin: 6px 0 10px; padding: 12px 14px; border: 1px solid var(--warn); border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--bg)); }
.hm-approval .ap-h { font-weight: 700; margin-bottom: 4px; } .hm-approval .ap-d { font-size: 14px; margin-bottom: 6px; }
.hm-approval pre { margin: 0 0 8px; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: 12px; white-space: pre-wrap; }
.ap-b { display: flex; gap: 6px; flex-wrap: wrap; } .hm-approval.sent .ap-b { opacity: .5; pointer-events: none; }
[data-atab="hermes"].busy::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--acc); animation: pulse 1.2s infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* composer */
.hc-composer { flex: none; padding: 8px 14px 14px; }
.hc-box { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 8px 10px 6px; transition: border-color .15s; }
.hc-box:focus-within { border-color: var(--acc); } .hc.busy .hc-box { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.hc-ctx { font-size: 12px; color: var(--mut); padding: 0 4px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-input { width: 100%; border: 0 !important; outline: none !important; background: transparent; resize: none; min-height: 26px; max-height: 40vh;
  font-size: var(--hc-font); line-height: 1.6; padding: 4px; font-family: inherit; }
.hc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 6px; min-width: 0; }   /* narrow panes: tools wrap, never overflow */
.hc-bar > * { min-width: 0; }
.hc-bar .hc-model { max-width: 100%; }
.hc-model { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--fg); max-width: 55%; }
.hc-hint { flex: 1; font-size: 11px; color: var(--mut); text-align: right; white-space: nowrap; overflow: hidden; }
.hc-send, .hc-stop { width: 34px; height: 34px; border-radius: 50%; padding: 0; font-size: 16px; display: inline-grid; place-items: center; flex: none; }
.hc-stop { background: var(--fg); color: var(--bg); }
.hc-ctx { display: flex; align-items: center; gap: 8px; } .hc-ctx-l { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc.other-doc .hc-ctx-l { color: var(--warn); }
.hc-here { flex: none; background: var(--bg3); color: var(--fg); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.hc-here:hover { background: var(--acc); color: #fff; }
.hc-newmenu { position: absolute; right: 10px; top: 44px; z-index: 20; display: flex; flex-direction: column; min-width: 260px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: fadein .15s ease; }
.hc-newmenu button { text-align: left; background: transparent; color: var(--fg); font-weight: 500; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.hc-newmenu button:hover { background: var(--bg3); } .hc-newmenu .mut { font-size: 12px; }
.hc { position: relative; }
.hc-scope { display: inline-flex; gap: 4px; } .hc-scope a { padding: 2px 10px; border-radius: 999px; background: var(--bg3); color: var(--fg); font-size: 12px; text-decoration: none; }
.hc-scope a.on { background: var(--acc); color: #fff; }
.hc.general .hc-ctx-l { color: var(--acc); }

/* context meter in the composer bar */
.hc-ctxm { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--mono); color: var(--mut); white-space: nowrap; cursor: help; }
.hc-ctxm i { position: relative; width: 54px; height: 6px; border-radius: 3px; background: var(--bg3); overflow: hidden; display: inline-block; }
.hc-ctxm b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ok); border-radius: 3px; transition: width .3s ease; }
.hc-ctxm u { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--fg); opacity: .45; }
.hc-ctxm.warn { color: var(--warn); } .hc-ctxm.warn b { background: var(--warn); }
.hc-ctxm.err { color: var(--no); } .hc-ctxm.err b { background: var(--no); }

/* 새 대화 제안 + 인라인 자동완성 (ghost text) */
.hc-inwrap { position: relative; }
.hc-ghost { position: absolute; inset: 0; pointer-events: none; white-space: pre-wrap; word-break: break-word; overflow: hidden; color: var(--mut); opacity: .75; }
.hc-ghost .g-typed { color: transparent; }
.hc-ghost.g-ph .g-key { display: none; }   /* 📱 the layer showing the placeholder: nothing to take */
.hc-ghost .g-key { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; line-height: 15px; vertical-align: 1px; opacity: .8; }
.hc-empty.thinking .hc-ask { color: var(--mut); font-weight: 500; animation: hcPulse 1.4s ease-in-out infinite; }
@keyframes hcPulse { 50% { opacity: .45; } }
.hc-input.ghosting::placeholder { color: transparent; }
.hc-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line: a long placeholder wrapped and hid its end (owner 2026-11-08) */
.hc-ghost .g-key { pointer-events: auto; cursor: pointer; }
.hc-ghost .g-key:hover { border-color: var(--acc); color: var(--acc); }
@media (pointer: coarse) { .hc-ghost .g-key { padding: 2px 8px; font-size: 12px; line-height: 18px; border-color: var(--acc); color: var(--acc); background: var(--bg); opacity: 1; } }

/* 🔐 vault input inside an AI answer ({{secret:NAME|설명}}) */
.hc-secret{display:flex;flex-direction:column;gap:6px;margin:8px 0;padding:10px 12px;border:1px solid var(--line,#d0d7de);border-left:3px solid #c69026;border-radius:8px;background:var(--panel,rgba(198,144,38,.06));max-width:460px}
.hc-secret .sc-h{font-size:13px}
.hc-secret .sc-h code{font-size:11px;opacity:.7;margin-left:4px}
.hc-secret .sc-row{display:flex;gap:6px}
.hc-secret input{flex:1;min-width:0;padding:6px 8px;border:1px solid var(--line,#d0d7de);border-radius:6px;font:inherit;font-size:16px;background:var(--bg,#fff);color:inherit}
.hc-secret button{padding:6px 10px;border-radius:6px;white-space:nowrap}
.hc-secret .sc-eye{padding:6px 8px}
.hc-secret .sc-st{font-size:12px;opacity:.8}
.hc-secret .sc-st:empty{display:none}
.hc-secret.has .sc-h::after{content:"· 저장됨 (다시 입력하면 교체)";font-size:11px;color:#1a7f37;margin-left:6px}
.hc-secret.done{border-left-color:#1a7f37}
.hm-fallback { font-size: 12px; color: var(--warn, #b45309); background: color-mix(in srgb, var(--warn, #b45309) 10%, transparent); border-radius: 6px; padding: 3px 8px; margin: 0 0 6px; display: inline-block; }

/* prompt queue (sent while an answer runs; goes out when it ends) */
.hc-queue { display: flex; flex-direction: column; gap: 4px; max-width: 820px; margin: 0 auto 6px; }   /* same width as the input box (.hc-box) */
.hq-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg2); font-size: 13px; }
.hq-n { flex: none; font-size: 11px; font-weight: 700; color: var(--acc); }
.hq-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-item button { flex: none; border: 0; background: none; color: var(--mut); font-size: 12px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.hq-item button:hover { background: var(--bg3); color: var(--fg); }
.hq-now[hidden] { display: none; }
.hq-item .hq-fold { width: 18px; padding: 2px 0; margin-left: -4px; font-size: 10px; }
.hq-t { cursor: pointer; }
.hq-item.open { flex-wrap: wrap; align-items: center; }
.hq-item.open .hq-t { order: 9; flex-basis: 100%; margin: 2px 0 2px 18px; padding: 6px 8px; border-radius: 6px; background: var(--bg);
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; line-height: 1.5; cursor: text; }
.hq-item.open .hq-n { flex: 1; }   /* the buttons stay on the first line, at the right */
.hq-go { align-self: flex-start; border: 1px solid var(--line); background: var(--bg); color: var(--acc); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
/* 💬 사이드채팅 (/btw): one threaded panel over the input box, outside the conversation */
.hc-btw-box { --btw-tint: color-mix(in srgb, var(--acc) 5%, var(--bg)); max-width: 820px; margin: 0 auto 8px; border: 1px solid color-mix(in srgb, var(--acc) 18%, var(--line));
  border-radius: 14px; background: var(--btw-tint); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px -10px color-mix(in srgb, var(--acc) 35%, transparent);
  font-size: 13px; overflow: hidden; animation: btw-in .18s ease-out; }
.hc-btw-box[hidden] { display: none; }
@keyframes btw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btw-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 8px 7px 12px; cursor: pointer; user-select: none; min-width: 0; }
.btw-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--acc); color: #fff; }
.btw-tag { flex: none; font-size: 13px; font-weight: 650; color: var(--fg); letter-spacing: -.01em; }
.btw-n { flex: none; font-size: 11px; font-weight: 600; color: var(--acc); background: var(--acc-bg); padding: 1px 7px; border-radius: 999px; }
.btw-n:empty { display: none; }
.btw-last { flex: 1 1 60px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); font-size: 12px; }
.btw-acts { flex: none; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.btw-acts button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--mut); font-size: 12px; font-weight: 550;
  padding: 4px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.btw-acts button:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); }
.btw-acts .btw-use:not(:disabled) { color: var(--acc); }
.btw-acts .btw-use.done { color: var(--ok); }
.btw-acts button:disabled { opacity: .45; cursor: default; }
.btw-acts .btw-use.done:disabled { opacity: 1; }
.btw-acts .btw-fold, .btw-acts .btw-x { padding: 4px 5px; }
.btw-fold svg { transition: transform .15s; }
.hc-btw-box:not(.open) .btw-fold svg { transform: rotate(-90deg); }
.btw-empty { color: var(--mut); font-size: 12px; text-align: center; padding: 6px 8px 2px; }
.hc-btw-box:not(.open) .btw-b { display: none; }
.btw-b { border-top: 1px solid color-mix(in srgb, var(--acc) 10%, var(--line)); background: var(--bg); }
.btw-log { max-height: 40vh; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.btw-u { align-self: flex-end; max-width: 85%; }
.btw-u .btw-t { background: var(--acc-bg); color: var(--fg); padding: 7px 12px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.btw-ai { align-self: flex-start; display: flex; gap: 8px; max-width: 94%; min-width: 0; }
.btw-av { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--bg3); color: var(--mut); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.btw-ai .btw-t { min-width: 0; padding-top: 2px; line-height: 1.6; overflow-wrap: anywhere; color: var(--fg); }
.btw-ai .btw-t > div > :first-child { margin-top: 0; } .btw-ai .btw-t > div > :last-child { margin-bottom: 0; }
.btw-ai .btw-t p { margin: 0 0 6px; } .btw-ai .btw-t ul, .btw-ai .btw-t ol { margin: 2px 0 6px; padding-left: 18px; }
.btw-ai.btw-err .btw-t { color: var(--no); }
.btw-ai.streaming .btw-t > div > :last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px;
  border-radius: 2px; background: var(--acc); animation: btw-caret 1s steps(2) infinite; }   /* the answer still coming */
@keyframes btw-caret { 50% { opacity: 0; } }
.btw-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.btw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); opacity: .35; animation: btw-dot 1.1s infinite ease-in-out; }
.btw-dots i:nth-child(2) { animation-delay: .15s; } .btw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes btw-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
.btw-ref { display: flex; align-items: center; gap: 6px; margin: 4px 10px 0; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--acc-bg); color: var(--acc); font-size: 12px; }
.btw-ref[hidden] { display: none; }
.btw-ref-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btw-ref button { flex: none; border: 0; background: none; color: var(--mut); font-size: 11px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.btw-uref { font-size: 11px; color: var(--mut); text-align: right; margin: 0 4px 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btw-f { display: flex; align-items: flex-end; gap: 6px; margin: 4px 10px 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: border-color .12s, box-shadow .12s; }
.btw-f:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 12%, transparent); background: var(--bg); }
.btw-f textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--fg); font: inherit; font-size: 13px;
  padding: 5px 0; min-height: 28px; max-height: 120px; line-height: 1.45; }
.btw-f button { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: var(--acc); color: #fff; cursor: pointer; transition: opacity .12s; }
.btw-f:not(:focus-within) button { opacity: .75; }
.hc-btw-box .btw-t, .hc-btw-box .btw-t.hm-body { font-size: 13px; }   /* the same size on both sides (hm-body grows on a phone) */
@media (max-width: 700px) {
  .hc-composer { padding: 8px 12px 12px; }
  .hc-composer .hc-box { border-radius: 12px; padding: 6px 8px 4px; }
  .hc-composer textarea.hc-input { font-size: 16px; min-height: 36px; }
  .hc-composer .hc-magp { gap: 4px; padding: 2px 8px 6px; margin-bottom: 4px; }
  .hc-composer .hc-magp button { min-height: 32px; padding: 0 8px; font-size: 13px; }
  /* 전송 버튼 밀림 방지 */
  .hc-composer .btn-send { flex: none !important; margin-left: auto; }
  .hc-composer .toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 4px; flex-wrap: nowrap !important; overflow-x: auto; padding: 0; }
}
  .hc-btw-box .btw-t, .hc-btw-box .btw-t.hm-body { font-size: 14px; } }
.hc-steer { flex: none; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); background: var(--acc-bg); color: var(--acc); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hc-steer[hidden] { display: none; }
.hm-verify { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warn, #b45309) 40%, transparent); border-left: 3px solid var(--warn, #b45309); border-radius: 8px; background: color-mix(in srgb, var(--warn, #b45309) 8%, transparent); font-size: 13px; }
.hm-verify b { color: var(--warn, #b45309); }
.hm-verify ul { margin: 4px 0 0; padding-left: 18px; }
.hm-verify li { word-break: break-all; }

/* 대화 탭 (chat.js): several conversations open at once */
.hc-tabs { display: flex; align-items: stretch; gap: 2px; padding: 4px 6px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.hc-tabs::-webkit-scrollbar { display: none; }
.hc-tabs[hidden] { display: none; }
.hc-tab { display: inline-flex; align-items: center; gap: 4px; max-width: 160px; min-width: 64px; padding: 4px 6px 5px 8px; border: 1px solid transparent; border-bottom: none;
  border-radius: 6px 6px 0 0; font-size: 12px; color: var(--mut, #888); cursor: pointer; flex: none; }
.hc-tab:hover { background: var(--bg3); }
.hc-tab.on { color: var(--fg); background: var(--bg, #fff); border-color: var(--line); margin-bottom: -1px; }
.hc-tab .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hc-tab .x { border: none; background: transparent; color: inherit; padding: 0 2px; font-size: 11px; opacity: 0; cursor: pointer; }
.hc-tab:hover .x, .hc-tab.on .x { opacity: .7; }
.hc-tab .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: transparent; }
.hc-tab .hc-cache, .hc-et .hc-cache { flex: none; margin-left: 2px; font-size: 10px; line-height: 1; opacity: .75; cursor: help; }   /* ⚡ prompt cache still warm */
.hc-tab.run .dot { background: var(--accent, #4f46e5); animation: hc-tab-pulse 1.2s ease-in-out infinite; }
.hc-tab.unread .dot { background: #e5484d; }
.hc-tab.unread .t { font-weight: 600; color: var(--fg); }
@keyframes hc-tab-pulse { 50% { opacity: .3; } }
.hc-tab-new { border: none; background: transparent; color: var(--mut, #888); font-size: 14px; padding: 0 8px; cursor: pointer; flex: none; }
.hc-tab-new:hover { color: var(--fg); }
.hc-tab-more { border: none; background: transparent; color: var(--mut, #888); font-size: 14px; padding: 0 8px; cursor: pointer; flex: none; margin-left: auto; position: sticky; right: 0; background: var(--bg2, inherit); }
.hc-tab-more:hover { color: var(--fg); }

/* 📱 phone: no conversation tab strip — switch conversations from the ☰ list (drawer) instead */
@media (max-width: 700px) { .hc-tabs, .hc-tabs:not([hidden]) { display: none !important; } }
/* 질문할 때 보고 있던 탭 (under the user's bubble) · 답변 소요 시간 (in the answer's meta line) */
.hm-utab { margin-top: 4px; max-width: min(320px, 85%); border: 0; background: none; color: var(--mut); font: inherit; font-size: 12px; padding: 1px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 6px; }
.hm-utab:hover { color: var(--acc); background: var(--bg2); }
.hm-dur { font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* 다시 생성 팝업 · 🎓 학습 후 다시 생성 (chat.js regenMenu / mentorEl) */
.hm-regen { margin: 6px 0 4px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; max-width: 460px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hm-regen > button { text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--fg); cursor: pointer; }
.hm-regen > button:hover { background: var(--bg3); }
.hm-rg-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 8px 6px 26px; font-size: 12.5px; }
.hm-rg-sub select { flex: 1; min-width: 160px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; }
.hm-rg-sub button, .hm-mt-acts button, .hm-mt-form button { height: 30px; padding: 0 10px; border: 1px solid var(--acc); border-radius: 6px; background: var(--acc); color: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.hm-mt-acts button.sec, .hm-mt-form button.sec { background: var(--bg); color: var(--fg); border-color: var(--line); }
.hm-rg-tip { flex-basis: 100%; margin: 2px 0 0; font-size: 11.5px; } .hm-rg-wait { margin: 4px 8px; font-size: 13px; }
.hm-mentor { margin-top: 6px; border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 7px; padding: 6px 10px; font-size: 12.5px; background: var(--bg2); }
.hm-mentor.up { border-left-color: var(--ok); }
.hm-mentor summary { cursor: pointer; } .hm-mentor ul { margin: 2px 0 6px; padding-left: 18px; }
.hm-mt-g { white-space: pre-wrap; margin: 2px 0 6px; } .hm-mt-acts { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hm-mt-form { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.hm-mt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .hm-mt-row input { height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); padding: 0 8px; font: inherit; font-size: 12.5px; }
.mt-content { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); padding: 6px 8px; resize: vertical; }
.hm-mt-tg { display: flex; flex-wrap: wrap; gap: 4px 10px; max-height: 120px; overflow: auto; }

/* 🎓 지도 중 (streamed guidance) · 지도 내용 button · popup */
.hm-mstream { cursor: pointer; border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 7px; padding: 6px 10px; background: var(--bg2); font-size: 12.5px; }
.hm-mstream .ms-h { display: flex; align-items: center; gap: 6px; } .hm-mstream .ms-tip { margin-left: auto; font-size: 11px; }
.hm-mstream .ms-body { max-height: 3.4em; overflow: hidden; margin-top: 4px; color: var(--mut); line-height: 1.55; }
.hm-mstream.open .ms-body { max-height: 60vh; overflow: auto; color: var(--fg); }
.hm-mstream .ms-think { margin: 0 0 4px; white-space: pre-wrap; font: inherit; font-size: 11.5px; opacity: .75; }
.hm-mstream .ms-text h2, .hm-mstream .ms-text h3 { font-size: 12.5px; margin: 6px 0 2px; }
.hm-mstream .ms-text p, .hm-mstream .ms-text ul, .hm-mstream .ms-text ol { margin: 2px 0; }
.hm-mbtn { margin-left: 6px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); border-radius: 10px; padding: 0 8px; height: 20px; font: inherit; font-size: 11.5px; cursor: pointer; }
.hm-mbtn:hover { border-color: var(--acc); }
.hm-mpop { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hm-mpop .mp-card { background: var(--bg); color: var(--fg); border-radius: 10px; width: min(720px, 100%); max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hm-mpop .mp-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.hm-mpop .mp-x { margin-left: auto; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--mut); }
.hm-mpop .mp-b { padding: 6px 16px 14px; overflow: auto; font-size: 13px; line-height: 1.6; }
.hm-mpop h4 { margin: 12px 0 4px; font-size: 13px; } .hm-mpop ul { margin: 2px 0; padding-left: 20px; } .hm-mpop .mp-v { white-space: pre-wrap; margin: 2px 0; }
.hm-rg-note { flex-basis: 100%; min-height: 54px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; padding: 6px 8px; }
.hm-mstream .ms-note { margin-top: 3px; font-size: 11.5px; white-space: pre-wrap; } .hm-mpop .mp-n { white-space: pre-wrap; margin: 2px 0; }
/* 🔍 답변 분석 — throwaway chat about one answer */
.hm-anz { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); max-width: 720px; box-shadow: 0 4px 14px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.hm-anz .az-h { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.hm-anz .az-m { font: inherit; font-size: 12px; max-width: 200px; }
.hm-anz .az-h .mut { font-size: 11.5px; }
.hm-anz .az-x { margin-left: auto; border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--mut); }
.hm-anz .az-log { max-height: 50vh; overflow: auto; padding: 6px 12px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.hm-anz .az-q { align-self: flex-end; background: var(--bg3); border-radius: 9px; padding: 5px 10px; max-width: 85%; white-space: pre-wrap; }
.hm-anz .az-think { margin: 0; max-height: 3.4em; overflow: hidden; font-size: 11.5px; color: var(--mut); white-space: pre-wrap; }
.hm-anz .az-f { display: flex; gap: 6px; padding: 7px 10px; border-top: 1px solid var(--line); }
.hm-anz .az-f textarea { flex: 1; resize: vertical; min-height: 32px; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--fg); }
.hm-anz .az-f button { font-size: 13px; }
.hm-anz .az-re { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg2); color: var(--fg); cursor: pointer; }
.hm-anz .az-re:disabled { opacity: .5; cursor: default; }
.hm-anz .az-mm { font-size: 11px; margin-top: 4px; }
.hm-anz .az-a + .az-a .az-mm:first-child, .hm-anz .az-q + .az-a .az-mm { margin-top: 0; }
/* 모바일: 답변 분석 as a popup (bottom sheet) over the chat */
.hm-anz-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.hm-anz-ov .hm-anz { margin: 0; width: 100%; max-width: 720px; height: 85dvh; max-height: 85dvh; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.25); }
.hm-anz-ov .az-log { flex: 1; max-height: none; }
.hm-anz-ov .az-h .az-tip { display: none; }
.hm-anz-ov .az-f { padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
.hm-anz-ov .az-f textarea { font-size: 16px; }
.hm-anz .az-st { margin-left: 4px; } .hm-anz .az-st.ok { color: #1a7f37; } .hm-anz .az-st.err { color: #cf222e; }
.hm-anz .az-tl { font-size: 11.5px; margin: 1px 0; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-anz .az-tl code { font-size: 11px; }
.hm-anz .az-rt { font-size: 11.5px; margin: 1px 0 3px; line-height: 1.5; }
/* answer actions: words on wide screens, icons only on phones (app.css) */
.hm-act .hm-ic { display: none; }
.hm-anz .az-rg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-top: 1px solid var(--line); font-size: 11.5px; }
.hm-anz .az-rg[hidden] { display: none; }
.hm-anz .az-rgb { font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--accent, #6b5cff); border-radius: 7px; background: none; color: var(--accent, #6b5cff); cursor: pointer; }
/* 🔓 이 대화는 모두 승인 */
.st-auto { padding: 6px 12px; color: #1a7f37; } .st-auto.st-error { color: #cf222e; }
.ap-b .ap-all { border-style: dashed; }
/* 🔓 모두 승인: a compact badge in the title header (.hc-head) */
.hc-aa { flex: none; display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 3px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); font-size: 12px; white-space: nowrap; }
.hc-aa[hidden] { display: none; }
.hc-aa.on { border-color: #e3b341; background: color-mix(in srgb, #e3b341 14%, var(--bg)); }
.hc-aa .aa-t { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.hc-aa .aa-n { min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e3b341; color: #000; font-size: 10.5px; line-height: 16px; text-align: center; }
.hc-aa button { border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--fg); font: inherit; height: 22px; padding: 0 8px; cursor: pointer; white-space: nowrap; }
.hc-aa button:hover { background: var(--bg3); }
.hc-aa, .hc-aa.on { padding: 0; border: 0; background: none; }   /* (one icon button now: aa-btn) */
.hc-aa .aa-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--mut); font-size: 13px; }
.hc-aa .aa-btn:hover { background: var(--bg3); color: var(--fg); }
.hc-aa.on .aa-btn { color: #c98a00; background: color-mix(in srgb, #e3b341 16%, transparent); border-color: color-mix(in srgb, #e3b341 55%, transparent); }
.hc-aa.on .aa-btn:hover { background: color-mix(in srgb, #e3b341 26%, transparent); }
.hc-aa .aa-btn .aa-n { position: absolute; top: -5px; left: 18px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; line-height: 15px; font-size: 9.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.hc-aa .aa-btn:has(.aa-n) { margin-right: 14px; }   /* the corner badge sticks out: room so it never covers the chip beside it */
.adc .hc-bar > .hc-aa button.aa-btn { width: 26px; height: 26px; padding: 0; }
/* its menu (aaMenu): a header card with the state, then icon rows — 해제 in red */
.hc-mmenu.hc-aamenu { min-width: 300px; max-width: min(360px, calc(100vw - 16px)); padding: 6px; border-radius: 14px; box-shadow: 0 10px 32px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08); }
.hc-aamenu .aa-mh { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 12px; border-radius: 10px; background: var(--bg2); }
.hc-aamenu .aa-mh.on { background: color-mix(in srgb, #e3b341 13%, var(--bg)); }
.hc-aamenu .aa-mi { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg3); color: var(--mut); }
.hc-aamenu .aa-mh.on .aa-mi { background: color-mix(in srgb, #e3b341 26%, transparent); color: #c98a00; }
.hc-aamenu .aa-mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-aamenu .aa-mt b { font-size: 14px; font-weight: 700; }
.hc-aamenu .aa-mt i { font-style: normal; font-size: 12px; color: var(--mut); }
.hc-aamenu button.aa-mit { min-height: 52px; gap: 12px; padding: 8px 10px; }
.hc-aamenu .aa-mx { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bg2); color: var(--fg); }
.hc-aamenu .aa-mx svg { width: 17px; height: 17px; color: inherit; }
.hc-aamenu .aa-mi svg { width: 20px; height: 20px; color: inherit; }
.hc-aamenu button.aa-stop .tx b, .hc-aamenu button.aa-stop .aa-mx { color: #d1453b; }
.hc-aamenu button.aa-stop .aa-mx { background: color-mix(in srgb, #d1453b 11%, transparent); }
.hc-aamenu button.aa-stop:hover { background: color-mix(in srgb, #d1453b 8%, transparent); }
.hc-aamenu .hc-pk { min-width: 18px; padding: 1px 5px; margin-left: auto; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; text-align: center; }
.hc-aamenu > .hc-mm-h { padding: 10px 12px; text-align: center; }
.hc-head { container-type: inline-size; }
@container (max-width: 460px) { .hc-aa .aa-lb, .hc-aa .aa-w { display: none; } }
.aa-ov { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.aa-dlg { width: min(720px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.aa-h { display: flex; align-items: center; } .aa-h .aa-x { margin-left: auto; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--mut); }
.aa-f { font-size: 12px; color: var(--mut); word-break: break-all; }
.aa-pt { display: flex; align-items: center; gap: 8px; font-size: 13px; } .aa-pt select { flex: 1; min-width: 0; }
.aa-note { font-size: 12px; color: var(--mut); line-height: 1.5; }
.aa-list { flex: 1; min-height: 80px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.aa-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; border-bottom: 1px solid var(--line); cursor: pointer; }
.aa-row:last-child { border-bottom: 0; }
.aa-row .aa-st { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg2); }
.aa-row.st-added .aa-st { color: #1a7f37; } .aa-row.st-deleted .aa-st { color: #cf222e; } .aa-row.st-modified .aa-st { color: #9a6700; }
.aa-row .aa-p { flex: 1; min-width: 0; word-break: break-all; } .aa-row .aa-do { flex: none; font-size: 11px; color: var(--mut); }
.aa-wait { padding: 12px; color: var(--mut); font-size: 13px; }
.aa-act { display: flex; align-items: center; gap: 10px; font-size: 13px; } .aa-act .aa-msg { flex: 1; color: var(--mut); }
@media (max-width: 700px) { .aa-ov { padding: 0; } .aa-dlg { height: 100%; max-height: none; border-radius: 0; } .aa-row .aa-do { display: none; } }
/* the process drawer's inner drawers: one per run of tool calls between two memos */
.hc-steps details.st-grp { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--bg2); }
.hc-steps details.st-grp > summary:hover { background: var(--bg3); }
/* memos between the drawers read as text: the page's background, the drawers stay shaded */
.hc-steps details:has(> details.st-grp) > .st-note { background: var(--bg); color: var(--fg); font-style: normal; }
.hc-steps details.st-grp > summary { padding: 6px 12px 6px 20px; font-weight: 400; }
.hc-steps details.st-grp > .st { padding-left: 8px; }
/* 에이전트 탭 (입력창 위) and the picked agent's colour: the box's edge, the send button, the answers' avatar */
.hc { --ag: var(--acc); }
.hc[data-agent="claude"] { --ag: #d97757; } .hc[data-agent="opencode"] { --ag: #0e9488; }
.hc-agents { display: none; }   /* picked in ⚙ 채팅 설정 */
.hc-ag { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--mut); cursor: pointer; box-shadow: none; }
.hc-ag:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
.hc-ag.on { color: #fff; background: var(--ag); border-color: var(--ag); }
.hc:not([data-agent="hermes"]) .hc-box { border-color: color-mix(in srgb, var(--ag) 55%, var(--line)); box-shadow: 0 2px 12px color-mix(in srgb, var(--ag) 14%, transparent); }
.hc:not([data-agent="hermes"]) .hc-box:focus-within { border-color: var(--ag); }
.hc:not([data-agent="hermes"]) .hc-send { background: var(--ag); border-color: var(--ag); }
.hm[data-agent="claude"] .hm-av { background: #d97757; } .hm[data-agent="opencode"] .hm-av { background: #0e9488; }
.hm-av[data-av="buzz"] { background: hsl(var(--h, 220) 45% 48%); }
.hm-av > svg { display: block; }
.hc-model option:disabled { color: var(--mut); }


/* 💬 채널·DM 스레드 (A단계, 읽기 전용) */
@media (max-width: 700px) { html.mshell .hc-drawer .hc-agf, html.mshell .hc-drawer .hc-dnew[hidden] { display: none !important; }
   }   /* 📱 the list follows 작업공간 / 채널 and ⚙'s agent */
 .bz-wait { padding: 10px 14px; font-size: 13px; }
.bz-row a { display: block; padding: 7px 14px; color: var(--fg); text-decoration: none; } .bz-row a:hover { background: var(--bg3); }
.bz-row .t { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bz-row .s { display: block; font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-robar { display: none; flex: none; margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: var(--bg3); color: var(--mut); text-align: center; }
.hc.hc-ro .hc-robar { display: block; } .hc-robar.pub { background: color-mix(in srgb, var(--acc) 12%, var(--bg)); color: var(--acc); }
.hc.hc-ro .hc-robar { margin-bottom: 6px; padding: 5px 12px; }

.hm-th-who { font-size: 12px; margin-bottom: 3px; text-align: right; }
.hm-quote { display: block; font-size: 12px; color: var(--mut); text-decoration: none; border-left: 2px solid var(--line); padding: 1px 8px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hm-user .hm-quote { align-self: flex-end; max-width: 85%; }
.hm-flash { background: color-mix(in srgb, var(--acc) 14%, transparent); transition: background .4s; border-radius: 8px; }

.hm-proc { align-self: flex-start; margin: 4px 0 0; border: 1px solid var(--line); background: var(--bg3); color: var(--mut); border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.hm-proc:hover, .hm-proc.on { color: var(--fg); }
.hm-prog { opacity: .95; border-left: 2px solid var(--acc); padding-left: 8px; }
.hm-prog .hm-pst { margin-left: 6px; }
.hm-ptxt { font-size: 12px; margin-top: 4px; }
.hm-bubble.md > :first-child { margin-top: 0; } .hm-bubble.md > :last-child { margin-bottom: 0; }

/* 🛠 작업대 (attached Buzz session) */
.hc.hc-at .hc-robar { display: block; margin-bottom: 6px; padding: 5px 12px; }
.hc.hc-atbusy .hc-composer textarea, .hc.hc-atbusy .hc-input { opacity: .5; }
.hm-atlive { opacity: .95; }
.hm-wb { margin-left: 6px; }

/* 📍 현재 화면: click = pick one of the open tabs */
.hc-ctx-pick { cursor: pointer; } .hc-ctx-pick:hover .hc-ctx-l { text-decoration: underline; }
.hc-ctx-ar { flex: none; opacity: .6; font-size: 11px; }
.hc-ctxmenu { max-width: min(420px, 92vw); max-height: 50vh; overflow-y: auto; }
.hc-ctxmenu button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-ctxmenu button.on { color: var(--acc); font-weight: 600; }
.hc-ctxmenu-h { padding: 4px 10px; font-size: 11.5px; color: var(--mut); }

/* 메신저 위치(전체 · 채널 · 스레드): 경로 줄 + 글 목록 */
.hc-robar:empty { display: none !important; }
   /* stuck over the log's top padding too: nothing shows above it */
.hc-psep { color: var(--mut); flex: none; }

/* ⚙ 채팅 설정 popup */
.hc-gear { flex: none; font-size: 16px; line-height: 1; }
.cs-dlg { width: min(600px, 100%); }
.cs-dlg .aa-h .cs-saved { margin-left: 10px; font-size: 12px; }
.cs-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.cs-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cs-sec[hidden] { display: none; }
.cs-sec h4 { margin: 0 0 2px; font-size: 14px; }
.cs-opt, .cs-type { display: flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 1.5; cursor: pointer; flex-wrap: wrap; }
.cs-type { margin-left: 24px; font-size: 12.5px; }
.cs-type.cs-d { color: #cf222e; }
.cs-types[hidden] { display: none; }
.cs-types { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 4px; }
.cs-note { font-size: 12px; color: var(--mut); line-height: 1.5; }
.cs-warn { padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, #e3b341 14%, var(--bg)); }
.cs-warn[hidden] { display: none; }
.cs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cs-row select, .cs-row input[type=text] { flex: 1; min-width: 0; height: 30px; }
.cs-row[hidden], .cs-row .cs-undo[hidden], .cs-row .cs-unpair[hidden] { display: none; }
/* ⚙ 채널 설정: name · description, the channel's agents with ★ 담당자 and 빼기 */
.cs-lb { flex: none; width: 34px; color: var(--mut); }
.cs-code { font-family: ui-monospace, monospace; font-size: 16px; letter-spacing: 1px; }
.cs-cur { font-size: 12px; word-break: break-all; }
.cs-st, .cs-tab { font-size: 13px; }
.ok-t { color: #1a7f37; }

/* 입력창이 위치를 따른다 (메신저 위치 = .hc-ro): 엔진 칩·모델·첨부·문장 배지·@ 줄 대신 보낼 곳(전체에서만)과 담당 */
.hc.hc-ro .hc-agents, .hc.hc-ro .hc-model, .hc.hc-ro .hc-setdef, .hc.hc-ro .hc-shot, .hc.hc-ro .hc-attach, .hc.hc-ro .hc-pick, .hc.hc-ro .hc-ctxm, .hc.hc-ro .hc-pc, .hc.hc-ro .hc-ghost, .hc.hc-ro .hc-aa, .hc.hc-ro .hc-robar { display: none !important; }
.hm-meta .hm-sess { margin-left: auto; font-size: 12px; color: var(--mut); text-decoration: none; padding: 1px 6px; border-radius: 6px; }
.hm-meta .hm-sess:hover { color: var(--acc); background: var(--bg3); }
.hc.hc-agsess .hc-agents { display: none !important; }

/* 채널 feed rows: post, its latest reply (summary), footer; the channel, an agent's name and the body each go somewhere */
   /* the latest reply in full (owner 2026-11-01: a clamped one cut its words off) */

/* 작업공간 | 채널 toggle in the chat header, left of the title */

/* the path on top of the input box (not over the log) */
.hc-pathslot { max-width: 820px; margin: 0 auto; }
.hc-pathslot:empty { display: none; }

/* 📱 the agent picker at the top of the 작업공간 conversation list (chat.js .hc-magp, owner 2026-11-01) */
.hc-magp { display: none; }
@media (max-width: 700px) {
  html.mshell .hc-drawer .hc-magp:not([hidden]):not(.hc-magp-no) { display: flex; gap: 6px; padding: 2px 14px 10px; overflow-x: auto; scrollbar-width: none; }
  html.mshell .hc-magp button { flex: 1 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
    color: var(--mut); font-size: 13.5px; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  html.mshell .hc-magp button.on { background: var(--fg); color: var(--bg); border-color: transparent; font-weight: 600; }
}
.hm-rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.hm-user .hm-rx { justify-content: flex-end; }
.hm-rx .rx { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; height: 22px; border-radius: 11px; background: var(--bg3); color: var(--fg); font-size: 12px; border: 1px solid transparent; }
.hm-rx .rx.me { border-color: var(--acc); background: var(--acc-bg); }
.hm-rx img { width: 16px; height: 16px; }
/* 🤖 새 에이전트 만들기 */
.na-dlg .na-lb { width: 64px; }
.na-dlg textarea { flex: 1; min-width: 0; resize: vertical; font: inherit; padding: 6px 8px; }
.na-dlg .na-top { align-items: flex-start; }
.na-dlg .na-why { font-size: 12.5px; }
/* 📍 현재 화면 · 📎 관련 문서 chips of a channel post (next to 담당) */
/* 답변 작성 중 · 접수 대기 — the last line of a thread (owner 2026-11-01) */
/* 📎 참고자료 of a channel post: small links under the bubble (inbox.py _buzz_refs_html) */
.bz-refs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 2px 0; font-size: 12px; }
.hm-user .bz-refs { justify-content: flex-end; }
.bz-refs .bz-ref { color: var(--mut); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-refs a.bz-ref:hover { color: var(--acc); text-decoration: underline; }
/* 답변 작성 중: the agent's name opens its live session */
/* ⚙ 에이전트 설정 (DM) */
.cs-kv { display: flex; gap: 10px; align-items: baseline; }
.cs-kv .k { flex: none; width: 76px; color: var(--mut); }
.cs-kv .v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; overflow-wrap: anywhere; }
.cs-kv select { height: 28px; max-width: 46%; }
/* ✎ 에이전트 수정 (owner 2026-11-01) */
.na-chs { display: flex; flex-wrap: wrap; gap: 4px 12px; max-height: 160px; overflow: auto; }
.na-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.na-sp { flex: 1; }
.na-arch { color: #cf222e; }
/* ☰ on the channel side: channels (summary · agents · 담당 · 수정 · 삭제 · 만들기), a channel's issues, a thread's agents */

.hc-drawer .hc-agf[hidden] { display: none !important; }
/* 작업공간 대화 목록: 에이전트 세션 category heading */
.hc-list .hc-lsec { padding: 12px 12px 4px; font-size: 12px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; list-style: none; }

/* 📱 pull up at the end of the conversation → refresh (chat-mobile.js, owner 2026-11-03) */
.m-ptr { position: fixed; left: 50%; transform: translateX(-50%); z-index: 90; pointer-events: none; padding: 7px 14px; border-radius: 999px;
  background: var(--bg2); color: var(--mut); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; opacity: 0; transition: opacity .12s, color .12s, background .12s; }
.m-ptr.on { color: var(--fg); background: var(--bg3); }
.m-ptr.busy::before { content: ""; display: inline-block; width: 11px; height: 11px; margin: 0 7px -1px 0; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: m-ptr-spin .7s linear infinite; }
@keyframes m-ptr-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .hc-log { overscroll-behavior-y: contain; }   /* the pull at the end stays in the log — no page bounce */
}

/* 📎 참고 문서 chips over an AI chat's input (chat.js REFS): ✕ takes one off, ＋ 참고 adds (phones) — owner 2026-11-03 */
.hc-refs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 820px; margin: 0 auto; padding: 0 4px 6px; }
.hc-refs[hidden] { display: none; }
.hc-ref { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; padding: 2px 2px 2px 10px; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line));
  border-radius: 999px; background: color-mix(in srgb, var(--acc) 8%, var(--bg)); color: var(--fg); font-size: 12.5px; }
.hc-ref .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-ref .x { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--mut); font-size: 12px; cursor: pointer; }
.hc-ref .x:hover { background: var(--bg3); color: var(--fg); }
/* ✕ dead centre in its circle (owner 2026-11-17 "닫기 X 버튼 아이콘 위치가 틀어져"): a button rule elsewhere gave it 6px 12px padding */
.hc-refs .hc-ref .x { display: inline-grid; place-items: center; padding: 0; margin: 0 1px 0 4px; line-height: 1; font-size: 12px; }
.hc-ref-add { padding: 2px 12px; border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--acc); font-size: 12.5px; cursor: pointer; }
@media (max-width: 700px) { .hc-ref { font-size: 13.5px; padding: 3px 2px 3px 12px; } .hc-ref .x { width: 30px; height: 30px; } .hc-ref-add { padding: 6px 14px; font-size: 13.5px; } }

/* 📤 채널·DM에 올리기 (chat.js shareTo) — owner 2026-11-03 */
.hc-shov { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.42); animation: fadein .15s ease; }
.hc-shcard { display: flex; flex-direction: column; gap: 8px; width: min(480px, 94vw); max-height: 86vh; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.hc-shh { display: flex; align-items: center; } .hc-shh b { flex: 1; font-size: 16px; }
.hc-shx { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--mut); font-size: 16px; cursor: pointer; }
.hc-shsc { display: flex; gap: 16px; font-size: 14px; } .hc-shsc label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hc-shq, .hc-shn { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); font: inherit; font-size: 14.5px; }
.hc-shn { resize: vertical; }
.hc-shl { flex: 1; min-height: 120px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.hc-shr { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); text-align: left; font: inherit; cursor: pointer; }
.hc-shr b { font-weight: 600; font-size: 14.5px; } .hc-shr .mut { font-size: 12px; margin-left: auto; white-space: nowrap; }
.hc-shr:hover { background: var(--bg3); } .hc-shr.on { background: color-mix(in srgb, var(--acc) 16%, transparent); outline: 1px solid var(--acc); }
.hc-shw { padding: 12px; font-size: 13.5px; }
.hc-shf { display: flex; align-items: center; gap: 8px; } .hc-shmsg { flex: 1; font-size: 13px; }
.hc-shf button { padding: 9px 16px; border-radius: 10px; font: inherit; font-size: 14.5px; cursor: pointer; }
.hc-shgo { border: 0; background: var(--acc); color: #fff; font-weight: 700; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-shgo:disabled { opacity: .45; cursor: default; }
.hc-shc { border: 1px solid var(--line); background: none; color: var(--fg); }
@media (max-width: 700px) {   /* a sheet from the bottom on a phone */
  .hc-shov { align-items: flex-end; }
  .hc-shcard { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .hc-shr { padding: 12px 10px; } .hc-shq, .hc-shn { font-size: 16px; }
}

/* 📱 narrower side margins in 작업공간 · 채널 (owner 2026-11-03): conversation 18 → 10px, feed rows 14 → 6px more, wider bubbles */
@media (max-width: 700px) {
  .hc-log > * { padding-left: 10px; padding-right: 10px; }
  .hm-bubble, .hm-user .hm-quote { max-width: 90%; }
  .md blockquote { padding: .2em .7em; }
}

/* 작업공간: the buttons under an answer are always there (owner 2026-11-03), not only on hover */
.hc:not(.hc-ro) .hm-assistant:not(.hm-live) .hm-act { opacity: 1; }

/* 채널 side (places · agent sessions): no 새 대화 — the header ＋ and the 📱 pill over the box (owner 2026-11-03) */
.hc.hc-ro .hc-head .hc-new, .hc.hc-agsess .hc-head .hc-new,
html.mshell .aux .hc.hc-ro > .hc-head .hc-new, html.mshell .aux .hc.hc-agsess > .hc-head .hc-new { display: none !important; }
html .aux .hc.hc-ro > .ms-newchat, html .aux .hc.hc-agsess > .ms-newchat { display: none !important; }
/* ⚙ 에이전트 설정 › 자율 계획 (owner 2026-11-04): limits · the agent's 조정 범위 · 조정 기록 */
.cs-auto { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cs-auto .au-lb { flex: none; width: 76px; }
.cs-auto .au-top { align-items: flex-start; }
.cs-auto textarea.au-w { height: 120px; min-width: 0; font: 12px ui-monospace, monospace; }
.cs-auto input[type=number] { width: 64px; height: 28px; padding: 0 4px; }
.cs-auto .au-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cs-auto .au-t th { text-align: left; font-weight: 500; color: var(--mut); padding: 2px 4px; border-bottom: 1px solid var(--line); }
.cs-auto .au-t td { padding: 3px 4px; vertical-align: middle; }
.cs-auto .au-t td:first-child { width: 42%; }
.cs-auto .au-t td:last-child { white-space: nowrap; }
.cs-auto .au-t td input[type=number] { width: 52px; padding: 0 3px; font-size: 12.5px; }
.cs-auto .au-log { margin: 2px 0 0; padding-left: 16px; }
@media (max-width: 700px) { .cs-auto .au-t td:first-child { width: auto; } .cs-auto .au-t td input[type=number] { width: 44px; } }

/* 📱 채팅 설정: PC 연결 (내 PC의 Chrome 조작) is a desktop thing — not on the phone page (owner 2026-11-04) */
@media (max-width: 700px) { .cs-sec[data-sec="pc"] { display: none !important; } }
/* 자율 계획 — 소속(scope)별 카드 (owner 2026-11-04) */
.cs-auto .au-sc { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.cs-auto .au-sc > summary { cursor: pointer; font-size: 13px; line-height: 1.6; }
.cs-auto .au-in { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.cs-auto .au-h5 { margin-top: 4px; font-weight: 600; font-size: 12.5px; }
.cs-auto .au-todo { margin: 0; padding-left: 4px; list-style: none; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.cs-auto .au-todo .au-done { opacity: .55; }
.cs-auto textarea.au-perm { flex: 1; min-width: 0; font-size: 12px; }
.cs-auto .au-lb .mut { font-size: 11px; }
.cs-auto .au-p-approval { color: var(--warn, #b45309); } .cs-auto .au-p-forbidden { color: #cf222e; }
.cs-auto .au-add { border: 1px dashed var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.cs-auto .au-add select { flex: 1; min-width: 0; height: 30px; }
/* 설정 › 에이전트 › 에이전트 관리 (agentsadmin.js, owner 2026-11-04): built from the shared 설정 parts — si-chip ·
   sl-bar-row (스킬 학습), sys-t sl-t tables, wc-body · bs-row details (업무 점검); only what those don't cover is here */
#agents-admin .aa-sum { margin: 2px 0 6px; font-size: 12.5px; }
#agents-admin .aa-foot { font-size: 12px; margin-top: 10px; }
#agents-admin .si-chip .aa-n { opacity: .75; }
#agents-admin .aa-t { min-width: 860px; }
#agents-admin .aa-t th { cursor: pointer; user-select: none; white-space: nowrap; }
#agents-admin .aa-t th.on { color: var(--fg); }
#agents-admin .aa-t .num { text-align: right; font-variant-numeric: tabular-nums; }
#agents-admin .aa-tr { cursor: pointer; }
#agents-admin .aa-tr:hover > td { background: var(--bg3); }
#agents-admin .aa-tr.open > td { background: var(--acc-bg); border-bottom-color: transparent; }
#agents-admin .aa-t td.aa-ro { white-space: normal; min-width: 150px; max-width: 230px; }
#agents-admin .aa-t td.aa-nm, #agents-admin .aa-t td.aa-mo, #agents-admin .aa-t td.num { white-space: nowrap; }
#agents-admin .aa-ro > div { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#agents-admin .aa-pg { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#agents-admin .aa-pg b { font-weight: 600; } #agents-admin .aa-pgs { white-space: nowrap; }
#agents-admin .aa-pgw + .aa-pgw { margin-top: 6px; }
#agents-admin .aa-t td.aa-pgc { min-width: 170px; } #agents-admin .aa-pg span { white-space: nowrap; }
#agents-admin .aa-t td.aa-auc { min-width: 130px; }
#agents-admin .aa-bar2 { display: inline-flex; width: 64px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); flex: none; }
#agents-admin .aa-bar2 i { display: block; height: 100%; }
#agents-admin .g-ok { background: var(--ok); } #agents-admin .g-gap { background: var(--warn); } #agents-admin .g-risk { background: var(--no); } #agents-admin .g-unknown { background: var(--mut); opacity: .45; }
#agents-admin .aa-tot td { border-bottom: none; font-weight: 600; }
#agents-admin .aa-dt > td { padding: 0 0 6px; white-space: normal; }
#agents-admin .aa-detail { position: sticky; left: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; margin: 2px 0 6px; }
#agents-admin .aa-detail .bs-row { grid-template-columns: 140px minmax(0, 1fr); }
#agents-admin .aa-v { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
#agents-admin .aa-v select { height: 32px; max-width: 46%; }
#agents-admin .aa-um { max-width: 600px; } #agents-admin .aa-um th { cursor: default; }
/* 이름 stays put while the table scrolls sideways (every width) */
#agents-admin .aa-t th:first-child, #agents-admin .aa-tr > td:first-child, #agents-admin .aa-tot > td:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: inset -1px 0 0 var(--line); }
#agents-admin .aa-t th:first-child { z-index: 2; }
#agents-admin .aa-tr:hover > td:first-child { background: var(--bg3); }
#agents-admin .aa-tr.open > td:first-child { background: var(--acc-bg); }
/* 소속 채널: hashtags — a click filters the table by that channel */
#agents-admin .aa-t td.aa-chs { min-width: 270px; }
#agents-admin .aa-chl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#agents-admin .aa-chl + .aa-chl { margin-top: 4px; }
#agents-admin .aa-chl .aa-tag { min-width: 96px; }
#agents-admin .aa-tag { color: var(--acc); text-decoration: none; white-space: nowrap; }
#agents-admin .aa-tag:hover { text-decoration: underline; }
#agents-admin .aa-tag.lead { font-weight: 600; }
#agents-admin .aa-tag.on { background: var(--acc-bg); border-radius: 4px; padding: 0 3px; }
#agents-admin .aa-tags:empty { display: none; }
#agents-admin .aa-chm:empty { display: none; }
#agents-admin .aa-idle { font-size: 11.5px; color: var(--mut); margin-top: 2px; }
#agents-admin .aa-idle.hi { color: var(--warn); font-weight: 600; }
#agents-admin .aa-chm { gap: 6px 12px; font-size: 12.5px; }
#agents-admin .aa-cm { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#agents-admin .aa-cm select { font-size: 12.5px; padding: 2px 4px; }
/* 자율운영: 끄기 · 켜기(계획만 · 보통 · 패스트 · 부스트) right in the row */
#agents-admin select.aa-au { height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--mut); font: inherit; font-size: 12.5px; }
#agents-admin select.aa-au.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
#agents-admin .aa-auw + .aa-auw { margin-top: 4px; }
@media (max-width: 700px) {
  #agents-admin .aa-detail .bs-row { grid-template-columns: 1fr; }
}
/* 넓게 보기 (agentsadmin.js .aa-wide): only while the 에이전트 tab shows — less side padding, no max width for this card */
@media (min-width: 701px) {   /* as strong as app.css's ".editor-body.sn-on > #sys" page rules, which it overrides */
  .editor-body.sn-on > #sys.aa-wide:has(> .sys-top[data-tp="agents"]:not([hidden])), #sys.aa-wide:has(> .sys-top[data-tp="agents"]:not([hidden])) { padding-left: 16px; padding-right: 16px; }
  .editor-body.sn-on > #sys.aa-wide > .sys-top[data-tp="agents"], #sys.aa-wide > .sys-top[data-tp="agents"] { max-width: none; }
  #sys.aa-wide .sys-top[data-tp="agents"] .ssec[data-sec="manage"] > .bs-card { max-width: none; margin-left: 0; margin-right: 0; }
}
#agents-admin .aa-t td.aa-nwc { min-width: 200px; max-width: 260px; white-space: normal; }
#agents-admin .aa-ev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#agents-admin .aa-nw + .aa-nw { margin-top: 6px; }
#agents-admin .aa-dm { color: var(--acc); text-decoration: none; } #agents-admin .aa-dm:hover { text-decoration: underline; }
/* 설정 › 에이전트 › 활동 보드 (activity.js, owner 2026-11-04) */
:is(#activity-board, .activity-board) .ab-sum { font-size: 12.5px; margin: 2px 0 6px; }
:is(#activity-board, .activity-board) .ab-it > summary { align-items: center; }
:is(#activity-board, .activity-board) .ab-it > summary b { font-weight: 600; }
:is(#activity-board, .activity-board) .ab-st { font-size: 11.5px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); white-space: nowrap; }
:is(#activity-board, .activity-board) .ab-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
:is(#activity-board, .activity-board) .ab-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
:is(#activity-board, .activity-board) .ab-no { color: var(--no); border-color: color-mix(in srgb, var(--no) 45%, var(--line)); }
:is(#activity-board, .activity-board) .ab-acc { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
:is(#activity-board, .activity-board) .ab-mut { color: var(--mut); }
:is(#activity-board, .activity-board) .ab-tag { font-size: 11px; color: var(--acc); background: var(--acc-bg); border-radius: 4px; padding: 0 5px; }
:is(#activity-board, .activity-board) .ab-v { font-size: 13px; }
:is(#activity-board, .activity-board) .ab-tl { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; font-size: 13px; }
:is(#activity-board, .activity-board) .ab-tl li { padding: 6px 8px; border-radius: 7px; background: var(--bg2, var(--bg)); border: 1px solid var(--line); }
:is(#activity-board, .activity-board) .ab-tl li.ab-me { background: var(--acc-bg); }
:is(#activity-board, .activity-board) .ab-tx { margin-top: 2px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
:is(#activity-board, .activity-board) .ab-tx.full { display: block; }
:is(#activity-board, .activity-board) .ab-reply textarea, :is(#activity-board, .activity-board) .ab-nf textarea { width: 100%; box-sizing: border-box; }
:is(#activity-board, .activity-board) .ab-nf { margin: 6px 0; }
#agents-admin .aa-act { color: var(--acc); text-decoration: none; display: inline-block; margin-top: 2px; } #agents-admin .aa-act:hover { text-decoration: underline; }
/* 활동 보드 on the Inbox 홈 dashboard (compact): the same look as 프로젝트 현황 (.ov / .ov-head) */
.hb-act .activity-board { border-bottom: 1px solid var(--line); background: var(--bg); }
.activity-board[data-compact] .ab-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.activity-board[data-compact] .ab-sp { flex: 1; }
.activity-board[data-compact] .ab-head .sec { padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
.activity-board[data-compact] .ab-chips { padding: 6px 14px 0; margin: 0; }
.activity-board[data-compact] .ab-list, .activity-board[data-compact] .ab-newf { padding: 0 14px 10px; }
.activity-board[data-compact] .ab-list > p.mut { margin: 8px 0 0; font-size: 12.5px; }
/* 브리핑 (owner 2026-11-04): 🙋 할 일 + per project 진행 중 · 막힘·결정 · 끝남 from the lead's 진행 현황 doc */
:is(#activity-board, .activity-board) .ab-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
:is(#activity-board, .activity-board) .ab-sp { flex: 1; }
:is(#activity-board, .activity-board) .ab-head .sec { padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
:is(#activity-board, .activity-board) .ab-mine { border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--warn) 6%, var(--bg)); }
:is(#activity-board, .activity-board) .ab-mine > p.mut { margin: 4px 0 0; font-size: 12.5px; }
:is(#activity-board, .activity-board) .ab-mh { font-size: 13px; font-weight: 600; }
:is(#activity-board, .activity-board) .ab-ul { margin: 4px 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.55; }
:is(#activity-board, .activity-board) .ab-ul li { margin: 2px 0; overflow-wrap: anywhere; }
:is(#activity-board, .activity-board) .ab-mul { list-style: none; padding-left: 0; }
:is(#activity-board, .activity-board) .ab-mul li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
:is(#activity-board, .activity-board) .ab-ul a { color: var(--fg); text-decoration: none; } :is(#activity-board, .activity-board) .ab-ul a:hover { color: var(--acc); text-decoration: underline; }
:is(#activity-board, .activity-board) .ab-pj > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
:is(#activity-board, .activity-board) .ab-pj > summary b { font-weight: 600; margin-right: 2px; }
:is(#activity-board, .activity-board) .ab-pj > summary .mut { font-size: 12px; margin-left: auto; }
:is(#activity-board, .activity-board) .ab-body h5 { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--mut); }
:is(#activity-board, .activity-board) .ab-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
:is(#activity-board, .activity-board) .ab-cols p.mut { margin: 4px 0; font-size: 12.5px; }
:is(#activity-board, .activity-board) .ab-red li::marker { color: var(--no); }
:is(#activity-board, .activity-board) .ab-done { margin-top: 6px; font-size: 13px; } :is(#activity-board, .activity-board) .ab-done > summary { cursor: pointer; color: var(--mut); font-size: 12.5px; }
:is(#activity-board, .activity-board) .ab-nodoc { font-size: 12.5px; margin: 4px 0; }
:is(#activity-board, .activity-board) .ab-ags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
:is(#activity-board, .activity-board) .ab-ag { font-size: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; background: var(--bg2, var(--bg)); }
:is(#activity-board, .activity-board) .ab-ag i { font-style: normal; color: var(--mut); margin-left: 5px; }
:is(#activity-board, .activity-board) .ab-ag.run { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); } :is(#activity-board, .activity-board) .ab-ag.run i { color: var(--ok); }
:is(#activity-board, .activity-board) .ab-acts { margin-top: 8px; } :is(#activity-board, .activity-board) .ab-acts .sec { text-decoration: none; font-size: 12.5px; padding: 3px 10px; }
.activity-board[data-compact] .ab-mine { margin: 8px 14px; }
/* 💬 DM방 — an agents' DM room, read-only with 참여해서 보내기 (chat.js dmRoomDialog, owner 2026-11-04) */
.dmr-dlg { width: min(680px, 100%); }
.dmr-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; font-size: 13px; }
.dmr-m { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2, var(--bg)); }
.dmr-m.me { background: var(--acc-bg); }
.dmr-m .md p { margin: 2px 0; }
.dmr-send textarea { flex: 1; min-width: 0; }
#agents-admin .aa-dmr { border: 1px solid var(--line); border-radius: 8px; max-width: 640px; padding: 2px 0; }

/* 채널 · 에이전트 서랍 (owner 2026-11-04): # left of ☰ 목록 → a panel sliding in from the chat's left edge */

/* the drawer slides in from the right (owner 2026-11-04 — 📱 a right→left swipe on the 채널 side pulls it in); PC: the # button at the header's right end */

/* 채널 경로 in the header (owner 2026-11-04): on the web it takes the title's place; phones keep it over the box */

   /* 전체 채널 (the top): no ‹ to go up */

/* ══ 메신저 보기 (owner 2026-11-05): one message look for 채널 · DM · 스레드 — flat rows (Buzz · Slack · Mattermost ·
   Discord, and every 목록형) or bubbles (기본 · 카카오톡 · Telegram · WhatsApp · WeChat). The theme is a set of
   variables on html[data-vt]; the container (.hc-log / the side panel) says flat or bubble (.mmv-flat / .mmv-bubble) ══ */
html { --mm-bg: var(--bg); --mm-fg: var(--fg); --mm-o: #f1f2f4; --mm-o-fg: var(--fg); --mm-me: #fee500; --mm-me-fg: #191919; --mm-t: var(--mut);
  --mm-name: var(--fg); --mm-av-r: 13px; --mm-bub-r: 14px; --mm-date-bg: var(--bg3); --mm-date-fg: var(--mut); --mm-hover: var(--bg2); --mm-acc: var(--acc); --mm-q: var(--line); }
html[data-vt="buzz"] { --mm-av-r: 10px; --mm-acc: #d6336c; }
html[data-vt="slack"] { --mm-av-r: 7px; --mm-acc: #1264a3; --mm-hover: #f8f8f8; --mm-name: #1d1c1d; --mm-t: #616061; }
html[data-vt="mattermost"] { --mm-av-r: 50%; --mm-acc: #1c58d9; --mm-hover: rgb(63 67 80 / .06); --mm-name: #3f4350; }
html[data-vt="discord"] { --mm-bg: #313338; --mm-fg: #dbdee1; --mm-name: #f2f3f5; --mm-t: #949ba4; --mm-av-r: 50%; --mm-hover: #2e3035; --mm-acc: #00a8fc;
  --mm-date-bg: transparent; --mm-date-fg: #949ba4; --mm-q: #4e5058; }
html[data-vt="kakao"] { --mm-bg: #bacee0; --mm-o: #fff; --mm-t: #4c5b6b; --mm-av-r: 15px; --mm-date-bg: rgb(0 0 0 / .12); --mm-date-fg: #fff; }
html[data-vt="telegram"] { --mm-bg: #cfe0c3; --mm-o: #fff; --mm-me: #effdde; --mm-me-fg: #111; --mm-t: #5d7d55; --mm-av-r: 50%; --mm-bub-r: 12px; --mm-date-bg: rgb(0 0 0 / .18); --mm-date-fg: #fff; }
html[data-vt="whatsapp"] { --mm-bg: #efeae2; --mm-o: #fff; --mm-me: #d9fdd3; --mm-me-fg: #111b21; --mm-t: #667781; --mm-av-r: 50%; --mm-bub-r: 8px; --mm-date-bg: #fff; --mm-date-fg: #54656f; }
html[data-vt="wechat"] { --mm-bg: #ededed; --mm-o: #fff; --mm-me: #95ec69; --mm-me-fg: #111; --mm-t: #999; --mm-av-r: 4px; --mm-bub-r: 4px; --mm-date-bg: transparent; --mm-date-fg: #999; }
/* dark: the rooms follow the page (Discord keeps its own grey); the bubbles keep their brand colour, darker */
html[data-theme="dark"]:not([data-vt="discord"]) { --mm-bg: var(--bg); --mm-o: var(--bg3); --mm-name: var(--fg); --mm-t: var(--mut); --mm-hover: var(--bg2); --mm-date-bg: var(--bg3); --mm-date-fg: var(--mut); }
html[data-theme="dark"]:is([data-vt="default"], [data-vt="kakao"]) { --mm-me: #e6cf00; --mm-me-fg: #141414; }
html[data-theme="dark"][data-vt="telegram"] { --mm-me: #2b5278; --mm-me-fg: #fff; }
html[data-theme="dark"][data-vt="whatsapp"] { --mm-me: #005c4b; --mm-me-fg: #e9edef; }
html[data-theme="dark"][data-vt="wechat"] { --mm-me: #3eb575; --mm-me-fg: #111; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-vt="discord"]) { --mm-bg: var(--bg); --mm-o: var(--bg3); --mm-name: var(--fg); --mm-t: var(--mut); --mm-hover: var(--bg2); --mm-date-bg: var(--bg3); --mm-date-fg: var(--mut); }
  html:not([data-theme="light"]):is([data-vt="default"], [data-vt="kakao"]) { --mm-me: #e6cf00; --mm-me-fg: #141414; }
  html:not([data-theme="light"])[data-vt="telegram"] { --mm-me: #2b5278; --mm-me-fg: #fff; }
  html:not([data-theme="light"])[data-vt="whatsapp"] { --mm-me: #005c4b; --mm-me-fg: #e9edef; }
}
.hc .hc-log.mmv { background: var(--mm-bg); color: var(--mm-fg); }
.mmv .mm-more { display: block; margin: 8px auto; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 14px; padding: 4px 14px; font: inherit; font-size: 12.5px; cursor: pointer; }
/* the common message */
.mmv .mm { position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 2px 10px; max-width: none; }
.mmv .mm.mm-cont { margin-top: 2px; }
.mmv .mm-av { flex: none; width: 36px; height: 36px; border-radius: var(--mm-av-r); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: hsl(var(--h) 45% 58%); }
.mmv .mm-cont .mm-av { visibility: hidden; height: 0; }
.mmv .mm-col { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.mmv .mm-hd { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13.5px; margin-bottom: 2px; }
.mmv .mm-cont .mm-hd { display: none; }
.mmv .mm-name { font-weight: 700; color: var(--mm-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmv .mm-ht { font-size: 11.5px; color: var(--mm-t); white-space: nowrap; }
.mmv .mm-hd .hm-sess { margin-left: 0; font-size: 11.5px; color: var(--mm-t); text-decoration: none; }
.mmv .mm-hd .hm-sess:hover { color: var(--mm-acc); }
.mmv .mm-in-name { display: none; }
.mmv .mm-q { display: block; max-width: 100%; margin: 2px 0 4px; padding: 1px 0 1px 8px; border-left: 3px solid var(--mm-q); font-size: 12.5px; color: var(--mm-t); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmv .mm-q b { color: var(--mm-name); font-weight: 600; margin-right: 4px; }
.mmv .mm-row { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.mmv .mm-bub { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.mmv .mm-body.md > div > :first-child { margin-top: 0; } .mmv .mm-body.md > div > :last-child { margin-bottom: 0; }
.mmv .mm-plain { white-space: pre-wrap; }
.mmv .mm-body.hm-bubble { max-width: none; padding: 0; border-radius: 0; background: none; }
.mmv .mm-tx { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.mmv .mm-time { display: none; flex: none; font-size: 11px; color: var(--mm-t); white-space: nowrap; padding-bottom: 1px; }
.mmv .hm-rx { margin-top: 4px; } .mmv .hm-rx .rx { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 12px; padding: 1px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mmv .hm-rx .rx.me { border-color: var(--mm-acc); background: color-mix(in srgb, var(--mm-acc) 12%, var(--bg)); }
.mmv .mm-thr { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--mm-acc); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mmv .mm-thr:hover { background: var(--mm-hover); }
.mmv .mm-link { cursor: pointer; outline: 0; }
.mmv .mm.mm-sel { background: color-mix(in srgb, var(--mm-acc) 10%, transparent); }
.mmv .mm-sys { margin: 8px auto; max-width: 86%; text-align: center; font-size: 12px; color: var(--mm-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmv .mm-date { width: fit-content; margin: 16px auto 6px; padding: 3px 12px; border-radius: 12px; background: var(--mm-date-bg); color: var(--mm-date-fg); font-size: 11.5px; }
.mmv .mm-new { display: flex; align-items: center; gap: 8px; margin: 12px 10px 2px; color: #e5484d; font-size: 11.5px; font-weight: 600; }
.mmv .mm-new::before, .mmv .mm-new::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .5; }
.mmv .mm-rsep { margin: 10px 10px 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--mm-t); }
.mmv .mm-root { padding-bottom: 6px; }
/* the tools over a message (PC: on hover) and the quick reactions */
.mmv .mm-tools { position: absolute; top: -14px; right: 12px; z-index: 3; display: none; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.mmv .mm-tools button { display: inline-grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--mut); cursor: pointer; }
.mmv .mm-tools button:hover { background: var(--bg3); color: var(--fg); }
@media (hover: hover) { .mmv .mm:hover > .mm-tools { display: flex; } }
.mm-pick { position: fixed; z-index: 120; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 4px 16px rgb(0 0 0 / .16); }
.mm-pick button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 19px; cursor: pointer; }
.mm-pick button:hover { background: var(--bg3); }
.mmv .mm.mm-swok { box-shadow: inset 3px 0 0 var(--mm-acc); }
/* ── flat rows: everyone on the left, a header line [name · time], a run without it, the row lit on hover ── */
.mmv-flat .mm:hover { background: var(--mm-hover); }
.mmv-flat .mm-bub { background: none; padding: 0; }
/* ── bubbles: others left (face · name), mine right in the theme's colour without face or name, the time beside ── */
.mmv-bubble .mm-ht { display: none; }
.mmv-bubble .mm-hd { font-size: 12.5px; } .mmv-bubble .mm-name { font-weight: 500; }
.mmv-bubble .mm-col { flex: 0 1 auto; max-width: min(80%, 680px); }
.mmv-bubble .mm-bub { padding: 7px 11px; border-radius: var(--mm-bub-r); background: var(--mm-o); color: var(--mm-o-fg); box-shadow: 0 1px .5px rgb(0 0 0 / .08); }
.mmv-bubble .mm-o:not(.mm-cont) .mm-bub { border-top-left-radius: 4px; }
.mmv-bubble .mm-last .mm-time { display: block; }
.mmv-bubble .mm-me { flex-direction: row-reverse; }
.mmv-bubble .mm-me .mm-av, .mmv-bubble .mm-me .mm-hd { display: none; }
.mmv-bubble .mm-me .mm-col { align-items: flex-end; }
.mmv-bubble .mm-me .mm-row { flex-direction: row-reverse; }
.mmv-bubble .mm-me .mm-bub { background: var(--mm-me); color: var(--mm-me-fg); }
.mmv-bubble .mm-me:not(.mm-cont) .mm-bub { border-top-right-radius: 4px; }
.mmv-bubble .mm-me .hm-rx { justify-content: flex-end; }
.mmv-bubble .mm-me .mm-tools { right: auto; left: 12px; }
/* Telegram: the name inside the bubble in the person's colour, the face beside the last bubble of a run */
html[data-vt="telegram"] .mmv-bubble .mm-o .mm-hd { display: none; }
html[data-vt="telegram"] .mmv-bubble .mm-o:not(.mm-cont) .mm-in-name { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: hsl(var(--h) 55% 42%); }
html[data-vt="telegram"] .mmv-bubble .mm-o { align-items: flex-end; }
html[data-vt="telegram"] .mmv-bubble .mm-o .mm-av { visibility: hidden; height: 36px; }
html[data-vt="telegram"] .mmv-bubble .mm-o.mm-last .mm-av { visibility: visible; }
/* WeChat · WhatsApp: no name over others in a run; WeChat squares */
html[data-vt="wechat"] .mmv-bubble .mm-bub { border-radius: var(--mm-bub-r) !important; }
/* ── 스레드 옆 패널 (PC, a wide 목록형 채널) ── */
/* ↪ 답글 bar over the box */
/* ⚙ 채팅 설정 › 메신저 보기 */
/* 작업공간 목록형: the AI chat as a record (no bubbles, a line between turns) */
html[data-ws="list"] .hc:not(.hc-ro) > .hc-log .hm { border-top: 1px solid var(--line); padding-top: 10px; }
html[data-ws="list"] .hc:not(.hc-ro) > .hc-log .hm-user { align-items: flex-start; }
html[data-ws="list"] .hc:not(.hc-ro) > .hc-log .hm-user .hm-bubble { max-width: 100%; padding: 0; border-radius: 0; background: none; font-weight: 600; }
html[data-ws="list"] .hc:not(.hc-ro) > .hc-log .hm-user .hm-bubble::before { content: "나 · "; color: var(--mut); font-weight: 500; }
/* flat rows: mine reads like everyone's (the older .hm-user right alignment stays out) */
.mmv-flat .mm .mm-q, .mmv-flat .mm .hm-rx, .mmv-flat .mm .bz-refs { align-self: flex-start; justify-content: flex-start; max-width: 100%; }
/* 전체 채널 (대화형): which channel a message is in, a small chip over it */
.mmv .mm-ch { align-self: flex-start; margin: 0 0 3px; padding: 1px 8px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--mm-acc) 12%, transparent); color: var(--mm-acc); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.mmv-bubble .mm-me .mm-ch { align-self: flex-end; }
.hc-older { display: block; margin: 6px auto 10px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--mut); font: inherit; font-size: 12.5px; cursor: pointer; }

/* 📱 채널 in its own panel (owner 2026-11-05): a second chat panel over the 작업공간 one, both kept drawn; the toggle and the
   swipes only change which is in front (visibility, so neither loses its place or scroll) */
.aux > .hc-side-ch { display: none; }
@media (max-width: 700px) {
  html.mshell.at-hermes .aux > .hc-side-ch { display: flex !important; flex-direction: column; position: absolute; inset: 0; z-index: 6;
    background: var(--bg); visibility: hidden; pointer-events: none; min-height: 0; }
  html.mshell.at-hermes.m-chside .aux > .hc-side-ch { visibility: visible; pointer-events: auto; }
  html.mshell.at-hermes.m-chside .aux > .apane-hermes { visibility: hidden; }   /* (kept laid out: its scroll stays) */
  html.mshell.at-hermes.m-chside .aux > .apane-hermes .hc-drawer { visibility: hidden; }
}
@media (max-width: 700px) {   /* the panel behind hides all of itself (some composer parts set their own visibility) */
  html.mshell.at-hermes:not(.m-chside) .aux > .hc-side-ch, html.mshell.at-hermes:not(.m-chside) .aux > .hc-side-ch * { visibility: hidden !important; }
  html.mshell.at-hermes.m-chside .aux > .apane-hermes, html.mshell.at-hermes.m-chside .aux > .apane-hermes * { visibility: hidden !important; }
}
@media (max-width: 700px) {   /* 📱 while the panels move under the finger both are shown, the one coming in on top */
  html.mshell.at-hermes.ms-panemove .aux > .hc-side-ch, html.mshell.at-hermes.ms-panemove .aux > .hc-side-ch *,
  html.mshell.at-hermes.ms-panemove .aux > .apane-hermes, html.mshell.at-hermes.ms-panemove .aux > .apane-hermes * { visibility: visible !important; }
  html.mshell.at-hermes.ms-panemove .aux > .hc-side-ch { pointer-events: none; }
  html.mshell.at-hermes.ms-panemove .aux > .apane-hermes { position: relative; z-index: 5; background: var(--bg); }
  html.mshell.at-hermes.ms-panemove .aux { overflow: hidden; }
}

   /* the width the owner dragged it to (chat.js) */

/* 메신저 서랍 docked (owner 2026-11-05): a wide 채널 side keeps it at its right edge, beside the messages */
/* a channel's "답변 작성 중" line (owner 2026-11-05) */
.hc-log > .mm-typing { display: flex; align-items: center; gap: 8px; margin: 8px 14px 4px; font-size: 12.5px; color: var(--mut); }
.hc-log > .mm-typing .dots { display: inline-flex; gap: 3px; } .hc-log > .mm-typing .dots b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .4; animation: hc-tab-pulse 1.2s ease-in-out infinite; }
.hc-log > .mm-typing .dots b:nth-child(2) { animation-delay: .2s; } .hc-log > .mm-typing .dots b:nth-child(3) { animation-delay: .4s; }
/* 📱 (owner 2026-11-05) no 새 대화 pill over the input box: 새 대화 is the list's ＋ 새 대화 (long press: pick the agent) */
.ms-newchat { display: none !important; }
/* the date of what is in view, floating at the top while scrolling (owner 2026-11-05) */
.hc-log > .mm-datefloat { position: sticky; top: 6px; z-index: 4; height: 0; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; overflow: visible; }
.hc-log > .mm-datefloat > span { flex: none; height: auto; line-height: 1.4; margin-top: 0; padding: 4px 12px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 72%, transparent); color: var(--bg);
  font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / .16); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.hc-log > .mm-datefloat.on > span { opacity: 1; transform: none; }
/* 📄 문서 하단 입력창 (owner 2026-11-07): an answer document's composer, kept at the foot of the document while scrolling —
   the AI 채팅 · 메신저 box itself (.hc-box · .hc-input · .hc-send); only the context line is its own */
:is(.editor-body, .adc-host) > .adc { --hc-font: 15px; --adc-pb: 14px; position: sticky; bottom: 0; z-index: 6; padding: 8px 14px var(--adc-pb); background: var(--bg); }
:is(.editor-body, .adc-host) > .adc::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.adc .hc-box { max-width: min(820px, var(--read-w, 820px)); }
.adc .hc-ctx { gap: 8px; }
.adc-st b { color: var(--fg); font-weight: 600; }
.adc-st.adc-ok { color: var(--ok); font-weight: 600; } .adc-st.adc-err { color: var(--no); }
.adc-busy .adc-st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--acc); vertical-align: 1px; animation: adc-pulse 1.2s ease-in-out infinite; }
@keyframes adc-pulse { 50% { opacity: .25; } }
.adc-chat { flex: none; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 400; border: 1px solid var(--line); border-radius: 11px; background: var(--bg2); color: var(--mut); }
.adc-chat:hover { color: var(--acc); border-color: var(--acc); }
.adc .hc-bar { justify-content: flex-end; }
.adc-busy .hc-box { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); } .adc-busy .hc-send { opacity: .5; pointer-events: none; }
.adc.adc-new .hc-box { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
/* 📄 실시간 진행: the answer being written, at the document's foot (screen only — the file changes when it is done) */
:is(.editor-body, .adc-host) > .adc-live { max-width: var(--read-w, none); margin: 8px auto 4px; padding: 12px 28px 4px; border-top: 1px dashed color-mix(in srgb, var(--acc) 45%, var(--line)); }
.adc-lh { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--acc); }
.adc-lh .adc-lt { font-size: 12px; }
.adc-ldot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: adc-pulse 1.2s ease-in-out infinite; flex: none; }
.adc-notes { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--mut); }
.adc-notes li { margin: 2px 0; white-space: pre-wrap; } .adc-notes li.adc-nnew { color: var(--fg); animation: adc-in .35s ease-out; }
.adc-tool { margin: 6px 0 0; font-size: 12.5px; font-family: var(--mono, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adc-live .adc-text.doc { padding: 6px 0 0 12px; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
/* ✍️ 실시간 에디터: blocks the answer adds (green) · removes (red, struck out) · has not reached yet (faint), and the caret */
.doc > .adc-add { background: color-mix(in srgb, var(--ok) 11%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--ok) 11%, transparent), -11px 0 0 var(--ok); border-radius: 0 4px 4px 0; animation: adc-in .35s ease-out; }
.doc > .adc-del { background: color-mix(in srgb, var(--no) 8%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--no) 8%, transparent), -11px 0 0 var(--no); border-radius: 0 4px 4px 0; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--no) 70%, transparent); color: var(--mut); opacity: .75; }
.doc > .adc-del * { text-decoration: inherit; color: inherit; }
.doc > .adc-pend { opacity: .4; }
.doc > .adc-now { background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--acc) 12%, transparent), -11px 0 0 var(--acc); border-radius: 0 4px 4px 0; }
.doc > .adc-typing::after { content: "▍"; margin-left: 2px; color: var(--acc); animation: adc-pulse 1s steps(1) infinite; }
.doc > :is(ul, ol, table, .md-table, .code-wrap, pre).adc-typing::after { display: block; }
@media (prefers-reduced-motion: reduce) { .doc > .adc-add { animation: none; } .doc > .adc-typing::after { animation: none; } }
.adc-live .adc-text:empty { display: none; }
@keyframes adc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { :is(.editor-body, .adc-host) > .adc-live { padding: 10px 16px 4px; } }
@media (max-width: 700px) { :is(.editor-body, .adc-host) > .adc { --adc-pb: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px 10px var(--adc-pb); } }   /* (the box itself: "문서 입력창 = 작업공간 · 메신저 입력창" below) */
html.mshell .epane.ms-hasact :is(.editor-body, .adc-host) > .adc { bottom: calc(84px + var(--msf, 0px)); }
/* 🖥 채팅 패널이 열려 있어도 문서 입력창은 보임 (owner 2026-11-12 — 11-10의 "패널이 열리면 사라짐"을 되돌림): the document's
   box, its 선택 bar and its row stay under the document whether the chat panel is open or folded */
/* 📋 변경 목록: beside the document (over its right margin, which the document gives up for it), each row jumps there */
.editor.adc-sided { position: relative; }
.editor.adc-sided > .editor-body { padding-right: 262px; }
.editor.adc-sided:has(> .adc-side.adc-narrow) > .editor-body { padding-right: 0; }
.adc-side { position: absolute; right: 12px; z-index: 6; width: 240px; max-height: calc(100% - 200px); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.08); font-size: 12.5px; }
.adc-side-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-align: left; }
.adc-side ol { list-style: none; margin: 0; padding: 0 4px 6px; overflow: auto; border-top: 1px solid var(--line); }
.adc-side.adc-fold ol { display: none; }
.adc-side.adc-fold .adc-side-h > span.mut, .adc-side.adc-fold .adc-side-t span { transform: rotate(-90deg); }
.adc-side li { display: flex; align-items: baseline; gap: 6px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.adc-side li:hover { background: var(--bg2); }
.adc-sk { flex: none; font-size: 11px; font-weight: 600; min-width: 34px; }
.adc-st2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.adc-k-add .adc-sk { color: var(--ok); } .adc-k-del .adc-sk { color: var(--no); } .adc-k-mod .adc-sk { color: var(--acc); }
.adc-k-now .adc-sk { color: var(--acc); } .adc-k-now .adc-sk::after { content: " ▍"; animation: adc-pulse 1s steps(1) infinite; }
.adc-k-del .adc-st2 { text-decoration: line-through; color: var(--mut); }
.doc > .adc-flash { animation: adc-flash 1.3s ease-out; }
@keyframes adc-flash { 0%, 30% { outline: 2px solid var(--acc); outline-offset: 4px; } 100% { outline: 2px solid transparent; outline-offset: 4px; } }
/* 📝 수정안: [적용] · [버리기] above the composer */
.adc-prop { display: flex; align-items: center; gap: 8px; max-width: min(820px, var(--read-w, 820px)); margin: 0 auto 6px; padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--acc) 6%, var(--bg)); font-size: 13px; }
.adc-prop-t { flex: 1; min-width: 0; }
.adc-prop button { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.adc-prop .adc-apply { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 600; }
.adc-prop .adc-discard:hover { color: var(--no); border-color: var(--no); }
@media (max-width: 700px) { .adc-prop { font-size: 12px; padding: 6px 8px; } .adc-side { right: 8px; width: min(240px, calc(100% - 16px)); } }
/* 📝 에이전트 메모: a toast above the composer for each new memo (~3 s), and the whole list from 📝 메모 N */
:is(.editor-body, .adc-host) > .adc-live .adc-notes { display: none; }   /* the memos are the toasts and the list now */
.adc-toast { position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 4; width: max-content; max-width: min(640px, calc(100% - 28px));
  padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 88%, transparent); color: var(--bg); font-size: 13px; line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .3s, transform .3s; }
.adc-toast.adc-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.adc-toast.adc-out { opacity: 0; transform: translate(-50%, 6px); pointer-events: none; }
.adc-memo span { font-weight: 600; }
.adc-memos { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 4px); z-index: 5; width: min(640px, calc(100% - 28px));
  display: flex; flex-direction: column; max-height: min(50vh, 420px); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.adc-memos-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.adc-memos-h button { border: 0; background: none; color: var(--mut); font-size: 14px; cursor: pointer; }
.adc-memos ol { margin: 0; padding: 8px 14px 10px 32px; overflow: auto; font-size: 13.5px; line-height: 1.6; }
.adc-memos li { margin: 3px 0; white-space: pre-wrap; }
.adc-memos li:last-child { color: var(--fg); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .adc-toast { transition: none; } }
/* ✍️ the block the AI is removing right now (where the view goes): struck out, a stronger red */
.doc > .adc-del.adc-now { background: color-mix(in srgb, var(--no) 16%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--no) 16%, transparent), -11px 0 0 var(--no); opacity: .9; }
.adc-k-rm .adc-sk { color: var(--no); } .adc-k-rm .adc-sk::after { content: " ▍"; animation: adc-pulse 1s steps(1) infinite; }
.adc-k-rm .adc-st2 { text-decoration: line-through; color: var(--mut); }
/* 📖 읽는 중: the part the AI is reading (a Read of the document, or the place an Edit is naming) — amber, with a label */
.doc > .adc-read { position: relative; background: color-mix(in srgb, #e5a800 14%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, #e5a800 14%, transparent), -11px 0 0 #e5a800;
  border-radius: 0 4px 4px 0; animation: adc-readpulse 1.6s ease-in-out infinite; }
.doc > .adc-read:not(:has(~ .adc-read))::after { content: "📖 읽는 중"; position: absolute; right: 0; bottom: -18px; font-size: 11px; color: #b07f00; font-weight: 600; }
@keyframes adc-readpulse { 50% { background: color-mix(in srgb, #e5a800 24%, transparent); } }
.adc-ed.adc-readall { position: relative; }
.adc-ed.adc-readall > * { box-shadow: -11px 0 0 color-mix(in srgb, #e5a800 55%, transparent); }
.adc-ed.adc-readall::before { content: "📖 AI가 문서 전체를 읽는 중"; position: sticky; top: 6px; z-index: 2; display: block; width: max-content; margin: 0 0 8px auto;
  padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, #e5a800 20%, var(--bg)); color: #8a6400; font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .doc > .adc-read { animation: none; } }
/* 📝 수정안, change by change: its old paragraphs struck, its new ones green, ✓ 승인 · ↩ 되돌리기 under it */
.adc-hunk { position: relative; margin: 6px 0 10px; padding: 2px 0 0; border-radius: 6px; }
.adc-hunk > .adc-add { background: color-mix(in srgb, var(--ok) 11%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--ok) 11%, transparent), -11px 0 0 var(--ok); border-radius: 0 4px 4px 0; }
.adc-hunk > .adc-del { background: color-mix(in srgb, var(--no) 8%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--no) 8%, transparent), -11px 0 0 var(--no); border-radius: 0 4px 4px 0;
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--no) 70%, transparent); color: var(--mut); opacity: .75; }
.adc-hunk > .adc-del * { text-decoration: inherit; color: inherit; }
.adc-hunk.adc-flash { animation: adc-flash 1.3s ease-out; }
.adc-hunk-bar { display: flex; justify-content: flex-end; gap: 6px; margin: 2px 0 0; }
.adc-hunk-bar button, .adc-side-prop li button, .adc-all { height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12px; cursor: pointer; }
.adc-hunk-bar .adc-ok, .adc-side-prop .adc-ok, .adc-all { border-color: var(--ok); color: var(--ok); font-weight: 600; }
.adc-hunk-bar .adc-ok:hover, .adc-side-prop .adc-ok:hover, .adc-all:hover { background: var(--ok); color: #fff; }
.adc-hunk-bar .adc-undo:hover, .adc-side-prop .adc-undo:hover { border-color: var(--no); color: var(--no); }
.adc-side-prop .adc-side-h { cursor: default; }
.adc-side-t { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; padding: 0; text-align: left; }
.adc-side.adc-fold .adc-side-t span { transform: rotate(-90deg); }
.adc-side-prop li { align-items: center; }
.adc-side-prop li .adc-st2 { flex: 1; min-width: 0; }
.adc-side-prop li button { flex: none; height: 22px; width: 26px; padding: 0; }
/* 📝 수정안 목록 — 하단 막대에서 펼침 (owner 2026-11-10): the list no longer floats over the text's corner; the bar's title
   (📝 수정안 N곳 ⌃) opens it upward above the bar and shuts it again. The list's own head is the bar, so it is hidden here */
.adc > .adc-side.adc-inbar { display: none; position: static; width: auto; max-width: min(820px, var(--read-w, 820px)); max-height: none; margin: 0 auto 4px; box-shadow: none; }
.adc.adc-plist-open > .adc-side.adc-inbar { display: flex; animation: adc-plist-in .16s ease-out; }
@keyframes adc-plist-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adc.adc-plist-open > .adc-side.adc-inbar { animation: none; } }
.adc > .adc-side.adc-inbar > .adc-side-h { display: none; }
.adc > .adc-side.adc-inbar ol { border-top: 0; max-height: min(42vh, 360px); padding: 6px; }
.adc > .adc-side.adc-inbar li.on { background: var(--bg2); }
.adc-prop > .adc-prop-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adc-prop > .adc-prop-t:hover { background: var(--bg3); color: var(--fg); }
.adc-prop-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-prop-cv { flex: none; font-style: normal; line-height: 1; transition: transform .15s; }
.adc.adc-plist-open .adc-prop-cv { transform: rotate(180deg); }
/* ✎ 문단마다 수정 요청: the button beside the paragraph pointed at, and its box */
.editor-body:has(> .adc) { position: relative; }
/* 복사 · 삭제 beside the paragraph pointed at (owner 2026-11-10; was the one ☐ 선택 button — a click on the paragraph selects now) */
.adc-pbtn { position: absolute; z-index: 4; display: flex; height: 24px; padding: 0 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; }
.adc-pbtn button { height: 22px; padding: 0 7px; border: 0; border-radius: 11px; background: none; color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; }
.adc-pbtn button:hover { background: var(--bg3); color: var(--acc); }
.adc-pbtn button[data-a="del"]:hover { color: var(--no); }
.adc-pbtn[hidden] { display: none; }
.adc-pop { position: absolute; z-index: 6; right: 16px; width: min(420px, calc(100% - 32px)); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.adc-pop-q { font-size: 12.5px; color: var(--mut); margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-pop textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
.adc-pop-b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.adc-pop-b button { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.adc-pop-b .adc-pop-s { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
@media (max-width: 700px) { .adc-pbtn { left: auto !important; right: 8px; } }
/* 📱 휴대폰에서 수정안 둘러보기: ① the bar above the composer becomes ◀ n/N ▶ · ✓ · ↩, ② dots on the right edge, ③ the list
   from below. The 변경 목록 at the top right is hidden there (it covered the text, out of thumb reach). */
.adc-pnav { display: none; }
.adc-rail { display: none; }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .adc-side { display: none !important; }
  .editor.adc-sided > .editor-body { padding-right: 0; }
  .adc-prop { gap: 6px; padding: 5px 6px; }
  .adc-prop > .adc-prop-t, .adc-prop > .adc-apply, .adc-prop > .adc-discard { display: none; }
  .adc-pnav { display: flex; align-items: center; gap: 6px; width: 100%; }
  .adc-pnav button { height: 36px; min-width: 40px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; }
  .adc-pnav button:disabled { opacity: .35; }
  .adc-pnav .adc-pc { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
  .adc-pnav .adc-pc span { color: var(--mut); font-size: 12.5px; }
  .adc-pnav .adc-pok { border-color: var(--ok); background: var(--ok); color: #fff; font-weight: 700; }
  .adc-pnav .adc-pundo { color: var(--no); }
  .editor.adc-railed { position: relative; }
  .adc-rail { display: block; position: absolute; right: 0; width: 14px; z-index: 5; pointer-events: none; }
  .adc-rail i { position: absolute; right: 2px; width: 6px; height: 10px; margin-top: -5px; border-radius: 3px; pointer-events: auto; opacity: .8; }
  .adc-rail i::before { content: ""; position: absolute; inset: -8px -6px -8px -10px; }   /* a finger-sized target */
  .adc-rail i.k-add { background: var(--ok); } .adc-rail i.k-del { background: var(--no); } .adc-rail i.k-mod { background: var(--acc); }
  .adc-rail i.on { width: 10px; right: 0; opacity: 1; box-shadow: 0 0 0 2px var(--bg); }
}
.adc-sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.28); }
.adc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 70vh; display: flex; flex-direction: column; background: var(--bg);
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.18); padding: 4px 0 env(safe-area-inset-bottom, 0px); animation: adc-sheet-in .22s ease-out; }
@keyframes adc-sheet-in { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.adc-sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 4px; }
.adc-sheet-h { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; border-bottom: 1px solid var(--line); }
.adc-sheet-h b { flex: 1; font-size: 15px; }
.adc-sheet-h button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
.adc-sheet-h .adc-all { border-color: var(--ok); color: var(--ok); font-weight: 600; }
.adc-sheet ol { list-style: none; margin: 0; padding: 4px 8px 10px; overflow: auto; }
.adc-sheet li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 6px; border-radius: 10px; }
.adc-sheet li.on { background: var(--bg2); }
.adc-sheet li .adc-st2 { flex: 1; min-width: 0; font-size: 14px; }
.adc-sheet li button { flex: none; width: 40px; height: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 15px; }
.adc-sheet li .adc-ok { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.adc-sheet li .adc-undo { color: var(--no); }
@media (prefers-reduced-motion: reduce) { .adc-sheet { animation: none; } }
/* Obsidian callouts ("> [!info]- 제목"): a toggle that reads as part of the document (owner 2026-11-08: no box) — its
   title like a section heading with a ▸ before it, its content as ordinary text under it; a toggle in a toggle is one
   heading size smaller */
.callout { margin: 0; padding: 0; border: 0; background: none; }
.callout > summary, .callout > .callout-t { display: block; margin: 1.1em 0 .5em; font-size: 1.25em; font-weight: 700; line-height: 1.35; cursor: pointer;
  list-style: none; color: var(--fg); }
.callout > .callout-t { cursor: default; }
.callout > summary::-webkit-details-marker { display: none; }
.callout > summary::before { content: "▸"; display: inline-block; width: 1.05em; margin-left: -1.05em; color: var(--mut); font-size: .8em;
  vertical-align: .08em; transition: transform .15s; }
.callout[open] > summary::before { transform: rotate(90deg); }
.callout > summary:hover::before { color: var(--acc); }
.callout .callout > summary, .callout .callout > .callout-t { font-size: 1.08em; margin: .9em 0 .4em; }
.callout .callout .callout > summary { font-size: 1em; }
@media (max-width: 700px) { .callout > summary::before { margin-left: 0; } }   /* no room left of the text on a phone */
/* ☐ 문단 선택: a selected paragraph shaded, and the bar above the composer (✎ 수정 요청 · 인용 · 복사 · 삭제 · ✕) */
.doc > .adc-sel { background: color-mix(in srgb, var(--acc) 7%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--acc) 7%, transparent), 8px 0 0 color-mix(in srgb, var(--acc) 7%, transparent);
  border-radius: 6px; transition: background .15s; }   /* a soft shade, nothing more (owner 2026-11-08) */
/* 🖱 PC (owner 2026-11-10): the paragraph pointed at shaded, a click edits it, ⋮⋮ at its left drags it; the line where it goes */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .editor-body:has(> .adc) .doc > .adc-hov:not(.adc-editing):not(.adc-sel) { background: var(--bg2); box-shadow: -8px 0 0 var(--bg2), 8px 0 0 var(--bg2); border-radius: 6px; cursor: default; }
}
.adc-grip { position: absolute; z-index: 4; width: 20px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 5px;
  color: var(--mut); font-size: 13px; letter-spacing: -3px; line-height: 1; cursor: grab; user-select: none; }
.adc-grip:hover { background: var(--bg3); color: var(--fg); }
.adc-grip:active { cursor: grabbing; }
.adc-grip[hidden] { display: none; }
.doc > .adc-dragging { opacity: .35; }
.adc-dropline { position: absolute; z-index: 5; height: 3px; margin-top: -1px; border-radius: 2px; background: var(--acc); pointer-events: none; }
.adc-dropline[hidden] { display: none; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) { .adc-grip { display: none !important; } }
.adc-selbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; max-width: min(820px, var(--read-w, 820px)); margin: 0 auto 4px; padding: 0 4px; }   /* plain: no box */
.adc-selbar[hidden] { display: none; }
.adc-seln { flex: 1; min-width: 70px; font-size: 12.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-selbar button { height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.adc-selbar button:hover { background: var(--bg3); }
.adc-selbar button[data-a="del"] { color: var(--no); }
.adc-selbar button[data-a="none"] { color: var(--mut); }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .adc-pbtn { display: none !important; }   /* on a phone the paragraph itself is tapped */
  .adc-selbar button { height: 34px; padding: 0 11px; font-size: 14px; }
}
/* ✕ 지우기 in the document composer: phones only, inside the round box at the right end of the text, while there is text */
.adc-clear { display: none; }
@media (max-width: 700px) {
  .adc .adc-clear:not([hidden]) { display: flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 2; justify-self: end; align-self: end; z-index: 2;
    width: 28px; height: 28px; margin: 0 4px 12px 0; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--mut) 22%, transparent); color: var(--fg); font-size: 13px; }
  .adc.adc-typed .hc-input { padding-right: 34px; }
}
/* 📄 문서 입력창 = 작업공간 · 메신저 입력창 (owner 2026-11-08): the same box as app.css' "PC 입력창" / the phone line, measured
   from the 메신저 composer. PC: a grid of [48px | text | 48px] under one round line (::before, 24px, rows 1-2), the text 48px
   high (12px 8px 12px 6px, 15/24), the round ↑ 32px at right 8px just above the row under the box; that row (.hc-bar) is
   30px, 6px below, 0 4px 0 8px: the status line at the left, a spacer, then 📝 메모 · 💬 대화 보기 as 28px text buttons
   (13px, radius 8, no border, grey on hover). Phone: one 27px-round line [text | ✕ | ↑ 40px] with 6px padding, the row
   under it smaller. (These come after the older rules and replace them at every width.) */
:is(.editor-body, .adc-host) > .adc .hc-box { --adc-u: 36px;   /* the row under the line: 30px + 6px gap */
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: auto auto auto; align-items: end; column-gap: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(.editor-body, .adc-host) > .adc .hc-box::before { content: ""; display: block; grid-column: 1 / -1; grid-row: 1 / 3; align-self: stretch; border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: border-color .15s; }
:is(.editor-body, .adc-host) > .adc .hc-box > * { position: relative; }
:is(.editor-body, .adc-host) > .adc .hc-box:focus-within::before { border-color: var(--acc); }
:is(.editor-body, .adc-host) > .adc.adc-busy .hc-box::before { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
:is(.editor-body, .adc-host) > .adc.adc-new .hc-box::before { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
:is(.editor-body, .adc-host) > .adc .hc-input { grid-column: 2; grid-row: 2; z-index: 1; display: block; box-sizing: border-box; margin: 0; min-height: 48px; max-height: 40vh;
  padding: 12px 8px 12px 6px; border: 0; background: none; font-size: 15px; line-height: 24px; }
:is(.editor-body, .adc-host) > .adc .hc-input:placeholder-shown { height: 48px !important; }
:is(.editor-body, .adc-host) > .adc .hc-bar { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 2px;
  height: 30px; margin-top: 6px; padding: 0 4px 0 8px; min-width: 0; }
:is(.editor-body, .adc-host) > .adc .hc-send { position: absolute; right: 8px; bottom: calc(var(--adc-u) + 8px); z-index: 1; width: 32px; height: 32px; margin: 0; padding: 0;
  border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
:is(.editor-body, .adc-host) > .adc .hc-send .ic { width: 17px; height: 17px; }
.adc-foot { display: flex; flex: 1 1 0; align-items: center; gap: 2px; min-width: 0; height: 100%; }
/* the row's items — the document name and the buttons alike: 28px, 0 8px, 13px, no icons (owner 2026-11-08) */
.adc-foot .adc-st, .adc-foot .adc-chat { flex: none; display: inline-flex; align-items: center; gap: 5px; box-sizing: border-box; height: 28px; margin: 0; padding: 0 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--fg); font: inherit; font-size: 13px; font-weight: 400; line-height: 28px; white-space: nowrap; }
.adc-foot .adc-st { flex: 0 1 auto; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--mut); }
.adc-foot .adc-st b { color: var(--fg); font-weight: 400; }
.adc-foot .adc-bsp { flex: 1 1 0; min-width: 4px; }
.adc-foot .adc-chat { cursor: pointer; }
.adc-foot .adc-chat:hover { background: var(--bg3); }
.adc-foot .adc-chat[hidden] { display: none; }
@media (max-width: 700px) {
  :is(.editor-body, .adc-host) > .adc .hc-box { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 6px; }
  :is(.editor-body, .adc-host) > .adc .hc-box::before { grid-row: 1; border-radius: 27px; }
  :is(.editor-body, .adc-host) > .adc .hc-input { grid-column: 1; grid-row: 1; margin: 6px 0 6px 14px; min-height: 40px; padding: 8px 2px; font-size: 16px; }   /* (16px: no zoom on focus in iOS) */
  :is(.editor-body, .adc-host) > .adc .hc-input:placeholder-shown { height: 40px !important; }
  :is(.editor-body, .adc-host) > .adc .hc-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :is(.editor-body, .adc-host) > .adc .hc-bar { display: contents; }
  :is(.editor-body, .adc-host) > .adc .hc-send { position: static; grid-column: 2; grid-row: 1; width: 40px; height: 40px; margin: 6px 6px 6px 0; align-self: end; }
  :is(.editor-body, .adc-host) > .adc .adc-clear:not([hidden]) { grid-column: 1; grid-row: 1; margin: 0 2px 12px 0; }
  .adc-foot { grid-column: 1 / -1; grid-row: 2; height: 30px; margin-top: 4px; padding: 0; }   /* (the items keep the PC size) */
}
/* 🎨 문서 편집 화면은 중립색으로 (owner 2026-11-08: 초록·파랑은 되도록 쓰지 않기). New text, the place being written,
   selection, buttons, the 변경 목록 and the edge dots are greys; red stays for what is removed and for errors, amber for
   읽는 중. The 수정안 bar is plain like the selection bar — no box, text buttons. (Last in the file: these win.) */
:root { --adc-ink: color-mix(in srgb, var(--fg) 55%, transparent); --adc-wash: color-mix(in srgb, var(--fg) 6%, transparent); --adc-wash2: color-mix(in srgb, var(--fg) 10%, transparent); }
.doc > .adc-add, .adc-hunk > .adc-add { background: var(--adc-wash); box-shadow: -8px 0 0 var(--adc-wash), -11px 0 0 var(--adc-ink); }
.doc > .adc-now { background: var(--adc-wash2); box-shadow: -8px 0 0 var(--adc-wash2), -11px 0 0 var(--fg); }
.doc > .adc-typing::after { color: var(--fg); }
.doc > .adc-sel { background: var(--adc-wash); box-shadow: -8px 0 0 var(--adc-wash), 8px 0 0 var(--adc-wash); }
.adc-live .adc-text.doc { box-shadow: inset 3px 0 0 var(--adc-ink); }
.adc-lh, .adc-ldot { color: var(--fg); } .adc-ldot { background: var(--adc-ink); }
.adc-busy .adc-st::before { background: var(--adc-ink); }
.adc-st.adc-ok, .adc-foot .adc-st.adc-ok { color: var(--fg); }
:is(.editor-body, .adc-host) > .adc .hc-box:focus-within::before { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
:is(.editor-body, .adc-host) > .adc.adc-busy .hc-box::before { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
:is(.editor-body, .adc-host) > .adc.adc-new .hc-box::before { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
:is(.editor-body, .adc-host) > .adc .hc-send { background: var(--fg); border-color: var(--fg); color: var(--bg); }
/* the 수정안 bar: plain */
.adc-prop { display: flex; align-items: center; gap: 2px; max-width: min(820px, var(--read-w, 820px)); margin: 0 auto 4px; padding: 0 4px;
  border: 0; border-radius: 0; background: none; font-size: 12.5px; color: var(--mut); }
.adc-prop-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-prop button, .adc-prop .adc-apply { height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--fg); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer; }
.adc-prop .adc-apply { font-weight: 700; }
.adc-prop button:hover { background: var(--bg3); }
.adc-prop .adc-discard { color: var(--mut); } .adc-prop .adc-discard:hover { color: var(--no); border: 0; }
/* ✓ · ↩ under each change, in the 변경 목록 and the sheet: text buttons */
.adc-hunk-bar button, .adc-side-prop li button, .adc-all, .adc-sheet li button, .adc-sheet-h button { border: 0; background: none; color: var(--fg); }
.adc-hunk-bar .adc-ok, .adc-side-prop .adc-ok, .adc-all, .adc-sheet li .adc-ok, .adc-sheet-h .adc-all { color: var(--fg); font-weight: 700; border: 0; }
.adc-hunk-bar button:hover, .adc-side-prop li button:hover, .adc-all:hover, .adc-sheet li button:hover, .adc-sheet-h button:hover { background: var(--bg3); color: var(--fg); }
.adc-hunk-bar .adc-undo, .adc-side-prop .adc-undo, .adc-sheet li .adc-undo { color: var(--mut); }
.adc-hunk-bar .adc-undo:hover, .adc-side-prop .adc-undo:hover { color: var(--no); border: 0; }
.adc-k-add .adc-sk, .adc-k-mod .adc-sk, .adc-k-now .adc-sk { color: var(--fg); }
.adc-k-now .adc-sk::after { color: var(--fg); }
.adc-side { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.adc-rail i.k-add, .adc-rail i.k-mod { background: var(--adc-ink); }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .adc-prop { padding: 0 2px; }
  .adc-pnav button { border: 0; background: none; color: var(--fg); }
  .adc-pnav button:hover { background: var(--bg3); }
  .adc-pnav .adc-pok { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .adc-pnav .adc-pundo { color: var(--mut); }
}
/* ✏️ 직접 편집: the paragraph's markdown in a box in its place (neutral, like the rest of the editor) */
.doc > .adc-inline { margin: 6px 0 12px; }
.adc-inline textarea { display: block; width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--fg) 30%, var(--line));
  border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.adc-inline textarea:focus { outline: none; border-color: var(--fg); }
.adc-inline-b { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.adc-inline-b span { flex: 1; min-width: 0; font-size: 12px; color: var(--mut); }
.adc-inline-b button { height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.adc-inline-b button:hover { background: var(--bg3); }
.adc-inline-b button[data-a="save"] { background: var(--fg); color: var(--bg); font-weight: 600; }
@media (max-width: 700px) { .adc-inline textarea { font-size: 16px; } }
/* ✏️ 직접 편집 with the Notion-like editor: the paragraph as it looks, in a quiet frame */
.adc-inline .adc-crepe { border: 1px solid color-mix(in srgb, var(--fg) 30%, var(--line)); border-radius: 10px; background: var(--bg); padding: 2px 4px; min-height: 48px; }
.adc-inline .adc-crepe:focus-within { border-color: var(--fg); }
.adc-inline .adc-crepe .milkdown { background: none; }
.adc-inline .adc-crepe .ProseMirror { padding: 8px 10px !important; min-height: 40px; outline: none; }
.adc-crepe-wait { padding: 12px; font-size: 13px; color: var(--mut); }
.adc-inline-b [data-a="mode"] { color: var(--mut); }
/* ✏️ 직접 편집, in place: the paragraph keeps its own look — only a faint shade says it is being edited */
.doc > .adc-editing { outline: none; background: var(--adc-wash); box-shadow: -8px 0 0 var(--adc-wash), 8px 0 0 var(--adc-wash); border-radius: 6px; caret-color: var(--fg); }
.doc > .adc-editing [contenteditable], .doc > .adc-editing[contenteditable] { outline: none; }
.doc > .adc-ebar { margin: 4px 0 12px; }
/* ✏️ 직접 편집 중에는 문서 입력창이 아래로 미끄러져 사라짐 (owner 2026-11-08) — 편집이 끝나면 다시 올라옴 */
:is(.editor-body, .adc-host) > .adc { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease; }
:is(.editor-body, .adc-host) > .adc.adc-editmode { transform: translateY(calc(100% + 12px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { :is(.editor-body, .adc-host) > .adc { transition: opacity .15s; } :is(.editor-body, .adc-host) > .adc.adc-editmode { transform: none; } }
/* ✏️ 편집 중: the composer's parts slide away and the edit dock (원문 · 편집 저장 · ×) slides up in their place.
   (replaces the rule above that moved the whole composer — the dock lives in it) */
:is(.editor-body, .adc-host) > .adc.adc-editmode { transform: none; opacity: 1; pointer-events: none; }
:is(.editor-body, .adc-host) > .adc > :not(.adc-dock) { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
/* 하단 여백 (owner 2026-11-10): the hidden parts move only as far as the composer's bottom padding — a box translated past
   the composer's bottom edge still counts as scrollable overflow, which left a blank band under the composer at the end of
   every document (the dock, 150% of its height, sat there unseen). Now they fade in place; nothing sticks out below. */
:is(.editor-body, .adc-host) > .adc.adc-editmode > :not(.adc-dock) { transform: translateY(var(--adc-pb, 14px)); opacity: 0; }
/* 🖱 PC (owner 2026-11-10): a click edits the paragraph and selects it — the selection bar (인용 · 복사 · 삭제) stays up,
   just above the edit dock, while the rest of the composer is away */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  :is(.editor-body, .adc-host) > .adc.adc-editmode > .adc-selbar:not([hidden]) { position: absolute; left: 14px; right: 14px; bottom: calc(var(--adc-pb, 14px) + 52px); z-index: 5;
    transform: none; opacity: 1; pointer-events: auto; padding: 3px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
}
.adc-dock { position: absolute; left: 14px; right: 14px; bottom: var(--adc-pb, 14px); z-index: 5; display: flex; align-items: center; gap: 8px;
  max-width: min(820px, var(--read-w, 820px)); margin: 0 auto; transform: translateY(var(--adc-pb, 14px)); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
:is(.editor-body, .adc-host) > .adc.adc-editmode .adc-dock { transform: none; opacity: 1; pointer-events: auto; }
.adc-dock button { height: 46px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.adc-dock .adc-dock-mode { padding: 0 16px; border-radius: 23px; color: var(--mut); font-size: 14px; }
.adc-dock .adc-dock-mode[hidden] { display: none; }
/* ¶ 문단 나누기 (owner 2026-11-10): the break mark inside a paragraph being edited — the gap of a new paragraph, a faint line */
.doc > .adc-editing .adc-pbrk { display: block; height: 0; margin: .9em -4px; border-top: 1px dashed color-mix(in srgb, var(--acc) 45%, transparent); user-select: none; }
.adc-dock .adc-dock-save { flex: 1; border-radius: 23px; border-color: var(--fg); background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 700; }
.adc-dock .adc-dock-x { flex: none; width: 46px; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.adc-dock button:hover { filter: brightness(.96); }
@media (max-width: 700px) { .adc-dock { left: 10px; right: 10px; } }   /* (bottom: --adc-pb, the phone padding, from above) */
@media (prefers-reduced-motion: reduce) { :is(.editor-body, .adc-host) > .adc > :not(.adc-dock), .adc-dock { transition: opacity .15s; } :is(.editor-body, .adc-host) > .adc.adc-editmode > :not(.adc-dock), .adc-dock { transform: none; } }

/* 📱 문서 입력창 = the shared phone composer (app.css "채팅 입력 상자", owner 2026-11-10): the frame is the box itself (the ::before
   ring steps aside), idle one line [text | ↑]; the row under the text (문서에 반영됩니다 · 메모 · 대화 보기) shows only while the AI
   works on the document, with a note (✓ · ⚠️), or with the cursor in the box (.adc.m-open, chat.js) — then it is the tool row
   with ↑ at its right, like the chat's. Neutral greys as above. (Last in the file: these win.) */
@media (max-width: 700px) {
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-box::before { display: none; }
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-box { border: 1px solid var(--line); background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: border-color .15s; }
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-box:focus-within, html.mshell :is(.editor-body, .adc-host) > .adc.adc-new .hc-box { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
  html.mshell :is(.editor-body, .adc-host) > .adc.adc-busy .hc-box { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-input { margin: 0 !important; }
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-send { margin: 0; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .hc-box { border-radius: 18px !important; padding: 6px 8px 6px !important; }
  html.mshell :is(.editor-body, .adc-host) > .adc .hc-input:placeholder-shown { height: auto !important; }   /* (the shared idle 40px / open 72px rule the height) */
  html.mshell :is(.editor-body, .adc-host) > .adc:not(.m-open):is(.adc-busy, :has(.adc-st.adc-ok), :has(.adc-st.adc-err)) .composer-bar > .adc-foot { display: flex !important; grid-column: 1 / -1; grid-row: 2; height: 30px; margin: 2px 0 0; padding: 0 2px; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-foot { height: auto; margin: 0; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-clear:not([hidden]) { margin: 0; align-self: center; }
  /* 📱 the line above the box (chat.js .adc-top, owner 2026-11-10): ↑ 작업공간 at the left, the status at the right; the status in the
     row under the text steps aside */
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top { display: flex; align-items: center; gap: 8px; max-width: min(820px, var(--read-w, 820px)); min-height: 18px; margin: 0 auto 4px; padding: 0 10px; font-size: 12px; line-height: 18px; color: var(--mut); }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top-k { flex: none; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top-s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top.adc-ok .adc-top-s { color: var(--fg); font-weight: 600; }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top.adc-err .adc-top-s { color: var(--no); }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-top.adc-run .adc-top-s::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--fg); vertical-align: 1px; animation: adc-pulse 1.2s ease-in-out infinite; }
  html.mshell :is(.editor-body, .adc-host) > .adc .adc-foot .adc-st { display: none !important; }
}
.adc-top { display: none; }   /* (phones only — above) */
/* the 문서 입력창's ＋ (chat.js, owner 2026-11-10): phones — the shared rules above show it under html.mshell (the 첨부 sheet);
   PC (owner 2026-11-10) — in the box's left 48px column like the 작업공간 box's ＋ (app.css "PC 입력창"): the ＋ menu */
.adc .adc-plus { display: none; }
@media (min-width: 701px) {
  :is(.editor-body, .adc-host) > .adc .hc-box > .adc-plus { display: grid; place-items: center; grid-column: 1; grid-row: 2; justify-self: end; align-self: end; width: 32px; height: 32px; margin: 0 0 8px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; font-size: 0; }
  :is(.editor-body, .adc-host) > .adc .hc-box > .adc-plus:hover { background: var(--bg3); }
  :is(.editor-body, .adc-host) > .adc .hc-box > .adc-plus svg { width: 20px; height: 20px; }
}

/* ⚙ 문서 입력창의 엔진 | 모델 | 승인 방식 (owner 2026-11-10, chat.js chips · apvBar): the chat panel's pickers. Phones: chips in the
   opened box; PC (below, "작업공간 입력창의 줄"): the same plain text buttons as the panel's row, at its right end */
.adc .adc-chip { flex: 0 1 auto; min-width: 0; max-width: 130px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg2); color: var(--fg);
  font: 500 12px/24px inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.adc .adc-chip::after { content: " ▾"; color: var(--mut); font-size: 10px; }
.adc .adc-chip:hover { background: var(--bg3); }
.adc .adc-eng { max-width: 140px; }
.adc .adc-chip[hidden] { display: none; }
/* 작업공간 입력창의 줄 (owner 2026-11-10): on a PC the document's row is the chat panel's row — left ⚡ 캐시 · 🔒 승인 상태 · 🔐 승인 필요 ·
   the status line, right 메모 · 이력 · 대화 보기 · 엔진 · 모델 · 승인 방식, every button 28px plain text (app.css .hc-ebtn · .hc-mbtn · .hc-mode) */
.adc { --ag: var(--fg); }
.adc[data-agent="claude"] { --ag: #d97757; } .adc[data-agent="opencode"] { --ag: #0e9488; } .adc[data-agent="codex"] { --ag: #10a37f; } .adc[data-agent="gemini"] { --ag: #4285f4; }
.adc[data-agent="hermes"] { --ag: var(--acc); }
@media (min-width: 701px) {
  .adc .adc-chip { flex: none; max-width: 160px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fg);
    font: inherit; font-size: 13px; font-weight: 400; line-height: 28px; }   /* (flex none: the status line gives way first, the buttons keep their names) */
  .adc .adc-chip::after { content: none; }
  .adc .adc-chip:hover { background: var(--bg3); }
  .adc .adc-eng { color: var(--ag); font-weight: 600; }
  .adc .adc-eng:hover { background: color-mix(in srgb, var(--ag) 12%, transparent); }
  .adc .adc-mod { max-width: 240px; min-width: 0; }
  .adc .adc-mode[data-m="all"] { color: var(--warn, #b7791f); }
  .adc-foot .adc-chat + .adc-chip { margin-left: 2px; }
}
.adc .hc-bar > .adc-cache { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 9px; margin-right: 4px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--bg2); color: var(--fg); font-size: 12px; white-space: nowrap; cursor: default; }
.adc .hc-bar > .adc-cache.cold { color: var(--mut); }
.adc .hc-bar > .adc-cache.warm { border-color: color-mix(in srgb, var(--fg) 40%, var(--line)); }
.adc .hc-bar > .adc-cache[hidden] { display: none; }
.adc .hc-bar > .hc-aa { flex: none; height: 26px; margin: 0 4px 0 0; font-size: 12px; }
.adc .hc-bar > .hc-aa button { height: 22px; padding: 0 8px; font-size: 12px; }
.adc .hc-bar > .hc-aa[hidden] { display: none; }
.adc-foot .adc-apvb { color: var(--warn, #b7791f); font-weight: 600; }
.adc-foot .adc-apvb:hover { background: color-mix(in srgb, var(--warn, #b7791f) 14%, transparent); }
@media (max-width: 700px) { .adc .hc-bar > .adc-cache, .adc .hc-bar > .hc-aa, .adc .adc-mode { display: none !important; } }   /* (phones: as the panel — the 승인 방식 stays in ⚙, the state in the header) */
/* 🔐 the approval request over the row (chat.js apvPopup): the panel's card (.hm-approval: 요약 · 위험도 · 원문 · buttons) as a popup */
.adc-apvpop { position: fixed; z-index: 95; width: min(460px, calc(100vw - 16px)); max-height: min(70vh, 640px); overflow: auto; box-sizing: border-box; margin: 0;
  padding: 12px 14px 14px; border-radius: 14px; background: var(--bg); box-shadow: 0 10px 34px rgba(0,0,0,.18); font-size: 13.5px; color: var(--fg); animation: adc-plist-in .16s ease-out; }
.adc-apvpop .ap-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.adc-apvpop .ap-x { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--mut); font-size: 15px; cursor: pointer; }
.adc-apvpop .ap-x:hover { background: var(--bg3); color: var(--fg); }
.adc-apvpop .ap-b button { height: 32px; padding: 0 14px; border-radius: 16px; font: inherit; font-size: 13px; cursor: pointer; }
.adc-apvpop .ap-st { margin-top: 8px; font-size: 12.5px; color: var(--mut); }
@media (prefers-reduced-motion: reduce) { .adc-apvpop { animation: none; } }
@media (max-width: 700px) {
  /* 펼친 입력창: [＋ · 엔진 · 모델 ……… 대화 보기 · ↑] — the status line steps aside unless it has something to say */
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-st:not(.adc-err) { display: none; }   /* (busy: the box frame says so; a ⚠️ stays) */
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-chip { flex: 0 1 auto; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-foot { flex: 1 0 auto; min-width: 0; display: flex; align-items: center; gap: 4px; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-foot .adc-bsp { flex: 1; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-chip { height: 30px; line-height: 28px; font-size: 13px; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .adc-chat { flex: none; }

  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .composer-bar { overflow: visible !important; }
  html.mshell :is(.editor-body, .adc-host) > .adc.m-open .composer-send { box-shadow: none !important; }
}
/* ◀ ▶ 문단 기록: the small control under ☐ on a changed paragraph, and an earlier form shown in its place (faint) */
.adc-hnav { position: absolute; z-index: 4; display: flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 12px; color: var(--mut); white-space: nowrap; }
.adc-hnav[hidden] { display: none; }
.adc-hnav button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--fg); font-size: 11px; cursor: pointer; }
.adc-hnav button:hover:not(:disabled) { background: var(--bg3); }
.adc-hnav button:disabled { opacity: .3; cursor: default; }
.adc-hnav span { min-width: 30px; text-align: center; }
.doc > .adc-hview { margin: 0 0 1em; padding: 2px 0 4px; border-radius: 6px; background: var(--adc-wash); box-shadow: -8px 0 0 var(--adc-wash), 8px 0 0 var(--adc-wash); }
.adc-hview-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }
.adc-hview-h span { flex: 1; min-width: 0; }
.adc-hback { height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; font-size: 12px; cursor: pointer; }
.adc-hback:hover { background: var(--bg3); }
.adc-hview-b { color: var(--mut); }
.adc-hview-b > :first-child { margin-top: 4px; } .adc-hview-b > :last-child { margin-bottom: 0; }
.adc-hview-none { font-style: italic; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) { .adc-hnav { display: none !important; } }
/* hover controls above the paragraph (no room right of it): a light chip in the gap, not on the text */
.adc-pbtn.adc-above { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
/* ◀ n/N ▶ in the phone selection bar */
.adc-hgrp { display: inline-flex; align-items: center; gap: 0; margin-right: 2px; }
.adc-hgrp[hidden] { display: none; }
.adc-hgrp button { width: 32px; padding: 0 !important; }
.adc-hgrp button:disabled { opacity: .3; }
.adc-hpos { min-width: 30px; text-align: center; font-size: 12.5px; color: var(--mut); }

/* ✅ 결재 · 요청 문서의 버튼 = the bottom, right above the 문서 입력창 (owner 2026-11-10, chat.js acts) — the panel's own row and 첨삭 field step aside */
aside.panel .adc-gone, html.mst .epane aside.panel .row2.m2-act.adc-gone { display: none !important; }
html.mst .epane.m2-hasact.adc-acts .editor-body { padding-bottom: 0 !important; }
.adc > .adc-act { display: flex; gap: 8px; margin: 0 0 8px; }
.adc > .adc-act > button { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.adc > .adc-act > button.sec { flex: 0 1 auto; font-weight: 600; }
.adc > .adc-saved { margin: -2px 4px 8px; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .adc > .adc-act > button { height: 46px; font-size: 16px; border-radius: 12px; } }
/* 📑 문서 오른쪽 패널 (wide panes): 📝 메모 as the AI writes them (the tool running now under them) and the 변경 list,
   in a column the text makes room for — plain, like the chat's steps */
:is(.editor, .epane).adc-rp-on { position: relative; }
:is(.editor, .epane).adc-rp-fit:not(.adc-rp-user) { --adc-rp-w: 250px !important; }   /* (a narrower pane: a slimmer panel — chat.js RP_FIT) */   /* (.epane: the document's own pane, chat.js rpHost — owner 2026-11-10) */
:is(.editor, .epane).adc-rp-on > .editor-body { margin-right: var(--adc-rp-w, 300px) !important; padding-right: 12px !important; }   /* (owner 2026-11-15 "AI패널을 열면 스크롤 막대가 안보이네요": margin, not padding — the text's scroller ends at the panel, its scrollbar beside it instead of under the panel) */
/* ↔ the panel's width, dragged at its left edge (chat.js, owner 2026-11-10; localStorage, a double click puts 300px back) */
.adc-rp-sash { display: none; position: absolute; right: calc(var(--adc-rp-w, 300px) - 3px); bottom: 0; width: 7px; z-index: 5; cursor: col-resize; touch-action: none; }
:is(.editor, .epane).adc-rp-on > .adc-rp-sash { display: block; }
.adc-rp-sash:hover, .adc-rp-sash.on { background: color-mix(in srgb, var(--acc) 35%, transparent); }
.adc-rpanel { position: absolute; right: 0; bottom: 0; z-index: 4; width: var(--adc-rp-w, 300px); box-sizing: border-box; overflow: auto; padding: 14px 14px 18px;
  border-left: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.adc-rpanel[hidden] { display: none; }
/* (owner 2026-11-14 "버튼이 겹친다"): the round 💬 (bottom 22 · 52px) and ◨ float over the panel's bottom right — room under
   its last line, so the answer's choices scroll up clear of them */
html:not(.mshell) .epane > .adc-rpanel { padding-bottom: 92px !important; scroll-padding-bottom: 92px; }   /* (!important: app.css sets the panel's padding with !important) */
.adc-rp-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; color: var(--fg); }
.adc-rp-h span { color: var(--mut); font-size: 12px; }
.adc-rp-memo[hidden] { display: none; }
.adc-rp-memo ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.adc-rp-memo li { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.55; white-space: pre-wrap; color: var(--mut); }
.adc-rp-memo li:last-child { color: var(--fg); }
.adc-rp-tool { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--mono, monospace); font-size: 12px; color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adc-rp-tool[hidden] { display: none; }
.adc-rp-tool::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--adc-ink, var(--mut)); animation: adc-pulse 1.2s ease-in-out infinite; }
.adc-rp-memo:not([hidden]) + .adc-rp-chg:not(:empty) { margin-top: 18px; }
.adc-rpanel .adc-side { position: static !important; width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: none; }
.adc-rpanel .adc-side .adc-side-h, .adc-rpanel .adc-side .adc-side-t { padding: 0 0 6px; cursor: default; }
.adc-rpanel .adc-side .adc-side-h > span.mut, .adc-rpanel .adc-side .adc-side-t > span { display: none; }
.adc-rpanel .adc-side.adc-fold ol { display: block; }   /* (never folded in the panel) */
.adc-rpanel .adc-side ol { padding: 0; border-top: 1px solid var(--line); }
.adc-rpanel .adc-side li { padding: 7px 2px; border-bottom: 1px solid var(--line); border-radius: 0; }

/* 📱 문서 입력창 (owner 2026-11-10): no ✕ next to ↑ — clearing is the keyboard's; idle = exactly one line (a 2nd line no longer peeks under it) */
@media (max-width: 700px) {
  html.mshell .adc .adc-clear { display: none !important; }
  html.mshell .adc.adc-typed .hc-input { padding-right: 4px; }
  html.mshell :is(.editor-body, .adc-host) > .adc:not(.m-open) .chat-composer-box .composer-input { height: 34px !important; min-height: 34px !important; max-height: 34px !important; padding: 10px 4px 0 !important; margin: 0 0 10px !important; }
  /* a finger on the box never scrolls the document (owner 2026-11-10, chat.js touchmove): the text's own scroll stops at its ends */
  html.mshell :is(.editor-body, .adc-host) > .adc .composer-input { overscroll-behavior: contain; }
}

/* 📱 수정안 막대의 전체 승인 (owner 2026-11-10): ◀ n/N ▶ · ✓ · ↩ · [전체 승인] */
.adc-pnav .adc-pall { display: none; }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .adc-pnav .adc-pall { display: inline-flex; align-items: center; flex: none; padding: 0 12px !important; border-radius: 18px !important; background: var(--ok) !important; border: 0 !important; color: #fff !important; font-weight: 700; font-size: 14px !important; white-space: nowrap; }
  .adc-pnav .adc-pc span { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 📱 문서 입력창 → 채팅 패널 (owner 2026-11-10, chat.js chatSheet: a swipe up on the box · 대화 보기): the panel full screen, coming up
   from below; right above its box "‹ 보고 있는 문서 <title>" — a tap there (or ←) goes back to the document */
.adc-back { display: none; }
@media (max-width: 700px) {
  html.adc-csheet.m-aux .aux { animation: adc-csup .28s cubic-bezier(.2,.8,.2,1) !important; }
  @keyframes adc-csup { from { transform: translateY(100%); } }
  html.adc-csheet.m-aux .hc > .adc-back { display: flex; align-items: center; gap: 6px; flex: none; margin: 4px 12px 2px; padding: 7px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
  html.adc-csheet.m-aux .hc > .adc-back:active { background: var(--bg3); }
  .adc-back .ic { flex: none; font-size: 20px; line-height: 1; color: var(--mut); margin-top: -2px; }
  .adc-back .k { flex: none; color: var(--mut); font-size: 12px; }
  .adc-back b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { html.adc-csheet.m-aux .aux { animation: none !important; } }

/* 📝 메모 = markdown (owner 2026-11-10, chat.js memoLi): rendered blocks sit tight inside the list item */
li.adc-mmd { white-space: normal; overflow-wrap: anywhere; }
li.adc-mmd > :first-child { margin-top: 0; } li.adc-mmd > :last-child { margin-bottom: 0; }
li.adc-mmd p { margin: 0 0 4px; } li.adc-mmd ul, li.adc-mmd ol { margin: 2px 0 4px; padding-left: 18px; }
li.adc-mmd code { font-size: .92em; padding: 0 4px; border-radius: 4px; background: var(--bg3); }
li.adc-mmd pre { margin: 4px 0; padding: 6px 8px; border-radius: 6px; background: var(--bg3); overflow-x: auto; font-size: 12px; white-space: pre; }
li.adc-mmd pre code { padding: 0; background: none; }
li.adc-mmd table { display: block; overflow-x: auto; font-size: 12.5px; border-collapse: collapse; } li.adc-mmd :is(td, th) { border: 1px solid var(--line); padding: 2px 6px; }
li.adc-mmd h1, li.adc-mmd h2, li.adc-mmd h3, li.adc-mmd h4 { margin: 2px 0; font-size: 1em; }
/* 메모창 스크롤이 문서로 넘어가지 않게 (owner 2026-11-10; chat.js also stops it at the list's ends) */
.adc-memos, .adc-memos ol, .adc-rp-memo ol { overscroll-behavior: contain; }

/* 🕘 변경 이력 (owner 2026-11-10): the 판 list of a document over the page — when · how · how much, a 판 opened shows its changes */
.adc-vh { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.28); }
.adc-vh-card { display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(82vh, 900px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 12px 40px rgba(0,0,0,.18); overflow: hidden; }
.adc-vh-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.adc-vh-head b { font-size: 15px; }
.adc-vh-sub { flex: 1; color: var(--mut); font-size: 12.5px; }
.adc-vh-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--mut); font-size: 16px; cursor: pointer; }
.adc-vh-x:hover { background: var(--bg3); color: var(--fg); }
.adc-vh-list { overflow: auto; padding: 6px 8px 10px; }
.adc-vh-empty { padding: 18px 8px; color: var(--mut); font-size: 13px; }
.adc-vh-row { border-radius: 9px; }
.adc-vh-row + .adc-vh-row { margin-top: 2px; }
.adc-vh-sum { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.adc-vh-sum:hover, .adc-vh-open > .adc-vh-sum { background: var(--bg2); }
.adc-vh-sum b { flex: none; min-width: 74px; font-weight: 600; }
.adc-vh-cur .adc-vh-sum b { color: var(--acc); }
.adc-vh-at { flex: none; color: var(--mut); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.adc-vh-how { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-vh-st { flex: none; color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.adc-vh-diff { margin: 2px 6px 10px 18px; padding: 8px 10px; border-left: 2px solid var(--line); font-size: 13px; }
.adc-vh-diff > div { white-space: pre-wrap; word-break: break-word; padding: 3px 8px; border-radius: 5px; margin: 2px 0; }
.adc-vh-note { color: var(--mut); font-size: 12.5px; padding-left: 0 !important; }
.adc-vh-ctx { color: var(--mut); opacity: .7; }
.adc-vh-del { background: color-mix(in srgb, var(--no, #d33) 10%, transparent); color: color-mix(in srgb, var(--no, #d33) 75%, var(--fg)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--no, #d33) 45%, transparent); }
.adc-vh-add { background: color-mix(in srgb, var(--ok, #2a7) 12%, transparent); }
.adc-vh-sep { border: 0; border-top: 1px dashed var(--line); margin: 6px 0; }
.adc-vh-sep:last-of-type { display: none; }
.adc-vh-restore { margin-top: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.adc-vh-restore:hover { border-color: var(--acc); color: var(--acc); }
@media (max-width: 700px) {
  .adc-vh { align-items: flex-end; padding: 0; }
  .adc-vh-card { width: 100%; max-height: 86vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .adc-vh-sum { flex-wrap: wrap; row-gap: 2px; }
  .adc-vh-how { flex-basis: 100%; order: 3; white-space: normal; }
  .adc-vh-diff { margin-left: 8px; }
}
.crumbs > .adc-crumbvh { margin-left: 8px; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.crumbs > .adc-crumbvh:hover { color: var(--acc); border-color: var(--acc); }
.crumbs > .adc-crumbcv { margin-left: 4px; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.crumbs > .adc-crumbcv:hover { color: var(--acc); border-color: var(--acc); }

/* 이력 · 대화 보기 sit at the right end of the line above the 문서 입력창 (owner 2026-11-10, chat.js moves them into .adc-top). A PC shows
   that line too, with just these two (↑ 작업공간 and the status are the phone's: a PC has them in the row under the text) */
.adc > .adc-top { display: flex; justify-content: flex-end; align-items: center; gap: 2px; max-width: min(820px, var(--read-w, 820px)); margin: 0 auto 2px; padding: 0 6px; }
.adc > .adc-top .adc-chat { flex: none; display: inline-flex; align-items: center; height: 26px; margin: 0; padding: 0 9px; border: 0; border-radius: 8px; background: none;
  color: var(--mut); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.adc > .adc-top .adc-chat:hover { background: var(--bg3); color: var(--fg); }
html:not(.mshell) .adc > .adc-top > :is(.adc-top-k, .adc-top-s) { display: none; }
@media (max-width: 700px) { html.mshell .adc > .adc-top .adc-chat { height: 28px; padding: 0 7px; font-size: 13px; } }

/* ⚙ 설정 (owner 2026-11-10, chat.js): 엔진 · 모델 · 승인 방식 in a small card above the line over the 문서 입력창 — the row under the text keeps the states */
.adc > .adc-top .adc-setb.on { background: var(--bg3); color: var(--fg); }
.adc > .adc-setpop { position: absolute; right: 14px; bottom: calc(100% - 4px); z-index: 7; display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-width: calc(100% - 28px); padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
.adc > .adc-setpop[hidden] { display: none; }
.adc-setpop .adc-setrow { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.adc-setpop .adc-setrow[hidden] { display: none; }
.adc-setpop .adc-setrow > .k { flex: none; width: 4.8em; font-size: 12.5px; color: var(--mut); }
.adc-setpop .adc-setrow > .adc-chip { display: inline-block !important; flex: 1; min-width: 0; max-width: none !important; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg2); color: var(--fg); font: inherit; font-size: 13.5px; line-height: 28px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.adc-setpop .adc-setrow > .adc-chip:hover { background: var(--bg3); }
@media (max-width: 700px) { .adc > .adc-setpop { left: 8px; right: 8px; max-width: none; } .adc-setpop .adc-setrow > .adc-chip { height: 38px; line-height: 36px; font-size: 15px; } }
.adc-setpop .adc-setrow > .adc-chip[hidden] { display: none !important; }

/* 메모 sits in the line above too (owner 2026-11-10); 대화 보기 there only on a PC — phones have ↑ 작업공간, which does the same */
.adc > .adc-top .adc-chat[hidden] { display: none; }
html.mshell .adc > .adc-top .adc-conv { display: none; }
/* 이력 → the 속성 패널 (owner 2026-11-10, app.js "🕘 변경 이력" clicks this hidden button); 💬 사이드채팅 in its place */
.adc > .adc-top .adc-vhb { display: none !important; }

/* the line above the 문서 입력창 = the status alone (owner 2026-11-10): a tap on it = 작업공간; 메모 · 사이드채팅 · 대화 보기 · ⚙ 설정
   moved into the ＋ (chat.js: the phone's 첨부 drawer row / the PC ＋ menu) — their buttons stay hidden here, still doing the work */
.adc > .adc-top .adc-chat, .adc > .adc-top .adc-top-k { display: none !important; }
html:not(.mshell) .adc > .adc-top { display: none; }
html.mshell .adc > .adc-top .adc-top-s { flex: 1; text-align: left; cursor: pointer; padding: 3px 2px; border-radius: 6px; }
html.mshell .adc > .adc-top .adc-top-s:active { background: var(--bg3); }
html.mshell .adc > .adc-top .adc-top-s::after { content: "  ›"; color: var(--mut); }
/* the PC ＋ menu: the box's own items on top */
.hc-pmenu .hc-pemo { display: inline-grid; place-items: center; width: 18px; font-size: 14px; }
.hc-pmenu .hc-psep { height: 1px; margin: 4px 6px; background: var(--line); }
/* 🕘 변경 이력: a set size to start (PC: drag its corner · phone: drag its head up / down — chat.js keeps it) */
.adc-vh-card { height: min(70vh, 720px); }
@media (min-width: 701px) { .adc-vh-card { resize: both; min-width: 360px; min-height: 240px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); } }
@media (max-width: 700px) {
  .adc-vh-card { height: 70vh; max-height: calc(100vh - 40px); }
  .adc-vh-head { position: relative; padding-top: 18px; touch-action: none; }
  .adc-vh-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
}
.adc-vh-list { flex: 1; min-height: 0; }
/* 📱 the row under the text has nothing left to show but 🔐 승인 필요 (the status is in the line above): no empty row while the AI works */
@media (max-width: 700px) {
  html.mshell :is(.editor-body, .adc-host) > .adc:not(.m-open):is(.adc-busy, :has(.adc-st.adc-ok), :has(.adc-st.adc-err)) .composer-bar > .adc-foot:not(:has(.adc-apvb:not([hidden]))) { display: none !important; }
}

/* 📱 one line above the box, the same for both boxes (owner 2026-11-10: "답변 중" · "보고 있는 문서" alike and big enough to tap) —
   the 문서 입력창's status line (.adc-top-s), the chat's "‹ 보고 있는 문서" (.adc-back) and its tab line (.ms-refrow) */
@media (max-width: 700px) {
  html.mshell .adc > .adc-top { margin: 0 auto 6px; padding: 0; min-height: 0; }
  html.mshell .adc > .adc-top .adc-top-s, html.adc-csheet.m-aux .hc > .adc-back, html.mshell .aux .ms-refrow > .ms-tabline {
    display: flex !important; align-items: center; gap: 8px; flex: 1 1 auto; box-sizing: border-box; width: 100%; max-width: none; min-width: 0; height: 44px; margin: 0; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.mshell .adc > .adc-top .adc-top-s:active, html.adc-csheet.m-aux .hc > .adc-back:active, html.mshell .aux .ms-refrow > .ms-tabline:active { background: var(--bg3); }
  html.mshell .adc > .adc-top .adc-top-s::after { content: "›"; margin-left: auto; padding-left: 8px; color: var(--mut); font-size: 18px; }
  html.mshell .adc > .adc-top.adc-run .adc-top-s::before { margin-right: 0; }
  html.adc-csheet.m-aux .hc > .adc-back { flex: none; width: auto; margin: 4px 12px 6px; }   /* (a column child: it must not grow) */
  html.adc-csheet.m-aux .hc > .adc-back .k { font-size: 13px; }
  html.adc-csheet.m-aux .hc > .adc-back .ic { font-size: 22px; }
  /* the chat's line: the tab it looks at — above the box now; its "참고 문서" ends are in the ＋ drawer (문서함 · 저장소); a chat come up
     from a document shows "보고 있는 문서" there instead */
  html.mshell .aux .ms-refrow { margin: 0 0 6px; }
  html.mshell .aux .ms-refrow > .ms-rfh { display: none !important; }
  html.mshell .aux .ms-refrow > .ms-tabline .ar { margin-left: auto; }
  html.adc-csheet .aux .ms-refrow { display: none !important; }
  /* the box itself: [＋ | text | ↑] — open or not (엔진 · 모델 · 승인 방식 are in ＋ › ⚙ 설정) */
  html.mshell .aux .hc.m-open .chat-composer-box > .composer-bar > :not(.composer-send):not(.composer-stop) { display: none !important; }
  html.mshell .aux .hc.m-open .chat-composer-box > .composer-bar { justify-content: flex-end; }
  /* 📄 현재 문서 첨부 토글 (chat.js scrBtn) stays in the open box's row, left of ↑ */
  html.mshell .aux .hc.m-open .chat-composer-box > .composer-bar > .hc-scr.hc-scr:not([hidden]) { display: inline-flex !important; margin-right: auto; height: 32px; font-size: 13px; max-width: calc(100% - 56px); }
  /* ⚙ 설정 card of the chat (chat.js setCard) */
  html.mshell .aux .hc-composer { position: relative; }
  .hc-composer > .hc-setpop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 6px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
  .hc-setpop .adc-setrow { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
  .hc-setpop .adc-setrow > .k { flex: none; width: 4.8em; font-size: 13px; color: var(--mut); }
  .hc-setpop .adc-setrow > .adc-chip { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); font: inherit; font-size: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hc-setpop .adc-setrow > .adc-chip::after { content: " ▾"; color: var(--mut); font-size: 11px; }
}

/* 📱 the three lines above the boxes are one and the same button (owner 2026-11-10): the same width to the pixel (the screen less
   13px a side, centred whatever box they sit over), no border — a soft fill — and the same type */
@media (max-width: 700px) {
  html.mshell .adc > .adc-top .adc-top-s, html.adc-csheet.m-aux .hc > .adc-back, html.mshell .aux .ms-refrow > .ms-tabline {
    flex: none !important; width: calc(100vw - 26px) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important;
    border: 0 !important; background: var(--bg2) !important; border-radius: 14px !important; height: 44px !important; padding: 0 14px !important;
    font-size: 14.5px !important; font-weight: 500 !important; color: var(--fg) !important; }
  html.mshell .adc > .adc-top .adc-top-s:active, html.adc-csheet.m-aux .hc > .adc-back:active, html.mshell .aux .ms-refrow > .ms-tabline:active { background: var(--bg3) !important; }
  html.mshell .adc > .adc-top { display: flex; justify-content: center; width: auto; max-width: none; padding: 0 !important; }
  html.adc-csheet.m-aux .hc > .adc-back b { font-weight: 500; }
  html.adc-csheet.m-aux .hc > .adc-back .k { display: none; }
  html.mshell .aux .ms-refrow { justify-content: center; margin-left: 0; margin-right: 0; }
}
@media (max-width: 700px) { html.mshell.m-aux .aux { border-left: 0; } }   /* (full screen: its 1px edge put the lines ½px off the document's) */

/* ■ / [💬 · 나중에 보내기 · 지금 보내기] / [💬 · ↑] of the 문서 입력창 (owner 2026-11-10, chat.js .adc-run · .adc-typed): every button
   in that row 40px high on one centre line; 💬 a round icon the size of ↑ and ■ (owner 2026-11-10, again: "the layout does not fit") */
.adc .adc-stop, .adc .adc-acts2 { display: none !important; }
html .adc.adc-run:not(.adc-typed) .adc-stop { display: grid !important; place-items: center; }
html .adc.adc-run:not(.adc-typed) .composer-send { display: none !important; }
html:not(.mshell) .adc.adc-typed .adc-acts2, html.mshell .adc.m-open.adc-typed .adc-acts2 { display: flex !important; align-items: center; gap: 6px; margin-left: auto; flex: none; }
html:not(.mshell) .adc.adc-typed.adc-run .composer-send, html.mshell .adc.m-open.adc-typed.adc-run .composer-send,
html:not(.mshell) .adc.adc-typed .adc-stop, html.mshell .adc.m-open.adc-typed .adc-stop { display: none !important; }
html.mshell .adc:not(.m-open).adc-typed.adc-run .adc-stop { display: grid !important; }   /* (folded with text while it answers: ■ stays) */
html .adc.adc-typed .adc-acts2 ~ .composer-send { margin-left: 0 !important; box-shadow: none !important; }   /* (one group at the right end — two margin-left: auto split the room) */
.adc .adc-acts2 .adc-a2 { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--bg3); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.adc .adc-acts2 .adc-a2:active { filter: brightness(.95); }
.adc .adc-acts2 .adc-a2now { background: var(--fg); color: var(--bg); }
.adc:not(.adc-run) .adc-acts2 .adc-a2 { display: none; }
.adc .adc-acts2 .adc-a2btw { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--bg3); color: var(--fg); cursor: pointer; }
.adc .adc-acts2 .adc-a2btw:active { filter: brightness(.93); }
.adc .composer-stop.adc-stop { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 14px; cursor: pointer; }
/* 📱 open: ＋ · 💬 · the sending buttons on one centre line at the foot of the box */
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .chat-composer-box > .composer-bar:has(> .adc-acts2) > :is(.composer-send, .composer-stop) { align-self: center !important; width: 40px; height: 40px; margin: 0 !important; }
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .chat-composer-box > .composer-bar { align-items: center; align-self: end; height: 40px !important; margin-top: 0 !important; padding-top: 0 !important; }   /* (it was 30px high: the 40px buttons hung 7px under ＋) */
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .chat-composer-box > .composer-plus { align-self: end !important; width: 40px; height: 40px; margin: 0 2px 0 0; }
@media (max-width: 700px) { .adc .adc-acts2 { gap: 6px; } .adc .adc-acts2 .adc-a2 { padding: 0 12px; font-size: 14px; } }
/* 🖥 the box is one rounded line with ↑ inside at its right end (app.css "PC 입력창"): ■, 💬 and 나중에 · 지금 sit there too, 32px,
   the text making room for them */
@media (min-width: 701px) {
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc .adc-stop { position: absolute; right: 8px; bottom: calc(var(--adc-u) + 8px); z-index: 1; width: 32px; height: 32px; margin: 0; padding: 0; font-size: 12px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc.adc-typed .adc-acts2 { position: absolute; right: 8px; bottom: calc(var(--adc-u) + 8px); z-index: 1; gap: 6px; margin: 0; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc.adc-typed:not(.adc-run) .adc-acts2 { right: 46px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc .adc-acts2 .adc-a2btw { width: 32px; height: 32px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc .adc-acts2 .adc-a2btw svg { width: 17px; height: 17px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc .adc-acts2 .adc-a2 { height: 32px; padding: 0 12px; font-size: 13px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc.adc-typed:not(.adc-run) .hc-input { padding-right: 52px; }
  html:not(.mshell) :is(.editor-body, .adc-host) > .adc.adc-typed.adc-run .hc-input { padding-right: 236px; }
}

/* 💬 사이드채팅 in the 문서 입력창 (owner 2026-11-10): the panel's side chat box, moved over (chat.js btwDock) */
.adc > .hc-btw-box.btw-docked { max-width: none; margin: 0 0 8px; }
.adc > .hc-btw-box.btw-docked .btw-log { max-height: 34vh; }
@media (max-width: 700px) { .adc > .hc-btw-box.btw-docked { margin: 0 13px 8px; } .adc > .hc-btw-box.btw-docked .btw-log { max-height: 30vh; } }

/* 실시간 편집 중의 ◀ n/N ▶ (owner 2026-11-10, chat.js liveNav): going about only — ✓ · ↩ · 승인 wait until the answer is done */
.adc-prop.adc-prop-live :is(.adc-apply, .adc-discard, .adc-pok, .adc-pundo, .adc-ptalk, .adc-pall) { display: none !important; }
.adc-prop.adc-prop-live .adc-prop-cv { display: none; }

/* 📱 우→좌 on a document = its 작업공간 (owner 2026-11-10): it came in from the right — no rise from below */
html.adc-csheet.adc-cslide.m-aux .aux { animation: none !important; }

/* 진행 상황 in the 📱 status line (owner 2026-11-10, chat.js progPaint): the button grows with what it says — up to four lines —
   and the memo toast lives there now (not over the box) */
html.mshell .adc > .adc-top .adc-top-s { height: auto !important; min-height: 44px; padding-top: 10px !important; padding-bottom: 10px !important; white-space: normal !important; transition: background .2s; }
html.mshell .adc > .adc-top .adc-top-t { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; line-height: 1.4; }
html.mshell .adc > .adc-top:not(.adc-run) .adc-top-t { -webkit-line-clamp: 1; display: -webkit-box; }
html.mshell .adc > .adc-top.adc-memo-on .adc-top-s { background: color-mix(in srgb, var(--fg) 9%, var(--bg2)) !important; }
html.mshell .adc > .adc-toast { display: none !important; }

/* 🗒 the request being answered, floating at the top of the document (owner 2026-11-10, chat.js reqFloat): a 0-high sticky
   anchor, so the document under it does not move; a tap unfolds it all */
.adc-req { position: sticky; top: 8px; z-index: 6; height: 0; overflow: visible; max-width: min(820px, var(--read-w, 820px)); margin: 0 auto; }
.adc-req[hidden] { display: none; }
.adc-req-c { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 8px; padding: 9px 8px 9px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0,0,0,.12); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45; color: var(--fg); cursor: pointer; animation: btw-in .18s ease-out; }
.adc-req-k { flex: none; padding: 1px 7px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 11.5px; font-weight: 700; margin-top: 1px; }
.adc-req-t { flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.adc-req-t { -webkit-line-clamp: 3; }
.adc-req-cv::before { content: "⌃"; color: var(--mut); font-size: 13px; }
.adc-req-cv { flex: none; margin-top: 1px; }
/* folded (a tap): a small 요청 ⌄ tab at the right, the text out of the way */
.adc-req.fold .adc-req-c { left: auto; right: 0; padding: 6px 8px 6px 8px; gap: 4px; align-items: center; }
.adc-req.fold .adc-req-t, .adc-req.fold .adc-req-x { display: none; }
.adc-req.fold .adc-req-cv::before { content: "⌄"; }
.adc-req-x { flex: none; border: 0; background: none; color: var(--mut); font-size: 12px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
@media (max-width: 700px) { .adc-req { top: 6px; } .adc-req-c { left: 10px; right: 10px; } .adc-req.fold .adc-req-c { left: auto; right: 10px; } }

/* 📱 the status line's tap: the 작업공간 comes in from the right (owner 2026-11-10; a swipe drags it in itself) */
@keyframes adc-csright { from { transform: translateX(100%); } }
html.adc-csheet.adc-cslide.adc-cslin.m-aux .aux { animation: adc-csright .26s cubic-bezier(.2,.8,.2,1) !important; }
@media (prefers-reduced-motion: reduce) { html.adc-csheet.adc-cslin.m-aux .aux { animation: none !important; } }

/* 📱 작업공간 대화 목록: no search box at the top (owner 2026-11-10) — the floating [🔍 검색 · ＋ 새 대화] bar at the foot does it */
@media (max-width: 700px) { .hc-drawer .hc-dhead > .hc-dsearch { display: none !important; } }

/* 📄 the 문서 입력창's own side chat (owner 2026-11-10, chat.js docBox): no 새 대화로 there (the server would take both sides' turns) */
.hc-btw-box.btw-docked .btw-new { display: none !important; }

/* the request card going through several requests (owner 2026-11-10): ‹ › and a sideways swipe; another than the one at work: a lighter tag */
.adc-req-nav { flex: none; display: inline-flex; gap: 2px; margin-top: -2px; }
.adc-req-nav[hidden] { display: none; }
.adc-req-nav button { width: 26px; height: 24px; border: 0; border-radius: 6px; background: var(--bg3); color: var(--fg); font-size: 16px; line-height: 1; cursor: pointer; }
.adc-req-nav button:disabled { opacity: .35; cursor: default; }
.adc-req.adc-req-other .adc-req-k { background: var(--bg3); color: var(--fg); }
.adc-req.fold .adc-req-nav { display: none; }
.adc-req-k { white-space: nowrap; }
.adc-req-c { touch-action: pan-y; }   /* (a sideways swipe on the card is its own — no browser back gesture) */
/* the card: [요청 n/N · 처리 중 … ‹ › ⌃ ✕] on top, the text under it at full width */
.adc-req-c { flex-wrap: wrap; row-gap: 6px; align-items: center; }
.adc-req-t { order: 9; flex: 1 0 100%; }
.adc-req-nav { margin-left: auto; margin-top: 0; }
.adc-req:not(:has(.adc-req-nav:not([hidden]))) .adc-req-cv { margin-left: auto; }
.adc-req.fold .adc-req-cv { margin-left: 0; }

/* the request card, final shape (owner 2026-11-10): folded = one line [요청 n/N · the request at work … ⌄]; unfolded = every request,
   the one at work marked (처리 중), the earlier ones lighter, the queued ones last */
.adc-req-c { display: block !important; padding: 8px 12px !important; }
.adc-req-one { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adc-req-one .adc-req-t { flex: 1 1 auto; min-width: 0; display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: none; }
.adc-req-one .adc-req-cv { margin-left: auto !important; }
.adc-req-one .adc-req-cv::before { content: "⌄"; }
.adc-req:not(.fold) .adc-req-one .adc-req-cv::before { content: "⌃"; }
.adc-req:not(.fold) .adc-req-one .adc-req-t { visibility: hidden; }
.adc-req-all { display: none; margin: 8px 0 0; padding: 0; list-style: none; max-height: 50vh; overflow-y: auto; }
.adc-req:not(.fold) .adc-req-all { display: block; }
.adc-req-all li { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border-radius: 8px; color: var(--mut); white-space: pre-wrap; overflow-wrap: anywhere; }
.adc-req-all li + li { margin-top: 4px; }
.adc-req-all li.on { background: var(--bg3); color: var(--fg); font-weight: 600; }
.adc-req-tag { font-size: 11px; font-weight: 700; color: var(--mut); }
.adc-req-tag:empty { display: none; }
.adc-req-all li.on .adc-req-tag { color: var(--fg); }
.adc-req.fold .adc-req-c { left: 0 !important; right: 0 !important; }
@media (max-width: 700px) { .adc-req.fold .adc-req-c { left: 10px !important; right: 10px !important; } }

/* ⚙ 설정 beside the ＋ (owner 2026-11-10): phones, the open 문서 입력창 only — round like the ＋ */
.adc .adc-gear { display: none; }
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .composer-bar > .adc-gear { display: grid !important; place-items: center; flex: none; width: 40px; height: 40px; margin: 0 auto 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .composer-bar > .adc-gear:active { background: var(--bg3); }

/* 🎨 the chat and the document apart (owner 2026-11-10): the chat panel (작업공간 · 채널) on a soft grey of its own, the document
   white (dark: a shade lighter than the document); the input box keeps the page colour so it stands out */
.aux { --chat-bg: color-mix(in srgb, var(--fg) 4.5%, var(--bg)); }
.aux .apane, .aux .hc, .aux .hc > .hc-head, .aux .hc > .hc-composer, .aux .hc > .hc-log { background: var(--chat-bg); }
.aux .hc .hc-box { background: var(--bg); }
html.mshell.at-hermes.ms-panemove .aux > .apane-hermes { background: var(--chat-bg); }
html.mshell.m-aux:not(.mst) .ms-head { background: color-mix(in srgb, var(--fg) 4.5%, var(--bg)); }
html.adc-csheet.m-aux .hc > .adc-back, html.mshell .aux .ms-refrow > .ms-tabline { background: var(--bg) !important; }
/* ⚙ right beside the ＋ (owner 2026-11-10: the gap was too wide — the box's column gap + the bar's own edge) */
html.mshell :is(.editor-body, .adc-host) > .adc.m-open .composer-bar > .adc-gear { margin-left: -14px !important; }

/* 🕘 변경 이력 folded open inside the 속성 panel (owner 2026-11-10, app.js .dtoc-vhbox — chat.js verPanel drawn in place) */
.dtoc-vh::after { content: " ⌄"; color: var(--mut); }
.dtoc-vh.on::after { content: " ⌃"; }
.dtoc-vhbox { margin: 6px 0 10px; padding: 6px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.dtoc-vhbox[hidden] { display: none; }
.dtoc-vhbox .adc-vh-sub { color: var(--mut); font-size: 12px; padding: 0 4px 4px; }
.dtoc-vhbox .adc-vh-sub:empty { display: none; }
.dtoc-vhbox .adc-vh-list { overflow: visible; padding: 0; }
.dtoc-vhbox .adc-vh-sum { padding: 7px 6px; font-size: 13px; flex-wrap: wrap; row-gap: 2px; }
.dtoc-vhbox .adc-vh-diff { margin: 2px 2px 8px 8px; }

/* ✎ 첨삭 (chat.js fixOpen): a line under one change — how to fix it, 다시 생성 · 취소 */
.adc-hunk-bar .adc-fixb, .adc-side-prop .adc-fixb, .adc-sheet li .adc-fixb { color: var(--mut); }
.adc-hunk-bar .adc-fixb:hover, .adc-side-prop .adc-fixb:hover { color: var(--fg); background: var(--bg3); }
.adc-fix { margin: 6px 0 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.adc-fix textarea { width: 100%; box-sizing: border-box; min-height: 44px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; }
.adc-fix-b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.adc-fix-b button { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; }
.adc-fix-b .adc-fix-go { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.adc-hunk-bar .adc-askb, .adc-side-prop .adc-askb, .adc-sheet li .adc-askb { color: var(--mut); }
.adc-hunk-bar .adc-askb:hover, .adc-side-prop .adc-askb:hover { color: var(--fg); background: var(--bg3); }
/* the change's own buttons stay on top of the 💬 · 복사 · 삭제 that float above the paragraph under it (owner 2026-11-12:
   the hover row covered ✎ 첨삭); the bar's empty part lets clicks through */
.adc-hunk-bar { position: relative; z-index: 5; pointer-events: none; }   /* (the box at the foot, z-index 6, stays over it when it scrolls under — owner 2026-11-12) */
.adc-hunk-bar > button { pointer-events: auto; }

/* the paragraphs a note points at */


/* 💡 수정 메모 (chat.js propPaint): the AI's why · what under its change, not part of the text */
.adc-hunk > .adc-why { white-space: pre-line; margin: 0 0 6px; padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, #f5b301 10%, var(--bg)); border: 1px solid color-mix(in srgb, #f5b301 35%, var(--line)); font-size: 12.5px; line-height: 1.5; color: var(--fg); }

/* 💬 첨삭 (chat.js talkOpen) and 🗒 메모 by width (panelPlace): in the right panel when wide, else floating */
.adc-hunk-bar .adc-talkb, .adc-side-prop .adc-talkb, .adc-sheet li .adc-talkb { color: var(--mut); }
.adc-hunk-bar .adc-talkb:hover, .adc-side-prop .adc-talkb:hover { color: var(--fg); background: var(--bg3); }
.adc-rp-x:not(:empty) + .adc-rp-memo:not([hidden]), .adc-rp-x:not(:empty) ~ .adc-rp-chg:not(:empty) { margin-top: 14px; }
.adc-talk { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.adc-talk.adc-float { position: fixed; right: 18px; bottom: 96px; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.adc-talk.adc-inrp { max-height: none; box-shadow: none; }
/* 💬 첨삭: a popup right under its paragraph (talkPlace sets left · top · width) */
.adc-talk.adc-float.adc-talk-pop { right: auto; bottom: auto; max-height: min(60vh, 520px); z-index: 60; }
.adc-talk.adc-talk-pop .adc-talk-log { flex: 0 1 auto; }   /* (as tall as what is in it) */
.adc-talk-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px 12px; border-bottom: 1px solid var(--line); }
.adc-talk-l { flex: 1; min-width: 0; color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-talk-x { border: 0; background: none; color: var(--mut); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.adc-talk-x:hover { background: var(--bg3); color: var(--fg); }
.adc-talk-q { margin: 8px 10px 0; padding: 4px 8px; border-left: 3px solid var(--acc, #4f46e5); background: var(--bg2); border-radius: 0 6px 6px 0; font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-talk-log { flex: 1; min-height: 40px; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.adc-talk.adc-inrp .adc-talk-log { max-height: 46vh; }
.adc-talk-m { max-width: 92%; padding: 6px 10px; border-radius: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.adc-talk-m.me { align-self: flex-end; background: var(--bg3); white-space: pre-wrap; }
.adc-talk-m.ai { align-self: flex-start; background: var(--bg2); }
.adc-talk-m.ai p { margin: .25em 0; }
.adc-talk-m.wait { color: var(--mut); }
.adc-talk-m.err { color: var(--no); background: none; }
.adc-talk-empty { color: var(--mut); font-size: 12.5px; }
.adc-talk-in { display: flex; gap: 6px; align-items: flex-end; padding: 6px 10px 10px; }
.adc-talk-in textarea { flex: 1; min-height: 40px; max-height: 160px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; }
.adc-talk-go { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); font-size: 16px; cursor: pointer; flex: none; }
@media (max-width: 700px) {
  .adc-talk.adc-float { left: 8px; right: 8px; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); max-height: 62vh; }
}

/* 📑 수정안 목록 (chat.js propListPlace): narrower than the right panel's width — a popup over the document's box, opened from
   the bar's title, its head (수정안 N곳 · 전체 적용 · 닫기) shown. Wide — in the right panel (.adc-rpanel .adc-side rules) */
.adc > .adc-side.adc-inbar { position: absolute; left: auto; right: 14px; bottom: calc(100% + 4px); z-index: 20; width: min(460px, calc(100% - 28px)); max-width: none; margin: 0;
  flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.adc > .adc-side.adc-inbar > .adc-side-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 6px 12px; border-bottom: 1px solid var(--line); }
.adc > .adc-side.adc-inbar > .adc-side-h .adc-side-t > span { display: inline; font-size: 0; }
.adc > .adc-side.adc-inbar > .adc-side-h .adc-side-t > span::before { content: "닫기 ✕"; font-size: 12px; margin-left: 8px; color: var(--mut); }
@media (max-width: 700px) { .adc > .adc-side.adc-inbar { left: 8px; right: 8px; width: auto; } }
.adc.adc-plist-rp .adc-prop-cv { display: none; }
.adc-rpanel .adc-side-prop.adc-flash { animation: adc-flash 1s ease-out; }

/* 📝 주석 in markdown drawn here (chat.js md: 수정안 · chat) */
sup.fn-ref, sup.fn-def { font-size: .75em; font-weight: 600; color: var(--acc, #4f46e5); padding: 0 1px; }
p:has(> sup.fn-def:first-child) { font-size: 13px; color: var(--mut); }

/* the 수정안 list open in the right panel (owner 2026-11-12): the bar above the box (📝 수정안 N곳 · 전체 적용 · 버리기) is
   not shown — the panel has them; the bar of a live edit (✍️ AI가 고치는 중) stays */
.adc.adc-plist-rp > .adc-prop:not(.adc-prop-live) { display: none !important; }
.adc-side-prop .adc-rp-discard { display: none; }
.adc-rpanel .adc-side-prop .adc-rp-discard { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; }
.adc-rpanel .adc-side-prop .adc-rp-discard:hover { background: var(--bg3); color: var(--no); }

/* 🗒 포스트잇 메모 (chat.js notePop · noteMarks) */
.adc-nmark { position: absolute; z-index: 3; height: 22px; padding: 0 6px; border: 0; border-radius: 4px 4px 4px 0; background: #ffe680; color: #5c4a00; font: inherit; font-size: 12px; line-height: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); cursor: pointer; transform: rotate(-3deg); }
.adc-nmark:hover { background: #ffd84d; transform: rotate(0); }
.adc-npop { position: fixed; z-index: 1000; display: flex; flex-direction: column; max-height: min(70vh, 560px); box-sizing: border-box; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.2); font-size: 13.5px; }
.adc-npop.adc-npop-sheet { left: 8px !important; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); top: auto !important; width: auto !important; max-height: 62vh; }
.adc-npop-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px 12px; }
.adc-npop-h b { font-size: 13px; }
.adc-npop-to { flex: 1; min-width: 0; color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-npop-x { border: 0; background: none; color: var(--mut); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.adc-npop-x:hover { background: var(--bg3); color: var(--fg); }
.adc-npop-l { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.adc-sticky { position: relative; padding: 10px 10px 6px; background: #fff3a8; color: #3b3200; border-radius: 2px 2px 10px 2px; box-shadow: 0 2px 6px rgba(0,0,0,.15), inset 0 -10px 18px -14px rgba(120,90,0,.35); }
.adc-sticky:nth-child(3n+2) { transform: rotate(.6deg); } .adc-sticky:nth-child(3n) { transform: rotate(-.5deg); }
.adc-sticky.sent { background: #e6f6d5; color: #213a10; }
.adc-sticky.done { opacity: .6; }
.adc-sticky.done textarea { text-decoration: line-through; }
.adc-sticky-q { font-size: 11.5px; color: #6b5d1a; margin-bottom: 4px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-sticky textarea { display: block; width: 100%; box-sizing: border-box; min-height: 40px; border: 0; outline: 0; resize: none; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1.5; padding: 0; }
.adc-sticky textarea::placeholder { color: rgba(80,65,0,.5); }
.adc-sticky-b { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; color: rgba(60,50,0,.7); }
.adc-sticky-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-sticky-s { white-space: nowrap; }
.adc-sticky-b button { height: 24px; padding: 0 8px; border: 0; border-radius: 12px; background: rgba(0,0,0,.06); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.adc-sticky-b button:hover { background: rgba(0,0,0,.14); }
.adc-sticky-b .adc-sticky-send { background: rgba(0,0,0,.75); color: #fff8d0; font-weight: 600; }
.adc-sticky-b .adc-sticky-send:disabled { opacity: .35; cursor: default; }
.adc-npop-empty { color: var(--mut); font-size: 12.5px; padding: 8px 2px; }
.adc-npop-f { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px 10px; border-top: 1px solid var(--line); }
.adc-npop-f:empty { display: none; }
.adc-npop-f button { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; }
.adc-npop-f .adc-npop-all { margin-left: auto; background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }

/* line icons in the tools (chat.js TI) */
.ti { display: inline-flex; align-items: center; vertical-align: -2px; margin-right: 4px; }
:is(.adc-pbtn, .adc-side-prop, .adc-sheet, .adc-pnav) .ti { margin-right: 0; }   /* (icon-only buttons there) */
.adc-nmark { display: inline-flex; align-items: center; gap: 2px; }
.adc-nmark .ti { margin: 0; }

/* 📑 오른쪽 패널: 요청 · AI 메모 / 답변 · 수정안 (owner 2026-11-12) — when the pane is wide the request card sits at the
   panel's top instead of over the text; the memos fold once the answer is in, and the answer shows under them */
.adc-rp-req:empty, .adc-rp-ans:empty { display: none; }
.adc-rp-req .adc-req { position: static; height: auto; max-width: none; margin: 0 0 14px; }
.adc-rp-req .adc-req-c { position: static; box-shadow: none; }
.adc-rp-req .adc-req.fold .adc-req-c { left: 0; padding: 9px 8px 9px 12px; }
.adc-rp-req .adc-req.fold .adc-req-t { display: -webkit-box; }
.adc-rp-req .adc-req.adc-req-done .adc-req-k { background: var(--mut); }
.adc-rp-memo > .adc-rp-h { cursor: pointer; user-select: none; }
.adc-rp-memo > .adc-rp-h::after { content: "⌄"; margin-left: auto; color: var(--mut); }
.adc-rp-memo.fold > .adc-rp-h::after { content: "›"; }
.adc-rp-memo.fold > :not(.adc-rp-h) { display: none; }
.adc-rp-ans { margin-top: 14px; }
.adc-rp-ans .adc-rp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.adc-rp-ans .adc-rp-b { font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.adc-rp-ans .adc-rp-b p { margin: .35em 0; }
.adc-rp-ans .adc-rp-ch { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; } .adc-rp-ans .adc-rp-ch button { text-align: left; }
.adc-rp-ans .adc-rp-ch button.on { border-color: var(--acc); background: var(--acc-bg); }
.adc-rp-ans .adc-rp-b :is(pre, .code-wrap) { max-width: 100%; overflow-x: auto; }
.adc-rp-ans + .adc-rp-chg:not(:empty), .adc-rp-memo:not([hidden]) + .adc-rp-ans:not(:empty) { margin-top: 14px; }
.adc-rp-memo > .adc-rp-h, .adc-rp-ans > .adc-rp-h { display: flex; align-items: center; gap: 6px; }
.adc-rp-memo > .adc-rp-h > span { color: var(--mut); font-size: 12px; }
.adc-rp-ans > .adc-rp-h { cursor: pointer; user-select: none; }
.adc-rp-ans > .adc-rp-h::after { content: "⌄"; margin-left: auto; color: var(--mut); }
.adc-rp-ans.fold > .adc-rp-h::after { content: "›"; }
.adc-rp-ans.fold > .adc-rp-b { display: none; }

/* ✏️ 수정안 고치기 (chat.js propEdit) */
.adc-hunk-bar .adc-peb { color: var(--mut); }
.adc-hunk-bar .adc-peb:hover { color: var(--fg); background: var(--bg3); }
.adc-hunk > .adc-add { cursor: text; }
/* ☐ a 수정안 paragraph picked (owner 2026-11-13): marked over its green — an outline, so the change's own colour stays */
.adc-hunk > .adc-add.adc-sel { outline: 2px solid color-mix(in srgb, var(--acc, #4f46e5) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.adc-talk-go.adc-talk-regen { width: auto; padding: 0 12px; border-radius: 16px; gap: 4px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 12.5px; }
.adc-pedit { margin: 4px 0 6px; }
.adc-pedit .adc-inline-b { display: flex; align-items: center; gap: 6px; }
.adc-pedit .adc-inline-b span { flex: 1; min-width: 0; }
.adc-pedit .adc-inline-b button { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; }
.adc-pedit .adc-pe-save { background: var(--fg) !important; color: var(--bg) !important; border-color: var(--fg) !important; font-weight: 600; }

/* ✍️ 서식 도구 (chat.js fmtApply) in the editing dock; list · heading only for the markdown box */
.adc-dock .adc-fmt { display: inline-flex; align-items: center; gap: 2px; margin-right: auto; padding: 2px; border-radius: 10px; background: var(--bg2); }
.adc-dock .adc-fmt button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.adc-dock .adc-fmt button:hover { background: var(--bg3); }
.adc-dock:not(.adc-dock-md) .adc-fmt .adc-fmt-md { display: none; }
.adc-hunk > .adc-add.adc-editing { outline: 2px solid color-mix(in srgb, var(--acc, #4f46e5) 45%, transparent); outline-offset: 2px; border-radius: 4px; cursor: text; }
@media (max-width: 700px) { .adc-dock { flex-wrap: wrap; row-gap: 6px; } .adc-dock .adc-fmt { flex-basis: 100%; justify-content: space-between; margin-right: 0; } }

/* 🧘 차분한 실시간 편집 (owner 2026-11-12): one place marked as being written (the block being typed); what was written
   before stays plain green; no blinking, no pulsing, no fade-in on each redraw; reading is a thin line only */
.doc > .adc-add { animation: none !important; }
.doc > .adc-typing::after { animation: none !important; opacity: .6; }
.doc > .adc-add.adc-now:not(.adc-typing) { background: var(--adc-wash, color-mix(in srgb, var(--ok) 11%, transparent)); box-shadow: -8px 0 0 var(--adc-wash, color-mix(in srgb, var(--ok) 11%, transparent)), -11px 0 0 var(--adc-ink, var(--ok)); }
.doc > .adc-read { animation: none !important; background: none; box-shadow: -11px 0 0 color-mix(in srgb, #e5a800 55%, transparent); }
.doc > .adc-read:not(:has(~ .adc-read))::after { content: none; }
.adc-ed.adc-readall > * { box-shadow: none; }
.adc > .adc-follow { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 21; height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.14); cursor: pointer; }

/* 🖼 그림 서식 (owner 2026-11-12): ![[그림|캡션|left|320]] — centered and about six lines of text high unless set; the bar
   over a picked one (정렬 · 캡션 · 기본 크기) and its corner to drag (imgTools) */
.dimg { display: block; margin: .6em 0; line-height: 0; text-align: center; }
.dimg.dimg-left { text-align: left; } .dimg.dimg-right { text-align: right; }
.dimg .dimg-box { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.dimg .dimg-box img { height: 10.5em; width: auto; max-width: 100%; max-height: none; border-radius: 4px; cursor: pointer; }
.dimg.dimg-w .dimg-box img { height: auto; }
.dimg-cap { display: block; line-height: 1.5; font-size: .86em; color: var(--mut); margin-top: .45em; overflow-wrap: anywhere; }
.dimg-cap[contenteditable="true"] { display: inline-block; min-width: 12em; outline: 1px dashed var(--acc, #4f46e5); outline-offset: 3px; border-radius: 3px; color: var(--fg); cursor: text; }
.dimg-cap[contenteditable="true"]:empty::before { content: attr(data-ph); color: var(--mut); }
.dimg.dimg-on .dimg-box { outline: 2px solid var(--acc, #4f46e5); outline-offset: 2px; border-radius: 4px; }
.dimg-h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: var(--bg); border: 2px solid var(--acc, #4f46e5); cursor: nwse-resize; touch-action: none; z-index: 2; }
.dimg.dimg-right .dimg-h { right: auto; left: -8px; cursor: nesw-resize; }
@media (pointer: coarse) { .dimg-h { width: 24px; height: 24px; right: -12px; bottom: -12px; } .dimg.dimg-right .dimg-h { left: -12px; } }
.dimg-bar { position: fixed; z-index: 61; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.dimg-bar[hidden] { display: none; }
.dimg-bar button { border: 0; background: none; color: var(--fg); font: inherit; font-size: 13px; min-height: 34px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; cursor: pointer; }
.dimg-bar button:hover { background: var(--bg3); }
.dimg-bar button.on { background: var(--bg3); color: var(--acc, #4f46e5); }
.dimg-bar button:disabled { opacity: .4; cursor: default; background: none; }
.dimg-bar .sep { width: 1px; align-self: stretch; margin: 5px 3px; background: var(--line); }

/* 🖼 a picture picked (owner 2026-11-13): only its bar — the paragraph tools (💬 · 메모 · 복사 · 삭제, ◀ n/N ▶ 판, ⋮⋮) and the
   hover shade step aside until it is let go */
.adc-imgpick .adc-pbtn, .adc-imgpick .adc-hnav, .adc-imgpick .adc-grip { display: none !important; }
.adc-imgpick .doc > .adc-hov:not(.adc-sel) { background: none !important; box-shadow: none !important; }

/* 🌐 ![[x.html]] (owner 2026-11-13): an HTML file drawn in the document — a frame as tall as its page, its name under it */
.dhtml { display: block; margin: .6em 0; text-align: center; line-height: 0; }
.dhtml .dhtml-f { display: block; width: 100%; height: 360px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dhtml .dimg-cap a { color: inherit; }

/* ▦ 표 편집 (owner 2026-11-13): handles over a table of the document — ⋯ column / row menus, ＋ add a column / a row */
.tbx[hidden], .tbx-menu[hidden] { display: none; }
.tbx > button { position: fixed; z-index: 58; border: 1px solid var(--line); background: var(--bg); color: var(--mut); border-radius: 6px; cursor: pointer; font: inherit; line-height: 1; padding: 0; }
.tbx > button:hover { color: var(--fg); background: var(--bg3); }
.tbx .tbx-col { width: 24px; height: 18px; font-size: 13px; }
.tbx .tbx-row { width: 18px; height: 24px; font-size: 13px; writing-mode: vertical-lr; }
.tbx .tbx-addc, .tbx .tbx-addr { width: 22px; height: 22px; border-radius: 50%; font-size: 13px; opacity: .7; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
   /* (owner 2026-11-13: a picked block keeps its tools while the pointer is on a table) */
.tbx .tbx-addc:hover, .tbx .tbx-addr:hover { opacity: 1; }
.tbx-menu { position: fixed; z-index: 62; min-width: 150px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.tbx-menu button { border: 0; background: none; text-align: left; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 6px; color: var(--fg); cursor: pointer; }
.tbx-menu button:hover { background: var(--bg3); }
.tbx-menu button.danger { color: var(--no, #dc2626); }
.tbx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 3px 2px; }
.tbx-resize, .tbx-resize * { cursor: col-resize !important; }
@media (pointer: coarse) { .tbx .tbx-col { width: 34px; height: 26px; } .tbx .tbx-row { width: 26px; height: 34px; } .tbx .tbx-addc, .tbx .tbx-addr { width: 30px; height: 30px; } }
.doc > table th:empty, .doc > table td:empty { min-width: 3em; }   /* ▦ a new empty column is not a sliver */

/* ⇔ 문단 정렬 (owner 2026-11-13): three line icons in the paragraph tools, the paragraph's own marked */
.adc-pbtn .adc-pal { display: inline-flex; gap: 0; margin: 0 2px; padding: 0 2px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.adc-pbtn .adc-pal[hidden] { display: none; }
.adc-pbtn .adc-pal button { display: inline-flex; align-items: center; }
.adc-pbtn .adc-pal button.on { color: var(--acc, #4f46e5); }

/* ⇔ 정렬 in the selection bar (phones: their paragraph tools) */
.adc-selbar .adc-sal { display: inline-flex; align-items: center; }
.adc-selbar .adc-sal[hidden] { display: none; }
.adc-selbar .adc-sal button { display: inline-flex; align-items: center; justify-content: center; }
.adc-selbar .adc-sal button.on { color: var(--acc, #4f46e5); }

/* ▦ 표 크기 손잡이 · 칸 정렬 판 (owner 2026-11-13) */
.tbx .tbx-size { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--acc, #4f46e5); background: var(--bg); cursor: nwse-resize; touch-action: none; opacity: .8; }
@media (pointer: coarse) { .tbx .tbx-size { width: 22px; height: 22px; } }
.tbx-cell { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 4px; min-width: 210px; }
.tbx-cell > b { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.tbx-sc { display: flex; gap: 2px; background: var(--bg2); border-radius: 8px; padding: 2px; }
.tbx-menu .tbx-sc button { flex: 1; text-align: center; padding: 5px 4px; font-size: 12px; border-radius: 6px; }
.tbx-menu .tbx-sc button.on { background: var(--bg); color: var(--acc, #4f46e5); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tbx-row2 { display: flex; align-items: center; gap: 2px; }
.tbx-row2 > span { width: 34px; font-size: 12px; color: var(--mut); }
.tbx-menu .tbx-row2 button { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; }
/* 정렬된 표·목록이 가운데·오른쪽으로 갈 수 있게 (표는 휴대폰에서 스크롤 블록이라 그대로) */
.doc > ul[data-al], .doc > ol[data-al] { padding-left: 1.4em; }

/* 🎨 글자 서식 · ▦ 칸 고르기 (owner 2026-11-13) */
.adc-fmt .adc-fmt-color i { display: block; height: 3px; margin: 1px 2px 0; border-radius: 2px; background: linear-gradient(90deg, #d44c47, #cb912f, #448361, #337ea9, #9065b0); }
.adc-pal-pop { position: fixed; z-index: 70; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.adc-pp-h { font-size: 11.5px; color: var(--mut); margin: 2px 2px 4px; }
.adc-pp-r { display: grid; grid-template-columns: repeat(10, 26px); gap: 3px; margin-bottom: 6px; }
.adc-pp-r button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.adc-pp-r button:hover { outline: 2px solid var(--acc, #4f46e5); }
.doc li.task { list-style: none; margin-left: -1.3em; } .doc li.task > input { margin-right: .45em; vertical-align: -1px; }
.doc table td.tbx-csel, .doc table th.tbx-csel { box-shadow: inset 0 0 0 2px var(--acc, #4f46e5); background-color: color-mix(in srgb, var(--acc, #4f46e5) 8%, transparent); }
.doc table.tbx-dragging, .doc table.tbx-dragging * { user-select: none; cursor: cell; }
.tbx-cbar { position: fixed; z-index: 61; display: flex; align-items: center; gap: 1px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.tbx-cbar[hidden] { display: none; }
.tbx-cbar button { border: 0; background: none; color: var(--fg); font: inherit; font-size: 13px; min-width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; }
.tbx-cbar button:hover { background: var(--bg3); }
.tbx-cbar .sep { width: 1px; align-self: stretch; margin: 5px 3px; background: var(--line); }
.tbx-cbar .cb { display: block; width: 14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #d44c47, #cb912f, #448361, #337ea9); }
/* 🖱 블록 도구 모음 (owner 2026-11-13): 고른 블록 위에 크게 — 표 도구처럼. 마우스오버는 음영만. PC 에서는 아래 선택 막대 대신 */
.adc-pbtn { height: auto; align-items: center; gap: 1px; padding: 3px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 6; }
.adc-pbtn button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.adc-pbtn .adc-pal, .adc-pbtn .adc-pin { display: inline-flex; align-items: center; margin: 0 2px; padding: 0 2px; border-left: 1px solid var(--line); }
.adc-pbtn .adc-pal { border-right: 0; }
.adc-pbtn .adc-pin { border-right: 1px solid var(--line); }
.adc-pbtn .adc-pal button, .adc-pbtn .adc-pin button { min-width: 30px; padding: 0 5px; }
.adc-pbtn .adc-pn { font-size: 12px; color: var(--mut); padding: 0 4px; }
.adc-pbtn .adc-pn:empty { display: none; }
.adc-pbtn .adc-px { color: var(--mut); }
:is(.adc-pbtn, .adc-selbar) .adc-bcolor { flex-direction: column; font-weight: 600; }
:is(.adc-pbtn, .adc-selbar) .adc-bcolor i { display: block; width: 14px; height: 3px; margin-top: 1px; border-radius: 2px; background: linear-gradient(90deg, #d44c47, #cb912f, #448361, #337ea9); }
:is(.adc-pbtn, .adc-selbar) .adc-bcolor.on { color: var(--acc, #4f46e5); }
.adc-selbar .adc-pin { display: inline-flex; align-items: center; }
@media (pointer: fine) and (min-width: 901px) { .adc-selbar { display: none !important; } }
.doc > .adc-sel[data-blk*="bg:"] { outline: 2px solid color-mix(in srgb, var(--acc, #4f46e5) 45%, transparent); outline-offset: 2px; }   /* (a block with its own background: the pick still shows) */
/* ✏️ 편집 막대: PC 에서는 고치는 블록 위에 떠 있음 (owner 2026-11-13 "하단은 채팅 입력창") — 입력창은 그대로 보임 */
.adc-dock.adc-dock-float { position: fixed; right: auto; bottom: auto; max-width: none; width: max-content; margin: 0; z-index: 60; gap: 4px; padding: 3px;
  transform: none; opacity: 1; pointer-events: auto; transition: none; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.adc-dock.adc-dock-float .adc-fmt { margin-right: 0; background: none; padding: 0; }
.adc-dock.adc-dock-float button { height: 30px; box-shadow: none; }
.adc-dock.adc-dock-float .adc-dock-mode { padding: 0 10px; border-radius: 7px; font-size: 13px; }
.adc-dock.adc-dock-float .adc-dock-save { flex: none; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.adc-dock.adc-dock-float .adc-dock-x { width: 30px; font-size: 18px; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  :is(.editor-body, .adc-host) > .adc.adc-editmode > :not(.adc-dock):not(.adc-selbar) { transform: none; opacity: 1; pointer-events: auto; }
}
.adc-pp-r button.on { outline: 2px solid var(--acc, #4f46e5); outline-offset: 1px; }
.tbx-menu.adc-turn button.on { color: var(--acc, #4f46e5); font-weight: 600; }
/* ↶ 되돌리기 (owner 2026-11-13) */
:is(.adc-pbtn, .tbx-cbar, .adc-selbar) .adc-undo:disabled { opacity: .35; cursor: default; }
.adc-pbtn .adc-undo { border-right: 1px solid var(--line); border-radius: 7px 0 0 7px; margin-right: 2px; font-size: 16px; }
.adc-utoast { position: fixed; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.adc-utoast[hidden] { display: none; }
.adc-utoast button { border: 0; border-radius: 7px; padding: 4px 10px; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
/* ¶ 블록 나누기 in a list: the gap where the list becomes two blocks (owner 2026-11-13) */
.doc li.adc-lbrk { list-style: none; height: 0; margin: 10px 0 10px -1.4em; border-top: 1px dashed color-mix(in srgb, var(--acc, #4f46e5) 50%, transparent); pointer-events: none; }
.doc li.task > input.task-cb, .doc li.task > p > input.task-cb { cursor: pointer; accent-color: var(--acc, #4f46e5); }
.doc li.task:has(> input.task-cb:checked), .doc li.task:has(> p > input.task-cb:checked) { color: var(--mut); text-decoration: line-through; }
.adc-grip.adc-grip-tbl { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 7; }
.adc-grip.adc-grip-tbl:hover { background: var(--bg3); border-color: var(--acc, #4f46e5); }
/* ＋ 블록 추가 (owner 2026-11-13) */
.adc-addb { position: absolute; z-index: 7; width: 20px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--mut); font-size: 18px; line-height: 1; cursor: pointer; user-select: none; }
.adc-addb:hover { background: var(--bg3); color: var(--fg); }
.adc-addb[hidden] { display: none; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) { .adc-addb { display: none !important; } }
.tbx-menu.adc-addmenu { max-height: 70vh; overflow-y: auto; }
.tbx-menu.adc-addmenu .adc-addh { padding: 4px 10px 6px; font-size: 11.5px; color: var(--mut); }
/* ▭ 블록 구역 선택 (owner 2026-11-13) */
.adc-band { position: absolute; z-index: 5; pointer-events: none; border: 1px solid color-mix(in srgb, var(--acc, #4f46e5) 60%, transparent); background: color-mix(in srgb, var(--acc, #4f46e5) 10%, transparent); border-radius: 3px; }
.adc-band[hidden] { display: none; }
.adc-banding, .adc-banding * { user-select: none !important; }

/* 요청 카드의 「선택한 블록」 (owner 2026-11-13): a quoted line under the request, a click goes there */
.adc-req-blk { display: block; width: 100%; margin: 3px 0 0; padding: 3px 8px; border: 0; border-left: 3px solid color-mix(in srgb, var(--acc) 55%, var(--line)); border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--acc) 7%, transparent); color: var(--mut); font: inherit; font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.adc-req-blk:hover { color: var(--fg); background: color-mix(in srgb, var(--acc) 13%, transparent); }
.adc-blk-flash { animation: adc-blk-flash 1.5s ease-out; border-radius: 4px; }
@keyframes adc-blk-flash { 0%, 35% { background: color-mix(in srgb, var(--acc) 18%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
/* ▤ 빈 블록 (owner 2026-11-13): a hint where nothing is written yet */
.doc > .adc-empty::before { content: "빈 블록 — 두 번 눌러 쓰기 · ⇄ 또는 / 로 종류 고르기 · 고른 채로 아래 입력창에서 AI에게 작성 요청"; color: var(--mut); opacity: .65; font-size: .92em; font-weight: 400; }
/* (owner 2026-11-14 "빈 문서 화면을 정리하세요"): a heading says what it is for, in its own size — the long how-to stays on the body block */
.doc > :is(h1, h2, h3, h4, h5, h6).adc-empty::before { font-size: 1em; font-weight: inherit; opacity: .4; }
.doc > h1.adc-empty::before { content: "제목"; }
.doc > :is(h2, h3, h4, h5, h6).adc-empty::before { content: "소제목"; }
.doc > .adc-empty.adc-editing::before { content: none; }
.adc-bandmode .doc, .adc-bandmode .doc * { cursor: crosshair !important; user-select: none; }
.adc-bandchip { position: fixed; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 10px; background: var(--acc, #4f46e5); color: #fff; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.adc-bandchip[hidden] { display: none; }
.adc-bandchip button { border: 0; border-radius: 7px; padding: 3px 10px; background: rgba(255,255,255,.2); color: #fff; font: inherit; cursor: pointer; }

/* 💬 말풍선 (owner 2026-11-13 "메모 패널은 채팅입력창 위에 플로팅 — 버튼 위에 말풍선처럼"): the request · AI 메모 · 답변 of the
   document's conversation over the round 💬 at the pane's bottom right (over the box while it is out — chat.js bubSync sets bottom) */
.adc-bub { position: absolute; right: 22px; bottom: 86px; z-index: 41; width: min(400px, calc(100% - 44px)); box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--fg); box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
  animation: adc-bub-in .18s ease-out; }
.adc-bub[hidden] { display: none; }
/* ◨ AI패널 펼치기 · 닫기 (owner 2026-11-14): left of the round 💬 (app.css .adc-fab: right 22 · 52px) — only where the panel fits
   (chat.js rpSync .adc-rp-can); the box, while out, keeps room for both */
.adc-rptg { display: none; }
html:not(.mshell) .epane.adc-rp-can > .adc-rptg { display: grid; place-items: center; position: absolute; right: 72px; bottom: 28px; z-index: 40; width: 40px; height: 40px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--mut); box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer; }
html:not(.mshell) .epane.adc-rp-can > .adc-rptg:hover { background: var(--bg2); color: var(--fg); }
html:not(.mshell) .epane.adc-rp-can > .adc-rptg.on { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
html:not(.mshell) .epane.adc-rp-can .editor-body > .adc.adc-popon { padding-right: 124px; }
/* ◨ AI패널 in / out, animated (owner 2026-11-14 — chat.js rpToggleBtn: .rp-anim on its pane ~0.45 s, .adc-rp-out while it leaves) */
.epane.rp-anim > .editor-body { transition: margin-right .32s cubic-bezier(.2, .8, .2, 1), padding-right .32s cubic-bezier(.2, .8, .2, 1) !important; }
.epane.rp-anim > .adc-rpanel:not([hidden]):not(.adc-rp-out) { animation: wn-in-r .32s cubic-bezier(.2, .8, .2, 1); }
.epane > .adc-rpanel.adc-rp-out { animation: rp-out-r .3s cubic-bezier(.4, 0, .6, 1) forwards; pointer-events: none; }
@keyframes rp-out-r { from { transform: none; opacity: 1; } to { transform: translateX(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .epane.rp-anim > .editor-body { transition: none !important; } .epane > .adc-rpanel { animation: none !important; } }
.adc-rpanel:not(:has(> .adc-rp-sel:not(:empty), > .adc-rp-req:not(:empty), > .adc-rp-memo:not([hidden]), > .adc-rp-ans:not(:empty), > .adc-rp-chg:not(:empty), > .adc-rp-x:not(:empty), > .adc-rp-done:not(:empty)))::before {
  content: "AI 메모와 수정안이 여기에 나옵니다"; display: block; padding: 18px 2px; color: var(--mut); font-size: 13px; }
.adc-bub::after { content: ""; position: absolute; right: 20px; bottom: -7px; width: 12px; height: 12px; background: var(--bg);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }   /* (the tail, pointing at the 💬) */
.adc-bub-in { max-height: min(60vh, calc(100vh - 220px)); overflow: auto; overscroll-behavior: contain; padding: 12px 14px 14px; font-size: 13.5px; }
.adc-bub-x { position: absolute; top: 6px; right: 6px; z-index: 1; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: var(--bg); color: var(--mut); cursor: pointer; }
.adc-bub-x:hover { background: var(--bg3); color: var(--fg); }
.adc-bub .adc-rp-req .adc-req { margin: 0 26px 10px 0; }
.adc-bub .adc-rp-memo li { padding: 6px 0; }
.adc-bub .adc-rp-memo:not([hidden]) + .adc-rp-ans:not(:empty) { margin-top: 10px; }
.adc-bub .adc-rp-req:empty + .adc-rp-memo > .adc-rp-h { margin-right: 26px; }
@keyframes adc-bub-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adc-bub { animation: none; } }
.adc-bub-open { position: absolute; right: 22px; bottom: 86px; z-index: 41; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); animation: adc-bub-in .18s ease-out; }
.adc-bub-open[hidden] { display: none; }
.adc-bub-open:hover { color: var(--acc, #4f46e5); border-color: var(--acc, #4f46e5); }
.doc > .adc-del.adc-gone { display: none; }
.adc-side:not(.adc-side-prop) > .adc-side-h { cursor: default; flex-wrap: wrap; }
.adc-side-t { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.adc-side-act { display: flex; gap: 6px; }
.adc-side-act[hidden] { display: none; }
.adc-side.adc-fold .adc-side-t span { transform: rotate(-90deg); }
.adc-side-back { height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; }
.adc-side-back:hover { color: var(--no); border-color: var(--no); }
/* 📌 선택한 블록 in the AI패널 (owner 2026-11-14 — chat.js selPanel) */
.adc-rp-sel:empty { display: none; }
.adc-rp-sel { margin: 0 0 14px; }
.adc-rp-sel .adc-rp-h { align-items: center; gap: 6px; }
.adc-rp-sel .adc-rp-h span { margin-right: auto; }
.adc-rp-selx { height: 22px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--mut); font: inherit; font-size: 11.5px; cursor: pointer; }
.adc-rp-selx:hover { color: var(--fg); background: var(--bg2); }
.adc-rp-sel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; }
.adc-rp-sel li { padding: 6px 9px; border-left: 3px solid var(--acc); border-radius: 6px; background: var(--bg2); color: var(--fg); line-height: 1.5; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adc-rp-sel li.h { font-weight: 600; }
.adc-rp-sel li:hover { background: var(--bg3); }
.adc-rp-selh { margin: 6px 0 0; color: var(--mut); font-size: 12px; }
/* (owner 2026-11-14 "문서 하단에 텍스트가 겹치네요"): with the box away behind the 💬 (PC), the bar above it (✍️ AI가 고치는 중 ·
   📝 수정안 n곳 · ◀ n/N ▶) floated bare over the text's last lines (작성 · 담당 · 모델 …) — it is a pill with its own background
   then, and the text gets room at its foot to scroll clear of it */
html:not(.mshell) .editor-body > .adc:not(.adc-popon) > .adc-prop { width: fit-content; max-width: min(720px, calc(100% - 220px)); margin: 0 auto 10px; padding: 2px 6px 2px 12px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--fg); box-shadow: 0 4px 14px rgba(0,0,0,.12); position: relative; z-index: 2; }
html:not(.mshell) .editor-body:has(> .adc:not(.adc-popon) > .adc-prop) { padding-bottom: 64px; }
/* 🖼🖼 여러 그림 함께 (owner 2026-11-14 — chat.js imgTools grp): the pictures picked together are outlined; the bar says how many */
.doc .dimg.dimg-grp .dimg-box { outline: 2px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }
.dimg-bar .dimg-multi { display: inline-flex; align-items: center; gap: 2px; }
.dimg-bar .dimg-multi[hidden] { display: none; }
.dimg-bar .dimg-n { padding: 0 6px; color: var(--mut); font-size: 12px; white-space: nowrap; }
.doc .dimg.dimg-grp.dimg-on .dimg-box { outline-color: var(--acc, #4f46e5); }   /* (the one the sizes are taken from) */
/* ❓ AI가 질문했습니다 (owner 2026-11-14): over the document's box, whatever the AI panel */
.adc-ask { margin: 12px 0; padding: 10px 14px 12px; border: 1px solid var(--acc); border-radius: 10px; background: var(--acc-bg); }
.adc-ask-h { display: flex; align-items: center; gap: 8px; } .adc-ask-h b { flex: 1; }
.adc-ask-x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 14px; padding: 2px 6px; }
.adc-ask-b { font-size: 14px; line-height: 1.6; } .adc-ask-b p { margin: .35em 0; }
.adc-ask .adc-rp-ch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .adc-ask .adc-rp-ch button { text-align: left; }
.adc-ask .adc-rp-ch button.on { border-color: var(--acc); }
/* 🔎 이력 검색 (owner 2026-11-14 — chat.js verSearch): the box under the head; a 판 found shows how many lines had the words and one of them */
.adc-vh-search { padding: 6px 12px 8px; border-bottom: 1px solid var(--line); }
.dtoc .adc-vh-search { padding: 4px 0 8px; border-bottom: 0; }
.adc-vh-q { width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
.adc-vh-q:focus { outline: none; border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.adc-vh-row[hidden] { display: none; }
.adc-vh-hit { display: flex; gap: 8px; align-items: baseline; padding: 0 12px 8px 12px; font-size: 12.5px; color: var(--mut); }
.adc-vh-hit .k { flex: none; font-weight: 600; color: var(--acc); }
.adc-vh-hit .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-vh-hit .s.del { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--no) 60%, transparent); }
.adc-vh-hit mark, .adc-vh-diff mark { background: color-mix(in srgb, #facc15 55%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
/* (owner 2026-11-14 "수정안 도구모음 텍스트가 다른 패널로 삐져나오네요"): with a set width (기본 880 · A4 …) the text keeps its width and
   scrolls sideways — the ✓ 적용 · 되돌리기 · 다시 생성 · 고치기 row, right-aligned to it, went past the tab or over the AI패널 (it is a
   layer above). It now stays right-aligned but sticks to the visible right edge, and the AI패널 is above the text's layers */
.adc-hunk-bar { position: sticky; right: 8px; width: fit-content; margin-left: auto; }
:is(.editor, .epane) > .adc-rpanel { z-index: 7; }
/* ↔ 문서 입력창 폭 (owner 2026-11-14 "문서 채팅입력창 폭을 좀더 넓히세요"): on a PC the box takes the width there is (up to
   820px) instead of shrinking to its contents; with the AI panel open the round 💬 / ◨ float over the panel, not the text,
   so the box keeps no room for them on the right */
html:not(.mshell) .editor-body > .adc > .adc-box { width: min(100%, 820px) !important; max-width: none !important; margin-left: auto; margin-right: auto; box-sizing: border-box; }
html:not(.mshell) :is(.editor, .epane).adc-rp-on > .editor-body > .adc { padding-right: 14px !important; }
/* ▦▦ 여러 표 함께 (owner 2026-11-14 — chat.js tableTools gplace): the bar over the 기준 table; the tables picked together outlined */
.tbx-gbar { position: fixed; z-index: 61; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.tbx-gbar[hidden] { display: none; }
.tbx-gbar .tbx-gn { padding: 0 8px; color: var(--mut); font-size: 12px; white-space: nowrap; }
.tbx-gbar button { border: 0; background: none; color: var(--fg); font: inherit; font-size: 13px; min-height: 32px; padding: 0 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.tbx-gbar button:hover { background: var(--bg3); }
.doc table.tbx-grp { outline: 2px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 3px; }
.doc table.tbx-grp.tbx-gref { outline-color: var(--acc, #4f46e5); }   /* (the one the widths are taken from) */
/* 📐 도면 크기 (owner 2026-11-14 — chat.js mmdTools): a picked diagram's outline, its corner and bar */
.doc > pre.mmd.mmd-on > .mmd-view svg { outline: 2px solid var(--acc, #4f46e5); outline-offset: 3px; border-radius: 2px; }
.mmd-h { position: fixed; z-index: 61; width: 16px; height: 16px; border-radius: 4px; background: var(--bg); border: 2px solid var(--acc, #4f46e5); cursor: nwse-resize; touch-action: none; box-sizing: border-box; }
.mmd-h.mmd-hl { cursor: nesw-resize; }
.mmd-h[hidden], .mmd-bar [hidden] { display: none !important; }
.mmd-bar .mmd-n { font-size: 12.5px; color: var(--mut); padding: 0 6px 0 8px; white-space: nowrap; }
.mmd-bar .mmd-n:empty { display: none; }
/* 📎 문서 입력창의 첨부 (owner 2026-11-15): thumbnails over the document's box, pointer events on (the box row has them off) */
.adc > .adc-att { pointer-events: auto; max-width: min(820px, 100%); margin: 0 auto 6px; }
.adc > .adc-att .hc-thumbs { margin: 0; }
/* 🎬 동영상 첨부 썸네일 (owner 2026-11-15): the first frame, ▶ over it */
.hc-thumb.hc-vid video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; pointer-events: none; }
.hc-thumb.hc-vid .hc-vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 2px; box-sizing: border-box; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; pointer-events: none; }
/* 🎬 동영상 팝업 (imgview.js openVideo) */
.lb-vid .imgv-stage { display: flex; align-items: center; justify-content: center; cursor: default; overflow: hidden; background: #000; }
.lb-vid video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; }
.lb-vid .lb-vid-err { color: #ddd; padding: 40px 24px; text-align: center; font-size: 14px; }
.lb-vid .imgv-bar { justify-content: flex-end; } .lb-vid .imgv-bar .lb-name { margin-right: auto; }
/* 🎬 문서 속 동영상 ![[x.mp4]] (owner 2026-11-15): a picture block — sized like one, ▶ / ❚❚ inside it */
.dimg .dimg-box video { display: block; height: 10.5em; width: auto; max-width: 100%; border-radius: 4px; background: #000; cursor: pointer; }
.dimg.dimg-w .dimg-box video { height: auto; }
.dimg.dvid .dvid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.dimg.dvid .dvid-play:hover { background: rgba(0,0,0,.75); }
.dimg.dvid.dvid-on .dvid-play { left: 10px; top: auto; bottom: 10px; transform: none; width: 34px; height: 34px; font-size: 12px; opacity: .85; }   /* (playing: out of the way, bottom left) */
/* ▥ 한 줄에 여러 블록 (owner 2026-11-15): a block marked side:1 ("<!-- 블록: side:1 -->", data-blk) stands beside the one before it —
   the document becomes a wrapping row of full-width blocks, a row's blocks sharing their line */
.adc-dropline.adc-dropv { margin-top: 0; }
.doc:has(> [data-blk*="side:1"], > * > table[data-blk*="side:1"]) { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 24px; }
.doc:has(> [data-blk*="side:1"], > * > table[data-blk*="side:1"]) > * { flex: 0 0 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.doc > :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"])),
.doc > :has(+ :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"]))) { flex: 1 1 0; }
.doc > :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"])) .dimg-box,
.doc > :has(+ :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"]))) .dimg-box { max-width: 100%; }
@media (max-width: 700px) { .doc > :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"])), .doc > :has(+ :is([data-blk*="side:1"], :has(> table[data-blk*="side:1"]))) { flex-basis: 100%; } }   /* (a phone: one under another) */

/* 📑 수정안 목록 in the 💬 말풍선 (owner 2026-11-15, chat.js propListPlace): as in the AI패널 */
.adc-bub .adc-rp-chg:not(:empty) { margin-top: 10px; }
.adc-bub .adc-side { position: static !important; width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: none; margin: 0; }
.adc-bub .adc-side .adc-side-h { display: flex; align-items: center; gap: 6px; padding: 0 0 6px; }
.adc-bub .adc-side .adc-side-t { flex: 1; text-align: left; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: default; }
.adc-bub .adc-side .adc-side-h > span.mut, .adc-bub .adc-side .adc-side-t > span { display: none; }
.adc-bub .adc-side.adc-fold ol { display: block; }
.adc-bub .adc-side ol { padding: 0; margin: 0; border-top: 1px solid var(--line); }
.adc-bub .adc-side li { padding: 7px 2px; border-bottom: 1px solid var(--line); border-radius: 0; }
/* (버리기 stays on the bar above the box, which is shown with the bubble) */
.adc-bub .adc-side-prop.adc-flash { animation: adc-flash 1s ease-out; }
/* (owner 2026-11-15 "수정안 목록표시에서 텍스트가 겹칩니다"): with the box out (.adc-popon) the bar above it (📝 수정안 n곳 · 전체 적용 ·
   버리기) was still bare — the document's last lines showed through it. The same pill as with the box away */
html:not(.mshell) .editor-body > .adc.adc-popon > .adc-prop { width: fit-content; max-width: min(720px, calc(100% - 40px)); margin: 0 auto 8px; padding: 2px 6px 2px 12px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--fg); box-shadow: 0 4px 14px rgba(0,0,0,.12); position: relative; z-index: 2; }
/* (owner 2026-11-15 "수정안 컴포넌트는 더 하단에 붙어도 될것 같아요"): with the box away, the pill sat a row above the round
   buttons — the text's room at the foot (padding-bottom 64px) holds a sticky element that far up. It goes down to their row */
html:not(.mshell) .editor-body > .adc:not(.adc-popon):is(:not(.adc-plist-rp):has(> .adc-prop), :has(> .adc-prop.adc-prop-live)) { bottom: -56px; margin-bottom: -56px; }   /* (only while the bar shows: in the AI패널 the panel has it) */   /* (margin: at the text's end too, where a sticky box rests in its place) */
html:not(.mshell) .editor-body > .adc:not(.adc-popon) > .adc-prop { max-width: min(720px, calc(100% - 260px)); }

/* 📌 선택한 블록 above the box (owner 2026-11-15, chat.js selPanel): the AI패널 closed — the same list, a card over the box */
.adc > .adc-insel[hidden], .adc > .adc-insel:empty { display: none; }
.adc > .adc-insel { pointer-events: auto; box-sizing: border-box; width: min(820px, 100%); margin: 0 auto 8px; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.10); font-size: 13px; }
.adc > .adc-insel .adc-rp-h { display: flex; margin: 0 0 6px; }
.adc > .adc-insel ol { max-height: 7.5em; gap: 3px; }
.adc > .adc-insel li { padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }

/* (owner 2026-11-15 "버튼들이 겹치지 않게"): the box away and no 수정안 bar in the round buttons' row — 📌 선택한 블록 sits above that
   row, not across it (with the bar there it is above the bar: first in the box) */
/* (owner 2026-11-15, again: "선택 카드의 크기를 줄여서 안겹치게"): narrower instead — between the round buttons at the left and the
   right (◨ · 💬, ~112px each side), as the 수정안 bar; with the bar there the card stands above it */
html:not(.mshell) .editor-body > .adc:not(.adc-popon) > .adc-insel { width: min(560px, calc(100% - 260px)); }

/* 📌 선택한 블록 접기 · 펼치기 (owner 2026-11-15, chat.js selPanel) — and the rows keep their height in a short list (they were squeezed) */
.adc-rp-sel .adc-selh { cursor: pointer; user-select: none; }
.adc-rp-sel .adc-selc::before { content: ""; display: inline-block; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--mut); vertical-align: 2px; transition: transform .15s; }
.adc-rp-sel.fold .adc-selc::before { transform: rotate(-90deg); }
.adc-rp-sel.fold > ol, .adc-rp-sel.fold > .adc-rp-selh { display: none; }
.adc-rp-sel.fold .adc-rp-h { margin-bottom: 0 !important; }
.adc-rp-sel li { flex-shrink: 0; }
.adc-rp-sel .adc-selh { justify-content: flex-start; }
.adc-rp-sel .adc-selh > .adc-selc { margin-right: 0 !important; display: inline-flex; width: 10px; }

/* 📌 선택한 블록 over a user bubble (chat.js msgEl): the same chip as over the box; a click opens the quoted blocks */
.hm-user > .hm-selchip { margin: 0 0 4px; padding: 3px 12px; cursor: pointer; font: inherit; font-size: 12.5px; max-width: min(360px, 85%); }
.hm-user > .hm-selchip:hover { background: color-mix(in srgb, var(--acc) 14%, var(--bg)); }
.hm-user > .hm-selq { max-width: 85%; margin: 0 0 6px; padding: 8px 12px; border-left: 3px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 6px;
  background: var(--bg2); color: var(--mut); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.hm-user > .hm-selq[hidden] { display: none; }

/* 🕘 판 비교 (chat.js verCompare): the document as two columns — 지금 판 | the 판 picked in 판 목록 */
.adc-vcmp { margin: 0 0 24px; }
.adc-vcmp-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 4px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.adc-vcmp-sub { color: var(--mut); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adc-vcmp-x { margin-left: auto; flex: none; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; }
.adc-vcmp-x:hover { background: var(--bg3); }
.adc-vcmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.adc-vcol { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 12px; overflow-x: auto; }
.adc-vcol-old { background: color-mix(in srgb, var(--bg2) 60%, var(--bg)); }
.adc-vcol-h { position: sticky; top: 0; margin: 0 -14px 6px; padding: 6px 14px; border-bottom: 1px solid var(--line); background: inherit; color: var(--mut); font-size: 12px; font-weight: 600; }
.adc-vcol-doc { font-size: 0.94em; }
.adc-vcol-doc > .adc-vcmp-chg { background: color-mix(in srgb, #e3b341 20%, transparent); border-radius: 4px; box-shadow: -6px 0 0 color-mix(in srgb, #e3b341 20%, transparent); }
.adc-vcmp-wait { color: var(--mut); }
@media (max-width: 700px) { .adc-vcmp-cols { grid-template-columns: minmax(0, 1fr); } }   /* (phones: one above the other) */

/* 💭 생각 켬/끔 in the 모델 menu (owner 2026-11-18): one row under the list — 기본 · 켬 · 끔 for the model picked now */
.hc-modmenu .hc-mthink { flex: none; display: flex; align-items: center; gap: 6px; min-height: 34px; margin-top: 4px; padding: 6px 12px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.hc-modmenu .hc-mthink .k { margin-right: auto; color: var(--mut); white-space: nowrap; }
.hc-modmenu .hc-mthink .mut { font-size: 12px; }
.hc-modmenu .hc-mthink button { flex: none; width: auto; min-width: 50px; min-height: 0; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg2); color: var(--fg); font: inherit; font-size: 13px; text-align: center; justify-content: center; }
.hc-modmenu .hc-mthink button.on { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
