:root {
  --bg: #ffffff; --bg2: #f7f7f5; --bg3: #efefec; --ink: #191919; --ink2: #454545; --ink3: #787774;
  --line: #e9e9e7; --red: #CE1126; --red-d: #A60E1F; --blue: #183C90; --orange: #AB5E11;
  --side: 268px; --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { height: 100% }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; font-size: 15px }
button, input, textarea, select { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0 }
a { color: inherit; text-decoration: none }
.hide { display: none !important }
.red { color: var(--red) }
.flex { flex: 1 }

/* 로그인 */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 1px 1px, rgba(24,60,144,.09) 1px, transparent 0) 0 0/22px 22px, #fff }
.login-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px 32px 30px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.06) }
.login-logo { width: 84px; height: 84px; margin: 0 auto 14px }
.login h1 { font-size: 30px; font-weight: 800; letter-spacing: -.04em }
.login p { color: var(--ink2); margin: 8px 0 28px }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid #dadce0;
  border-radius: 12px; font-weight: 700; font-size: 16px; background: #fff; transition: .15s }
.btn-google:hover { background: var(--bg2); border-color: #c4c7cc }
.login-msg { color: var(--red); font-size: 14px; margin-top: 12px; min-height: 20px }
.login-foot { font-size: 13px; color: var(--ink3); margin-top: 10px }
.login-foot a { text-decoration: underline }

/* 레이아웃 */
.app { display: flex; height: 100vh; height: 100dvh }
.side { width: var(--side); flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.03em }
.brand img { width: 30px; height: 30px }
.new-chat { width: 100%; background: var(--red); color: #fff; font-weight: 700; padding: 11px; border-radius: 11px; transition: .15s }
.new-chat:hover { background: var(--red-d) }
.side-nav { display: grid; gap: 2px; margin: 12px 0 6px }
.side-nav button, .chat-item { text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; color: var(--ink2); transition: .12s; width: 100% }
.side-nav button:hover, .chat-item:hover { background: var(--bg3); color: var(--ink) }
.side-nav button.on { background: #fff; color: var(--red); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.05) }
.side-label { font-size: 12px; font-weight: 700; color: var(--ink3); padding: 12px 10px 4px }
.chat-list { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px }
.chat-item { display: flex; align-items: center; gap: 6px; position: relative }
.chat-item .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.chat-item.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.05) }
.chat-item .del { opacity: 0; font-size: 13px; color: var(--ink3); padding: 0 4px }
.chat-item:hover .del { opacity: 1 }
.chat-empty { font-size: 13px; color: var(--ink3); padding: 6px 10px }
.side-bottom { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px }
.credit-box { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; transition: .12s }
.credit-box:hover { border-color: var(--ink3) }
.credit-label { font-size: 13px; color: var(--ink2) }
.credit-num { font-weight: 800; color: var(--red) }
.me-row { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0; font-size: 13.5px }
.me-row img { width: 26px; height: 26px; border-radius: 50%; background: var(--bg3) }
.me-row span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.me-row a, .me-row button { font-size: 12.5px; color: var(--ink3); padding: 3px 6px; border-radius: 6px }
.me-row a:hover, .me-row button:hover { background: var(--bg3); color: var(--ink) }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0 }
.top { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); flex-shrink: 0 }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; color: var(--ink2) }
.icon-btn:hover { background: var(--bg2) }
.only-m { display: none }
.pickers { display: flex; align-items: center; gap: 8px; min-width: 0 }
.model-btn { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: .12s; min-width: 0 }
.model-btn:hover { background: var(--bg2) }
.model-btn .mlabel { overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.model-btn .caret { color: var(--ink3); font-size: 12px }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #999 }
.v-anthropic { background: #D97757 } .v-openai { background: #10A37F } .v-google { background: #4285F4 }
.vs { color: var(--ink3); font-size: 13px; font-weight: 700 }
.agent-tag { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--blue); background: rgba(24,60,144,.07); padding: 5px 11px; border-radius: 99px }

/* 메시지 */
.msgs { flex: 1; overflow-y: auto; padding: 24px 18px 12px }
.turn { max-width: 820px; margin: 0 auto 26px }
.q { display: flex; justify-content: flex-end }
.q .bubble { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px 18px 4px 18px; padding: 10px 16px; max-width: 85%; white-space: pre-wrap; word-break: break-word }
.q .atts { font-size: 12.5px; color: var(--ink3); margin-top: 4px; text-align: right }
.answers { display: grid; gap: 16px; margin-top: 16px }
.answers.two { grid-template-columns: 1fr 1fr }
.a { min-width: 0 }
.answers.two .a { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px }
.a-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 6px }
.a-body { word-break: break-word }
.a-body.err { color: var(--red) }
.a-foot { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--ink3) }
.a-foot button { color: var(--ink3); padding: 2px 6px; border-radius: 6px } .a-foot button:hover { background: var(--bg2); color: var(--ink) }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px }
.srcs a { font-size: 12.5px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--blue) }
.srcs a:hover { background: var(--bg2) }
.typing::after { content: "▍"; animation: blink 1s infinite; color: var(--red) }
@keyframes blink { 50% { opacity: 0 } }
.status { color: var(--ink3); font-size: 14px }

/* 마크다운 */
.md p { margin: .5em 0 } .md p:first-child { margin-top: 0 }
.md h1, .md h2, .md h3, .md h4 { margin: 1em 0 .4em; line-height: 1.35; letter-spacing: -.02em }
.md h1 { font-size: 1.35em } .md h2 { font-size: 1.22em } .md h3 { font-size: 1.1em }
.md ul, .md ol { padding-left: 1.4em; margin: .5em 0 } .md li { margin: .2em 0 }
.md code { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: .9em; font-family: ui-monospace, Menlo, monospace }
.md pre { background: #1e1e1e; color: #eee; border-radius: 10px; padding: 14px; overflow-x: auto; margin: .7em 0; font-size: 13.5px }
.md pre code { background: none; border: 0; padding: 0; color: inherit }
.md table { border-collapse: collapse; margin: .7em 0; font-size: 14px; display: block; overflow-x: auto }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left }
.md th { background: var(--bg2) }
.md blockquote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--ink2); margin: .6em 0 }
.md a { color: var(--blue); text-decoration: underline }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0 }

.empty { max-width: 640px; margin: 9vh auto 0; text-align: center }
.empty img { width: 64px; height: 64px; margin: 0 auto 10px }
.empty h2 { font-size: 26px; font-weight: 800; letter-spacing: -.035em }
.empty p { color: var(--ink3); margin-top: 6px }
.starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px }
.starters button { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink2); transition: .12s; background: #fff }
.starters button:hover { border-color: var(--ink3); color: var(--ink) }

/* 입력창 */
.composer-wrap { padding: 8px 18px 14px; flex-shrink: 0 }
.composer { max-width: 820px; margin: 0 auto; border: 1px solid #dcdcd8; border-radius: 18px; background: #fff; padding: 10px 12px 8px; box-shadow: 0 4px 18px rgba(0,0,0,.04) }
.composer:focus-within { border-color: var(--ink3) }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; max-height: 220px; padding: 4px 4px; line-height: 1.55; font-size: 15.5px; background: transparent }
.comp-bar { display: flex; align-items: center; gap: 6px; margin-top: 4px }
.tool { font-size: 13.5px; color: var(--ink2); padding: 5px 10px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; transition: .12s }
.tool:hover { background: var(--bg2) }
.chip-t.on { border-color: rgba(24,60,144,.35); background: rgba(24,60,144,.07); color: var(--blue); font-weight: 700 }
.cost-hint { font-size: 12.5px; color: var(--ink3) }
.send { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-size: 18px; font-weight: 800; transition: .12s }
.send:hover { background: var(--red-d) }
.send.stop { background: var(--ink) }
.send:disabled { background: #ccc; cursor: default }
.disclaimer { text-align: center; font-size: 12px; color: var(--ink3); margin-top: 7px }
.att-list { max-width: 820px; margin: 0 auto 6px; display: flex; flex-wrap: wrap; gap: 6px }
.att { font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 4px 6px 4px 10px; display: flex; align-items: center; gap: 4px }
.att button { color: var(--ink3); padding: 0 4px }

/* 팝업 */
.pop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100; display: grid; place-items: center; padding: 16px }
.pop-card { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; padding: 18px 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.2) }
.pop-card.wide { max-width: 640px }
.pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 17px }
.model-group { margin-bottom: 14px }
.model-group h4 { font-size: 13px; color: var(--ink3); font-weight: 700; padding: 0 4px 6px; display: flex; align-items: center; gap: 6px }
.model-opt { cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid transparent }
.model-opt:hover { background: var(--bg2) }
.model-opt.on { border-color: var(--red); background: rgba(206,17,38,.04) }
.model-opt .nm { font-weight: 700 }
.model-opt .ds { font-size: 13px; color: var(--ink3) }
.model-opt .meta { font-size: 12px; color: var(--ink3); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px }
.model-opt .meta i { font-style: normal; background: var(--bg3); border-radius: 6px; padding: 1px 6px; color: var(--ink2) }
.model-opt .star { font-size: 18px; color: #c9c9c4; padding: 2px 4px; line-height: 1; cursor: pointer }
.model-opt .star.on { color: #f2b01e }
.model-opt .tier { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--bg3); color: var(--ink2) }
.tier.t0 { background: rgba(16,163,127,.1); color: #0b7a5f }
.tier.t3, .tier.t4 { background: rgba(206,17,38,.08); color: var(--red) }

.my-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.my-stats div { background: var(--bg2); border-radius: 12px; padding: 12px; text-align: center }
.my-stats span { display: block; font-size: 12px; color: var(--ink3) }
.my-stats b { font-size: 20px; letter-spacing: -.02em }
.coupon { display: flex; gap: 8px; margin-top: 14px }
.coupon input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-transform: uppercase; outline: 0 }
.coupon input:focus { border-color: var(--ink3) }
.btn-primary { background: var(--red); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: .12s; white-space: nowrap }
.btn-primary:hover { background: var(--red-d) }
.btn-primary:disabled { background: #ccc; cursor: default }
.note { font-size: 13.5px; margin-top: 8px; min-height: 18px; color: var(--ink2) }
.note.err { color: var(--red) }
.usage { font-size: 13px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px }
.usage div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--line) }
.usage div:last-child { border-bottom: 0 }
.usage .plus { color: #0b7a5f; font-weight: 700 }
.price { margin-top: 14px; font-size: 13.5px }
.price summary { cursor: pointer; color: var(--ink2); font-weight: 600 }
.price table { width: 100%; border-collapse: collapse; margin-top: 8px }
.price td, .price th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left }

/* 이미지 */
.pane { flex: 1; overflow-y: auto; padding: 22px 18px }
.img-form { max-width: 820px; margin: 0 auto }
.img-form textarea { width: 100%; border: 1px solid #dcdcd8; border-radius: 14px; padding: 12px 14px; outline: 0; resize: vertical }
.img-opts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap }
.img-opts select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff }
.gallery { max-width: 820px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px }
.gallery figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2) }
.gallery img { width: 100%; display: block }
.gallery figcaption { font-size: 12.5px; color: var(--ink2); padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start }
.gallery figcaption span { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.gallery figcaption a, .gallery figcaption button { color: var(--ink3); font-size: 12px; white-space: nowrap }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: sp 1s linear infinite; margin: 40px auto }
@keyframes sp { to { transform: rotate(360deg) } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 90vw; text-align: center }
.toast.show { opacity: 1; transform: translateX(-50%) }

.dim { display: none }
@media (max-width: 860px) {
  .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15) }
  .side.open { transform: none }
  .dim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 55 }
  .only-m { display: grid }
  .top { padding: 0 10px; gap: 4px }
  .model-btn { padding: 7px 8px; font-size: 14px }
  .msgs { padding: 16px 14px 8px }
  .answers.two { grid-template-columns: 1fr }
  .composer-wrap { padding: 6px 10px 10px }
  .starters { grid-template-columns: 1fr }
  .agent-tag { display: none }
  .my-stats b { font-size: 17px }
}

/* 스토어·스튜디오·프로젝트 */
.wide { max-width: 980px; margin: 0 auto }
.pane-lead { color: var(--ink3); font-size: 14.5px; margin-bottom: 14px }
.btn-primary.sm { padding: 7px 14px; font-size: 14px }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px }
.cats button { border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; font-size: 13.5px; color: var(--ink2); background: #fff }
.cats button.on { background: var(--ink); color: #fff; border-color: var(--ink) }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px }
.bot-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; transition: .15s; min-height: 150px }
.bot-card:hover { border-color: var(--ink3); box-shadow: 0 6px 18px rgba(0,0,0,.05) }
.bot-card .bc-top { display: flex; align-items: center; gap: 10px }
.bot-card .emo { width: 40px; height: 40px; border-radius: 11px; background: var(--bg2); display: grid; place-items: center; font-size: 22px; flex-shrink: 0 }
.bot-card .nm { font-weight: 800; letter-spacing: -.02em; line-height: 1.3 }
.bot-card .sub { font-size: 12.5px; color: var(--ink3) }
.bot-card .ds { font-size: 13.5px; color: var(--ink2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.bot-card .meta { font-size: 12.5px; color: var(--ink3); display: flex; gap: 10px; align-items: center }
.bot-card .acts { display: flex; gap: 6px; margin-top: 4px }
.bot-card .acts button { font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; background: #fff }
.bot-card .acts button.go { background: var(--red); color: #fff; border-color: var(--red) }
.pill { font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: var(--bg3); color: var(--ink2) }
.pill.pub { background: rgba(16,163,127,.1); color: #0b7a5f }
.empty-box { grid-column: 1/-1; text-align: center; color: var(--ink3); padding: 40px 10px; border: 1px dashed var(--line); border-radius: 14px }
.form { display: grid; gap: 12px }
.form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--ink2) }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: 0; background: #fff; width: 100%; font-size: 14.5px; color: var(--ink) }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink3) }
.form textarea { resize: vertical; line-height: 1.55 }
.form .hint { font-weight: 400; color: var(--ink3); font-size: 12.5px }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 600 }
.row2 { display: flex; gap: 10px }
.f-emoji { width: 72px } .f-emoji input { text-align: center; font-size: 20px !important }
.f-grow { flex: 1 }
.files-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.file-btn { border: 1px solid var(--line); font-weight: 600 }
.form-foot { display: flex; align-items: center; gap: 10px }
.tool.danger { color: var(--red) }
.bv-desc { color: var(--ink2); margin-bottom: 10px }
.bv-stars { display: flex; gap: 2px; margin: 8px 0 14px; align-items: center }
.bv-stars button { font-size: 24px; color: #d0d0cc; line-height: 1 } .bv-stars button.on { color: #f5b301 }
.bv-starters { display: grid; gap: 6px; margin: 8px 0 14px }
.bv-starters span { font-size: 13.5px; background: var(--bg2); border-radius: 9px; padding: 6px 10px; color: var(--ink2) }
.proj-bar { max-width: 820px; margin: 0 auto 10px; font-size: 13px; color: var(--blue); background: rgba(24,60,144,.06); border-radius: 10px; padding: 7px 12px }
@media (max-width: 600px) { .row2 { flex-wrap: wrap } .bot-grid { grid-template-columns: 1fr } }

/* 발표자료·회의록 */
.deck-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px }
.deck-head b { font-size: 17px; letter-spacing: -.02em } .deck-head span { color: var(--ink3); font-size: 14px }
.deck-head .deck-dl { margin-left: auto }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px }
.slide { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 18px; background: #fff; position: relative; aspect-ratio: 16/10; overflow: hidden; display: flex; flex-direction: column }
.slide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red) }
.slide .sn { font-size: 11px; color: var(--ink3); font-weight: 700 }
.slide .st { font-weight: 800; font-size: 14px; line-height: 1.35; margin: 2px 0 6px; letter-spacing: -.02em }
.slide ul { padding-left: 1.1em; font-size: 12px; color: var(--ink2); line-height: 1.5; flex: 1; overflow: hidden }
.slide .sno { font-size: 11px; color: var(--ink3); border-top: 1px dashed var(--line); padding-top: 4px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.chip-t.rec.on { border-color: var(--red); background: rgba(206,17,38,.08); color: var(--red); font-weight: 700 }

/* 한글 문서 */
.hwp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px }
.hwp-head b { font-size: 15px }
.hwp-sum { color: var(--ink2); margin: 4px 0 10px; white-space: pre-wrap }
.hwp-ch { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px }
.hwp-ch > div { padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px }
.hwp-ch > div:first-child { border-top: 0 }
.hwp-ch .no { color: var(--ink3); font-size: 12px; min-width: 52px; padding-top: 2px }
.hwp-ch del { color: #a33; background: rgba(206,17,38,.06); text-decoration: line-through; display: block }
.hwp-ch ins { color: #0b6b50; background: rgba(16,163,127,.08); text-decoration: none; display: block }
.hwp-ch .bad { color: var(--ink3) }
.hwp-new { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; max-height: 520px; overflow: auto }

/* 영상 */
.btn-line { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 14px; cursor: pointer }
.videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) }
.videos video { width: 100%; display: block; background: #000 }
.vid-wait { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink3); font-size: 13px; padding: 12px; text-align: center }
.vid-wait.fail { color: var(--red) }
.chip-t.mic.on { border-color: var(--red); background: rgba(206,17,38,.08); color: var(--red) }
.model-old { margin-top: 4px }
.model-old summary { cursor: pointer; font-size: 13px; color: var(--ink3, #787774); padding: 6px 10px; list-style: none }
.model-old summary::before { content: '▸ '; }
.model-old[open] summary::before { content: '▾ '; }

.mem-box { border: 1px solid var(--line, #e9e9e7); border-radius: 12px; padding: 10px 12px; margin-top: 8px }
.mem-box .check { display: flex; align-items: center; gap: 6px; font-weight: 600 }
.mem-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 180px; overflow-y: auto }
.mem-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; background: var(--bg2, #fafafa); border-radius: 8px; padding: 6px 8px }
.mem-item span { flex: 1 }
.mem-item button { border: 0; background: none; cursor: pointer; color: var(--ink3, #787774) }

/* 스킬 */
.skill-tabs { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap }
.skill-tabs button { border: 1px solid var(--line, #e9e9e7); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 14px }
.skill-tabs button.on { background: var(--ink, #191919); color: #fff; border-color: var(--ink, #191919) }
.skill-card { opacity: .72 }
.skill-card.is-on { opacity: 1 }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; cursor: pointer }
.switch input { opacity: 0; width: 0; height: 0 }
.switch span { position: absolute; inset: 0; background: #d5d5d2; border-radius: 22px; transition: .15s }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s }
.switch input:checked + span { background: var(--red, #CE1126) }
.switch input:checked + span::before { transform: translateX(16px) }
.skill-tag { display: inline-block; margin-left: 8px; font-size: 12px; background: #f3f0ff; color: #4b3aa8; border-radius: 999px; padding: 1px 9px; font-weight: 600 }
#btnSkill.on { background: #f3f0ff; color: #4b3aa8; border-radius: 999px }
#btnSkill .x { margin-left: 4px; opacity: .6 }
.composer-wrap { position: relative }
.skill-menu { position: absolute; bottom: calc(100% + 6px); left: 0; width: min(420px, 100%); max-height: 360px; overflow-y: auto; background: #fff; border: 1px solid var(--line, #e9e9e7); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; z-index: 30 }
.skill-menu .sm-head { font-weight: 700; font-size: 13px; padding: 6px 8px }
.skill-menu .sm-head .note { font-weight: 400; display: block }
.skill-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px }
.skill-menu button:hover { background: var(--bg2, #fafafa) }
.skill-menu button span { display: block; font-size: 12.5px; color: var(--ink3, #787774); margin-top: 2px }
.skill-menu .sm-more { color: var(--red, #CE1126); font-weight: 600 }
.skill-desc { background: var(--bg2, #fafafa); border-radius: 12px; padding: 12px 14px; font-size: 14.5px }
.skill-inst { border: 1px solid var(--line, #e9e9e7); border-radius: 12px; padding: 12px 16px; max-height: 50vh; overflow-y: auto; font-size: 14px }
.row2 { display: flex; gap: 10px; flex-wrap: wrap }

/* 디자인 시안 창 */
.design-panel { position: fixed; top: 0; right: 0; bottom: 0; width: clamp(420px, 48vw, 960px); background: #f4f4f2; border-left: 1px solid var(--line, #e9e9e7); z-index: 40; display: flex; flex-direction: column }
.design-panel.hide { display: none }
body.design-open #vChat { margin-right: clamp(420px, 48vw, 960px) }
body.design-open .comp-bar { flex-wrap: wrap; row-gap: 4px }
body.design-open .comp-bar .chip-t, body.design-open .comp-bar .note { white-space: nowrap }
.dp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line, #e9e9e7); flex-wrap: wrap }
.dp-bar .tool { font-size: 13px }
.dp-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink3, #787774) }
.dp-ver button { border: 1px solid var(--line, #e9e9e7); background: #fff; border-radius: 8px; width: 26px; height: 26px; cursor: pointer }
.dp-ver button:disabled { opacity: .35; cursor: default }
.dp-stage { flex: 1; overflow: auto; padding: 12px }
.dp-scale { transform-origin: 0 0; margin: 0 auto }
.dp-stage > .dp-scale { height: var(--dz-h, auto) }
#dpFrame { border: 0; display: block; background: transparent }
.dp-foot { padding: 8px 14px; background: #fff; border-top: 1px solid var(--line, #e9e9e7) }
.design-card { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 360px; text-align: left; border: 1px solid var(--line, #e9e9e7); border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer; font: inherit; margin: 10px 0 }
.design-card:hover, .design-card.on { border-color: var(--red, #CE1126) }
.design-card .dz-ico { font-size: 26px }
@media (max-width: 900px) {
  .design-panel { width: 100vw }
  body.design-open #vChat { margin-right: 0 }
}
@media (min-width: 901px) and (max-width: 1560px) { body.design-open #side { display: none } }
