/* KANGHOSEUNG - 2_CommonStorage/1_Design/Starbucks.md 를 다크 모드로 옮긴 것.
 *
 * 문서의 원칙을 그대로 지킨다:
 *   · 녹색 4단 (Starbucks #006241 · Accent #00754A · House #1E3932 · Uplift #2b5148) 을 역할별로
 *     - Accent = 채운 버튼·활성 탭, House = 머리띠(feature band), Uplift = 장식·테두리
 *   · 금색(#cba258)은 의식(ceremony) 자리에만 - 여기서는 1~3위 배지 테두리에만 쓴다
 *   · 버튼은 전부 50px 알약, 눌림은 scale(.95)
 *   · 카드 12px, 그림자는 저알파 2~3겹 (다크라 거의 안 보이니 얇은 선을 같이)
 *   · 위계는 크기보다 굵기·색, 자간 -0.01em
 *   · 그라데이션 없음, 색면 블록으로 깊이
 * 다크 바탕은 순흑 대신 에스프레소빛 녹흑(#0e1311) - 문서의 "순백 대신 크림" 을 어둡게 뒤집은 것.
 * 글꼴: SoDoSans 는 독점 서체라 문서 권고대로 대체 - 한글이 있어야 하므로 Pretendard(SIL OFL).
 */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920; font-style: normal; font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --canvas: #0e1311;
  --canvas-2: #111815;
  --surface: #161f1b;
  --surface-2: #1c2722;
  --surface-3: #23312b;
  --house: #1E3932;
  --uplift: #2b5148;
  --sbux: #006241;
  --accent: #00754A;
  --accent-hover: #00865a;
  --accent-text: #3fc28c;   /* 어두운 바탕에서 읽히는 녹색 글자 (Accent 를 밝힌 것) */
  --mint: #d4e9e2;
  --gold: #cba258;
  --text: rgba(255, 255, 255, .90);
  --text-2: rgba(255, 255, 255, .70);
  --text-3: rgba(255, 255, 255, .50);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --up: #ff5c5c;            /* 한국식: 상승 빨강 */
  --down: #4e8eff;          /* 하락 파랑 */
  --red: #e5484d;
  --party-ppp: #e61e2b;
  --party-dpk: #3d63db;     /* 민주당 #152484 는 어두운 바탕에서 안 보여 밝혔다 */
  --party-rebuild: #2a93e8;
  --party-reform: #ff7a1a;
  --r: 12px;
  --pill: 50px;
  --shadow-card: 0 0 .5px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-nav: 0 1px 3px rgba(0, 0, 0, .35), 0 2px 2px rgba(0, 0, 0, .2), 0 0 2px rgba(0, 0, 0, .3);
  --shadow-float: 0 0 6px rgba(0, 0, 0, .4), 0 8px 12px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.25, .46, .45, .94);
  --nav-h: 64px;
  --gutter: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 768px) { :root { --nav-h: 72px; --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
/* 스크롤바를 늘 세워 둔다 - 탭을 옮기는 순간 본문이 잠깐 짧아져 스크롤바가 사라졌다 생기면 화면 폭이
   17px 출렁이고 헤더·본문이 '틱' 하고 밀린다 (10-06 프레임 측정: 1423↔1440). gutter 만으로는 안 막혔다 */
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; background: var(--canvas); }
/* 스크롤바 (10-07 대표님 "모든 스크롤 좀 세련되게, 다크모드로 안 보이게") - 평소엔 안 보이고 바탕도 화면색이다.
   굴리는 동안(app.js 가 .sb-on 을 붙였다 0.9초 뒤 뗀다) · 그 칸에 마우스를 올렸을 때만 가는 막대가 흐리게 뜨고,
   막대를 잡으러 가면 굵고 밝아진다. 크롬은 scrollbar-color 를 주면 ::-webkit-scrollbar 를 무시하므로 파이어폭스에만 표준 속성을 쓴다 */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; min-height: 36px; }
body *:hover::-webkit-scrollbar-thumb, .sb-on::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .16); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); border-width: 2px; }
::-webkit-scrollbar-thumb:active { background-color: rgba(255, 255, 255, .46); border-width: 2px; }
::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  body *:hover, .sb-on { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
}
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(0, 117, 74, .55); }

/* ── 버튼: 전부 알약 + scale(.95) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--pill); padding: 7px 16px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  background: transparent;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { border-color: var(--accent-text); color: var(--accent-text); }
.btn-outline:hover:not(:disabled) { background: rgba(63, 194, 140, .08); }
.btn-ghost { border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); }
.btn-inverse { background: #fff; border-color: #fff; color: var(--accent); }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ── 상단 내비: 화면 맨 위에 고정. 본문은 내비 높이만큼 내려 둔다 (모바일은 두 줄이라 실제 높이를 JS 가 --nav-real 로 잰다) ── */
body.app { padding-top: var(--nav-real, var(--nav-h)); }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
  background: rgba(14, 19, 17, .92); backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: var(--shadow-nav); border-bottom: 1px solid var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* 로고: 원형 녹색 배지(Green Accent) + 흰 마이크 - '브리핑룸'. 이름은 강호승(흰색 800) + 브리핑룸(녹색 700) 한 단어 */
.logo { width: 36px; height: 36px; display: block; flex: 0 0 auto; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-text); white-space: nowrap; }
.brand__name b { font-weight: 800; color: #fff; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: 0;
}

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 8px 16px; border-radius: var(--pill); font-weight: 600; font-size: 15px; color: var(--text-2);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
/* 헤더는 움직이지 않는다 - 버튼 눌림(scale .95)을 탭·로그아웃에는 주지 않는다 (대표님 "틱틱 거림" 지적) */
.nav .btn:active { transform: none; }
.tab.on { background: var(--accent); color: #fff; }
.nav__right { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 720px) {
  .nav { height: auto; }
  .nav__in { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 8px; }
  .logo { width: 32px; height: 32px; }
  .brand__name { font-size: 17px; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs { gap: 1px; }
  .tab { padding: 7px 7px; font-size: 13.5px; } /* 탭이 11개라 휴대폰은 옆으로 민다 (지금 탭은 app.js 가 끌어온다) */
  .nav__right { margin-left: auto; }
}

/* ── 페이지 틀 ── */
.page { max-width: 1440px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.page-head .sub { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: var(--accent-text); text-transform: uppercase; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card);
}
.band {
  background: var(--house); border-radius: var(--r); padding: 24px; color: #fff; position: relative; overflow: hidden;
}
.band .sub { color: rgba(255, 255, 255, .72); }
.muted { color: var(--text-3); }
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty b { display: block; color: var(--text-2); font-size: 16px; margin-bottom: 6px; }
.err { color: #ffb4b4; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--pill);
  font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap;
}
.badge.ok { border-color: rgba(63, 194, 140, .45); color: var(--accent-text); }
.badge.warn { border-color: rgba(203, 162, 88, .5); color: var(--gold); }
.badge.bad { border-color: rgba(229, 72, 77, .5); color: #ff9a9d; }
.spin {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-text);
  display: inline-block; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-3); }

/* 칩 (날짜·정렬) */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; transition: all .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--mint); border-color: var(--mint); color: var(--house); }

/* ══════════════ 1. 브리핑 ══════════════ */
.brief { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.brief-side { position: sticky; top: calc(var(--nav-real, var(--nav-h)) + 16px); max-height: calc(100vh - var(--nav-real, var(--nav-h)) - 32px); overflow: auto; padding: 16px 10px 16px 16px; }
.brief-side h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; }
.bs-day { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.bs-day:first-of-type { margin-top: 0; }
.bs-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; color: var(--text-2); transition: background .15s ease;
}
.bs-slot:hover { background: var(--surface-2); color: var(--text); }
.bs-slot.on { background: var(--house); color: #fff; }
.bs-slot .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-slot .s { font-size: 12px; color: var(--text-3); }
.bs-slot.on .s { color: rgba(255, 255, 255, .7); }
.bs-slot .k { margin-left: 3px; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--gold); background: rgba(203, 162, 88, .14); }
.bs-slot.on .k { color: #fff; background: rgba(255, 255, 255, .18); }
.bs-slot .k.news { color: var(--accent-text); background: rgba(63, 194, 140, .14); }
.bs-slot .k.urgent { color: #ff9a9d; background: rgba(229, 72, 77, .16); }
.bs-slot.on .k.news, .bs-slot.on .k.urgent { color: #fff; background: rgba(255, 255, 255, .18); }
.bs-urgent { width: 100%; margin-bottom: 14px; background: #c8363b; border-color: #c8363b; color: #fff; }
.bs-urgent:hover:not(:disabled) { background: #d94449; border-color: #d94449; }
.brief-mobile .bs-urgent-chip { flex: 0 0 auto; background: #c8363b; border-color: #c8363b; color: #fff; font-weight: 700; }
.brief-mobile { display: none; }
.brief-band { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brief-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.brief-actions .btn { padding: 6px 12px; font-size: 13px; }
/* 버튼 쌍 [A4 요약 | PDF] - 왼쪽 = 이미지 보기, 오른쪽 = 내려받기 */
.btn-pair { display: inline-flex; }
.btn-pair > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 10px; }
.btn-pair > .btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 9px; border-left-color: rgba(0, 117, 74, .28); }
.modal__note { color: rgba(255, 255, 255, .8); font-size: 14px; padding: 40px 0; display: flex; align-items: center; gap: 10px; }
.brief-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brief-tts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.brief-tts audio { height: 36px; width: min(520px, 100%); }
.brief-tts.err { color: #ffb4b4; }
@media (max-width: 640px) { .brief-actions { justify-content: flex-start; } .brief-actions .btn { padding: 6px 10px; } }
.brief-band h1 { margin: 6px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.brief-band .eyebrow { color: rgba(255, 255, 255, .7); }
.brief-band .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.brief-band .badge { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.brief-band .badge.ok { border-color: rgba(212, 233, 226, .6); color: var(--mint); }
.brief-list { display: grid; gap: 10px; }
.bi { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 20px; }
.bi-rank {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--surface-3); color: var(--mint); font-variant-numeric: tabular-nums;
}
.bi-rank.top { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3px rgba(203, 162, 88, .7); }
.bi h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.45; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; } /* 단어 중간에서 안 끊기게 */
.bi h3 a:hover { color: var(--accent-text); }
.bi .meta { font-size: 13px; color: var(--text-3); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.bi .meta .dot::before { content: "·"; }
.bi p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.bi p.none { color: var(--text-3); font-style: italic; }
/* 개별 [복사 | 텔레] - 카드 오른쪽 위 모서리에 매단다: 묶음의 윗선이 카드 윗선과 한 줄로 겹치고 아래 모서리만 둥글다
   (대표님 10-06: 아래에 두면 카드가 길어진다 → 테두리에 걸치되 선이 겹치게). margin-top = -(카드 padding 18 + 테두리 1) */
/* 윗선·오른쪽 선 둘 다 카드 선과 겹친다: margin = -(padding + 테두리 1). 오른쪽 위 모서리는 카드와 같은 곡률, 왼쪽 아래만 둥글게 */
.bi-acts { float: right; display: flex; margin: -19px -21px 8px 14px; border: 1px solid var(--line-2); border-radius: 0 var(--r) 0 10px; overflow: hidden; background: var(--surface); }
.bi-acts .btn { border: 0; border-radius: 0; background: transparent; color: var(--text-2); padding: 4px 12px 5px; font-size: 12px; transform: none; }
.bi-acts .btn + .btn { border-left: 1px solid var(--line-2); }
.bi-acts .btn:hover { background: var(--surface-2); color: var(--text); }
.bi-acts .tele-btn.arm { background: #d62b2f; color: #fff; }
.bi-acts .tele-btn.sent { color: var(--accent-text); }
@media (max-width: 960px) { .bi-acts { margin-top: -15px; margin-right: -15px; } } /* 좁은 화면 카드 padding 14 + 테두리 1 (아래 960px 규칙과 짝) */
/* 휴대폰: 버튼이 넷이라 제목 첫 줄이 한 단어만 남는다 - 제목은 버튼 아래에서 시작 */
@media (max-width: 640px) { .bi-acts { margin-bottom: 4px; } .bi h3 { clear: right; } }
@media (max-width: 960px) {
  .brief { grid-template-columns: 1fr; }
  .brief-side { display: none; }
  .brief-mobile { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 14px; padding-bottom: 2px; }
  .brief-mobile .chip { flex: 0 0 auto; }
  .bi { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 14px 14px; }
  .bi-rank { width: 30px; height: 30px; font-size: 13px; }
  .bi h3 { font-size: 16px; }
  .bi p { font-size: 14.5px; }
  .brief-band h1 { font-size: 22px; }
}

/* A4 보기 */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .78); display: flex; flex-direction: column; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); color: #fff; }
.modal__body { flex: 1 1 auto; overflow: auto; padding: 0 var(--gutter) 32px; display: grid; gap: 16px; justify-items: center; }
.modal__body img { width: min(820px, 100%); height: auto; border-radius: 4px; box-shadow: var(--shadow-float); background: #fff; }

/* ══════════════ 2. 여조 ══════════════ */
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .poll-grid { grid-template-columns: 1fr; } }
.pp { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pp-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.pp-head .meta { font-size: 12.5px; color: var(--text-3); }
.pp-sub { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.bar-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 104px; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13.5px; }
.bar-row .lbl { color: var(--text-2); }
.track { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; }
.fill.pos { background: var(--accent-text); }
.fill.neg { background: var(--red); }
.bar-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl { font-size: 12px; font-weight: 600; margin-left: 4px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.parties li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.parties .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.parties .nm { color: var(--text-2); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parties .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.trend svg { width: 100%; height: auto; display: block; }
.trend .lg { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.trend .lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.pp-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); line-height: 1.6; }
.pp-foot a { color: var(--accent-text); }

/* ══════════════ 3. 지표 ══════════════ */
.ind-group { margin-bottom: 28px; }
.ind-group h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.ind-group h2 small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .ind-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.q { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 128px; }
.q .nm { font-size: 13.5px; color: var(--text-2); font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.q .val { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.q .val small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.q .chg { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.q .at { font-size: 11.5px; color: var(--text-3); margin-top: auto; }
.q svg { width: 100%; height: 30px; display: block; margin-top: 4px; }
.q.stale .val { color: var(--text-2); }
@media (max-width: 480px) { .q { padding: 12px; min-height: 112px; } .q .val { font-size: 19px; } }

/* ══════════════ 4. 뉴스 ══════════════ */
.news-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.news-tools .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
/* 정렬 · 날짜 · 검색을 한 줄로 (대표님 10-06). 좁으면 접힌다 */
.news-tools.one { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.news-tools.one .search { margin-left: auto; }
.news-tools.one .search input { width: 200px; }
.tools-sep { width: 1px; height: 22px; background: var(--line-2); }
@media (max-width: 720px) { .tools-sep { display: none; } .news-tools.one .search { margin-left: 0; flex: 1 1 100%; } .news-tools.one .search input { flex: 1 1 auto; width: auto; } }
.search { display: flex; gap: 6px; align-items: center; }
.search input {
  width: min(280px, 60vw); padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--surface); outline: none; font-size: 14px;
}
.search input:focus { border-color: var(--accent-text); }
.news-list { list-style: none; margin: 0; padding: 0; }
.nr {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.nr:hover { background: var(--canvas-2); }
.nr-rank { font-weight: 800; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.nr-rank.top { color: var(--gold); }
.nr-meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.nr-meta .press { color: var(--text-2); font-weight: 600; }
.nr-meta .sec { padding: 0 7px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-2); font-size: 11.5px; }
.nr-title { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.nr-title:hover { color: var(--accent-text); }
/* 숫자 칸은 가운데 정렬 - 퍼센트와 그 아래 원데이터가 한 축에, 한 줄 칸(댓글·성별)은 두 줄 칸의 가운데 높이에 (대표님 10-06) */
.nr-stats { display: grid; grid-template-columns: 82px 124px 112px 78px 86px; gap: 4px; align-items: center; font-size: 12.5px; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.nr-stats b { color: var(--text-2); font-weight: 700; }
.nr-stats small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--text-3); white-space: nowrap; letter-spacing: -0.01em; }
.nr-stats .cmt b { color: var(--text); }
.nr-stats .pos b { color: var(--accent-text); }
.nr-stats .neg b { color: #ff9a9d; }
.nr-stats .m { color: #7fb2ff; } .nr-stats .f { color: #ff9bc8; }
.sum-btn { padding: 4px 12px; font-size: 12.5px; }
/* 행 끝 [요약 / 텔레] - 위아래로 (대표님 10-06: '텔레' 는 요약 아래) */
.row-acts { display: flex; flex-direction: column; gap: 5px; align-items: stretch; width: 78px; } /* '보내기?' 로 바뀌어도 칸이 안 밀리게 */
.row-acts .btn { padding: 4px 12px; font-size: 12.5px; }
.tele-btn.arm { background: #d62b2f; border-color: #d62b2f; color: #fff; }
.tele-btn.sent { border-color: var(--accent-text); color: var(--accent-text); }
.sum-acts { display: inline-flex; gap: 6px; }
@media (max-width: 900px) {
  .nr { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 6px; }
  .nr-stats { grid-column: 2 / 4; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .nr .row-acts { grid-column: 3; grid-row: 1 / 3; align-self: start; }
}
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager .chip { min-width: 38px; text-align: center; }
.pager .gap { color: var(--text-3); padding: 6px 2px; }

/* ══════════════ 5. AI ══════════════ */
body.ai-mode { overflow: hidden; }
.ai { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: calc(100dvh - var(--nav-real, var(--nav-h))); }
.ai-side { background: var(--canvas-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ai-side__top { padding: 14px; display: flex; gap: 8px; }
.ai-side__top .btn { flex: 1 1 auto; }
.ai-convs { flex: 1 1 auto; overflow: auto; padding: 0 8px 12px; }
.ai-convs h4 { margin: 14px 10px 4px; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
.cv {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
}
.cv:hover { background: var(--surface-2); color: var(--text); }
.cv.on { background: var(--surface-3); color: #fff; }
.cv .tt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv .more {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; opacity: 0; display: grid; place-items: center;
}
.cv:hover .more, .cv.on .more, .cv .more:focus { opacity: 1; }
.cv .more:hover { background: var(--surface-3); color: var(--text); }
.cv input { flex: 1 1 auto; min-width: 0; background: var(--surface); border: 1px solid var(--accent-text); border-radius: 6px; padding: 2px 6px; font-size: 14px; outline: none; }
.menu {
  position: fixed; z-index: 120; min-width: 150px; padding: 6px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-float);
}
.menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: 7px; font-size: 14px; cursor: pointer; }
.menu button:hover { background: var(--surface-3); }
.menu button.danger { color: #ff9a9d; }
.ai-usage { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.ai-usage .bar { height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 4px 0 8px; }
.ai-usage .bar i { display: block; height: 100%; background: var(--accent-text); }
.ai-usage .bar i.hi { background: var(--gold); }

.ai-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.ai-top { display: none; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ai-top .tt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ai-scroll { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.ai-thread { max-width: 780px; margin: 0 auto; padding: 28px 20px 24px; display: flex; flex-direction: column; gap: 26px; }
.ai-hello { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; }
.ai-hello h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.ai-hello h1 .mark { display: inline-block; width: 40px; height: 40px; vertical-align: -8px; margin-right: 10px; }
.ai-hello h1 .mark .logo { width: 40px; height: 40px; }
.ai-hello .composer { width: min(720px, 100%); }
.msg-u { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.msg-u .msg-user { max-width: 100%; }
.msg-imgs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.msg-imgs img { width: 168px; height: 168px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); display: block; background: var(--surface-2); }
.msg-user { align-self: flex-end; max-width: 85%; background: var(--surface-3); padding: 11px 16px; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.msg-asst { align-self: stretch; }
.msg-asst .think { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas-2); }
.msg-asst .think summary {
  list-style: none; cursor: pointer; padding: 8px 12px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center;
}
.msg-asst .think summary::-webkit-details-marker { display: none; }
.msg-asst .think summary::before { content: "›"; display: inline-block; transition: transform .2s ease; color: var(--text-3); }
.msg-asst .think[open] summary::before { transform: rotate(90deg); }
.msg-asst .think .tb { padding: 2px 14px 12px 26px; font-size: 13.5px; color: var(--text-3); white-space: pre-wrap; line-height: 1.65; }
/* 생각하는 중 - 마지막 다섯 줄만 보이고 위는 흐려진다. 안쪽 스크롤이 없어 대화 스크롤과 싸우지 않는다 (10-07) */
.msg-asst .think.live .tb { height: calc(1.65em * 5 + 14px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.msg-asst .foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; color: var(--text-3); font-size: 12px; min-height: 26px; }
.icon-btn { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.msg-asst .error { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(229, 72, 77, .4); color: #ffb4b4; font-size: 14px; background: rgba(229, 72, 77, .07); }
.cursor::after { content: ""; display: inline-block; width: 8px; height: 16px; background: var(--accent-text); border-radius: 2px; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 마크다운 */
.md { line-height: 1.75; font-size: 15.5px; word-break: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md h1, .md h2, .md h3, .md h4 { margin: 20px 0 8px; line-height: 1.4; font-weight: 700; }
.md h1 { font-size: 21px; } .md h2 { font-size: 19px; } .md h3 { font-size: 17px; } .md h4 { font-size: 15.5px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 24px; }
.md li { margin: 3px 0; }
.md a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.md blockquote { margin: 0 0 12px; padding: 2px 14px; border-left: 3px solid var(--uplift); color: var(--text-2); }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: 2px 5px; border-radius: 5px; }
.md pre { position: relative; margin: 0 0 14px; background: #0a0e0c; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: auto; }
.md pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.6; }
.md pre .copy { position: absolute; top: 6px; right: 6px; }
.md table { border-collapse: collapse; margin: 0 0 14px; display: block; overflow-x: auto; max-width: 100%; }
.md th, .md td { border: 1px solid var(--line-2); padding: 6px 10px; text-align: left; font-size: 14px; }
.md th { background: var(--surface-2); }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }

/* 첨부 */
.att-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.att { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att.busy img { opacity: .4; }
.att .spin { position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -7px; }
.att.bad { border-color: var(--red); }
.att.bad img { opacity: .35; }
.att .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(0, 0, 0, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.att .x svg { width: 12px; height: 12px; }
.att-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); flex: 0 0 auto; }
.drop-overlay { position: absolute; inset: 10px; z-index: 30; border: 2px dashed var(--accent-text); border-radius: 18px;
  background: rgba(14, 19, 17, .88); display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--accent-text); pointer-events: none; }

/* 입력창 */
.composer-wrap { padding: 0 20px 18px; }
.composer {
  max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: var(--shadow-card); padding: 12px 12px 10px 16px; transition: border-color .2s ease;
}
.composer:focus-within { border-color: rgba(63, 194, 140, .5); }
.composer textarea {
  width: 100%; resize: none; border: 0; outline: none; background: transparent; font-size: 15.5px; line-height: 1.6;
  max-height: 40vh; min-height: 26px; padding: 2px 0;
}
.composer textarea::placeholder { color: var(--text-3); }
.composer .ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer .grow { flex: 1 1 auto; }
.select {
  appearance: none; padding: 6px 30px 6px 13px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface-2)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.select:hover { color: var(--text); }
.toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; background: transparent; transition: all .2s ease;
}
.toggle:active { transform: scale(.95); }
.toggle .sw { width: 26px; height: 15px; border-radius: 10px; background: var(--surface-3); position: relative; transition: background .2s ease; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--text-3); transition: all .2s ease; }
.toggle.on { border-color: rgba(63, 194, 140, .55); color: var(--accent-text); }
.toggle.on .sw { background: var(--accent); }
.toggle.on .sw::after { left: 13px; background: #fff; }
.send {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-float); transition: transform .2s ease, background .2s ease;
}
.send:hover { background: var(--accent-hover); }
.send:active { transform: scale(.95); }
.send:disabled { background: var(--surface-3); color: var(--text-3); box-shadow: none; cursor: default; }
.send.stop { background: var(--text); color: var(--canvas); }
.hint { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.ai-backdrop { display: none; }
@media (max-width: 520px) { .composer .ctl { gap: 6px; } .composer .select { padding: 6px 26px 6px 10px; font-size: 12.5px; background-position: right 9px center; } }
@media (max-width: 860px) {
  .ai { grid-template-columns: 1fr; }
  .ai-side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s var(--ease); }
  .ai.side-open .ai-side { transform: none; }
  .ai.side-open .ai-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  .ai-top { display: flex; }
  .ai-thread { padding: 18px 14px 18px; }
  .composer-wrap { padding: 0 10px 10px; }
  .msg-user { max-width: 92%; }
  .ai-hello h1 { font-size: 24px; }
  .composer-wrap .hint { display: none; }
}

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--surface-3); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: var(--pill); font-size: 14px; box-shadow: var(--shadow-float); }

/* 로그인 */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login .box { width: min(400px, 100%); padding: 32px 28px; }
.login h1 { margin: 16px 0 4px; font-size: 22px; }
.login p { margin: 0 0 20px; color: var(--text-3); font-size: 14px; }
.login input { width: 100%; padding: 12px 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; margin-bottom: 12px; }
.login input:focus { border-color: var(--accent-text); }
.login .btn { width: 100%; padding: 11px 16px; font-size: 15px; }
.login .err { min-height: 20px; font-size: 13px; margin-top: 10px; }

/* ══════════════ 요약 ══════════════ */
.sum-wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.sum-input { display: flex; gap: 8px; }
.sum-input input {
  flex: 1 1 auto; min-width: 0; padding: 11px 18px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--surface); outline: none; font-size: 15px;
}
.sum-input input:focus { border-color: var(--accent-text); }
.sum-input .btn { padding: 10px 22px; font-size: 15px; }
.sum-hello { padding: 28px 8px; text-align: center; line-height: 1.8; color: var(--text-2); }
.sum-hello b { color: var(--text); }
.kb { display: inline-block; padding: 1px 8px; border-radius: var(--pill); font-size: 11.5px; font-weight: 700; flex: 0 0 auto; }
.kb.youtube { background: rgba(255, 60, 60, .14); color: #ff8b8b; }
.kb.article { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.cv.sumi { gap: 8px; }
.sum-card { padding: 22px 24px; }
.sum-head { display: flex; gap: 18px; align-items: flex-start; }
.sum-thumb { flex: 0 0 200px; }
.sum-thumb img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.sum-hd { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.sum-hd .kb { align-self: flex-start; }
.sum-hd h2 { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 700; }
.lnk { color: var(--accent-text); }
.sum-tabs { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sum-tabs .chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.chip .dot.ok { background: var(--accent-text); }
.chip .dot.bad { background: var(--red); }
.chip.on .dot.ok { background: var(--sbux); }
.sum-content { font-size: 15.5px; line-height: 1.8; }
.sum-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.sum-lead { margin: 0 0 12px; color: var(--text); }
.sum-content h4 { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--accent-text); }
.sum-content ul { margin: 0; padding-left: 22px; color: var(--text-2); }
.sum-content li { margin: 4px 0; }
.sum-raw { white-space: pre-wrap; color: var(--text-2); }
.sum-meta { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.script p { margin: 0 0 12px; color: var(--text-2); }
.script .tc { display: inline-block; min-width: 52px; margin-right: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.sum-err { padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(229, 72, 77, .4); background: rgba(229, 72, 77, .06); color: #ffb4b4; }
.sum-err p { margin: 6px 0 12px; color: var(--text-2); }
.sum-foot { font-size: 12px; margin-top: 16px; }
@media (max-width: 640px) {
  .sum-wrap { padding: 14px 12px 32px; }
  .sum-card { padding: 16px; }
  .sum-head { flex-direction: column; }
  .sum-thumb, .sum-thumb img { width: 100%; flex-basis: auto; }
  .sum-input .btn { padding: 10px 16px; }
}

/* ══════════════ 유튭 ══════════════ */
/* 입력창은 제목 줄 오른쪽 (대표님 10-06). 좁으면 제목 아래로 내려간다 */
.yt-headrow { align-items: center; }
.yt-input { flex: 0 1 460px; min-width: 0; }
.yt-input input { padding: 9px 16px; font-size: 14px; }
.yt-input .btn { padding: 8px 18px; font-size: 14px; }
.yt-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.yt-filter { min-width: 220px; max-width: 100%; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.yt-bar .btn.on { border-color: var(--accent-text); color: var(--accent-text); }
.yt-info { font-size: 13px; }
.yt-tabs { margin-left: auto; }
.yr-ch { color: var(--accent-text); font-weight: 600; }
.yt-manage { margin-top: 10px; padding: 6px 14px; }
.ytm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ytm-row:last-child { border-bottom: 0; }
.ytm-row img, .ytm-ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface-3); }
.ytm-main { flex: 1 1 auto; min-width: 0; }
.ytm-main a { font-weight: 600; }
.ytm-main .muted { font-size: 12.5px; }
@media (max-width: 720px) { .yt-input { flex-basis: 100%; } .yt-filter { flex: 1 1 100%; } .yt-tabs { margin-left: 0; } }
.yt-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.yt-head h2 { margin: 0; font-size: 18px; }
.yt-head h2 a:hover { color: var(--accent-text); }
.yt-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.yt-list { list-style: none; margin: 0; padding: 0; }
.yr { display: grid; grid-template-columns: 168px minmax(0, 1fr) 124px 72px 112px; /* 마지막 칸 = 버튼(78px) + 댓글과의 간격 */ gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.yr:last-child { border-bottom: 0; }
.yr:hover { background: var(--canvas-2); }
.yr-h { padding-top: 10px; padding-bottom: 10px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.yr-h:hover { background: transparent; }
.yr-h span:nth-child(3), .yr-h span:nth-child(4) { text-align: right; }
.yr-thumb { position: relative; display: block; }
.yr-thumb img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--surface-2); }
.vb { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vb.live { background: #e5131c; }
.vb.up { background: var(--uplift); }
.vb.past { right: auto; left: 5px; background: rgba(30, 57, 50, .92); color: var(--mint); }
.new-b { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.yr-sec { list-style: none; padding: 12px 14px 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); border-bottom: 1px solid var(--line); }
.yr-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yr-title:hover { color: var(--accent-text); }
.yr-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.yr-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.yr-num small { display: none; }
.yr .row-acts { justify-self: end; }
@media (max-width: 760px) {
  .yr { grid-template-columns: 128px minmax(0, 1fr) auto; grid-template-areas: "t m b" "t n c"; gap: 4px 10px; padding: 10px 6px; }
  .yr-h { display: none; }
  .yr-thumb { grid-area: t; align-self: start; }
  .yr-thumb img { width: 128px; }
  .yr-main { grid-area: m; }
  .yr .row-acts { grid-area: b; align-self: start; }
  .yr-num { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
  .yr-v { grid-area: n; }
  .yr-c { grid-area: c; }
  .yr-num small { display: inline; color: var(--text-3); font-weight: 500; margin-right: 4px; }
}

/* ══════════════ 제작 · 도구 · 선거 (작성과 같은 틀, 왼쪽 목록 1.5배) ══════════════ */
.ai.wide-side { grid-template-columns: 408px minmax(0, 1fr); }
.ws-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ws-body > .ai-scroll { flex: 1 1 auto; }
.cp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cp-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.cp-hello { max-width: 780px; margin: 0 auto; padding: 48px 20px 8px; }
.ws-hello h2 { margin: 6px 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.ws-hello p { margin: 0 0 8px; line-height: 1.7; }
.cp-composer { flex: 0 0 auto; padding: 8px 20px 16px; }
.cp-composer .composer { max-width: 780px; margin: 0 auto; }
.cp-acts { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 선거 › 법령정보 (10-07 밤) - 왼쪽(목록 자리) = 검색 카드 + 자주 찾는 법령 / 결과 · 가운데 = 조문 뷰어 (nautilus.kr 1_legalinfo) · 자료 검색 (NautilusLegal Search) */
.ws-sidepanel { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.lw-side { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.lw-scard { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lw-scard h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lw-scard h3 svg { color: var(--accent-text); flex: 0 0 auto; }
.lw-scard h3 .grow { flex: 1 1 auto; }
.lw-search, .lw-msearch { display: flex; gap: 6px; }
.lw-search .sms-in, .lw-msearch .sms-in { flex: 1 1 auto; min-width: 0; }
.lw-search .btn, .lw-msearch .btn { flex: 0 0 auto; gap: 5px; }
.lw-favlist { display: flex; flex-direction: column; gap: 6px; }
.lw-favlist button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.lw-favlist button svg { color: var(--text-3); flex: 0 0 auto; }
.lw-favlist button:hover, .lw-favlist button.on { border-color: var(--accent-text); }
.lw-favlist button.on svg, .lw-favlist button:hover svg { color: var(--accent-text); }
.lw-sidenote { padding: 0 2px; line-height: 1.6; }
.lw-sidenote a { color: var(--accent-text); }
.lw-hits { display: flex; flex-direction: column; gap: 4px; }
.lw-hits button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--canvas); color: var(--text); font: inherit; cursor: pointer; }
.lw-hits button:hover { border-color: var(--line-2); }
.lw-hits button.on { border-color: var(--accent-text); background: rgba(63, 194, 140, .08); }
.lw-hits b { font-size: 13.5px; }
.lw-hits small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.lw-wrap { max-width: 1120px; margin: 0 auto; padding: 22px 20px 48px; display: flex; flex-direction: column; gap: 14px; }
.lw-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lw-top h2 { margin: 4px 0 0; font-size: 24px; }
.lw-modes { display: flex; gap: 6px; }
.lw-modes button { padding: 7px 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lw-modes button.on { background: var(--text); color: var(--canvas); border-color: var(--text); }
.lw-msearch:not(.lw-dsearch) { display: none; }
#lwm { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lw-view { padding: 0; min-width: 0; overflow: hidden; }
.lw-empty { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; }
.lw-dh { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.lw-dt { display: flex; align-items: center; gap: 8px; }
.lw-dt h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; }
.lw-dt h3 svg { color: var(--accent-text); }
.lw-dt .grow { flex: 1 1 auto; }
.lw-badge { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lw-meta { font-size: 12.5px; color: var(--text-3); }
.lw-meta .acc { color: var(--accent-text); font-weight: 700; }
.lw-dh select.sms-in { height: 40px; }
.lw-tools { display: flex; gap: 8px; }
.lw-tools .sms-in { flex: 1 1 auto; padding: 8px 12px; }
.lw-body { display: flex; flex-direction: column; padding: 8px 22px 12px; }
.lw-head { margin: 22px 0 8px; text-align: center; font-size: 14.5px; color: var(--accent-text); scroll-margin-top: 230px; }
.lw-art { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 230px; }
.lw-no { display: block; border: 0; background: none; padding: 0; margin-bottom: 4px; color: var(--text-2); font: inherit; font-size: 13.5px; cursor: copy; text-align: left; }
.lw-no b { color: var(--accent-text); font-size: 14px; margin-right: 2px; }
.lw-no:hover { color: var(--text); }
.lw-art p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.lw-art mark, .lw-no mark, .lw-dhit mark { background: rgba(203, 162, 88, .35); color: var(--text); border-radius: 3px; padding: 0 1px; }
.lw-add { margin: 6px 22px 22px; }
.lw-add summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 600; }
.lw-add pre { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--canvas-2); font-family: inherit; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.lw-dempty { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.lw-dempty p { margin: 0; font-size: 14.5px; }
.lw-samples { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-samples .chip { cursor: pointer; font-weight: 700; }
.lw-dcap { padding: 0 2px; }
.lw-dhits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lw-dhit { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.lw-dhead { display: flex; align-items: baseline; gap: 10px; }
.lw-dhead b { font-size: 14.5px; }
.lw-dhead .grow { flex: 1 1 auto; }
.lw-dhead small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.lw-dsrc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.lw-dsrc a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); }
.lw-dhit p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) { .lw-msearch:not(.lw-dsearch) { display: flex; } } /* 왼쪽이 서랍이 되는 폭 (.ai 860) - 가운데에도 검색칸 */
@media (max-width: 640px) { .lw-wrap { padding: 14px 12px 32px; } .lw-dh { position: static; padding: 14px 16px; } .lw-body { padding: 6px 16px 10px; } .lw-dt h3 { font-size: 17px; } }

/* 선거사무장 첫 화면 (10-07 밤) - 자주 묻는 질문 · 선관위 자료 상태 */
.cp-starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; margin-top: 16px; }
.cp-starter { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.cp-starter:hover { border-color: var(--accent-text); color: var(--text); }
.cp-datast { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-datast b { color: var(--accent-text); }
/* 결과물 다듬기 (10-07) - 대화 사이에 끼는 결과물 카드 · 입력칸 위 '바탕으로 다듬기' 표 */
.cp-out { align-self: stretch; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cp-out__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-out__h b { font-size: 14px; }
.cp-out__h small { color: var(--text-3); font-size: 12.5px; }
.cp-out__h .grow { flex: 1 1 auto; }
.cp-out__imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.cp-out__imgs figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-out__imgs img { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; background: var(--canvas-2); border: 1px solid var(--line); }
.cp-out__imgs figcaption { display: flex; align-items: center; gap: 8px; }
.cp-out__imgs figcaption span { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-out__imgs figcaption .btn { flex: 0 0 auto; }
.cp-ref { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; margin-bottom: 8px; border: 1px solid rgba(63, 194, 140, .45); border-radius: 10px; background: rgba(63, 194, 140, .08); font-size: 13px; }
.cp-ref img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.cp-ref span { flex: 1 1 auto; min-width: 0; }
.cp-ref .icon-btn { flex: 0 0 auto; }
.wide-side .wr-kind { font-size: 13px; padding: 9px 2px; white-space: nowrap; }
.ws-card { padding: 22px 24px; }
.ws-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-hd h2 { margin: 0; font-size: 20px; }
.ws-status { margin-left: auto; padding: 2px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-3); font-size: 12px; font-weight: 700; }
.ws-desc { margin: 12px 0 4px; font-size: 15.5px; color: var(--text); line-height: 1.7; }
.ws-card h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.ws-plan { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.8; }
.ws-uses { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-uses .chip { cursor: default; }
.ws-note { margin: 16px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(203, 162, 88, .12); color: #f1d08f; font-size: 13.5px; }
.ws-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.ws-step { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); }
.ws-step b { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 11.5px; }
.ws-arrow { color: var(--text-3); }
@media (max-width: 860px) {
  .ai.wide-side { grid-template-columns: 1fr; }
  .wide-side .ai-side { width: min(408px, 92vw); }
}

/* ══════════════ 도구 화면 ══════════════ */
.tl-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tl-card label { font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
.tl-card label small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.tl-card input:not([type=checkbox]):not([type=file]), .tl-card textarea {
  width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 15px; line-height: 1.6; resize: vertical;
}
.tl-card input:focus, .tl-card textarea:focus { border-color: var(--accent-text); }
.tl-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.tl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tl-row .btn { margin-left: auto; }
.tl-mode { margin-bottom: 4px; }
.tl-drop { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--text-3); cursor: pointer; text-align: center; padding: 16px; font-weight: 500 !important; }
.tl-drop:hover { border-color: var(--accent-text); color: var(--text-2); }
.tl-bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s ease; }
.tl-orig { white-space: pre-wrap; line-height: 1.9; font-size: 15px; padding: 12px 14px; border-radius: 12px; background: var(--canvas-2); }
.tl-mark { background: rgba(229, 72, 77, .18); color: inherit; border-bottom: 2px solid #ff8a8f; border-radius: 3px; padding: 0 1px; }
.tl-mark.spacing { background: rgba(127, 178, 255, .16); border-color: #9cc2ff; }
.tl-mark.orthography { background: rgba(203, 162, 88, .16); border-color: var(--gold); }
.tl-fix { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-fix label { font-weight: 500 !important; color: var(--text) !important; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 0 !important; }
.tl-fix s { color: #ff9a9d; } .tl-fix b { color: var(--accent-text); } .tl-fix small { color: var(--text-3); }
.tl-k { font-size: 11.5px; padding: 0 7px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-2); font-weight: 700; }
.tl-st { font-size: 13.5px; color: var(--text-2); } .tl-st summary { cursor: pointer; }
.tl-fixed { white-space: pre-wrap; line-height: 1.8; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.tl-res { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.tl-res b { color: var(--accent-text); word-break: break-all; }
.tl-links { list-style: none; margin: 0; padding: 0; }
.tl-links li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl-links img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.tl-lmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tl-lmain b { font-size: 14px; word-break: break-all; } .tl-lmain small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-clicks { font-size: 12.5px; white-space: nowrap; }
.tl-links .arm { color: #ff9a9d; border-color: #ff9a9d; }

/* ══════════════ 유튜브 모니터링 (ntls.kr/youtube 구성) ══════════════ */
.ym-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ym-back { flex: 0 0 100%; font-size: 13px; }
.ym-title { flex: 1 1 360px; min-width: 0; }
.ym-title h1 { margin: 4px 0 6px; font-size: 22px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.ym-sub { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ym-sub .vb { position: static; display: inline-block; }
.ym-ctrl { display: flex; gap: 8px; align-items: center; }
.ym-note { margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(203, 162, 88, .12); color: #f1d08f; border: 1px solid rgba(203, 162, 88, .3); }
.ym-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.ym-left { display: flex; flex-direction: column; gap: 12px; }
.ym-video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.ym-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ym-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ym-tile { min-height: 84px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.ym-tile:last-child { grid-column: 1 / -1; min-height: 0; }
.ym-tile small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ym-tile b { font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-tile em { font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }
.ym-tile.paid b { color: var(--gold); }
.ym-kw { padding: 12px; }
.ym-kwf { display: flex; gap: 6px; }
.ym-kwf input { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 14px; }
.ym-kwf input:focus { border-color: var(--accent-text); }
.ym-kwlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ym-kwchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 11px; border-radius: var(--pill); background: var(--surface-2); font-size: 13px; font-weight: 600; }
.ym-kwchip small { font-size: 11.5px; color: var(--accent-text); font-weight: 700; }
.ym-kwchip button { border: 0; background: var(--surface-3); color: var(--text-2); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.ym-feed { display: flex; flex-direction: column; min-height: 0; height: calc(100vh - var(--nav-real, var(--nav-h)) - 150px); min-height: 480px; }
.ym-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--line); }
.ym-tabs .chip small { font-size: 11.5px; opacity: .8; margin-left: 2px; }
.ym-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.ym-cmtrun { font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.ym-rows { flex: 1 1 auto; overflow: auto; padding: 4px 0; }
.ym-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.ym-row.paid { background: rgba(203, 162, 88, .07); }
.ym-row.reply { padding-left: 30px; }
.ym-row.del { opacity: .45; }
.ym-row.del .ym-x { text-decoration: line-through; }
.ym-t { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-b { min-width: 0; overflow-wrap: anywhere; }
.ym-a { font-weight: 700; color: var(--text-2); margin-right: 8px; font-size: 13px; }
.ym-re { color: var(--text-3); margin-right: 4px; }
.ym-x { color: var(--text); }
.ym-emo { width: 20px; height: 20px; vertical-align: -4px; margin: 0 1px; }
.ym-amt { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: var(--pill); background: var(--gold); color: #1a1a1a; font-size: 12px; font-weight: 800; }
.ym-kind, .ym-tag, .ym-deltag, .ym-rc { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--pill); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.ym-kind { background: rgba(203, 162, 88, .16); color: var(--gold); margin: 0 6px 0 0; }
.ym-tag { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.ym-deltag { background: rgba(229, 72, 77, .16); color: #ff9a9d; }
.ym-rc { background: var(--surface-3); color: var(--text-3); font-weight: 600; }
.ym-more { text-align: center; padding: 12px; }
.ym-ask { align-items: center; justify-content: center; }
.ym-askbox { width: min(520px, calc(100vw - 32px)); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ym-askbox input { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 15px; }
.ym-askbox input:focus { border-color: var(--accent-text); }
.ym-askft { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 960px) {
  .ym-grid { grid-template-columns: 1fr; }
  .ym-feed { height: 70vh; }
}

/* ══════════════ 작성 (논평 · SNS · 연설 · 대본) ══════════════ */
/* 종류 탭 다섯 칸을 왼쪽 목록 맨 위에 꽉 차게 붙인다 - 목록이 곧 패널이라 안쪽 패널은 두지 않는다 (대표님 10-06).
   위는 상단 메뉴 선, 오른쪽은 목록 오른쪽 선과 겹친다(margin-right -1px). 논평은 왼쪽 끝, 대본은 오른쪽 끝 */
.wr-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wr-kinds { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 -1px 0 0; border: 1px solid var(--line); border-top: 0; border-left: 0; background: var(--surface-2); flex: 0 0 auto; }
.wr-kind { padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.wr-kind + .wr-kind { border-left: 1px solid var(--line-2); }
.wr-kind:hover { color: var(--text); background: var(--surface-3); }
.wr-kind.on { background: var(--mint); color: var(--house); }
.kb.wk { background: rgba(203, 162, 88, .14); color: var(--gold); }
.kb.wk.sns { background: rgba(127, 178, 255, .14); color: #9cc2ff; }
.kb.wk.press { background: rgba(255, 255, 255, .1); color: var(--text); }
.kb.wk.speech { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.kb.wk.script { background: rgba(255, 155, 200, .14); color: #ffb3d4; }
.cv .dot.bad { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--red); vertical-align: middle; }
.wr-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.wr-form__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 16px; }
.wr-form label { font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
.wr-form label small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.wr-form textarea, .wr-form select {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--canvas-2);
  outline: none; font-size: 15px; line-height: 1.6; resize: vertical;
}
.wr-form select { width: auto; padding: 7px 12px; font-size: 14px; border-radius: var(--pill); }
.wr-form textarea:focus, .wr-form select:focus { border-color: var(--accent-text); }
.wr-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wr-opt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-opt > span { flex: 0 0 34px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.wr-form__ft { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.wr-form__ft .muted { font-size: 12.5px; }
.wr-text { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.wr-paras { white-space: normal; }
.wr-paras p { margin: 0 0 12px; white-space: pre-wrap; }
.wr-sec { display: inline-block; margin: 6px 0 2px; padding: 1px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--accent-text); font-size: 12.5px; font-weight: 700; }
.wr-card { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--gold); font-weight: 700; white-space: pre-wrap; }
.wr-card small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
.wr-seg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wr-seg ul { margin: 6px 0 0; padding-left: 22px; color: var(--text-2); }
.wr-note { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.wr-note small { color: var(--accent-text); font-weight: 700; margin-right: 6px; }
.wr-flag, .wr-warn { margin-bottom: 8px; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; }
.wr-flag { background: rgba(203, 162, 88, .12); color: #f1d08f; border: 1px solid rgba(203, 162, 88, .3); }
.wr-flag::before { content: "확인 필요 · "; font-weight: 700; }
.wr-warn { background: rgba(229, 72, 77, .08); color: #ffb4b4; border: 1px solid rgba(229, 72, 77, .3); }
.wr-req { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.wr-req summary { cursor: pointer; color: var(--text-3); font-weight: 600; }
.wr-req__b { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); }
.wr-req__b b { font-size: 12.5px; color: var(--text-3); }
.wr-req__b p { margin: 2px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wr-revise { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wr-revise input#note { flex: 1 1 260px; min-width: 0; padding: 9px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 14px; }
.wr-revise input#note:focus { border-color: var(--accent-text); }
.wr-learn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.wr-del { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--text-3); }
.wr-del:hover { color: var(--text); }
.wr-del.arm { color: #ff9a9d; font-weight: 700; }
@media (max-width: 640px) {
  .wr-form { padding: 16px; }
}

/* ══════════════ 사설 ══════════════ */
.ed-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-reload { margin-left: auto; }
.ed-lead1 { margin-top: 3px; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .ed-reload { margin-left: 0; } .ed-lead1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-card { padding: 16px 18px; }
.ed-card header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ed-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ed-card ul { list-style: none; margin: 0; padding: 0; }
.ed-item { padding: 12px 0; border-top: 1px solid var(--line); }
.ed-item:first-child { border-top: 0; }
.ed-title { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.ed-title:hover { color: var(--accent-text); }
.ed-lead { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.ed-none { font-size: 13px; margin: 8px 0 4px; }
.ed-sec { margin: 30px 0 12px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.ed-sec small { font-size: 13px; font-weight: 500; }
.empty-card { padding: 40px 24px; text-align: center; color: var(--text-3); font-size: 14.5px; }

/* ── 설정 (10-06) ── */
.nav-gear { width: 34px; height: 34px; border-radius: 50%; color: var(--text-2); }
.nav-gear:hover, .nav-gear.on { color: var(--accent-text); background: rgba(63, 194, 140, .08); }
.st-page { max-width: 980px; }
.st-sec { padding: 22px 24px 18px; margin-bottom: 16px; }
.st-sh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.st-sh h2 { margin: 0; font-size: 18px; font-weight: 700; }
.st-sh small { color: var(--text-3); font-size: 13px; }
.st-grp { padding: 14px 0 12px; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.st-grp:last-child { border-bottom: 0; }
.st-gh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* 묶음 안에 감싼 목록도 같은 간격 (10-07 대표님 지적: Claude CLI 행·버튼이 여백 없이 붙었다 - 감싼 div 가 부모의 gap 을 끊었다) */
.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-gh h3 { margin: 0; font-size: 15px; font-weight: 700; }
.st-gh small { font-size: 12.5px; }
.st-note { margin: 0; font-size: 12.5px; color: var(--text-3); }
.st-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); min-height: 44px; }
.st-row.off { opacity: .55; }
.st-n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); flex: 0 0 auto; }
.st-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.st-main b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.st-main small { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.st-main code, .st-row code { font-size: 13px; color: var(--text); letter-spacing: .02em; }
.st-acts { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.st-danger:hover { color: #ff8a8f !important; }
.st-v { font-size: 12.5px; padding: 2px 9px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-2); max-width: 100%; overflow-wrap: anywhere; }
.st-v.ok { background: rgba(63, 194, 140, .12); color: var(--accent-text); }
.st-v.warn { background: rgba(203, 162, 88, .14); color: var(--gold); }
.st-v.bad { background: rgba(229, 72, 77, .12); color: #ff9a9d; }
.st-in { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-in input { flex: 1 1 200px; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 14px; }
.st-in input:focus { border-color: var(--accent-text); }
.st-tag { font-size: 12px; color: var(--gold); flex: 1 1 100%; }
.st-sel { padding: 6px 28px 6px 10px; font-size: 13px; }
.st-add { align-self: flex-start; }
.st-sw { position: relative; width: 36px; height: 20px; flex: 0 0 auto; cursor: pointer; }
.st-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.st-sw span { position: absolute; inset: 0; border-radius: 20px; background: var(--surface-3); transition: background .2s; pointer-events: none; }
.st-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.st-sw input:checked + span { background: var(--accent); }
.st-sw input:checked + span::after { transform: translateX(16px); }
.st-sw input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.st-login { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--accent-text); background: rgba(63, 194, 140, .05); font-size: 14px; }
.st-login ol { margin: 0 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.st-login li .btn, .st-login li .st-in { margin-top: 6px; }
.st-login a.btn { display: inline-flex; }
.st-prof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 12px; }
.st-prof label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.st-prof label:has(textarea) { grid-column: 1 / -1; }
.st-prof input, .st-prof textarea { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 14px; font-weight: 400; color: var(--text); resize: vertical; line-height: 1.6; }
.st-prof input:focus, .st-prof textarea:focus { border-color: var(--accent-text); }
.st-pft { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .st-sec { padding: 18px 16px 14px; } .st-prof { grid-template-columns: 1fr; } .st-acts { margin-left: 0; } }

/* ── 프로젝트 (제작·토론회, 10-06) - 가운데 대화 + 오른쪽 272px 기초 자료 ── */
.pj { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 272px; flex: 1 1 auto; min-height: 0; }
.pj-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pj-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pj-head .grow, .rp-bar .grow, .dbf h3 .grow { flex: 1 1 auto; }
.pj-title { flex: 0 1 380px; min-width: 120px; font-size: 16px; font-weight: 700; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; outline: none; }
.pj-title:hover { border-color: var(--line-2); }
.pj-title:focus { border-color: var(--accent-text); background: var(--canvas-2); }
.pj-seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--surface-2); gap: 2px; }
.pj-seg button { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: var(--pill); cursor: pointer; }
.pj-seg button:hover { color: var(--text); }
.pj-seg button.on { background: var(--mint); color: var(--house); }
.pj-del:hover { color: #ff8a8f !important; }
.pj-mt-btn { display: none; }
.pj-content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pj-content > .ai-scroll { flex: 1 1 auto; }
.pj-side { border-left: 1px solid var(--line); background: var(--canvas-2); min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pj-side-bd { display: none; }
@media (max-width: 1180px) {
  .pj { grid-template-columns: minmax(0, 1fr); }
  .pj-mt-btn { display: inline-flex; }
  .pj-side { position: absolute; z-index: 40; top: 0; right: 0; bottom: 0; width: min(300px, 88vw); transform: translateX(102%); transition: transform .25s var(--ease); box-shadow: var(--shadow-float); }
  .pj.mt-open .pj-side { transform: none; }
  .pj.mt-open .pj-side-bd { display: block; position: absolute; inset: 0; z-index: 35; background: rgba(0, 0, 0, .45); }
}
@media (max-width: 860px) { .pj-head { padding: 8px 10px; } .pj-title { flex-basis: 100%; } }

/* 기초 자료 */
.mt { padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.mt.drag { outline: 2px dashed var(--accent-text); outline-offset: -6px; border-radius: 10px; }
.mt-h { display: flex; align-items: baseline; justify-content: space-between; }
.mt-h b { font-size: 14.5px; }
.mt-h small { color: var(--text-3); font-size: 12.5px; }
.mt-hint { margin: -4px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.55; }
.mt-drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.mt-drop:hover { border-color: var(--accent-text); }
.mt-drop b { font-size: 13px; }
.mt-drop small { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.mt-link { display: flex; gap: 6px; }
.mt-link input, .mt-textform input, .mt-textform textarea { flex: 1 1 auto; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--canvas); outline: none; font-size: 13px; }
.mt-link input:focus, .mt-textform input:focus, .mt-textform textarea:focus { border-color: var(--accent-text); }
.mt-textbtn { align-self: flex-start; }
.mt-textform { display: flex; flex-direction: column; gap: 6px; }
.mt-textform textarea { resize: vertical; line-height: 1.55; }
.mt-textform div { display: flex; justify-content: flex-end; gap: 6px; }
.mt-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-empty { font-size: 12.5px; color: var(--text-3); padding: 8px 2px; }
.mt-it { display: flex; align-items: flex-start; gap: 8px; padding: 8px 6px 8px 8px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.mt-it:hover { background: var(--surface-2); }
.mt-it.up { cursor: default; }
.mt-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.mt-ic.k-youtube { color: #ff7b7b; } .mt-ic.k-pdf { color: #ff9f7a; } .mt-ic.k-image { color: var(--accent-text); }
.mt-ic.k-video { color: #9cc2ff; } .mt-ic.k-link { color: var(--gold); } .mt-ic.k-office { color: #8fb6ff; }
.mt-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-tx b { font-size: 12.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-tx small { font-size: 11.5px; color: var(--text-3); line-height: 1.45; overflow-wrap: anywhere; }
.mt-tx .bad { color: #ff9a9d; } .mt-tx .warn { color: var(--gold); }
.mt-tx .spin { width: 10px; height: 10px; vertical-align: -1px; }
.mt-bar { display: block; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 3px; }
.mt-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.mt-it .icon-btn { width: 22px; height: 22px; flex: 0 0 auto; opacity: .55; }
.mt-it .icon-btn:hover { opacity: 1; color: #ff8a8f; }
.mt-it .icon-btn svg { width: 13px; height: 13px; }

/* 새 프로젝트 · 토론회 설정 */
.pj-new { max-width: 780px; margin: 0 auto; padding: 26px 20px 48px; }
.pj-new.wide { max-width: 940px; }
.pj-new h2 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.pj-new > .muted { margin: 0; line-height: 1.6; font-size: 14px; }
.pj-note { font-size: 12.5px; margin-top: 10px; }
.pj-newform { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.dbf { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.dbf section { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-card); }
.dbf h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dbf h3 small { font-weight: 500; color: var(--text-3); font-size: 12.5px; }
.dbf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.dbf-grid .wide { grid-column: 1 / -1; }
.dbf label:not(.el-chk):not(.chip), .pj-newform label, .dbf .wide { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.dbf label small, .pj-newform label small { font-weight: 500; color: var(--text-3); }
.dbf .lbl { font-size: 13px; font-weight: 700; color: var(--text-2); }
.dbf input:not([type=radio]):not([type=checkbox]), .dbf textarea, .pj-newform input, .pj-newform textarea {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--canvas-2); outline: none; font-size: 14px; font-weight: 400; color: var(--text); resize: vertical; line-height: 1.6; width: 100%; }
.dbf input:focus, .dbf textarea:focus, .pj-newform input:focus, .pj-newform textarea:focus { border-color: var(--accent-text); }
.dbf select.select { width: 100%; padding: 9px 30px 9px 12px; font-size: 14px; font-weight: 400; }
.dbf section > textarea { width: 100%; }
.dbf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; }
.dbf-chips .chip { cursor: pointer; font-weight: 600; flex-direction: row; }
.dbf-chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dbf-chips .chip:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.dbf-opp { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px 14px; margin-bottom: 10px; }
.dbf-opp__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dbf-ft { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .dbf-grid { grid-template-columns: 1fr; } .dbf section { padding: 14px; } .pj-new { padding: 18px 14px 40px; } }

/* 토론회 분석 보고서 */
.rp { display: flex; flex-direction: column; gap: 14px; }
.rp-card { padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.rp-card > div:first-child { flex: 1 1 360px; min-width: 0; }
.rp-card h2 { margin: 6px 0; font-size: 20px; }
.rp-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; }
.rp-card .error { margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(229, 72, 77, .4); color: #ffb4b4; font-size: 13px; }
.rp-run { justify-content: flex-start; }
.rp-run > div { flex: 1 1 auto; }
.rp-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.rp-doc { padding: 22px 28px; line-height: 1.75; }
.rp-doc > :first-child { margin-top: 0; }
.rp-doc h2 { border-bottom: 1px solid var(--line-2); padding-bottom: 6px; margin-top: 28px; color: var(--mint); }
.rp-doc h3 { color: var(--accent-text); }
.rp-doc table { display: table; width: 100%; }
@media (max-width: 640px) { .rp-doc { padding: 16px 14px; } }

/* 자료 미리보기 */
.pv-card { width: min(860px, 100%); padding: 18px 20px; }
.pv-card img.pv-media, .pv-card video.pv-media { display: block; width: auto; max-width: 100%; max-height: 50vh; border-radius: 8px; margin: 0 auto 12px; background: #000; box-shadow: none; }
.pv-meta { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.pv-text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 13.5px; line-height: 1.75; color: var(--text); }

/* ── 제작 결과물 · 만들기 창 (10-07) ── */
.pj-seg small { font-size: 11.5px; font-weight: 700; margin-left: 2px; opacity: .75; }
.mk-outs { display: flex; flex-direction: column; gap: 14px; }
.mk-empty { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mk-empty p { margin: 0; font-size: 14px; line-height: 1.6; }
.mk-out { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mk-oh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-oh b { font-size: 14.5px; }
.mk-oh small { font-size: 12.5px; }
.mk-oh .grow { flex: 1 1 auto; }
.mk-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-2); }
.mk-st.ok { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.mk-st.run, .mk-st.wait { background: rgba(203, 162, 88, .14); color: var(--gold); }
.mk-st.bad { background: rgba(229, 72, 77, .14); color: #ff9a9d; }
.mk-st .spin { width: 10px; height: 10px; }
.mk-prog { font-size: 13px; color: var(--text-2); padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.mk-err { font-size: 13px; color: #ffb4b4; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(229, 72, 77, .4); }
.mk-warn { margin: 0; padding: 8px 12px 8px 28px; border-radius: 10px; background: rgba(203, 162, 88, .08); color: var(--gold); font-size: 12.5px; line-height: 1.6; }
.mk-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mk-imgs.one { grid-template-columns: minmax(0, 420px); }
.mk-imgs a { display: block; border-radius: 10px; overflow: hidden; background: var(--canvas-2); border: 1px solid var(--line); }
.mk-imgs img { display: block; width: 100%; height: auto; }
.mk-video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; }
.mk-audio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.mk-audio audio { flex: 1 1 260px; height: 36px; }
.mk-files { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-files .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.mk-files .chip small { font-size: 11px; color: var(--text-3); }
.mk-modal { align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.mk-box { width: min(560px, 100%); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 32px); overflow: auto; }
.mk-bh { display: flex; align-items: center; justify-content: space-between; }
.mk-bh b { font-size: 16px; }
.mk-sec { display: flex; flex-direction: column; gap: 8px; }
.mk-sec .lbl { font-size: 13px; font-weight: 700; color: var(--text-2); }
.mk-engs { display: flex; flex-direction: column; gap: 6px; }
.mk-eng { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.mk-eng:has(input:checked) { border-color: var(--accent-text); background: rgba(63, 194, 140, .06); }
.mk-eng.off { opacity: .5; cursor: not-allowed; }
.mk-eng input { margin-top: 3px; accent-color: var(--accent); }
.mk-eng span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-eng b { font-size: 14px; }
.mk-eng small { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.mk-eng em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--pill); margin-left: 4px; vertical-align: 1px; }
.mk-paid { background: rgba(203, 162, 88, .16); color: var(--gold); }
.mk-free { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.mk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.mk-opts label { display: flex; flex-direction: column; gap: 6px; }
.mk-opts label:only-child { grid-column: 1 / -1; }
.mk-opts .select { width: 100%; padding: 8px 30px 8px 12px; font-size: 13.5px; }
.mk-box details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-2); }
.mk-box textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--canvas-2); color: var(--text); font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; outline: none; }
.mk-box textarea:focus { border-color: var(--accent-text); }
.mk-paidnote { margin: 0; font-size: 12.5px; color: var(--gold); }
.mk-ft { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) { .mk-opts { grid-template-columns: 1fr; } }

/* ── 선거 프로젝트 설정 (10-07) - 선거 고르기 · 여론조사 표 ── */
.el-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding: 2px; }
.el-chk { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 500 !important; }
.el-chk:has(input:checked) { border-color: var(--accent-text); background: rgba(63, 194, 140, .06); }
.el-chk input { margin-top: 3px; accent-color: var(--accent); }
.el-chk span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.el-chk b { font-size: 13px; color: var(--text); font-weight: 600; }
.el-chk small { font-size: 12px; color: var(--text-3); }
.el-table { max-height: 420px; overflow: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.el-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.el-table th { position: sticky; top: 0; background: var(--surface-2); color: var(--text-2); font-weight: 700; text-align: left; padding: 8px 10px; white-space: nowrap; z-index: 1; }
.el-table td { padding: 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; color: var(--text); font-weight: 400; }
.el-table td:nth-child(n+4), .el-table th:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.el-table tr:has(input:checked) td { background: rgba(63, 194, 140, .05); }
.el-table input { accent-color: var(--accent); }

/* ── 왼쪽 목록 화면의 오른쪽 머리 · 폭 통일 (10-07) - 작성·제작·도구·선거 모두 같은 머리, 같은 폭 880px ── */
.ws-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.ws-head .eyebrow { margin: 0; }
.ws-head__t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-head h2 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.ws-head p { margin: 0; font-size: 14px; line-height: 1.6; }
.pj-new, .pj-new.wide { max-width: 880px; padding: 24px 20px 48px; }
.pj-new > .ws-head + * { margin-top: 16px; }

/* 카드 안쪽 여백 · 입력칸 이름 통일 (10-07) - 작성·도구·제작·선거의 입력 카드와 결과 카드가 같은 값을 쓴다 */
.wr-form, .tl-card, .dbf section, .pj-newform, .rp-card, .mk-out, .mk-empty { padding: 20px 22px; }
.wr-form label, .tl-card label, .dbf label:not(.el-chk):not(.chip), .pj-newform label, .dbf .lbl, .mk-sec .lbl, .st-prof label { font-size: 13.5px; }
@media (max-width: 640px) { .wr-form, .tl-card, .dbf section, .pj-newform, .rp-card, .mk-out, .mk-empty { padding: 16px; } }

/* 버튼 묶음 간격 통일 (10-07) - 한 줄에 붙는 작은 버튼들은 6px */
.mk-oh, .rp-bar, .rp-pick, .mk-ft, .dbf h3, .tl-row, .tl-ft { gap: 6px; }

/* 새 프로젝트 첫 화면 (10-07) - 열린 프로젝트와 같은 3단. 좁은 화면에서는 서랍 대신 양식 아래에 자료 영역을 쌓는다 (만들기 전이라 머리 줄의 '자료' 버튼이 없다) */
@media (max-width: 1180px) {
  .pj.creating { display: block; overflow: auto; }
  .pj.creating .pj-main, .pj.creating .pj-content { display: block; }
  .pj.creating .ai-scroll { overflow: visible; }
  .pj.creating .pj-side { position: static; transform: none; width: auto; box-shadow: none; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .pj.creating .mt { max-width: 880px; margin: 0 auto; }
}

/* 모니터링 링크 창 - 지금 받는 중인 목록 (10-07) */
.ym-running { display: flex; flex-direction: column; gap: 6px; }
.ym-running:empty { display: none; }
.ym-run { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ym-run a { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.ym-run b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ym-run small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════ 휴대폰 최적화 (10-07 대표님 "모바일에서 가로 드래그가 먹혀서 사용하는데 어려움 - 가로 드래그는 필요 없지 않나?") ══════════════
   점검 (390px, 터치): 페이지 자체가 넓어지는 곳 둘(열린 프로젝트 696px - 화면 밖 오른쪽에 숨은 자료 서랍 / 유튜브 모니터링 398px - 통계 칸 최소 폭)과
   옆으로 미는 띠 셋(맨 위 메뉴 · 브리핑 회차 칩 · 여론조사 고르기 표)을 없앤다. 표·코드 블록 안쪽 가로 스크롤만 남긴다 */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.pj { overflow: hidden; }                                   /* 자료 서랍(translateX 102%)이 페이지 폭을 늘리지 않게 */
.ym-grid > *, .ym-left { min-width: 0; }
.ym-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .ym-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; overflow: visible; }
  .tab { padding: 7px 0; text-align: center; font-size: 13.5px; white-space: nowrap; }
  .brief-mobile { flex-wrap: wrap; overflow: visible; }
  .el-table th:nth-child(4), .el-table td:nth-child(4), .el-table th:nth-child(6), .el-table td:nth-child(6) { display: none; }
  .el-table th, .el-table td { padding: 7px 6px; }
  .ym-title h1 { font-size: 19px; }
}
/* 손가락 화면 - 입력칸 16px(아이폰은 16px 미만 입력칸을 누르면 화면을 확대해 옆으로 밀린다) · 작은 버튼은 누르기 쉬운 높이로 */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }
  .btn-sm { min-height: 34px; }
}
/* 넘침 셋 (10-07 점검) - 뉴스 검색칸 · AI 첫 화면 입력창 선택 상자 · 여론조사 고르기 표가 줄어들지 않았다 */
.search, .search input { min-width: 0; }
.composer, .composer .ctl { min-width: 0; }
.composer .select { min-width: 0; flex: 0 1 auto; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .news-tools.one .search { min-width: 0; }
  .ai-hello { padding: 20px 12px; }
  .composer .select { max-width: 38%; }
  .el-table table { font-size: 12.5px; }
  .el-table th { font-size: 12px; }
  .el-table th:nth-child(5), .el-table td:nth-child(5) { display: none; } /* 휴대폰은 기관·기간·민주당·국민의힘만 (고르는 표라 나머지는 분석에 그대로 쓰인다) */
  .el-table th, .el-table td { padding: 7px 5px; }
}
.ai-hello > #slot-hello { width: min(720px, 100%); min-width: 0; }   /* 가운데 정렬 칸이 입력창 내용 폭으로 커지던 것 */

.el-table th .sm { display: none; }
@media (max-width: 720px) {
  .el-table th .lg { display: none; } .el-table th .sm { display: inline; }
  .el-table table { table-layout: fixed; }
  .el-table th:nth-child(1), .el-table td:nth-child(1) { width: 30px; }
  .el-table th:nth-child(7), .el-table td:nth-child(7), .el-table th:nth-child(8), .el-table td:nth-child(8) { width: 46px; }
  .el-table td:nth-child(2), .el-table td:nth-child(3) { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) { .el-table .yr { display: none; } }  /* 휴대폰은 조사 기간에서 연도를 뺀다 (10.01~02) */
.st-prof input, .st-prof textarea, .st-in input, .dbf input, .dbf textarea, .dbf select { min-width: 0; }   /* 입력칸 기본 최소 폭이 좁은 화면(360px)에서 칸을 밀어내던 것 */
@media (max-width: 640px) { .st-prof { grid-template-columns: minmax(0, 1fr); } .st-prof input, .st-prof textarea { width: 100%; } }

/* ══════════════ 문자보내기 (10-07 대표님 "nautilus.kr 에서 적용된 레이아웃을 흉내만 … 파일첨부도 빠져있고 … 주소록 구글시트도") ══════════════
   nautilus.kr 13_Main-Web 1_sms 화면(2_slmms 3열 · 3_20shot 스피드 모드 · 4_address)을 대조해 이 앱의 어두운 바탕으로 옮겼다.
   폰 미리보기 껍데기(240×520, 흰 화면 · 회색 말풍선)는 실제 문자 앱처럼 보이게 밝은 그대로 */
.sms-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; container-type: inline-size; }
.sms-wrap.narrow { max-width: 880px; }
.sms-wrap--speed { max-width: 1120px; }
.sms-wrap > .ws-head + * { margin-top: 0; }
.sms-wrap .warn { color: var(--gold); }
.sms-wrap .bad, .sms-book .bad { color: #ff9a9d; }
.sms-wrap .acc, .sms-dlg .acc { color: var(--accent-text); }
.sms-tag { padding: 2px 10px; border-radius: var(--pill); background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.sms-cap { font-size: 12px; color: var(--text-3); line-height: 1.55; margin: 0; }
.sms-lnk { border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sms-lnk:hover { text-decoration: underline; }

/* 3열 (nautilus.kr lg:grid-cols-3) - 좁으면 2열(수신번호가 아래 한 줄) → 1열 */
.sms-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 16px; }
/* 가운데 칸이 860px 넘으면 nautilus.kr 처럼 3열 (1600px 화면에서 왼쪽 목록·오른쪽 주소록을 빼고 남는 폭) */
@container (min-width: 600px) { .sms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sms-col { grid-column: 1 / -1; } }
@container (min-width: 860px) { .sms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .sms-col { grid-column: auto; } }
@container (min-width: 860px) and (max-width: 1080px) { .sms-panel { padding: 16px 14px; } .sms-opts { padding: 12px; } }
.sms-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; container-type: inline-size; }
.sms-panel { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; }
.sms-rcv { flex: 1 1 auto; }
.sms-ph { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sms-ph svg { color: var(--accent-text); flex: 0 0 auto; }
.sms-lbl { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sms-lbl > span { font-size: 13px; font-weight: 700; color: var(--text-3); }
.sms-in { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.sms-in:focus { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.sms-in:disabled { opacity: .4; cursor: not-allowed; }
select.sms-in { height: 44px; padding-block: 0; }
.sms-emptybox { border: 1px dashed var(--line-2); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.sms-opts { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--canvas-2); display: flex; flex-direction: column; gap: 12px; }
.sms-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.sms-sw { position: relative; flex: 0 0 auto; width: 36px; height: 20px; border-radius: 10px; border: 0; padding: 0; background: var(--surface-3); cursor: pointer; transition: background .2s ease; }
.sms-sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.sms-sw.on { background: var(--accent); }
.sms-sw.on i { transform: translateX(16px); }
.sms-red { margin: 0; font-size: 12px; line-height: 1.6; color: #ff9a9d; }
.sms-body { resize: none; line-height: 1.6; }
.sms-meter { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sms-badge { padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: rgba(96, 150, 255, .16); color: #93b8ff; }
.sms-badge[data-t="MMS"] { background: rgba(203, 162, 88, .16); color: var(--gold); }
/* MMS 이미지 */
.sms-mms { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sms-mms__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.sms-add { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.sms-add:hover { border-color: var(--accent-text); color: var(--accent-text); }
.sms-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--text-3); font-size: 12px; cursor: pointer; text-align: center; }
.sms-drop:hover, .sms-drop.drag, .sms-imglist.drag, .sms-fbox.drag, .sms-file.drag { border-color: var(--accent-text); color: var(--accent-text); }
.sms-imglist { display: grid; gap: 8px; max-height: 10rem; overflow-y: auto; border: 1px dashed transparent; border-radius: 8px; }
.sms-img { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.sms-img__t { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); }
.sms-img__n { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-img__n small { margin-left: 6px; color: var(--text-3); }
.sms-img .icon-btn { width: 24px; height: 24px; flex: 0 0 auto; }

/* 휴대폰 미리보기 (nautilus.kr 240×520 껍데기) */
.sms-pvw { align-items: center; }
.sms-pvw .sms-ph { align-self: stretch; }
.sms-phone { width: min(240px, 100%); aspect-ratio: 240 / 520; flex: 0 0 auto; background: #000; border: 2px solid #3a3d42; border-radius: 2.5rem; padding: 3px; position: relative; overflow: hidden; }
.sms-phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 2; }
.sms-phone__scr { width: 100%; height: 100%; background: #fff; border-radius: 2.3rem; display: flex; flex-direction: column; overflow: hidden; color: #000; }
.sms-phone__top { display: flex; align-items: center; justify-content: space-between; padding: 32px 12px 8px; background: #f6f6f6; border-bottom: 1px solid #e5e7eb; }
.sms-phone__nav { color: #3b82f6; font-size: 10px; }
.sms-phone__who { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sms-phone__who i, .sms-phone__av { display: grid; place-items: center; border-radius: 50%; background: #d1d5db; color: #6b7280; font-style: normal; font-weight: 800; }
.sms-phone__who i { width: 28px; height: 28px; font-size: 9px; }
.sms-phone__body { flex: 1 1 auto; overflow-y: auto; padding: 8px; }
.sms-phone__day { text-align: center; font-size: 8px; color: #9ca3af; margin-bottom: 8px; }
.sms-phone__row { display: flex; align-items: flex-end; gap: 4px; }
.sms-phone__av { width: 20px; height: 20px; flex: 0 0 auto; font-size: 7px; }
.sms-phone__msg { max-width: 85%; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sms-phone__msg img { width: 100%; border-radius: 12px; object-fit: contain; display: block; }
.sms-phone__bub { background: #e5e5ea; color: #000; font-size: 11.2px; line-height: 1.4; padding: 6px 8px; border-radius: 12px 12px 12px 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sms-phone__bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid #e5e7eb; background: #f6f6f6; }
.sms-phone__bar i, .sms-phone__bar b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; flex: 0 0 auto; }
.sms-phone__bar i { background: #d1d5db; color: #6b7280; }
.sms-phone__bar b { background: #3b82f6; color: #fff; font-size: 9px; }
.sms-phone__bar span { flex: 1 1 auto; height: 24px; border-radius: 12px; background: #fff; border: 1px solid #d1d5db; }
.sms-types { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sms-type { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--canvas-2); text-align: center; }
.sms-type b { font-size: 12px; color: var(--text-3); }
.sms-type small { font-size: 11px; color: var(--text-3); }
.sms-type.on { border-color: var(--accent-text); background: rgba(63, 194, 140, .08); }
.sms-type.on b { color: var(--accent-text); }
.sms-type.on small { color: var(--text); }

/* 수신번호 입력 */
.sms-seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); }
.sms-seg button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sms-seg button:hover { color: var(--text); }
.sms-seg button.on { background: var(--accent); color: #fff; }
.sms-rbody { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }
.sms-file { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas); }
.sms-fbtn { flex: 0 0 auto; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.sms-fbtn:hover { border-color: var(--accent-text); }
.sms-fname { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-fname b { color: var(--accent-text); }
.sms-fbox { flex: 1 1 auto; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 12px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--canvas-2); font-size: 12px; color: var(--text-3); line-height: 1.6; }
.sms-fbox small { font-size: 11.5px; }
.sms-glist { flex: 1 1 auto; min-height: 120px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); }
.sms-glist ul { list-style: none; margin: 0; padding: 0; }
.sms-glist li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 12px; border-bottom: 1px solid var(--line); }
.sms-glist li:last-child { border-bottom: 0; }
.sms-glist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-glist li small, .sms-sp__row small { flex: 0 0 auto; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sms-glist__e { height: 100%; min-height: 118px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-3); padding: 12px; text-align: center; }
.sms-nums { flex: 1 1 auto; resize: none; min-height: 9rem; line-height: 1.6; }
.sms-total { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.sms-total:empty { display: none; }
.sms-set { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sms-set__h { margin: 0; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
.sms-at { height: 44px; color-scheme: dark; }
.sms-fixed { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--accent-text); border-radius: 8px; background: rgba(63, 194, 140, .08); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.sms-acts { display: flex; gap: 8px; }
.sms-acts .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; padding-inline: 8px; }
.sms-acts #go { flex: 2 1 0; }
@container (max-width: 330px) { .sms-acts { flex-wrap: wrap; } .sms-acts #go { flex-basis: 100%; } }
/* 발송 접수 완료 덮개 (수신번호 칸 위) */
.sms-done { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: rgba(22, 31, 27, .93); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; }
.sms-done h2 { margin: 8px 0 0; font-size: 16px; }
.sms-done p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.sms-done__ic.ok { color: var(--accent-text); }
.sms-done__ic.warn { color: var(--gold); }
/* 발신번호 관리 */
.sms-mng { margin-top: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas-2); display: flex; flex-direction: column; gap: 10px; }
.sms-mng ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sms-mng li { display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 10px; border-radius: 6px; background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums; }
.sms-mng li small { color: var(--text-3); }
.sms-mng li .icon-btn { margin-left: auto; width: 24px; height: 24px; }
li.sms-mng__none { color: var(--text-3); background: none; padding-left: 2px; }
.sms-mng__add { display: flex; gap: 6px; flex-wrap: wrap; }
.sms-mng__add .sms-in { flex: 1 1 8rem; padding: 7px 10px; font-size: 13px; }
.sms-mng__080 { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.sms-mng__080 .sms-in { padding: 7px 10px; font-size: 13px; }
.sms-mng__ft { display: flex; justify-content: flex-end; gap: 6px; }

/* 작은 창 - 미리보기 · 테스트발송 · 발송 확인 */
.sms-dlg { width: min(440px, 100%); gap: 12px; }
.sms-dlg__h { display: flex; align-items: center; justify-content: space-between; }
.sms-dlg__h b { font-size: 15px; }
.sms-dlg .sms-dl { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sms-dlg__img { width: 100%; max-height: 40vh; object-fit: contain; border-radius: 8px; display: block; background: var(--canvas-2); }
.sms-dlg__txt { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow: auto; }
.sms-dlg__p { margin: 0; font-size: 14px; line-height: 1.6; }
.sms-dlg__f { display: flex; flex-direction: column; gap: 10px; }
.sms-dlg__ft { display: flex; justify-content: flex-end; gap: 6px; }
.sms-dlg__res { font-size: 13px; line-height: 1.55; padding: 8px 12px; border-radius: 8px; }
.sms-dlg__res.bad { color: #ffb4b4; border: 1px solid rgba(229, 72, 77, .4); }
.sms-dlg__res.warn { color: #f1d08f; border: 1px solid rgba(203, 162, 88, .35); }

/* 알림 줄 · 발송 내역 */
.sms-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.sms-note.ok { background: rgba(63, 194, 140, .1); color: var(--accent-text); border: 1px solid rgba(63, 194, 140, .3); }
.sms-note.warn { background: rgba(203, 162, 88, .12); color: #f1d08f; border: 1px solid rgba(203, 162, 88, .3); }
.sms-note.bad { background: rgba(229, 72, 77, .08); color: #ffb4b4; border: 1px solid rgba(229, 72, 77, .4); }
.sms-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-top: 16px; }
.sms-card h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; min-height: 30px; }
.sms-card .sms-note { margin-top: 0; }
.sms-soft { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--canvas-2); }
.sms-bubble { justify-self: start; max-width: 100%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sms-detail h3 { flex-wrap: wrap; }
.sms-detail__t { font-weight: 600; font-size: 14px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.sms-detail__imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.sms-detail__imgs img { width: 120px; max-width: 100%; border-radius: 8px; display: block; }
.sms-st { padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 800; white-space: nowrap; }
.sms-st.ok, .sms-st.run { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.sms-st.warn { background: rgba(203, 162, 88, .16); color: var(--gold); }
.sms-st.bad { background: rgba(229, 72, 77, .14); color: #ff9a9d; }
.sms-st.off { background: var(--surface-3); color: var(--text-3); }
.sms-dl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 13.5px; }
.sms-dl dt { color: var(--text-3); }
.sms-dl dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; text-align: right; }
.sms-detail .sms-dl dd { text-align: left; }
.sms-nums summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 600; }
.sms-nums div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sms-nums .chip { cursor: default; font-variant-numeric: tabular-nums; }

/* 20건 분할 2단계 - 수동 원키 스피드 모드 (nautilus.kr 3_20shot) */
.sms-sp { display: flex; flex-direction: column; gap: 16px; }
.sms-sp__head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sms-sp__head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.sms-sp__head h2 svg { color: var(--accent-text); }
.sms-sp__head p { margin: 6px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.9; }
.sms-sp__head kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--canvas-2); font-family: inherit; font-size: 11px; line-height: 1.5; color: var(--text-3); }
.sms-sp__head kbd.acc { color: var(--accent-text); }
.sms-sp__touch { display: none; }
@media (pointer: coarse) { .sms-sp__touch { display: inline; } }
.sms-sp__cnt { text-align: right; display: flex; flex-direction: column; gap: 4px; margin-left: auto; }
.sms-sp__cnt small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.sms-sp__cnt b { font-size: 28px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sms-sp__bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.sms-sp__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.sms-sp__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container (min-width: 700px) { .sms-sp__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sms-sp__wait { padding: 18px 20px; display: flex; flex-direction: column; min-height: 0; position: relative; height: min(62vh, 560px); user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; }
.sms-sp__wait.charging::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(63, 194, 140, .5); border-radius: inherit; pointer-events: none; animation: smsPulse 1s ease-in-out infinite; }
@keyframes smsPulse { 50% { opacity: .3; } }
.sms-sp__wh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.sms-sp__wh h3 { margin: 0; font-size: 13px; }
.sms-sp__wh p { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.sms-sp__wh p b { font-size: 18px; font-weight: 900; }
.sms-sp__list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.sms-sp__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-3); transition: background .12s ease, border-color .12s ease; flex: 0 0 auto; }
.sms-sp__row b { font-size: 13px; color: var(--text); flex: 1 1 auto; }
.sms-sp__ck { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: 0 0 auto; }
.sms-sp__row.on { border-color: var(--accent-text); background: rgba(63, 194, 140, .08); }
.sms-sp__row.on .sms-sp__ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.sms-sp__right { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.sms-sp__msg { padding: 18px 20px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sms-sp__msg h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sms-sp__msg h3 svg { color: var(--accent-text); }
.sms-sp__txt { flex: 1 1 auto; min-height: 8rem; max-height: 40vh; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.sms-sp__go { height: 7rem; border-radius: 10px; border: 0; font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; background: var(--surface-2); color: var(--text-3); transition: opacity .15s ease; }
.sms-sp__go.ready { background: var(--accent); color: #fff; }
.sms-sp__go.done { background: #1f9d6a; color: #fff; }
.sms-sp__go:disabled { cursor: not-allowed; }
.sms-sp__go.ready:hover:not(:disabled), .sms-sp__go.done:hover { opacity: .9; }
.sms-sp__back { align-self: flex-end; }

/* 오른쪽 주소록 (nautilus.kr 4_address) + 구글 시트 */
.sms-sheet { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.sms-sheet.off { border-style: dashed; }
.sms-sheet__t { display: flex; gap: 8px; align-items: flex-start; }
.sms-sheet__t svg { color: #34a853; flex: 0 0 auto; margin-top: 1px; }
.sms-sheet__t span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sms-sheet__t b { font-size: 13px; }
.sms-sheet__t small { font-size: 11.5px; color: var(--text-3); line-height: 1.45; overflow-wrap: anywhere; }
.sms-sheet__b { display: flex; gap: 6px; }
.sms-sheet__b .btn { flex: 1 1 0; justify-content: center; gap: 5px; }
.sms-sheet > .btn { justify-content: center; gap: 5px; }
.sms-sync.on svg { animation: spin 1s linear infinite; }
.sms-sheet__s { font-size: 11.5px; color: var(--text-3); line-height: 1.5; overflow-wrap: anywhere; }
.sms-sheet .sms-lnk { align-self: flex-start; font-size: 12px; }
.sms-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--canvas); color: var(--text-3); }
.sms-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; padding: 7px 0; outline: none; font-size: 13px; color: var(--text); }
.sms-search:focus-within { border-color: var(--accent-text); }
.sms-quick { display: flex; gap: 6px; }
.sms-quick input { flex: 1 1 0; min-width: 0; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--canvas); outline: none; font-size: 13px; color: var(--text); }
.sms-quick input[name="name"] { flex: .8 1 0; }
.sms-quick input:focus { border-color: var(--accent-text); }
.sms-quick .btn { flex: 0 0 auto; }
.sms-bk-tools { display: flex; gap: 6px; }
.sms-bk-tools .btn { flex: 1 1 0; justify-content: center; cursor: pointer; }
.sms-g .sms-put { flex: 0 0 auto; align-self: center; }
.sms-bk-h { display: flex; align-items: center; gap: 6px; }
.sms-bk-h .icon-btn { flex: 0 0 auto; width: 30px; height: 30px; }
.sms-bk-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 14.5px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; color: var(--text); outline: none; }
.sms-bk-name:hover { border-color: var(--line-2); }
.sms-bk-name:focus { border-color: var(--accent-text); background: var(--canvas); }
.sms-bk-acts { display: flex; align-items: center; gap: 6px; }
.sms-bk-acts .grow { flex: 1 1 auto; }
.sms-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.sms-all input, .sms-c input { accent-color: var(--accent); }
.sms-ct { gap: 3px; }
.sms-c { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.sms-c:hover { background: var(--surface-2); }
.sms-c:has(input:checked) { background: rgba(63, 194, 140, .09); }
.sms-c input { margin-top: 3px; flex: 0 0 auto; }
.sms-c span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sms-c b { font-size: 12.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-c small { font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sms-gdel { align-self: flex-start; margin-top: 6px; gap: 5px; color: var(--text-3) !important; }
.sms-gdel:hover { color: #ff8a8f !important; }
/* RCS (nautilus.kr 1_rcs) - 머리 탭 · 작성(버튼·대체문자) · RCS 미리보기 카드 */
.sms-subtabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); }
.sms-subtabs button { padding: 6px 14px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sms-subtabs button:hover { color: var(--text); }
.sms-subtabs button.on { background: var(--accent); color: #fff; }
.sms-rsec { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sms-rsec .sms-opt b { font-size: 13px; color: var(--text); }
.sms-add:disabled, .sms-add[disabled] { opacity: .4; cursor: not-allowed; }
button.sms-add { background: none; font: inherit; font-size: 12px; font-weight: 600; }
.rcs-btn { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); }
.rcs-btn__r { display: flex; gap: 6px; align-items: center; }
.rcs-btn .sms-in { padding: 7px 9px; font-size: 12.5px; }
.rcs-btn select.sms-in { width: auto; flex: 0 0 auto; height: 34px; }
.rcs-btn__r input { flex: 1 1 auto; min-width: 0; }
.rcs-btn .icon-btn { flex: 0 0 auto; }
.rcs-top { justify-content: flex-start; gap: 8px; padding-top: 34px; }
.rcs-logo { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #00754A; color: #fff; display: grid; place-items: center; font-style: normal; }
.rcs-who { display: flex; flex-direction: column; min-width: 0; }
.rcs-who b { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #111827; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rcs-who b svg { color: #3b82f6; flex: 0 0 auto; }
.rcs-who small { font-size: 10px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.rcs-card { background: #f1f1f3; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.rcs-card img { display: block; width: 100%; object-fit: cover; }
.rcs-card__b { padding: 10px; color: #1f2937; }
.rcs-card__b b { display: block; font-size: 12px; color: #111827; margin-bottom: 4px; }
.rcs-card__b p { margin: 0; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rcs-card__b i { color: #9ca3af; }
.rcs-card__btns { border-top: 1px solid #e5e7eb; }
.rcs-card__btns span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; font-size: 11px; font-weight: 700; color: #2563eb; }
.rcs-card__btns span:last-child { border-bottom: 0; }
.rcs-foot { display: flex; justify-content: flex-end; padding: 0 10px 10px; }
.sms-dlg__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-dlg__res.ok { color: var(--accent-text); border: 1px solid rgba(63, 194, 140, .35); }

/* RCS 설정 · 이용안내 */
.sms-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
@container (min-width: 760px) { .sms-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sms-bform { display: flex; flex-direction: column; gap: 12px; }
.sms-fl { display: flex; flex-direction: column; gap: 6px; }
.sms-fl > span { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; }
.sms-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.sms-chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.sms-prof { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-2); }
.sms-prof img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sms-prof div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sms-prof b { font-size: 13px; }
.sms-prof small { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.sms-bform .btn-primary { justify-content: center; }
.sms-blist { list-style: none; margin: 0; padding: 0; }
.sms-blist li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sms-blist li:last-child { border-bottom: 0; }
.sms-blist li > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sms-blist p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sms-blist b { font-size: 14px; }
.sms-blist small { font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
.sms-guide { max-width: 760px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 14px; }
.sms-guide p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.sms-guide b { color: var(--text); }
.sms-steps, .sms-warns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sms-steps li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.sms-steps li:last-child { border-bottom: 0; }
.sms-steps span { color: var(--text-3); }
.sms-warns li { position: relative; padding: 5px 0 5px 18px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.sms-warns li::before { content: "!"; position: absolute; left: 2px; top: 5px; font-weight: 900; color: var(--gold); }

/* 발송 내역 (nautilus.kr 5_sendinghistory) - 표 · 받는 사람별 결과 */
.sms-hf { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.sms-hf__t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sms-hf__t small { font-size: 12px; color: var(--text-3); }
.sms-hf select.sms-in { width: auto; min-width: 12rem; }
.sms-hl { margin-top: 14px; }
.sms-hre { gap: 5px; }
.sms-tw { overflow-x: auto; }
.sms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sms-table th { text-align: left; padding: 8px 12px 8px 0; font-size: 12px; font-weight: 700; color: var(--text-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.sms-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sms-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.sms-table .mono, .sms-blist .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sms-htable td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.sms-cnt { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 13px; white-space: nowrap; }
.sms-cnt .ok { color: var(--accent-text); }
.sms-cnt .bad { color: #ff9a9d; font-weight: 700; }
.sms-cnt .warn { color: var(--gold); }
.sms-cnt .mute { color: var(--text-3); }
.sms-hst { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sms-hst.ok { color: var(--accent-text); }
.sms-hst.bad { color: #ff9a9d; }
.sms-hst.warn { color: var(--gold); }
.sms-hst.off { color: var(--text-3); }
.sms-seg--inline { align-self: flex-start; }
.sms-seg--inline button { flex: 0 0 auto; padding: 6px 14px; }
.sms-pg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; }
.sms-pg small { color: var(--text-3); }
.sms-pg > span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.sms-pg .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.sms-card h3 .btn { gap: 4px; }
.pj.sms .pj-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pj.sms .pj-seg button { white-space: nowrap; }

@media (max-width: 640px) {
  .sms-wrap { padding: 18px 14px 40px; }
  .sms-panel, .sms-card { padding: 16px; }
  .sms-sp__cnt b { font-size: 22px; }
  .sms-sp__wait { height: 52vh; }
  .sms-sp__go { height: 5.5rem; font-size: 19px; }
}

/* 제작 만들기 창 - 도구를 묶음별로 (10-07 대표님 "선택할 수 있게": 힉스필드 · Gemini · 피그마 · 자체 엔진) */
.mk-box { width: min(680px, 100%); }
.mk-grp { display: flex; flex-direction: column; gap: 6px; }
.mk-grp + .mk-grp { margin-top: 6px; }
.mk-gh { font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: .02em; }
.mk-grp .mk-engs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.mk-grp .mk-eng { padding: 9px 11px; }
.mk-grp .mk-eng b { font-size: 13.5px; }
.mk-rec { background: rgba(63, 194, 140, .14); color: var(--accent-text); }
.mk-opts label[hidden] { display: none !important; }

/* 목록 '⋯' 메뉴 - 손가락 화면에는 hover 가 없어 늘 보이게 (10-07, 프로젝트 목록에도 메뉴를 달며) */
@media (hover: none) { .cv .more { opacity: 1; } }
.cv input { color: var(--text); }

/* AI 화면 바깥 스크롤 (10-07 대표님 "스크롤이 넘 많고") - 휴대폰 가로 끌림을 막느라 html 에 overflow-x 를 준 뒤로
   body 의 overflow:hidden 이 브라우저 창까지 가지 않아, 윈도우에서 몇 px 넘치면 창 전체 스크롤바가 하나 더 생겼다. 창 자체를 묶는다 */
html:has(body.ai-mode) { overflow: hidden; }
body.ai-mode { height: 100dvh; }

/* 설정 다섯 갈래 (10-07) - 머리 줄 알약 탭은 제작·도구의 [대화|결과물] 과 같은 .pj-seg */
.st-tabs { margin: 4px 0 16px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .st-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .st-tabs button { padding: 7px 6px; font-size: 13px; border-radius: 12px; }
}
.st-av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; }
.st-gscopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px; margin-top: 4px; }
.st-gft { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.st-row .st-main code { overflow-wrap: anywhere; }
.st-row .st-main { min-width: 0; }
.st-row .st-main code { white-space: normal; word-break: break-all; }

/* ── 선거 › 선거분석·여론조사 '데이터' 칸 (10-07 밤 대표님 "기본 화면은 데이터, 그리고 AI 와 대화") - eldata.js ── */
.pj-new.data { max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 28px; }
.eld-ch .grow, .eld-rh .grow, .eld-pdh .grow, .eld-pkft .grow { flex: 1 1 auto; }
.eld-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.eld-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eld-h h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.eld-h small { color: var(--text-3); font-size: 12.5px; }
.eld-h .btn { margin-left: auto; }
.eld-pad { padding: 18px 20px; }
.eld-cap { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.eld-cap b { color: var(--text-2); }
.eld-cap a { color: var(--accent-text); }
/* 우리 지역 표 - 칸 = 1위 정당 색 */
.eld-gridcard { padding: 6px; overflow: hidden; }
.eld-gwrap { overflow-x: auto; }
.eld-gt { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.eld-gt thead th { padding: 8px 6px 4px; font-weight: 600; vertical-align: bottom; text-align: center; white-space: nowrap; }
.eld-gt thead th b { display: block; font-size: 14px; color: var(--text); }
.eld-gt thead th small { display: block; font-size: 11px; color: var(--text-3); line-height: 1.45; }
.eld-gt .eld-rn { text-align: left; padding: 6px 10px; font-weight: 700; white-space: nowrap; color: var(--text); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.eld-gt thead .eld-rn { color: var(--text-3); font-size: 12px; }
.eld-gt tr.tot .eld-rn { color: var(--accent-text); }
.eld-gc { text-align: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; min-width: 96px; transition: box-shadow .15s var(--ease); }
.eld-gc:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.eld-gc b { display: block; font-size: 13.5px; }
.eld-gc small { display: block; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.eld-gt tr.tot .eld-gc small { color: var(--text); font-weight: 700; }
.eld-gc.empty, .eld-pc.empty { color: var(--text-3); cursor: default; text-align: center; }
.eld-pch, .eld-pc { border-left: 1px solid var(--line-2); }
.eld-pc { text-align: center; padding: 7px 10px; white-space: nowrap; }
.eld-pc b { display: block; font-size: 13.5px; }
.eld-pc b.con { color: #ff5a63; }
.eld-pc b.pro { color: #7d9bff; }
.eld-pc small { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* 선거 결과 보기 */
.eld-pick { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.eld-pkrow { display: flex; gap: 10px; flex-wrap: wrap; }
.eld-pkrow label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.eld-pkrow label span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.eld-pkrow .select { min-width: 120px; max-width: 100%; }
.eld-pkft { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eld-res { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eld-rh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eld-rh h3 { margin: 0; font-size: 18px; font-weight: 800; }
.eld-rh small { color: var(--text-3); font-size: 12.5px; }
.eld-to { font-size: 13px; color: var(--text-2); }
.eld-to b { font-size: 16px; color: var(--text); margin-left: 4px; }
.eld-dist { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.eld-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.eld-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eld-stat { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eld-stat small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.eld-stat b { font-size: clamp(18px, 2vw, 25px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eld-stat span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.eld-cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.eld-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.eld-ch > b { font-size: 15.5px; }
.eld-ch small { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.eld-rk { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.eld-win, .eld-first { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: var(--pill); }
.eld-win { background: rgba(63, 194, 140, .16); color: var(--accent-text); }
.eld-first { background: var(--surface-3); color: var(--text-2); }
.eld-pt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.eld-pt i, .eld-tt th i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: 1px; }
.eld-pt i { margin-right: 0; }
.eld-cp { font-size: 16px; font-variant-numeric: tabular-nums; }
.eld-bar { height: 7px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.eld-bar i { display: block; height: 100%; border-radius: 6px; }
.eld-blk { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eld-blk h4 { margin: 0; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eld-blk h4 small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.eld-filter { margin-left: auto; max-width: 180px; padding: 6px 12px; font-size: 12.5px; }
.eld-twrap { overflow: auto; max-height: 520px; border: 1px solid var(--line-2); border-radius: 10px; }
.eld-tt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.eld-tt th, .eld-tt td { padding: 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.eld-tt thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--text-2); font-weight: 700; border-top: 0; z-index: 2; text-align: right; }
.eld-tt thead th:first-child { text-align: left; left: 0; z-index: 3; }
.eld-tt tbody th { text-align: left; font-weight: 600; color: var(--text); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.eld-tt td { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.eld-tt td small { display: block; font-size: 11px; color: var(--text-3); }
.eld-tt td.mx { color: var(--text); font-weight: 800; }
.eld-tt tr.go { cursor: pointer; }
.eld-tt tr.go:hover th, .eld-tt tr.go:hover td { background: var(--surface-2); }
.eld-src { border-top: 1px solid var(--line); padding-top: 12px; }
/* 여론조사 - 여조 패널 + 고른 조사 + 자세히 */
.pp-more { margin-left: 8px; background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pp-more:hover { text-decoration: underline; }
.eld-ptable tr.go { cursor: pointer; }
.eld-ptable tr.go:hover td { background: var(--surface-2); }
.eld-ptable tr.on td { background: rgba(63, 194, 140, .08); }
.eld-modal .modal__body { align-content: start; }
.eld-pd { width: min(980px, 100%); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.eld-pdh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eld-pdh h3 { margin: 0; font-size: 20px; font-weight: 800; }
.eld-pdh small { color: var(--text-3); font-size: 12.5px; }
.eld-pd2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.eld-xtabs { display: inline-flex; gap: 6px; margin-left: 4px; flex-wrap: wrap; }
.eld-xts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.eld-xt h5 { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.eld-xt table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.eld-xt th, .eld-xt td { padding: 6px 8px; border-top: 1px solid var(--line); }
.eld-xt thead th { color: var(--text-3); font-weight: 600; border-top: 0; text-align: right; }
.eld-xt tbody th { text-align: left; font-weight: 600; color: var(--text-2); }
.eld-xt td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 72px;
  background: linear-gradient(90deg, transparent calc(100% - var(--w)), color-mix(in srgb, var(--c) 26%, transparent) calc(100% - var(--w))); }
@media (max-width: 760px) {
  .eld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eld-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eld-pd2 { grid-template-columns: 1fr; }
  .eld-res { padding: 16px 14px; }
  .eld-pd { padding: 16px 14px; }
  .eld-pkrow label { flex: 1 1 140px; }
  .eld-pkrow .select { width: 100%; }
}
/* 선거분석·여론조사 - 가운데 데이터(+ 보고서) · 오른쪽 AI 대화 (10-08 대표님 "가운데 데이터 보면서 AI 와 대화를 오른쪽 영역 - 기초자료가 필요 없으니") */
.pj.pj-dc { grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 460px); }
.pj-dc .pj-chat { display: flex; flex-direction: column; overflow: hidden; }
.pj-chat-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pj-chat-x { display: none; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pj-chat-x .grow { flex: 1 1 auto; }
.pj-chat .cp-hello { padding: 22px 16px 6px; }
.pj-chat .ws-hello h2 { font-size: 18px; margin: 4px 0 6px; }
.pj-chat .ws-hello p { font-size: 13px; line-height: 1.6; }
.pj-chat .cp-starters { grid-template-columns: 1fr; }
.pj-chat .ai-thread { padding: 20px 14px 18px; gap: 20px; }
.pj-chat .cp-composer { padding: 8px 12px 12px; }
.pj-pane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pj-pane > .ai-scroll { min-height: 0; }
.pj-name { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; flex: 0 1 auto; }
.pj-name > b { font-size: 16px; padding: 5px 8px; }
.pj-name > small { color: var(--text-3); font-size: 12px; }
.pj-name .pj-title { flex: 0 1 380px; }
.eld-area { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.eld-area .select { max-width: 100%; }
@media (max-width: 1180px) { .pj.pj-dc { grid-template-columns: minmax(0, 1fr); } .pj-dc .pj-side { width: min(460px, 100vw); } .pj-chat-x { display: flex; } }
@media (max-width: 860px) { .pj-name { flex-basis: 100%; } .pj-name > small { display: none; } }
/* 대화창 첨부 (10-08 대표님 "개인적인 첨부 파일을 올리며 엮어서 물어볼 수 있게") - chatpanel attach · project.js chatFiles */
.cp-att { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-att:hover { color: var(--text); border-color: var(--text-3); }
.cp.drag .composer { border-color: var(--accent-text); box-shadow: 0 0 0 2px rgba(63, 194, 140, .25); }
.cp-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cp-chips-h { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.cp-chips-h b { color: var(--accent-text); }
.cp-chips-h small { color: var(--text-3); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 112px; overflow: auto; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 9px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12px; cursor: pointer; min-width: 0; }
.cp-chip:hover { border-color: var(--text-3); }
.cp-chip i { display: inline-flex; color: var(--text-3); }
.cp-chip b { font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-chip small { color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.cp-chip small .bad { color: #ff8a8f; }
.cp-chip small .warn { color: var(--gold); }
.cp-chip.up { cursor: default; }
.cp-chip.bad, .cp-chip.failed { border-color: rgba(229, 72, 77, .45); }
.cp-chip button { border: 0; background: transparent; color: var(--text-3); width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.cp-chip button:hover { color: var(--text); background: var(--surface-3); }
.cp-chip button svg { width: 12px; height: 12px; }
.cp-attrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-attrow small { font-size: 11.5px; color: var(--text-3); }
.cp-attform { display: flex; gap: 6px; align-items: center; }
.cp-attform.col { flex-direction: column; align-items: stretch; }
.cp-attform.col div { display: flex; justify-content: flex-end; gap: 6px; }
.cp-attform input, .cp-attform textarea { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line-2); background: var(--canvas-2); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--text); outline: none; resize: vertical; }
.cp-attform input:focus, .cp-attform textarea:focus { border-color: var(--accent-text); }
/* 선관위 자료 검색 - 법령정보 '자료 검색' 과 선거사무장 가운데 칸 공용 (law.js affairsSearch) */
.lw-afs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lw-ask { border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lw-ask:hover { text-decoration: underline; }
/* 법령정보 오른쪽 AI 대화 (10-08) - 머리 줄(새 대화)은 늘 보이고 '닫기' 는 서랍일 때만 */
.pj-chat-x.on { display: flex; }
.lw-mob { display: none !important; }
.lw-modes .pj-mt-btn { margin-left: 4px; }
@media (max-width: 1180px) { .lw-mob { display: inline-flex !important; } }
