:root {
  --bg: #f4f6f5; --ink: #16232b; --muted: #4b5a61; --line: #d8dedc;
  --accent: #1c6e63; --accent-soft: #e4efec; --danger: #9b3a32;
  --warn: #9c6b0b; --warn-soft: #fbf0dd; --group: #e0c489;
  --appbar-h: 48px;
  --tap: 40px;
  /* 목록은 화면 폭을 꽉 채웁니다(넓은 화면에서만 읽기 좋은 폭에서 멈춤). 예전 640px 제한은
     크롬 "데스크톱 사이트" 모드(980px로 그림)나 태블릿에서 좌우 1/3을 비워 버렸습니다. */
  --content-max: 1200px;
  --settings-max: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
button { font: inherit; color: inherit; }
/* iOS 사파리는 16px 미만 입력칸에 포커스가 가면 화면을 자동 확대합니다. */
input, select, textarea { font-size: 16px; font-family: inherit; }

/* ── 상단 바: 탭 + 메뉴(⋮) 한 줄 ─────────────────────────── */
.appbar { position: sticky; top: 0; z-index: 20; height: var(--appbar-h); display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 0 4px 0 8px; }
.appbar nav { display: flex; flex: 1; }
.appbar nav a { display: flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.appbar nav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.icon-btn { flex: none; min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.appbar .icon-btn { align-self: center; }
.menu { position: absolute; top: calc(var(--appbar-h) - 4px); right: 6px; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu button { text-align: left; background: none; border: none; padding: 12px; font-size: 15px; border-radius: 6px; cursor: pointer; }
.menu button:active { background: var(--bg); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }

/* ── 공통 버튼 ─────────────────────────────────────────────── */
.btn { min-height: 36px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn.active, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.saved { border-color: var(--accent); color: var(--accent); }

/* ── 날짜 줄 (스크롤하면 자연스럽게 위로 사라짐) ──────────── */
.datebar { max-width: var(--content-max); margin: 0 auto; padding: 10px 12px 0; display: flex; gap: 6px; align-items: center; }
.datebar .icon-btn { border: 1px solid var(--line); background: #fff; font-size: 14px; min-height: 40px; }
.datebar input[type="date"] { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.datebar .btn { min-height: 40px; padding: 0 10px; }
.datebar[hidden] { display: none; }
.datebar .tilde { flex: none; color: var(--muted); }
.searchbar { max-width: var(--content-max); margin: 0 auto; padding: 8px 12px 0; display: flex; gap: 6px; }
.searchbar input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.searchbar .btn { min-height: 40px; }
.notice { margin: 4px 0 8px; padding: 8px 10px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; font-size: 13px; }

/* ── 칩 + 요약 줄: 목록을 내려도 계속 보이게 고정 ─────────── */
.toolbar { position: sticky; top: var(--appbar-h); z-index: 10; background: var(--bg); max-width: var(--content-max); margin: 0 auto; padding: 8px 12px 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 36px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips .count { opacity: 0.65; margin-left: 4px; font-size: 12px; }
.chips .none { font-size: 13px; color: var(--muted); padding: 8px 2px; }
.summary { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.summary span { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }

/* ── 기사 목록 ─────────────────────────────────────────────── */
main { max-width: var(--content-max); margin: 0 auto; padding: 4px 12px 12px; }
#empty { text-align: center; color: var(--muted); padding: 40px 0; }
.row { display: flex; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); border-top: none; padding: 9px 0 9px 10px; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#list > .row:first-child, #list > .group + .row, .group > .row:first-of-type { border-top: 1px solid var(--line); }
.row.checked { background: #fdeeec; }
/* 체크 칸에서 시작한 드래그는 스크롤이 아니라 선택으로 처리합니다 (touch-action: none). */
.row .check { flex: none; display: flex; padding: 2px 8px 8px 4px; touch-action: none; }
.row input[type="checkbox"] { pointer-events: none; margin: 1px 0 0; width: 20px; height: 20px; accent-color: var(--danger); }
/* 제목만 보고 빠르게 훑는 화면이라 두 줄 안에 들어가는 밀도를 우선합니다. */
.row .t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.row .t .m { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row .corp.top { color: var(--accent); font-weight: 600; }
.row .dupbtn { background: none; border: none; padding: 0; font: inherit; color: var(--warn); text-decoration: underline; cursor: pointer; }
/* ☆·원문은 행 탭(선택 토글)과 붙어 있어서 누르는 영역을 넉넉히 잡습니다. */
.row .fav { flex: none; width: 34px; height: 36px; margin: -6px 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.row .fav.on { color: var(--accent); }
.row .link { flex: none; height: 30px; margin: -3px 2px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.memo, .body-view { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.memo { min-height: 72px; resize: vertical; }
.body-view { max-height: 180px; overflow-y: auto; background: var(--bg); color: var(--muted); white-space: pre-wrap; font-size: 14px; }

/* 유사 묶음: 한 덩어리로 감싸고 묶음 사이를 띄워서 경계를 분명히 합니다. */
.group { margin: 10px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--group); border-left-width: 4px; background: #fff; }
.group .row { border-left: none; border-right: none; }
.group > .row:first-of-type { border-top: none; }
.group > :last-child { border-bottom: none; }
.group-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; background: var(--warn-soft); font-size: 13px; color: var(--warn); border-bottom: 1px solid var(--line); }
.group-head span { flex: 1; min-width: 0; }
.group-head .btn { min-height: 32px; font-size: 13px; padding: 0 10px; }

/* ── 하단 선택 작업 바: 분류 지정 / 삭제 (아이폰 홈 인디케이터 영역 확보) ── */
#actionBar { position: sticky; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: none; }
.action-inner { display: flex; gap: 8px; max-width: calc(var(--content-max) - 24px); margin: 0 auto; }
#bulkClassify, #deleteConfirm { flex: 1; min-width: 0; min-height: 48px; border-radius: 10px; font-size: 16px; font-weight: 600; }
/* 네이티브 select를 버튼처럼 — 아이폰에서는 휠 선택기가 떠서 손으로 고르기 편합니다. */
#bulkClassify { -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center; padding: 0 10px; background: var(--accent); color: #fff; border: none; }
#deleteConfirm { background: var(--danger); color: #fff; border: none; }

/* ── 분류 필터 줄 (날짜 줄과 함께 위로 스크롤돼 사라짐) ─────── */
.classbar { max-width: var(--content-max); margin: 0 auto; padding: 8px 12px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.classbar::-webkit-scrollbar { display: none; }
.classbar button { flex: none; min-height: 34px; padding: 0 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.classbar button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.classbar .count { margin-left: 4px; font-size: 12px; opacity: 0.65; }
.classbar button.zero { color: var(--muted); }
.row .cls-tag { color: var(--ink); font-weight: 600; }

/* ── 아래에서 올라오는 시트 (오디오 변환, 복사 대체 화면) ── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 640px; background: #fff; border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
.sheet h2 { font-size: 17px; margin: 0 0 4px; display: flex; align-items: center; }
.sheet h2 span { flex: 1; }
.sheet .desc { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.sheet input[type="file"] { width: 100%; margin-bottom: 10px; }
.sheet textarea { width: 100%; height: 50vh; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 16px; }
.sheet .btn { min-height: 44px; width: 100%; }
.status { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 14px; }
}

/* ── 가이드 ────────────────────────────────────────────────── */
.guide-btn { align-self: center; flex: none; min-height: 32px; padding: 0 12px; margin-right: 2px; background: var(--accent-soft); color: var(--accent); border: none; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.guide .steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.guide .steps li { counter-increment: step; position: relative; padding: 0 0 16px 38px; }
.guide .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide .steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 2px; background: var(--accent-soft); }
.guide h3 { font-size: 15px; margin: 2px 0 6px; }
.guide p { font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.guide .note { font-size: 13px; color: var(--muted); }
.guide blockquote { margin: 4px 0 8px; padding: 8px 12px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 14px; }
.guide .btn { width: auto; min-height: 40px; margin-top: 2px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.45; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ── 설정 화면 ─────────────────────────────────────────────── */
.intro { max-width: var(--settings-max); margin: 12px auto 0; font-size: 14px; color: var(--muted); line-height: 1.6; padding: 0 16px; }
.intro a { color: var(--accent); }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 12px; }
@media (min-width: 784px) { .tool { max-width: calc(var(--settings-max) - 24px); margin: 12px auto; } }
.tool h2 { font-size: 16px; margin: 0 0 4px; }
.tool .desc { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.55; }
.tool input[type="text"], .tool input[type="password"], .tool input[type="number"], .tool input[type="search"], .tool select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tool > input { margin-bottom: 8px; }
.tool .btn { min-height: 44px; }

.mgmt-add { display: flex; gap: 6px; margin-bottom: 8px; }
.mgmt-add input { flex: 1; min-width: 0; }
.mgmt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mgmt-row:last-child { border-bottom: none; }
.mgmt-row .full { flex: 1 1 100%; }
.mgmt-row .domain { flex: 1 1 100%; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mgmt-row .grow { flex: 1; min-width: 0; }
.mgmt-row .num { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tool .mgmt-row .num input { width: 64px; padding: 0 8px; }
.mgmt-row label.use { display: flex; align-items: center; gap: 5px; font-size: 14px; min-height: 44px; }
.mgmt-row label.use input { width: 20px; height: 20px; accent-color: var(--accent); }
.mgmt-row .spacer { flex: 1; }
.list-meta { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.corp-filter { display: flex; gap: 6px; }
.corp-filter input { flex: 1; min-width: 0; }
.tool .corp-filter select { width: auto; flex: none; }
.more-btn { width: 100%; margin-top: 8px; }
#keywordEmpty, #corpEmpty { font-size: 13px; color: var(--muted); padding: 10px 0; }

@media (min-width: 560px) {
  .mgmt-row .full { flex: 1 1 auto; }
  .mgmt-row .domain { flex: 0 0 38%; }
}
#list > .notice + .row, #list > .notice + .group { margin-top: 0; }
#list > .notice + .row { border-top: 1px solid var(--line); }

/* 휴대폰이 "데스크톱 사이트" 모드로 열렸을 때 끄는 법 안내 (app.js가 감지해서 표시) */
.desktop-mode-hint { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 10px 12px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.desktop-mode-hint[hidden] { display: none; }
.desktop-mode-hint span { flex: 1; }
.desktop-mode-hint { padding: .7em .85em; border-radius: .6em; margin: .6em 12px 0; }
.desktop-mode-hint .icon-btn { font-size: 1.2em; min-width: 2.2em; min-height: 2.2em; color: var(--warn); }
/* 휴대폰은 날짜 칸을 누르면 달력이 뜨므로(common.js가 showPicker로 엽니다) 아이콘을 빼고 그 폭을 날짜 글자에 씁니다
   (360px에서 기간 두 칸이 나란히 들어가도록). */
@media (pointer: coarse) {
  .datebar input[type="date"] { padding: 0 6px; text-align: center; }
  .datebar input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
}

/* ── 링크를 버튼처럼 ───────────────────────────────────────── */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
a.btn.primary { color: #fff; }

/* ── 블로그 탭 ─────────────────────────────────────────────── */
/* 복사 버튼과 "본문 없음" 건수는 목록을 내려도 계속 보이게 고정합니다. */
.blogbar { position: sticky; top: var(--appbar-h); z-index: 10; background: var(--bg); max-width: var(--content-max); margin: 0 auto; padding: 10px 12px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.blog-counts { flex: 1 1 200px; font-size: 14px; color: var(--muted); }
.blog-counts b { color: var(--ink); }
.blog-counts a { color: var(--accent); }
.c-warn { color: var(--danger); font-weight: 600; }
.c-ok { color: var(--accent); }
.c-info { color: var(--muted); }
.blog-actions { display: flex; gap: 6px; }
.blog-actions .btn { min-height: 44px; font-size: 15px; }
#copyBtn { font-weight: 600; }
#copyBtn:disabled { opacity: .45; cursor: default; }
#copyBtn.confirm { background: var(--danger); border-color: var(--danger); }
.copy-warn { max-width: calc(var(--content-max) - 24px); margin: 0 12px 8px; padding: 8px 10px; background: #fdeeec; color: var(--danger); border-radius: 8px; font-size: 13px; line-height: 1.5; }
@media (min-width: 1224px) { .copy-warn { margin: 0 auto 8px; } }
.copy-warn[hidden] { display: none; }

#blogList { max-width: var(--content-max); margin: 0 auto; padding: 4px 12px 12px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.bcard.need { border-color: #e2b4ae; border-left: 4px solid var(--danger); }
.bcard-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.bcard-top .spacer { flex: 1; }
.bcard-top select { height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge[hidden] { display: none; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: #fdeeec; color: var(--danger); }
.badge.info { background: var(--bg); color: var(--muted); font-weight: 500; }
.unfav { width: 36px; height: 36px; border: none; background: none; color: var(--accent); font-size: 20px; cursor: pointer; border-radius: 8px; }
.btitle { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); text-decoration: none; }
.bmeta { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.bfix { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bfix .btn { flex: 1 1 0; min-height: 40px; padding: 0 8px; }
.paste { margin-bottom: 8px; }
.paste[hidden] { display: none; }
.paste textarea { width: 100%; min-height: 40vh; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 6px; }
.paste .btn { min-height: 40px; }
.paste-actions { display: flex; justify-content: flex-end; gap: 6px; }
.bbody .bfix { margin: 8px 0 0; }
.bbody summary { cursor: pointer; font-size: 13px; color: var(--accent); padding: 4px 0; }
.bbody .body-view { margin-top: 4px; }
.bcard .memo { margin-top: 4px; min-height: 60px; }
.tool#audio { margin-top: 20px; }
@media (min-width: 784px) { .tool#audio, .tool#video { max-width: calc(var(--content-max) - 24px); } }
.tool#video textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; line-height: 1.4; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.video-meta .over { color: var(--danger); font-weight: 600; }
.video-meta .btn { min-height: 36px; }
.video-copy { display: flex; gap: 6px; }
.tool#video input[type="url"] { width: 100%; height: 44px; padding: 0 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.video-actions { display: flex; gap: 8px; }
.video-actions .btn { flex: 1 1 0; }
.thumb-preview { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }
.thumb-preview[hidden] { display: none; }
.tool .upload-link { width: 100%; margin-top: 12px; }
/* 복사 · 오디오 소스 · 새 창 세 버튼이 좁은 화면에서도 한 줄에 들어가게 */
@media (max-width: 559px) {
  .blog-actions { flex: 1 1 100%; }
  .blog-actions .btn { flex: 1 1 auto; padding: 0 10px; }
  #openExportBtn { flex: 0 0 auto; }
}
.blog-actions .btn.confirm { background: var(--danger); border-color: var(--danger); color: #fff; }
.blog-actions .btn.busy { opacity: .6; }
.audio-result { max-width: calc(var(--content-max) - 24px); margin: 0 12px 8px; padding: 8px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.audio-result[hidden] { display: none; }
.audio-result a { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (min-width: 1224px) { .audio-result { margin: 0 auto 8px; } }

/* ── 구글시트 정리 확인 화면 ───────────────────────────────── */
.preview-sheet { margin-bottom: 14px; }
.preview-sheet h3 { font-size: 15px; margin: 0 0 6px; }
.preview-sheet h3 span { font-weight: 400; color: var(--muted); font-size: 13px; }
.preview-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.pv-head { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.pv-head span { flex: 1; }
.pv-head input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.pv-meta { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.pv-field { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pv-field input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 420px) { .pv-field { flex-wrap: wrap; } .pv-field input { flex: 1 1 100%; } }
#sheetSendBtn { width: 100%; min-height: 48px; margin-top: 4px; }
#sheetSendBtn:disabled { opacity: .45; }
#sheetPreview { max-height: 55vh; overflow-y: auto; margin-bottom: 12px; }
/* 유사 묶음만 보기 칩 — 분류 칩과 구분되게 묶음 색을 씁니다. */
.classbar .dup-chip { margin-right: 4px; border-color: var(--group); color: var(--warn); }
.classbar .dup-chip.active { background: var(--warn); border-color: var(--warn); color: #fff; }
.classbar .dup-chip.zero { color: var(--muted); border-color: var(--line); }

/* ── 일반 사용자 화면 (읽기 전용: 선택이 없으니 행은 평범한 글처럼) ── */
.appbar .brand { flex: 1; display: flex; align-items: center; padding: 0 6px; font-size: 16px; font-weight: 700; color: var(--accent); }
.appbar .login-link { display: inline-flex; align-items: center; margin-right: 6px; text-decoration: none; }
.view .row { cursor: default; -webkit-user-select: text; user-select: text; padding-right: 8px; align-items: center; }
