/* mailcrm 콘솔 — 왼쪽 메뉴 + 카드형 본문. 색·간격은 아래 변수에서 한 번에 바꾼다. */
:root {
  --bg: #f4f5f7; --panel: #fff; --ink: #1d232b; --body: #3b434e; --muted: #7a8391; --line: #e4e7ec; --line-soft: #eef0f3;
  --brand: #f15a35; --brand-dark: #d94a27; --brand-bg: #fff3ee; --blue: #4f6bff; --blue-bg: #eef1ff;
  --ok: #17804a; --warn: #a96a12; --err: #c0362c; --ok-bg: #e7f6ee; --warn-bg: #fdf3e1; --err-bg: #fdecea;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 28, 40, .05), 0 1px 3px rgba(20, 28, 40, .04);
  --sidebar: 236px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body);
  font: 14px/1.6 Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -0.5px; color: var(--ink); font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink); font-weight: 700; letter-spacing: -0.2px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── 왼쪽 메뉴 ───────────────────────────────────────────── */
body.app { padding-left: var(--sidebar); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px 12px; z-index: 30; overflow-y: auto; }
.sb-top { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 14px; }
.logo { font-size: 19px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo b { color: var(--brand); }
.sb-close, .mobilebar, .scrim { display: none; }
.brandsw { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.brandsw form { flex: 1; margin: 0; }
.brandsw button { width: 100%; border: 0; background: transparent; padding: 7px 4px; border-radius: 7px; font-size: 12.5px;
  font-weight: 600; color: var(--muted); box-shadow: none; }
.brandsw button:hover { color: var(--ink); background: transparent; }
.brandsw button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.sidebar nav { flex: 1; }
.nav-label { font-size: 11px; font-weight: 700; color: #a3aab5; letter-spacing: .4px; padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--body);
  font-weight: 500; margin-bottom: 1px; }
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex-shrink: 0; opacity: .75; }
.nav-item:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav-item.on { background: var(--brand-bg); color: var(--brand-dark); font-weight: 700; }
.nav-item.on svg { opacity: 1; }
.nav-item span { flex: 1; }
.nav-item em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff;
  border-radius: 99px; padding: 0 7px; line-height: 18px; }
.sb-foot { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.mode { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); padding: 6px 10px;
  background: var(--bg); border-radius: 8px; margin-bottom: 10px; }
.mode i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3af; flex-shrink: 0; }
.mode.allowlist { background: var(--warn-bg); color: var(--warn); } .mode.allowlist i { background: var(--warn); }
.mode.live { background: var(--err-bg); color: var(--err); font-weight: 700; } .mode.live i { background: var(--err); }
.userbox { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid;
  place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.uname { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uname small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.userbox button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 6px; box-shadow: none; }
.userbox button:hover { color: var(--err); background: transparent; }

@media (max-width: 920px) {
  body.app { padding-left: 0; padding-top: 52px; }
  .mobilebar { display: flex; align-items: center; gap: 12px; position: fixed; inset: 0 0 auto 0; height: 52px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0 14px; z-index: 20; }
  .hamb { display: grid; gap: 4px; padding: 8px 4px; cursor: pointer; }
  .hamb span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
  #navtoggle:checked ~ .sidebar { transform: none; }
  #navtoggle:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 28, 40, .35); z-index: 25; }
  .sb-close { display: block; cursor: pointer; color: var(--muted); padding: 4px 8px; }
}

/* ── 본문 ───────────────────────────────────────────────── */
main { max-width: 1320px; margin: 0 auto; padding: 28px 32px 60px; }
@media (max-width: 920px) { main { padding: 18px 14px 48px; } }
body.auth { display: grid; place-items: center; min-height: 100vh;
  background: radial-gradient(1200px 500px at 50% -10%, #ffe9e1 0%, var(--bg) 60%); }
body.auth main { width: 100%; padding: 16px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 16px; box-shadow: var(--shadow); }
details.panel > summary { cursor: pointer; color: var(--ink); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g4 .stat { font-size: 22px; } }
.grid > .panel { margin-bottom: 0; }
.grid { margin-bottom: 16px; }
.panel .grid { margin-bottom: 0; }

/* 숫자 카드: 설명(작은 글자)을 위로, 숫자를 아래로 */
.stat { display: flex; flex-direction: column-reverse; gap: 4px; font-size: 27px; line-height: 1.15; font-weight: 700;
  color: var(--ink); letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* ── 표 ─────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; white-space: nowrap;
  border-bottom-color: var(--line); padding-top: 6px; padding-bottom: 8px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #fafbfc; }
table.num td:nth-child(n+4), table.num th:nth-child(n+4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel > table:last-child { margin-bottom: -6px; }
.panel { overflow-x: auto; }

/* ── 배지 ───────────────────────────────────────────────── */
.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: #eef0f3; color: var(--body); white-space: nowrap; line-height: 20px; }
.b-draft { background: #eef0f3; } .b-pending_approval { background: var(--warn-bg); color: var(--warn); }
.b-approved, .b-scheduled { background: var(--blue-bg); color: var(--blue); }
.b-sending { background: var(--brand-bg); color: var(--brand-dark); } .b-sent { background: var(--ok-bg); color: var(--ok); }
.b-paused, .b-failed, .b-unknown { background: var(--err-bg); color: var(--err); } .b-cancelled { color: var(--muted); }

/* ── 알림 ───────────────────────────────────────────────── */
.flashes { margin-bottom: 16px; display: grid; gap: 8px; }
.flash { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 14px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 500; }
.flash button { border: 0; background: transparent; color: inherit; opacity: .55; padding: 0 2px; box-shadow: none; font-size: 12px; }
.flash button:hover { opacity: 1; background: transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: #c9ead8; }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: #f3dfb8; }
.flash.err { background: var(--err-bg); color: var(--err); border-color: #f5cfca; }
.notice { background: var(--blue-bg); border-radius: 10px; padding: 11px 14px; color: #33429c; }
.issue { padding: 7px 11px; border-radius: 8px; margin: 5px 0; font-size: 13px; }
.issue.error { background: var(--err-bg); color: var(--err); } .issue.warning { background: var(--warn-bg); color: var(--warn); }

/* ── 입력·버튼 ──────────────────────────────────────────── */
form.inline { display: inline; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid #d8dce3; border-radius: 8px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 107, 255, .15); }
input::placeholder, textarea::placeholder { color: #a9b0bb; }
input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; vertical-align: -2px; }
textarea { resize: vertical; }
textarea.code { font: 12px/1.55 ui-monospace, Consolas, monospace; min-height: 380px; }
button, .btn { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid #d8dce3; background: #fff;
  color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(20, 28, 40, .04); transition: background .12s, border-color .12s; }
button:hover, .btn:hover { background: #f6f7f9; border-color: #c9ced7; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
button.blue:hover { background: #3f59e6; }
button.danger { color: var(--err); }
button.danger:hover { background: var(--err-bg); border-color: #f0c4be; }
.btn.small, button.small { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.actions > h1 { margin-bottom: 0; }
main > .actions:first-child, main > .flashes + .actions { margin-bottom: 18px; align-items: center; }

/* ── 화면 머리·도구줄·팝업 ───────────────────────────────── */
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead h1 { margin: 0; }
.pagehead .sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pagehead .crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.pagehead .crumb a { color: var(--muted); }
.pagehead .actions { align-items: center; }
.pagehead form { margin: 0; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1; max-width: 420px; }
.panel.flush { padding: 0; }
.panel.flush table th:first-child, .panel.flush table td:first-child { padding-left: 18px; }
.panel.flush table th:last-child, .panel.flush table td:last-child { padding-right: 18px; }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fafbfc;
  border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.bulkbar select { width: auto; max-width: 240px; padding: 6px 9px; font-size: 13px; }
.bulkbar #selcount.on { color: var(--brand-dark); font-weight: 700; }
table.rows td { vertical-align: middle; }
/* 좁은 화면: 표는 찌그러뜨리지 않고 표 안에서만 옆으로 넘긴다 */
table.rows { min-width: 680px; }
.split > *, .designer > *, .grid > * { min-width: 0; }
a.strong { color: var(--ink); font-weight: 600; }
.rowact { white-space: nowrap; text-align: right; }
.rowact button, .rowact .btn { margin-left: 2px; }
tr .rowact > * { opacity: .55; transition: opacity .1s; }
tr:hover .rowact > *, .rowact > *:focus { opacity: 1; }
@media (hover: none) { tr .rowact > * { opacity: 1; } }
td.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 28px)); color: var(--body);
  box-shadow: 0 20px 60px rgba(20, 28, 40, .3); }
dialog::backdrop { background: rgba(20, 28, 40, .45); }
dialog form { padding: 22px 24px 18px; margin: 0; }
dialog h2 { font-size: 17px; margin-bottom: 4px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* 탭(목록 걸러 보기) */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tabs a em { font-style: normal; font-size: 11px; background: #eef0f3; color: var(--body); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.tabs a.on em { background: var(--brand-bg); color: var(--brand-dark); }
.tabs .spacer { flex: 1; }
.seg { display: inline-flex; background: #e9ebef; border-radius: 9px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* 캠페인 진행 단계 */
.stepper { display: flex; gap: 0; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.stepper li { flex: 1; position: relative; padding: 30px 4px 0; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; counter-increment: s; }
.stepper li::before { content: counter(s); position: absolute; top: 0; left: 50%; margin-left: -12px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid #d5d9e0; color: var(--muted); font-size: 12px; line-height: 20px; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #d5d9e0; }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--body); }
.stepper li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done::after, .stepper li.now::after { background: var(--ok); }
.stepper li.now { color: var(--brand-dark); }
.stepper li.now::before { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper li.bad::before { border-color: var(--err); background: var(--err); color: #fff; content: "!"; }
.stepper li.bad { color: var(--err); }
.next { border-left: 4px solid var(--brand); }
.next.calm { border-left-color: var(--blue); } .next.done { border-left-color: var(--ok); } .next.bad { border-left-color: var(--err); }
.next h2 { margin-bottom: 6px; }
.next p { margin: 0 0 12px; }
.next form { margin: 0; }
.resultgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.resultgrid a, .resultgrid div { display: block; background: #f7f8fa; border-radius: 9px; padding: 10px 12px; color: var(--ink); }
.resultgrid a:hover { background: #eef0f3; text-decoration: none; }
.resultgrid b { display: block; font-size: 19px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.resultgrid span { font-size: 11.5px; color: var(--muted); }
.sendercards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sendercard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.sendercard b { color: var(--ink); }
.sendercard .addr { font-size: 13px; color: var(--body); margin: 2px 0 8px; word-break: break-all; }

/* 템플릿 카드 */
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 8px; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; }
.tpl .thumb { display: block; height: 170px; background: #eef0f6; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.tpl .thumb iframe { width: 600px; height: 520px; border: 0; transform: scale(.42); transform-origin: top center; position: absolute;
  left: 50%; margin-left: -300px; top: 8px; pointer-events: none; background: #fff; }
.tpl .thumb .none { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12.5px; }
.tpl .meta { padding: 11px 14px 4px; flex: 1; }
.tpl .meta b { display: block; color: var(--ink); font-size: 14px; }
.tpl .tplact { display: flex; gap: 6px; padding: 10px 14px 13px; flex-wrap: wrap; }
.tpl .tplact form { margin: 0; }
.tpl.new { border-style: dashed; box-shadow: none; background: transparent; align-items: stretch; justify-content: center; padding: 16px; }
.tpl.new form { display: grid; gap: 8px; margin: 0; }
.seghead { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; }
.seghead h2 { margin: 0; font-size: 15px; }
.groupname { font-size: 12px; font-weight: 700; color: #a3aab5; letter-spacing: .4px; margin: 28px 0 -8px; }
.vlist { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 공통 조각 ──────────────────────────────────────────── */
iframe.preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; }
.kv div:nth-child(odd) { color: var(--muted); font-size: 13px; }
.kv div:nth-child(even) { color: var(--ink); }
.mailbody { white-space: pre-wrap; word-break: break-word; margin: 0; font: inherit; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.group h2 { display: flex; justify-content: space-between; align-items: center; }

/* 주소록: 카테고리 목록 */
.split { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.side { padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 1000px) { .side { position: static; max-height: 320px; } }
.cat { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 7px; color: var(--body); font-size: 13.5px; }
.cat span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cat:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.cat.on { background: var(--brand-bg); color: var(--brand-dark); font-weight: 700; }
.cat.on span { color: var(--brand-dark); }
.grp { font-size: 11px; font-weight: 700; color: #a3aab5; letter-spacing: .4px; padding: 12px 10px 4px;
  border-top: 1px solid var(--line-soft); margin-top: 8px; }
.grp:first-of-type { border-top: 0; }
.subgrp { font-size: 11px; font-weight: 600; color: var(--brand); padding: 7px 10px 2px 12px; }
.cat.indent { padding-left: 20px; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.catpick label { display: inline; margin: 0; color: var(--ink); font-size: 13px; font-weight: 500; }

/* 새 캠페인: 단계 */
.steps .step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 6px 0 10px; }
.steps .no { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid;
  place-items: center; font-weight: 700; font-size: 12.5px; margin-top: 29px; }

/* 수신자별 반응 표시 */
.flags span { display: inline-block; min-width: 34px; text-align: center; font-size: 11px; padding: 1px 7px;
  border-radius: 99px; background: #f0f2f5; color: #b3b9c3; margin-right: 2px; font-weight: 600; }
.flags span.y { background: var(--ok-bg); color: var(--ok); }
.flags span.bad { background: var(--err-bg); color: var(--err); }

/* 템플릿 디자이너 */
.designer { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(480px, 640px); gap: 16px; align-items: start; }
@media (max-width: 1240px) { .designer { grid-template-columns: 1fr; } }
.designer .sticky { position: sticky; top: 16px; }
.designer .preview { height: 78vh; }
.blk { padding: 12px 14px; margin-bottom: 10px; }
.blk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; color: var(--ink); }
.card-item { border: 1px solid var(--line); border-radius: 9px; padding: 9px; margin-bottom: 8px; display: grid; gap: 6px; background: #fafbfc; }

/* 영업 보드 */
.board { display: grid; grid-template-columns: repeat(8, minmax(176px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.col { background: #eaecf0; border-radius: var(--radius); padding: 8px; min-height: 140px; }
.col-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px;
  color: var(--ink); padding: 4px 6px 8px; }
.col-head span { color: var(--muted); font-weight: 600; font-size: 11.5px; background: #fff; border-radius: 99px; padding: 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 6px;
  box-shadow: var(--shadow); font-size: 13px; }
.card summary { cursor: pointer; list-style: none; color: var(--ink); }
.card summary::-webkit-details-marker { display: none; }
.card[open] { border-color: var(--blue); }

.compose summary { cursor: pointer; }
.compose textarea { margin-top: 10px; font-size: 13.5px; line-height: 1.6; }
.attrow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: #fafbfc; }
.attrow a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv > div { min-width: 0; }
.kv select { max-width: 100%; }
.vlist .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
