/* ── 主題 ─────────────────────────────────────────── */
:root {
  --bg: #f3f4f8;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #e4ecfb 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #f1e8fb 0%, transparent 55%);
  --card: #ffffff;
  --card-2: #f7f8fb;
  --ink: #1f2330;
  --muted: #6f7686;
  --line: #e3e6ee;
  --accent: #5b8fd6;
  --accent-2: #8a6fd8;
  --accent-soft: #e8f0fc;
  --on-accent: #fff;
  --error: #d64545;
  --ok: #2f9e6f;
  --shadow: 0 6px 24px rgba(31, 35, 48, .08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #12141a; --card: #1b1e27; --card-2: #272c37; --ink: #e8eaf0; --muted: #a3aaba; --line: #363c4a;
    --accent: #7aa7ea; --accent-2: #a58cf0; --accent-soft: #233149; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --bg-grad: radial-gradient(1200px 600px at 10% -10%, #1c2740 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #2a2140 0%, transparent 55%);
  }
}
:root[data-theme="dark"] {
  --bg: #12141a; --card: #1b1e27; --card-2: #272c37; --ink: #e8eaf0; --muted: #a3aaba; --line: #363c4a;
  --accent: #7aa7ea; --accent-2: #a58cf0; --accent-soft: #233149; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #1c2740 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #2a2140 0%, transparent 55%);
}

/* ── 基本 ─────────────────────────────────────────── */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh;
  transition: background-color .25s, color .25s;
}
h2, h3 { margin: 0; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.error { color: var(--error); min-height: 1.2em; font-size: 14px; }
img { -webkit-user-drag: none; }

/* ── 按鈕 ─────────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; transition: transform .1s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border: none; box-shadow: 0 6px 18px rgba(91, 143, 214, .35); }
.btn.primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn.block { width: 100%; }
.btn.big { padding: 14px; font-size: 17px; margin-top: 14px; }
.icon-btn { font-size: 18px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }

/* ── 頂列 ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .who #who-name { display: none; } .brand span:last-child { display: none; } }

/* ── 登入 ─────────────────────────────────────────── */
.login { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center; }
.login-card label { display: block; text-align: left; font-size: 14px; margin-top: 14px; color: var(--muted); }
.login-logo { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 26px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.login-card .btn { margin-top: 20px; }
input, textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; margin-top: 10px; }

/* ── 版面 ─────────────────────────────────────────── */
main { max-width: 1280px; margin: 0 auto; padding: 16px 20px 120px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-weight: 600; border: none; background: none; color: var(--muted); padding: 8px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) { .tabs button { padding: 8px 12px; font-size: 14px; } main { padding: 12px 12px 120px; } }
.tabs button.active { background: var(--accent-soft); color: var(--accent); }
.count { font-size: 12px; opacity: .8; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.step { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hint { font-size: 12px; color: var(--muted); }
.filters { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── 角色 ─────────────────────────────────────────── */
.char-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.char-card { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card-2); cursor: pointer; min-width: 220px; text-align: left; color: var(--ink); font: inherit; }
.char-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.char-card .name { font-weight: 700; }
.char-card .sub { font-size: 12px; color: var(--muted); }
.char-card.on { border-color: var(--accent); background: var(--accent-soft); }

/* ── 卡片 ─────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards.small { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2);
  overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; outline: none;
}
.card:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .18); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card:focus-visible { border-color: var(--accent); }
.card .thumb { aspect-ratio: 3 / 4; background: #fff; overflow: hidden; }
.cards.small .card .thumb { aspect-ratio: 1; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .3s; display: block; }
.card:hover .thumb img { transform: scale(1.04); }
.card .label { padding: 9px 11px; font-size: 13px; font-weight: 600; line-height: 1.3; border-top: 1px solid var(--line); }
.card .tags { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.card .check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--accent); opacity: 0; transform: scale(.6); transition: .15s; }
.card.on .check { opacity: 1; transform: scale(1); }
.card .zoom { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 9px; border: none; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; cursor: zoom-in; font-size: 13px; }
.card .badge { position: absolute; bottom: 44px; right: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }

/* ── 標籤／表情 ───────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); cursor: pointer; transition: .15s; }
.chip.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.chip.sm { font-size: 12px; padding: 5px 10px; }

/* ── 側欄 ─────────────────────────────────────────── */
.side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .side { position: static; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { margin-bottom: 12px; }
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.summary span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.preview figure.main { grid-column: 1 / -1; }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
.preview figure.main img { aspect-ratio: 4 / 3; object-position: center 25%; }
.preview figure:not(.main) figcaption { font-size: 10px; left: 4px; right: 4px; bottom: 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }

.switch { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.slider { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: .2s; flex: 0 0 auto; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(18px); }

/* ── 工作列表 ─────────────────────────────────────── */
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card-2); }
.job .pic { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--line); display: grid; place-items: center; cursor: zoom-in; }
.job .pic img { width: 100%; height: 100%; object-fit: cover; }
.job .info { font-size: 13px; line-height: 1.45; min-width: 0; }
.job .state { font-weight: 700; }
.job .state.running, .job .state.queued { color: var(--accent); }
.job .state.failed { color: var(--error); }
.job .state.done { color: var(--ok); }
.job .desc { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { background: linear-gradient(90deg, var(--card-2) 0%, var(--line) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 作品集 ───────────────────────────────────────── */
.gallery-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.gallery { columns: 4 220px; column-gap: 14px; }
.work { break-inside: avoid; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work img { width: 100%; display: block; cursor: zoom-in; }
.work .placeholder { aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.work .meta { padding: 10px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.work .meta b { color: var(--ink); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ── 手機底部列 ───────────────────────────────────── */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; align-items: center;
    padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mobile-summary { flex: 1; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── 放大檢視 ─────────────────────────────────────── */
.lightbox:not([hidden]) { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 14, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #fff; }
.lightbox .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox-bar { margin-top: 14px; display: flex; gap: 12px; align-items: center; color: #ddd; font-size: 14px; }
@keyframes fade { from { opacity: 0; } }

/* ── 提示 ─────────────────────────────────────────── */
.toast:not([hidden]) { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: fade .2s; max-width: 90vw; }

/* ── 用途（畫風）─────────────────────────────────── */
.style-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.style-card { font: inherit; color: var(--ink); text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; display: flex; gap: 10px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.style-card:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .18); }
.style-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.style-card .emoji { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card); flex: 0 0 auto; }
.style-card .t { font-weight: 700; }
.style-card .d { font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* ── 表單／表格／對話框 ─────────────────────────── */
.field { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
select { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table .actions { display: flex; gap: 6px; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--error); }
.who { font: inherit; color: var(--ink); background: none; border: none; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.who:hover { background: var(--card-2); }
.modal:not([hidden]) { position: fixed; inset: 0; z-index: 55; background: rgba(8, 10, 14, .6); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }

/* ── 作品操作 ───────────────────────────────────── */
.work .actions { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e9e9ee 25%, transparent 25%), linear-gradient(-45deg, #e9e9ee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9e9ee 75%), linear-gradient(-45deg, transparent 75%, #e9e9ee 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.kind { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }

/* ── 貼圖包 ─────────────────────────────────────── */
.field.wide { grid-column: 1 / -1; }
.modal-card.wide { max-width: 640px; }
.modal-card textarea { min-height: 220px; }
.pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pack-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.pack-card:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .18); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pack-card .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.pack-card .thumbs div { aspect-ratio: 1; border-radius: 8px; background: var(--card-2); overflow: hidden; }
.pack-card .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pack-card .n { font-weight: 700; }
.progress { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width .4s; }
.pack-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pack-title { flex: 1; min-width: 220px; }
.pack-title h2 { font-size: 20px; }
.pack-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-head #pack-notice { flex-basis: 100%; margin: 0; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cell.approved { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.cell .img { aspect-ratio: 1; display: grid; place-items: center; position: relative; color: var(--muted); font-size: 13px; }
.cell .img img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.cell .num { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.cell .tag { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; }
.cell .tag.done { background: var(--accent); } .cell .tag.approved { background: var(--ok); } .cell .tag.failed { background: var(--error); } .cell .tag.queued, .cell .tag.running { background: #8a8f9c; }
.cell .body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cell input, .cell textarea, .cell select { margin: 0; padding: 7px 9px; font-size: 13px; border-radius: 10px; }
.cell textarea { min-height: 54px; resize: vertical; }
.cell .row { display: flex; gap: 6px; }
.cell .row > * { flex: 1; }
.cell .err { color: var(--error); font-size: 11px; }

@media (max-width: 600px) { .pack-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cell .body { padding: 8px; } .pack-actions .btn { padding: 8px 12px; font-size: 14px; } }

.badge-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.badge-status.published { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.badge-status.final { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.badge-status.draft { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.publish-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.publish-row a { color: var(--accent); }
.list-filters { margin: 4px 0 14px; }
.caption-results { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.cap-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card-2); }
.cap-row .thumbs { display: flex; gap: 4px; }
.cap-row .thumbs img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; cursor: zoom-in; }
.cap-row .c { font-weight: 700; min-width: 80px; }
.cap-row .w { font-size: 12px; color: var(--muted); }
.cell .dupe { font-size: 11px; color: #d99a22; line-height: 1.4; }
