/* NewsDRO 화면 — 화면 초안 v3의 색 · 글꼴 · 크기를 그대로 옮김 */
:root {
  --navy: #1E2A55; --navy-dark: #0F1633; --logo: #262A68;
  --ink: #1A1D24; --muted: #5B6474; --muted2: #3F4756; --link-blue: #3B4F9A;
  --line: #E1E6ED; --line2: #C9D3DF; --line3: #D3D9E4; --line-soft: #EEF1F5;
  --bg: #F4F6F9; --soft: #EEF1FA; --pick: #F0F3FA; --chip: #EEF1F6;
  --abroad-bg: #E3F0FF; --abroad-fg: #1D4E89; --ok-bg: #E6F4EA; --ok-fg: #1F6B3A;
  --warn-bg: #FFF4E0; --warn-fg: #8A4B00; --bad: #9B1C1C;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, sans-serif; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
button, input, textarea { font-family: inherit; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 머리 */
.top { background: #FFF; border-bottom: 1px solid var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.logo { font-size: 20px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .5px; }
.logo span { font-weight: 500; }
.room-pill { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
nav.tabs { display: flex; flex-wrap: wrap; gap: 2px; }
nav.tabs a { padding: 10px 12px; font-size: 15px; color: var(--muted2); text-decoration: none; border-bottom: 2px solid transparent; }
nav.tabs a[aria-current=page] { font-weight: 700; color: var(--navy); border-bottom-color: var(--navy); }
nav.tabs .soon { padding: 10px 12px; font-size: 15px; color: #9AA3B2; }
.me { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--navy); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 20px 24px 48px; }

/* 단추 · 칩 */
.btn { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #FFF; font-weight: 700; }
.btn.outline { border: 2px solid var(--navy); font-weight: 700; }
.btn.danger { color: var(--bad); border-color: #E8C4C4; }
.btn:disabled { opacity: .45; cursor: default; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--muted2); }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip.draft { background: var(--warn-bg); color: var(--warn-fg); }
.chip.abroad { background: var(--abroad-bg); color: var(--abroad-fg); }
.chip.paid { background: #FDECEC; color: var(--bad); }
.tabchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.tabchips a { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.tabchips a[aria-current=true] { background: var(--navy); border-color: var(--navy); color: #FFF; }

/* 편집 화면 */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.bar h1 { margin: 0; font-size: 24px; line-height: 32px; }
.daynav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: #FFF; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
details.hist { position: relative; }
details.hist > summary { list-style: none; height: 36px; }
details.hist .hist-list { position: absolute; z-index: 5; top: 42px; left: 0; width: min(420px, 86vw); max-height: 320px; overflow: auto;
  background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; box-shadow: 0 6px 24px rgba(15, 22, 51, .12); }
.tags { font-size: 12px; color: var(--link-blue); }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.more { display: block; padding: 14px 20px; text-align: center; font-size: 14px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 22px; }
.aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted2); }
.field input, .field textarea { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink); background: #FFF; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field .hint { font-size: 12px; font-weight: 400; color: var(--muted); }

/* 미리보기 · 공유용 링크 페이지 */
.pv { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 16px; }
.pv-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pv-label h2 { margin: 0; font-size: 16px; }
.brief-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 4px double var(--navy); }
.brief-title { font-size: 20px; font-weight: 700; line-height: 28px; }
.brief-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.brief-head img { height: 48px; width: auto; }
.greet { font-size: 15px; line-height: 24px; margin: 14px 0 4px; white-space: pre-line; }
.sec { margin: 16px 0 0; padding: 6px 0 4px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--logo); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 21px; }
.row .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.share-top { max-width: 760px; margin: 0 auto; padding: 20px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.paper { max-width: 760px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 44px) 32px; background: #FFF; border: 1px solid var(--line); border-radius: 4px; }
.paper .brief-title { font-size: 28px; line-height: 38px; }
.paper .brief-head img { height: 64px; }
.paper .row { font-size: 16px; line-height: 25px; padding: 10px 0; }
.paper .row a { color: var(--ink); text-decoration: none; }
.paper .row a:hover { text-decoration: underline; }
.paper .sec { font-size: 17px; margin-top: 24px; }
.made { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 28px; font-size: 12px; color: var(--muted); }
@media print { .share-top, .no-print { display: none; } body { background: #FFF; } .paper { border: none; } }

/* 외부 공유하기 */
.sheet { max-width: 900px; margin: 0 auto; background: #FFF; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.sheet h1 { margin: 0; font-size: 22px; }
.sheet-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.sheet-cols > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card { display: block; border: 1px solid var(--line3); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); }
.card-top { height: 76px; padding: 0 18px; border-bottom: 3px double var(--logo); color: var(--logo); display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; }
.card-top img { height: 48px; }
.card-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.card-body .u { font-size: 12px; color: var(--link-blue); word-break: break-all; }
.bubble { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #F1F4F8; font-size: 14px; line-height: 21px; white-space: pre-line; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 200px; }

/* 표(보관함) · 방 목록 */
.panel { background: #FFF; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.roomcard { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.roomcard:hover { border-color: var(--navy); }
.roomcard b { font-size: 17px; }

@media (max-width: 640px) {
  .top-in, .wrap { padding-left: 16px; padding-right: 16px; }
  .sheet { padding: 20px 16px; border-radius: 14px; }
}

/* 브리핑 모양 고르기(미리보기 · 공유 링크) */
.st-c-navy .st-title { color: var(--navy); }
.st-c-ink .st-title { color: var(--ink); }
.st-c-blue .st-title { color: #1D4E89; }
.st-title { font-weight: 500; }  /* 공유 페이지(share.html)와 같은 굵기(초안 500) · '제목 굵기'를 끄면 400 */
.st-thin .st-title { font-weight: 400; }
.st-s-s .row { font-size: 13px; }
.st-s-l .row { font-size: 17px; line-height: 27px; }
.paper.st-s-s .row { font-size: 14px; }
.paper.st-s-l .row { font-size: 18px; }
.stylebox { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; }
.stylebox select { font-family: inherit; }
.urladd summary { list-style: none; cursor: pointer; }
.urladd summary::-webkit-details-marker { display: none; }
.urlform { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; min-width: 260px; }

/* 접기 묶음(방 설정 · 관리자 화면) */
details.fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted2); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '펴기 ▾'; font-size: 12px; font-weight: 400; color: var(--muted); }
details.fold[open] > summary::after { content: '접기 ▴'; }
details.fold.box { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details.fold.box .stylebox { padding: 10px 0 2px; }
.item .sugg { font-size: 12px; color: var(--warn-fg); }
.sec-edit { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font-family: inherit; cursor: pointer; }
.sec-edit:hover { color: var(--navy); }
.secpick { flex-basis: 100%; margin-top: 4px; font-family: inherit; font-size: 12px; color: var(--muted2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #FFF; max-width: 100%; }
.inline-name { font-family: inherit; font-size: 13px; border: 1px solid var(--navy); border-radius: 8px; padding: 4px 8px; margin: 4px 0; width: 100%; }
.pv .row { flex-wrap: wrap; }

/* 보관함: 카드 목록(휴대폰에서도 줄을 누르면 그 브리핑이 열림) */
.arch { display: flex; flex-direction: column; gap: 10px; }
.arch-row { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.arch-main { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-decoration: none; color: var(--ink); padding: 4px 0; }
.arch-main:hover .arch-title { text-decoration: underline; }
.arch-day { font-weight: 700; color: var(--navy); white-space: nowrap; }
.arch-title { font-weight: 500; }
.arch-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
details.moreact { position: relative; }
details.moreact > summary { list-style: none; }
details.moreact > summary::-webkit-details-marker { display: none; }
.moreact-list { position: absolute; right: 0; top: 40px; z-index: 5; background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 24px rgba(15, 22, 51, .12); white-space: nowrap; }
.moreact-list form { margin: 0; }
.moreact-list .btn { width: 100%; justify-content: flex-start; }
/* 선호 매체 고르기(정기 수집): 고른 칩 · 찾기 목록 · 자주 나온 매체 */
.outpicked { display: flex; flex-wrap: wrap; gap: 6px; }
.outpicked:empty { display: none; }
.outchip { font-size: 14px; padding: 0 0 0 12px; height: 34px; gap: 2px; color: var(--navy); }
.outchip button { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.outfind { position: relative; }
.outfind input { width: 100%; height: 44px; }
.outlist { position: absolute; left: 0; right: 0; top: 48px; z-index: 5; background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; box-shadow: 0 6px 24px rgba(15, 22, 51, .12); }
.outlist[hidden] { display: none; }
.outlist button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); text-align: left; cursor: pointer; }
.outlist button:first-child, .outlist button:hover { background: var(--pick); }
.outlist button .chip { margin-left: auto; }
.outtop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.outadd { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 14px; cursor: pointer; }
.outadd[hidden] { display: none; }


/* ── 브리핑 편집: 화면 초안 그대로 (PC = WebEditor, 휴대폰 · 텔레그램 안 = TgPick) ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-only, .ed-mtop, .ed-mbar, .ed-right > summary { display: none; }
.ed { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 40px; }
.ed form.inline { display: inline; margin: 0; }
.ed details > summary { list-style: none; cursor: pointer; }
.ed details > summary::-webkit-details-marker { display: none; }
/* 맨 위 말로 찾기 */
.ed-ask { padding: 18px 20px; background: #FFF; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.ed-askrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ed-askin { flex: 1 1 480px; display: flex; }
.ed-askin input { width: 100%; height: 52px; border: 2px solid var(--navy); border-radius: 12px; padding: 0 16px; font-size: 17px; color: var(--ink); background: #FFF; }
.ed-askin input:focus { outline: 2px solid #9AA9D6; outline-offset: 1px; }
.ed-askgo { height: 52px; padding: 0 26px; border-radius: 12px; border: none; background: var(--navy); color: #FFF; font-size: 16px; font-weight: 700; cursor: pointer; }
/* 찾기 칩 줄(편집 화면 · 찾기 화면 같이): 기간 · 어디 · 매체 · 추천. 칸 · 단추 52px(휴대폰 44px), 칩 34px(휴대폰 32px) */
.ak-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ak-note { margin: 0; font-size: 13px; color: var(--bad); }
.ak-note[hidden] { display: none; }
.ak-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ak-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ak-row.wide { flex-basis: 100%; }
.ak-k { flex: 0 0 auto; min-width: 30px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ak-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ak-chip { position: relative; flex: 0 0 auto; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); display: inline-flex; align-items: center; font-size: 13px; font-family: inherit; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ak-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ak-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #FFF; font-weight: 700; }
.ak-chip:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.ak-chip.off { opacity: .45; cursor: default; }
.ak-chip.add { border-style: dashed; border-color: #8A94A6; }
.ak-chip.kw { background: var(--soft); border-color: var(--soft); }
.ak-chip.link { padding: 0 6px; border-color: transparent; background: none; color: var(--muted2); text-decoration: underline; }
.ak-find { position: relative; flex-basis: 100%; }
.ak-find[hidden] { display: none; }
.ak-find input, .ak-in { width: 100%; max-width: 480px; height: 44px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; font-size: 15px; font-family: inherit; color: var(--ink); background: #FFF; min-width: 0; }
.ak-find input:focus, .ak-in:focus, .ak-dates input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.ak-list { position: absolute; left: 0; top: 48px; z-index: 16; width: min(480px, 100%); background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(15, 22, 51, .14); }
.ak-list[hidden] { display: none; }
.ak-list button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.ak-list button:first-child, .ak-list button:hover { background: var(--pick); }
.ak-list button .chip { margin-left: auto; }
.ak-dates { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.ak-dates input { width: 150px; min-width: 0; height: 34px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 13px; color: var(--ink); background: #FFF; }
/* 찾기 화면(/rooms/N/ask) */
.ask-page { max-width: 880px; display: flex; flex-direction: column; gap: 16px; }
.ask-card { padding: 18px 20px; background: #FFF; border: 1px solid var(--line); border-radius: 16px; gap: 14px; }
.ask-card .ak-k { width: 44px; }
.ask-notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; line-height: 21px; }
.ask-ai, .ask-save { height: 52px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--navy); background: #FFF; color: var(--navy); font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
.ask-go { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-help { margin: 0; font-size: 12px; line-height: 19px; color: var(--muted); }
.ed-plan { padding: 10px 14px; border-radius: 12px; background: var(--pick); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.ed-plan b { color: var(--navy); }
.ed-sbtn { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.ed-sbtn.strong { border-color: var(--navy); font-weight: 700; }
.ed-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-quick-l { font-size: 13px; color: var(--muted); margin-right: 4px; }
.ed-quick a { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; }
.ed-quick a[aria-current=true] { background: var(--navy); border-color: var(--navy); color: #FFF; }
.ed-quick a.ed-morecat { height: auto; padding: 6px; border: 0; background: none; text-decoration: underline; }
/* 날짜 줄 */
.ed-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ed-dayl, .ed-dayr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-dayr { gap: 8px; }
.ed-dnav { width: 40px; height: 40px; border: 1px solid var(--line3); border-radius: 10px; background: #FFF; display: flex; align-items: center; justify-content: center; }
.ed-day h1 { margin: 0 6px; font-size: 22px; line-height: 30px; }
.ed-state { margin-left: 6px; padding: 4px 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 12px; font-weight: 700; }
.ed-state.ok { background: var(--ok-bg); color: var(--ok-fg); }
.ed-dayr details.hist > summary { height: auto; padding: 10px 8px; font-size: 14px; color: var(--navy); text-decoration: underline; }
.ed-dayr details.hist .hist-list { left: auto; right: 0; }
.ed-link { padding: 10px 8px; font-size: 14px; }
.ed-dayr form { margin: 0; }
.ed-share { height: 44px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--navy); color: #FFF; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ed-share:disabled, .ed-mshare:disabled { opacity: .45; cursor: default; }
/* 2단: 모은 기사 | 미리보기 */
.ed-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.ed-list { flex: 999 1 600px; min-width: 0; background: #FFF; border: 1px solid var(--line); border-radius: 14px; }
.ed-lhead { padding: 16px 20px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ed-lhead h2 { margin: 0; font-size: 17px; }
.ed-picked { font-size: 14px; color: var(--navy); font-weight: 700; }
.ed-bd { font-size: 13px; color: var(--muted); }
.ed-bd:has(> span:empty) { display: none; }
.ed-url { position: relative; align-self: center; }
.ed-url > summary { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px dashed #8A94A6; background: #FFF; color: var(--navy); font-size: 13px; display: flex; align-items: center; }
.ed-pop { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; min-width: 180px; background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(15, 22, 51, .14); }
.ed-pop.right { left: auto; right: 0; }
.ed-pop a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ed-pop a:hover, .ed-pop a[aria-current=true] { background: var(--pick); color: var(--navy); font-weight: 700; }
.ed-pop.urlform { min-width: 300px; padding: 12px; gap: 8px; }
.ed-tabs { padding: 0 20px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ed-tabs a { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; }
.ed-tabs a[aria-current=true] { background: var(--navy); border-color: var(--navy); color: #FFF; }
.ed-tabs.sub a { height: 32px; padding: 0 12px; font-weight: 400; background: var(--soft); border-color: var(--soft); }
.ed-tabs.sub a span:last-child { color: var(--muted); font-size: 12px; }
.ed-tabs.sub a[aria-current=true] { background: var(--navy); border-color: var(--navy); color: #FFF; font-weight: 700; }
.ed-tabs.sub a[aria-current=true] span:last-child { color: #DDE3F3; }
.ed-tools { padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; background: #F8F9FB; border-top: 1px solid #E6EAF0; border-bottom: 1px solid #E6EAF0; font-size: 13px; color: var(--muted2); }
.ed-check { min-height: 36px; display: flex; align-items: center; gap: 6px; color: var(--muted2); text-decoration: none; }
.ed-check i { width: 18px; height: 18px; border: 1.5px solid #767F8F; border-radius: 4px; background: #FFF; display: inline-flex; align-items: center; justify-content: center; }
.ed-check[aria-checked=true] i { background: var(--navy); border-color: var(--navy); }
.ed-check[aria-checked=true] i::after { content: ''; width: 5px; height: 10px; border: solid #FFF; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.ed-drop { position: relative; }
.ed-drop > summary { height: 36px; border: 1px solid var(--line2); border-radius: 10px; background: #FFF; padding: 0 10px; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
.ed-hint { color: var(--muted); }
.ed-sort-fixed { font-weight: 700; color: var(--navy); }
.ed-list .asked { padding: 10px 20px; background: var(--soft); font-size: 14px; line-height: 21px; color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.ed-list .asked a { margin-left: 6px; white-space: nowrap; }
.ed-list .asked.bad { color: var(--bad); background: #FDECEC; }
/* 기사 줄 */
.item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 20px 8px; border-bottom: 1px solid var(--line-soft); background: #FFF; }
.item.on { background: var(--pick); }
.item input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.item .body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.item .t { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: #B7C0CE; text-underline-offset: 3px; }
.item .t .ext { margin-left: 4px; vertical-align: -1px; }
.item .why { font-size: 12px; line-height: 18px; color: var(--link-blue); }
.item .side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; line-height: 18px; color: var(--muted); text-align: right; max-width: 240px; }
.item .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.item .tags { display: flex; gap: 4px; font-size: 12px; color: inherit; }
.item .chip { padding: 0 7px; border-radius: 8px; font-size: 12px; line-height: 18px; }
.item .chip.paid { background: #F3E8FF; color: #5B2A86; }
.item .src { display: flex; align-items: center; gap: 4px; color: var(--muted2); }
.item .pf { display: inline-flex; align-items: center; gap: 2px; }
.item .pf-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.item .dom { font-size: 12px; color: var(--link-blue); word-break: break-all; }
details.similar { padding: 0 20px 10px 54px; border-bottom: 1px solid var(--line-soft); }
.item + details.similar { margin-top: -1px; border-top: 0; }
details.similar > summary { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 12px; font-weight: 700; }
details.similar[open] > summary::before { content: '접기 · '; }
details.similar .item.sim { margin: 6px 0 0 -34px; padding: 10px 0 8px 0; border-bottom: 0; border-top: 1px dashed var(--line); background: transparent; }
details.similar .item.sim.on { background: var(--pick); }
.ed-list .more { display: block; padding: 14px 20px; text-align: center; font-size: 13px; color: var(--muted); }
.ed-list .empty { padding: 40px 20px; }
/* 오른쪽: 맨 위 글 · 미리보기 · 모양 */
.ed-right { flex: 1 1 360px; min-width: 0; }
.ed-right[open] { display: flex; flex-direction: column; gap: 16px; }
.ed-card { padding: 16px; background: #FFF; border: 1px solid var(--line); border-radius: 14px; }
.ed-greet { display: flex; flex-direction: column; gap: 8px; }
.ed-greet label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted2); }
.ed-greet textarea, .ed-name input { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 21px; font-weight: 400; color: var(--ink); resize: vertical; }
.ed-greet .hint { font-size: 12px; color: var(--muted); }
.ed-name > summary { font-size: 12px; color: var(--navy); text-decoration: underline; }
.ed-name[open] { display: flex; flex-direction: column; gap: 6px; }
.ed-right .pv { padding: 0 0 16px; overflow: hidden; }
.ed-right .pv > * { margin-left: 16px; margin-right: 16px; }
.ed-right .pv > .pv-label { margin: 0 0 0; padding: 10px 16px; background: #F8F9FB; border-bottom: 1px solid #E6EAF0; align-items: center; gap: 8px; }
.ed-right .pv-label h2 { font-size: 15px; }
.ed-right .pv-label .small { font-size: 12px; text-align: right; }
.ed-right .brief-head { padding: 14px 2px 6px; border-bottom: 2px solid var(--navy); }
.ed-right .brief-title { font-size: 18px; line-height: 26px; }
.ed-right .brief-sub { font-size: 12px; line-height: 18px; margin-top: 2px; }
.ed-right .brief-head img { height: 36px; }
.ed-right .greet { margin-top: 12px; margin-bottom: 4px; font-size: 13px; line-height: 20px; }
.ed-right .sec { margin-top: 10px; padding: 0; border-bottom: 0; font-size: 13px; color: var(--navy); }
.ed-right .sec-edit { width: calc(100% - 32px); }
.ed-right .row { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 8px 0; font-size: 13px; line-height: 19px; }
.ed-right .row .meta { font-size: 11px; line-height: 16px; white-space: normal; }
.ed-right .pv > .empty { padding: 28px 0 12px; font-size: 13px; }
.ed-right .pv > .btn.sm { width: auto; }
.ed .stylebox { padding: 14px 16px; gap: 8px; font-size: 13px; }
.ed .stylebox b { margin-right: 4px; }
.ed-opt { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line3); background: #FFF; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ed-opt select { border: 0; background: none; font-size: 13px; color: var(--navy); font-weight: 700; padding: 0; cursor: pointer; }
.ed-opt input { margin: 0; accent-color: var(--navy); }

/* 휴대폰 · 텔레그램 안(TgPick): 닫기 줄 · 찾기 · 날짜 · 칩 한 줄 · 목록 · 아래 고정 'N개 골랐음 + 외부 공유하기' */
@media (max-width: 899px) {
  body:has(.ed) { background: #FFF; }
  .ed-webtop, .pc-only, .ed-quick { display: none !important; }
  .m-only { display: inline; }
  .ed-mtop { height: 52px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #F7F8FA; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 12; }
  .ed-close { height: 44px; padding: 0 12px; display: flex; align-items: center; font-size: 15px; color: var(--navy); text-decoration: none; }
  .ed-mroom { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ed-menu { position: relative; }
  .ed-menu > summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .ed { padding: 0 0 calc(84px + env(safe-area-inset-bottom)); gap: 0; background: #FFF; }
  .ed-ask { padding: 10px 16px 6px; border: 0; border-radius: 0; gap: 8px; }
  .ed-askrow { flex-wrap: nowrap; gap: 8px; }
  .ed-askin { flex: 1 1 auto; min-width: 0; }
  .ed-askin input { height: 44px; padding: 0 12px; font-size: 16px; }
  .ed-askgo { height: 44px; padding: 0 14px; font-size: 14px; }
  .ed-plan { padding: 8px 10px; gap: 4px 10px; font-size: 12px; }
  .ak-opts { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }  /* 한 줄 묶음이라야 줄 폭이 화면 폭(가장 긴 칩 줄 길이로 늘지 않음) */
  .ak-row { gap: 8px; }
  .ak-k { min-width: 28px; font-size: 12px; }
  .ak-c { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 1px 16px 1px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ak-c::-webkit-scrollbar { display: none; }
  .ak-chip { height: 32px; }
  .ak-find input, .ak-in { max-width: none; font-size: 16px; }
  .ak-dates { flex: 1 1 auto; }
  .ak-dates input { flex: 1 1 0; width: auto; height: 32px; }
  .ask-page { padding: 12px 16px 40px; gap: 12px; }
  .ask-card { padding: 16px; gap: 12px; }
  .ask-card .ak-k { width: 40px; }
  /* 찾기 화면은 테두리 있는 카드라 칸이 카드 안에 들어오게(편집 화면처럼 끝까지 밀지 않음) */
  .ask-card .ak-c { margin-right: 0; padding-right: 0; }
  .ask-card .ak-c > .ak-in, .ask-card .ak-dates { flex: 1 1 auto; min-width: 0; }
  .ask-ai, .ask-save { height: 44px; padding: 0 14px; font-size: 14px; }
  .ask-go .ed-askgo, .ask-go .ask-save { flex: 1 1 0; }
  .ed-sbtn { height: 32px; font-size: 12px; }
  .ed-day { padding: 4px 16px 6px; gap: 4px; flex-wrap: nowrap; }
  .ed-dayl { flex: 1 1 auto; flex-wrap: nowrap; gap: 2px; min-width: 0; }
  .ed-dnav { width: 32px; height: 32px; border: 0; background: none; }
  .ed-day h1 { margin: 0; font-size: 15px; line-height: 22px; white-space: nowrap; }
  .ed-state { margin-left: auto; padding: 3px 10px; }
  .ed-dayr details.hist > summary { padding: 6px 4px; font-size: 12px; white-space: nowrap; }
  .ed-cols { display: block; }
  .ed-list { border: 0; border-radius: 0; display: flex; flex-direction: column; }
  .ed-lhead { order: 9; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
  .ed-lhead h2, .ed-picked, .ed-bd { display: none; }
  .ed-lhead:not(:has(.ed-url)) { display: none; }
  .ed-pop.urlform { min-width: 0; width: min(340px, calc(100vw - 32px)); bottom: calc(100% + 6px); top: auto; }
  .ed-tabs { padding: 0 16px 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ed-tabs::-webkit-scrollbar { display: none; }
  .ed-tabs a { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 17px; }
  .ed-tabs.sub a { height: 30px; }
  .ed-tools { padding: 0 16px 6px; gap: 12px; background: #FFF; border-top: 0; flex-wrap: nowrap; }
  .ed-tools .ed-hint { display: none; }
  .ed-drop > summary { border: 0; background: none; padding: 0; }
  .ed-check { white-space: nowrap; }
  .ed-list .asked { padding: 10px 16px; font-size: 13px; }
  /* 기사 줄: 네모 칸 | 제목 → 칩 줄(국내 · 해외 매체, 유료, 선호, 매체 · 시각) → 원문 주소 → AI 추천 이유 */
  .item { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 5px; padding: 12px 16px 8px; border-bottom-color: #E6EAF0; }
  .item input[type=checkbox] { width: 22px; height: 22px; grid-column: 1; grid-row: 1 / span 6; }
  .item .body, .item .side { display: contents; }
  .item .t { grid-column: 2; order: 1; }
  .item .meta { grid-column: 2; order: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; line-height: 18px; text-align: left; }
  .item .src { color: var(--muted); }
  .item .pf { color: #8A5A00; font-weight: 700; margin-right: 2px; }
  .item .pf-t { position: static; width: auto; height: auto; clip: auto; }
  .item .dom { grid-column: 2; order: 3; justify-self: start; line-height: 18px; text-align: left; }
  .item .why { grid-column: 2; order: 4; }
  .item .sugg { grid-column: 2; order: 5; }
  details.similar { padding: 0 16px 10px 50px; }
  details.similar .item.sim { margin-left: -34px; padding: 10px 0 8px; }
  .ed-right { border-top: 8px solid #F1F3F7; }
  .ed-right > summary { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--navy); }
  .ed-right > summary::after { content: '펴기 ▾'; font-size: 12px; font-weight: 400; color: var(--muted); }
  .ed-right[open] > summary::after { content: '접기 ▴'; }
  .ed-right[open] { gap: 12px; padding-bottom: 16px; }
  .ed-right[open] > :not(summary) { margin: 0 16px; }
  .ed-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 8px;
    background: #FFF; border-top: 1px solid #D9DFE7; }
  .ed-mbar form { margin: 0; }
  .ed-mcount { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .ed-mcount b { font-size: 16px; line-height: 22px; }
  .ed-mcount > span { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ed-mpv { flex-shrink: 0; height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); color: var(--navy); font-size: 14px; display: flex; align-items: center; text-decoration: none; }
  .ed-mshare { flex-shrink: 0; height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--navy); color: #FFF; font-size: 15px; font-weight: 700; cursor: pointer; }
}

/* 편집 오른쪽 칸 */
/* 브리핑 칸(칸 목록 · 지금 넣는 칸) · 미리보기 칸 · 목록 위 칸 줄(PC 한 줄 / 휴대폰 칩) · '어느 칸에 넣을까요?'
   한 줄 폼(칸 이름 + 단추)은 어느 폭에서도 한 줄: 칸이 줄고 단추는 안 줄어듦(nowrap). 칸별 기사 수는 작게. */
.sb-box [hidden], .sb-bar [hidden], .sb-ask [hidden] { display: none !important; }
.sb-box { display: flex; flex-direction: column; gap: 10px; }
.sb-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sb-head b { flex: 0 0 auto; font-size: 15px; color: var(--navy); }
.sb-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-head span, .sb-none, .sb-loose { font-size: 12px; line-height: 18px; color: var(--muted); }
.sb-none, .sb-loose { margin: 0; }
.sb-loose { color: var(--warn-fg); }
.sb-add { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; }
.sb-add input { flex: 1 1 0; width: 0; min-width: 0; height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font-size: 14px; }
.sb-add .btn, .sb-ask .btn { flex: 0 0 auto; white-space: nowrap; }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
/* 칸 줄 한 줄: [이름 수] [이 칸에 넣기] [↑ ↓ ✎ ✕] — 좁으면 이름만 … 으로 줄어듦 */
.sb-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-height: 40px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: #FFF; }
.sb-row.now { border-color: var(--navy); background: var(--pick); box-shadow: inset 3px 0 0 var(--navy); }
.sb-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 4px; font-size: 14px; }
.sb-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-name span { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.sb-row.now .sb-name b { color: var(--navy); font-weight: 800; }
.sb-use { flex: 0 0 auto; white-space: nowrap; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer; }
.sb-use .sb-on, .sb-use[aria-pressed=true] .sb-off { display: none; }
.sb-use[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #FFF; cursor: default; }
.sb-use[aria-pressed=true] .sb-on { display: inline; }
.sb-tools { flex: 0 0 auto; display: flex; flex-wrap: nowrap; }
.sb-tools button { flex: 0 0 auto; width: 26px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted2); font-size: 13px; white-space: nowrap; cursor: pointer; }
.sb-tools button:hover:not(:disabled) { background: var(--chip); color: var(--navy); }
.sb-tools button:disabled { opacity: .3; cursor: default; }
.sb-tools button.armed { width: auto; padding: 0 8px; color: var(--bad); background: #FDECEC; font-size: 12px; font-weight: 700; }
.sb-row .inline-name { flex: 1 1 0; width: 0; min-width: 0; height: 30px; margin: 0; }
.ed-right .pv > .pv-blank { margin-top: 4px; margin-bottom: 4px; padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.ed-right .sec.pv-loose { margin-top: 16px; padding-top: 8px; border-top: 1px dashed var(--line2); color: var(--warn-fg); }
.pv-loose span { font-weight: 400; font-size: 12px; color: var(--muted); }
/* 목록 위 '지금 넣는 칸' 줄(PC): 한 줄 — 도움말만 … 으로 줄어듦 */
.sb-bar { border-bottom: 1px solid var(--line-soft); }
.sb-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; padding: 8px 20px; font-size: 13px; color: var(--muted2); }
.sb-k { flex: 0 0 auto; white-space: nowrap; font-weight: 700; color: var(--navy); }
.sb-k::after { content: ':'; }
.sb-line select { flex: 0 1 auto; min-width: 0; max-width: 260px; height: 34px; border: 1px solid var(--navy); border-radius: 8px; padding: 0 8px; background: var(--pick); color: var(--navy); font-size: 14px; font-weight: 700; font-family: inherit; }
.sb-line .inline-name { flex: 0 1 200px; width: 200px; min-width: 0; height: 34px; margin: 0; }
.sb-first { flex: 0 0 auto; white-space: nowrap; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--navy); background: #FFF; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.sb-tip { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.sb-chips { display: none; }
/* 칸 없을 때 '어느 칸에 넣을까요? [칸 이름] [만들기] 그만두기' 한 줄 */
.sb-ask { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; padding: 8px 20px 10px 54px; background: var(--warn-bg); border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--warn-fg); }
.sb-ask-q { flex: 0 0 auto; white-space: nowrap; }
.sb-ask input { flex: 1 1 0; width: 0; min-width: 0; height: 34px; border: 1px solid var(--navy); border-radius: 8px; padding: 0 10px; font-size: 14px; }
.sb-ask .linkbtn { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }
@media (max-width: 899px) {
  .sb-line { display: none; }
  /* 휴대폰 · 텔레그램 안: 칸 칩은 옆으로 밀지 않고 여러 줄로 감김(위아래 스크롤), 촘촘하게 */
  .sb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; }
  .sb-chip { flex: 0 1 auto; max-width: 100%; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line2); background: #FFF; color: var(--navy); font-size: 13px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .sb-chip span { margin-left: 1px; font-size: 11px; font-weight: 400; color: var(--muted); }
  .sb-chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #FFF; }
  .sb-chip[aria-pressed=true] span { color: #DDE3F3; }
  .sb-chip.add { border-style: dashed; font-weight: 400; }
  .sb-chips .sb-tip { flex: 1 1 0; align-self: center; }
  .sb-chips .inline-name { flex: 0 1 150px; width: 150px; min-width: 0; height: 30px; margin: 0; }
  .sb-ask { padding: 8px 16px; }
  .sb-ask-q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* 휴대폰은 칸 안 글(placeholder)로 물음 */
  .ed-mbar form { flex-shrink: 0; }  /* 아래 고정 줄: '부동산에 넣는 중' 글이 길어도 단추는 한 줄 */
  .ed-mcount { flex-basis: 0; }
}

/* 편집 왼쪽 조건 · 목록 — PC 3단(왼쪽 조건 약 280px | 가운데 기사 목록 | 오른쪽 브리핑), 휴대폰 · 텔레그램 안은 말 칸 + [검색] · [조건 ▾] → 목록.
   버튼은 [검색] 하나(말 칸 옆, 조건을 내려 봐도 위에 붙어 있음). 모은 수는 안 보임 */
.ed-cond { flex: 0 0 280px; min-width: 0; margin: 0; padding: 14px; gap: 10px; background: #FFF; border: 1px solid var(--line); border-radius: 14px;
  position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.ed-cols > .ed-list { flex: 999 1 480px; }
.cd-ask { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 0; padding: 14px 14px 6px; display: flex; gap: 6px; background: #FFF; }
.cd-askin { flex: 1 1 auto; min-width: 0; display: flex; }
.cd-askin input { width: 100%; min-width: 0; height: 44px; border: 2px solid var(--navy); border-radius: 10px; padding: 0 12px; font-size: 15px; color: var(--ink); background: #FFF; }
.cd-askgo { flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--navy); color: #FFF; font-size: 15px; font-weight: 700; cursor: pointer; }
.cd-askgo:disabled { opacity: .6; cursor: default; }
.cd-fold > summary { display: none; }
.cd-body { display: flex; flex-direction: column; gap: 14px; }
.cd-sec { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cd-k { font-size: 13px; color: var(--muted2); }
.cd-row { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cd-row .ak-chip { height: 32px; padding: 0 10px; }
.cd-dates { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.cd-dates[hidden] { display: none; }
.cd-dates input { flex: 1 1 0; min-width: 0; height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; color: var(--ink); background: #FFF; }
.cd-groups { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.cd-grp { border-bottom: 1px solid var(--line-soft); }
.ed .cd-grp > summary { min-height: 36px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.cd-grp > summary span { flex: 1 1 auto; }
.cd-grp > summary i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy); color: #FFF; font-size: 11px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cd-grp > summary::after { content: '▾'; font-size: 11px; color: var(--muted); }
.cd-grp[open] > summary::after { content: '▴'; }
.cd-pane { padding: 2px 0 10px; }
.cd-ofind { position: relative; }
.cd-ofind input { width: 100%; height: 36px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: #FFF; }
.cd-ofind input:focus, .cd-dates input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.cd-ofind .ak-list { top: 40px; width: 100%; max-height: 260px; overflow-y: auto; }
.ed .cd-olist > summary { padding: 4px 0; font-size: 13px; color: var(--navy); text-decoration: underline; }
.cd-olist .cd-pane { max-height: 200px; overflow-y: auto; padding-top: 6px; }
.ed-cond .ak-note:not([hidden]) { padding: 6px 10px; border-radius: 8px; background: #FDECEC; }
.ed-ltitle { margin: 0; font-size: 15px; color: var(--ink); }
.ed-n { font-size: 12px; font-weight: 400; color: #8A94A6; }
button.ed-n { padding: 0; border: 0; background: none; font-family: inherit; text-decoration: underline; cursor: pointer; }
.ed-cols .ed-lhead { align-items: center; padding: 10px 16px; }
.ed-list .asked.hint { background: #F8F9FB; color: var(--muted); font-size: 13px; }
@media (max-width: 899px) {
  /* 촘촘하게 · 화면 폭 안에 다(옆으로 미는 칩 줄 없음, 칩은 여러 줄로 감기고 위아래로만 밂) */
  .ed-cond { position: static; max-height: none; overflow: visible; padding: 8px 16px 6px; gap: 4px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .cd-ask { position: static; margin: 0; padding: 0; }
  .ed-cond:has(.cd-fold[open]) .cd-ask { position: sticky; top: 52px; padding: 4px 0; }  /* 조건을 펴서 내려 봐도 [검색]이 위에 */
  .cd-askin input { height: 42px; font-size: 16px; }
  .cd-askgo { height: 42px; padding: 0 14px; }
  .ed .cd-fold > summary { display: flex; align-items: center; gap: 8px; min-height: 36px; }
  .cd-ftitle { flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
  .cd-ftitle::after { content: ' ▾'; white-space: pre; }
  .cd-fold[open] .cd-ftitle::after { content: ' ▴'; }
  .cd-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
  .cd-body { gap: 6px; padding: 4px 0 6px; }
  .cd-sec { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px; }
  .cd-k { flex: 0 0 52px; padding-top: 6px; font-size: 12px; }
  .cd-row, .cd-groups { flex: 1 1 0; min-width: 0; flex-wrap: wrap; gap: 4px; }
  .cd-row .ak-chip { height: 30px; padding: 0 9px; }
  .cd-dates, .cd-ofind, .cd-olist { flex: 1 0 100%; padding-left: 58px; }
  .cd-dates input, .cd-ofind input { height: 34px; font-size: 16px; }
  .cd-ofind .ak-list { left: 58px; right: 0; width: auto; }
  /* 카테고리: 큰 묶음 칩이 여러 줄로 감기고, 편 묶음은 한 줄을 다 써서 그 아래 작은 카테고리가 감김 */
  .cd-groups { flex-direction: row; border: 0; }
  .cd-grp { flex: 0 0 auto; border: 0; }
  .ed .cd-grp > summary { display: inline-flex; height: 30px; min-height: 30px; padding: 0 9px; border-radius: 15px; border: 1px solid var(--line2); background: #FFF; font-size: 13px; color: var(--navy); white-space: nowrap; }
  .cd-grp > summary span { flex: 0 0 auto; }
  .cd-grp > summary::after { content: none; }
  .cd-grp[open] { flex-basis: 100%; }
  .ed .cd-grp[open] > summary { background: var(--soft); border-color: var(--navy); font-weight: 700; }
  .cd-pane { padding: 4px 0 2px; }
  .cd-olist .cd-pane { max-height: 150px; }
  .ed .cd-olist > summary { padding: 2px 0; }
  .ed-cols .ed-lhead { padding: 8px 16px; }
}
