/* work.css —— 工作台③ + 詳細頁④,疊在 base.css 的工業標籤語言上。 */

/* ---------- 工作台 head ---------- */
.work-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}

/* ---------- 狀態統計條:一排信號格 ---------- */
.status-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.stat-cell {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 86px;
  padding: 8px 12px 7px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  border-top-width: 5px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  transition: transform .08s, box-shadow .08s;
}
.stat-cell:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.stat-cell.on { background: var(--ink); color: #fff; transform: translate(2px, 2px); box-shadow: none; }
.stat-num {
  font-family: var(--font-disp);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .02em;
}
.stat-cell.on .stat-num { color: var(--hazard); }
.stat-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.stat-cell.on .stat-label { color: rgba(255, 255, 255, .8); }
/* 每格頂邊 = 該狀態的信號色 */
.stat-all { border-top-color: var(--ink); }
.stat-cell.st-pending { border-top-color: var(--st-pending); }
.stat-cell.st-processing { border-top-color: var(--st-processing); }
.stat-cell.st-need_second_round { border-top-color: var(--st-need_second_round); }
.stat-cell.st-need_judgement { border-top-color: var(--st-need_judgement); }
.stat-cell.st-completed { border-top-color: var(--st-completed); }
.stat-cell.st-returned_to_flow { border-top-color: var(--st-returned_to_flow); }
.stat-cell.st-scrapped { border-top-color: var(--st-scrapped); }
.stat-cell.st-paused { border-top-color: var(--st-paused); }

/* ---------- 進階篩選(收合) ---------- */
.adv-filter { margin-bottom: 10px; }
.adv-filter summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 2px;
  user-select: none;
}
.adv-filter summary::-webkit-details-marker { display: none; }
.sum-mark {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink-soft);
  transition: transform .15s;
}
.adv-filter[open] .sum-mark { transform: rotate(180deg); }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 11px; }
.filter-item select, .filter-item input { min-width: 132px; min-height: 40px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }

.result-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft); margin: 4px 2px 12px;
}
.result-line .mono { font-weight: 700; color: var(--ink); }
.mine-toggle {
  min-height: 32px;
  padding: 3px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(23, 20, 16, .85);
  transition: transform .08s, box-shadow .08s;
}
.mine-toggle:active { transform: translate(2px, 2px); box-shadow: none; }
.mine-toggle.on { background: var(--ink); color: var(--hazard); box-shadow: none; transform: translate(1px, 1px); }

/* ---------- 卡片格:每張卡 = 一枚物流標籤 ---------- */
.case-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.case-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .1s, box-shadow .1s;
  animation-delay: min(calc(var(--i, 0) * 28ms), 420ms);
}
.case-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.case-card:active { transform: translate(1px, 1px); box-shadow: var(--shadow-sm); }

/* 頂部狀態色帶:色底 + 狀態字 + 單號(白 mono) */
.cc-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-bottom: var(--bw) solid var(--line);
  font-size: 12px;
}
.cc-band-label { font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.cc-band-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-band { color: #fff; }
.cc-band.status-pending { background: var(--st-pending); }
.cc-band.status-processing { background: var(--st-processing); }
.cc-band.status-need_second_round { background: var(--st-need_second_round); color: var(--ink); }
.cc-band.status-need_judgement { background: var(--st-need_judgement); }
.cc-band.status-completed { background: var(--st-completed); }
.cc-band.status-returned_to_flow { background: var(--st-returned_to_flow); }
.cc-band.status-scrapped { background: var(--st-scrapped); }
.cc-band.status-paused { background: var(--st-paused); }

.cc-thumb {
  height: 150px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  border: 1px dashed var(--line-soft);
  padding: 8px 14px;
}
/* 空棧板:兩塊面板 + 三支墊腳 */
.no-photo::before {
  content: "";
  width: 66px; height: 21px;
  background:
    linear-gradient(var(--ink-soft) 0 0) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--ink-soft) 0 0) 0 9px / 100% 6px no-repeat,
    linear-gradient(var(--ink-soft) 0 0) 3px 100% / 9px 6px no-repeat,
    linear-gradient(var(--ink-soft) 0 0) 28px 100% / 9px 6px no-repeat,
    linear-gradient(var(--ink-soft) 0 0) 54px 100% / 9px 6px no-repeat;
  opacity: .8;
}
.cc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
/* 卡片收尾:一截條碼,整張卡 = 一枚出貨標籤 */
.cc-body::after {
  content: "";
  height: 14px;
  margin-top: 7px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 7px);
  opacity: .8;
}
.cc-cat { font-weight: 800; font-size: 15px; }
.cc-problem { color: var(--ink-soft); font-size: 13px; min-height: 38px; line-height: 1.5; }
.cc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.cc-rounds { color: var(--ink-soft); font-size: 12px; }
.cc-time { font-size: 11px; color: var(--ink-faint); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 0 0 36px; overflow: hidden;
}
.empty-stripe { height: 10px; background: var(--hazard-stripe); border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.empty-state p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- 詳細頁:大標籤頭 ---------- */
.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.back-link:hover { color: var(--ink); }

.detail-label {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.dl-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  color: #fff;
  border-bottom: var(--bw) solid var(--line);
}
.dl-band-label { font-weight: 900; font-size: 15px; letter-spacing: .1em; }
.dl-band-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; opacity: .85; }
.dl-band.status-pending { background: var(--st-pending); }
.dl-band.status-processing { background: var(--st-processing); }
.dl-band.status-need_second_round { background: var(--st-need_second_round); color: var(--ink); }
.dl-band.status-need_judgement { background: var(--st-need_judgement); }
.dl-band.status-completed { background: var(--st-completed); }
.dl-band.status-returned_to_flow { background: var(--st-returned_to_flow); }
.dl-band.status-scrapped { background: var(--st-scrapped); }
.dl-band.status-paused { background: var(--st-paused); }
.dl-main { padding: 12px 16px 14px; }
.dl-code {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 6px;
}
/* 大單號旁配一截條碼:這張就是出貨標籤 */
.dl-code::after {
  content: "";
  display: block;
  width: min(210px, 60%);
  height: 13px;
  margin-top: 4px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 7px);
  opacity: .85;
}

/* 終態橡皮章:結案的儀式感(:has 不支援的舊瀏覽器 = 自動沒有,無害) */
.detail-label { position: relative; }
.detail-label::after {
  position: absolute;
  top: 46px;
  right: 14px;
  padding: 6px 16px;
  border: 4px double currentColor;
  border-radius: 3px;
  font-family: var(--font-disp);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .14em;
  transform: rotate(-8deg);
  opacity: .5;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.detail-label:has(.dl-band.status-completed)::after { content: "結案 CLOSED"; color: var(--st-completed); }
.detail-label:has(.dl-band.status-scrapped)::after { content: "報廢 SCRAPPED"; color: var(--st-scrapped); }
.detail-label:has(.dl-band.status-returned_to_flow)::after { content: "退回 RETURNED"; color: var(--st-returned_to_flow); }
.dl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.dl-cat {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: var(--radius);
}

/* ---------- 狀態切換 8 鈕 ---------- */
.status-actions { margin-bottom: 16px; }
.quick-status { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-status form { margin: 0; }
.btn-status {
  min-height: 42px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--surface);
  border: var(--bw) solid var(--line-soft);
  border-left-width: 6px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, border-color .12s;
}
.btn-status:hover { border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.btn-status:active { transform: translate(1px, 1px); box-shadow: none; }
.btn-status.st-pending { border-left-color: var(--st-pending); }
.btn-status.st-processing { border-left-color: var(--st-processing); }
.btn-status.st-need_second_round { border-left-color: var(--st-need_second_round); }
.btn-status.st-need_judgement { border-left-color: var(--st-need_judgement); }
.btn-status.st-completed { border-left-color: var(--st-completed); }
.btn-status.st-returned_to_flow { border-left-color: var(--st-returned_to_flow); }
.btn-status.st-scrapped { border-left-color: var(--st-scrapped); }
.btn-status.st-paused { border-left-color: var(--st-paused); }
.btn-status.current { color: #fff; border-color: var(--ink); cursor: default; }
.btn-status.current.st-pending { background: var(--st-pending); }
.btn-status.current.st-processing { background: var(--st-processing); }
.btn-status.current.st-need_second_round { background: var(--st-need_second_round); color: var(--ink); }
.btn-status.current.st-need_judgement { background: var(--st-need_judgement); }
.btn-status.current.st-completed { background: var(--st-completed); }
.btn-status.current.st-returned_to_flow { background: var(--st-returned_to_flow); }
.btn-status.current.st-scrapped { background: var(--st-scrapped); }
.btn-status.current.st-paused { background: var(--st-paused); }

/* ---------- 兩欄 ---------- */
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.detail-left, .detail-right { display: flex; flex-direction: column; gap: 18px; }

/* ---------- 基本資料 dl ---------- */
.info-list { display: grid; grid-template-columns: 76px 1fr; gap: 7px 12px; margin: 0; }
.info-list dt { color: var(--ink-faint); font-weight: 700; font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.info-list dd { margin: 0; font-size: 14px; }

.edit-form, .photo-form, .round-form { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line-soft); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.check-inline { display: flex; align-items: center; gap: 8px; }
.check-inline input { width: 22px; height: 22px; min-height: auto; accent-color: var(--ink); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.field.disabled, #unresolved-wrap.disabled { opacity: .4; }

/* ---------- 照片牆 ---------- */
.photo-group { margin-bottom: 12px; }
.photo-group-label { font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); margin-bottom: 5px; }
.photo-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-wall.small .photo-item { width: 64px; height: 64px; }
.photo-item {
  position: relative; width: 96px; height: 96px; border-radius: var(--radius);
  overflow: hidden; border: var(--bw) solid var(--line); display: block;
  transition: transform .1s, box-shadow .1s;
}
.photo-item:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(23, 20, 16, .72); color: #fff; font-size: 11px; padding: 2px 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--hazard-tint);
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  transition: background .12s;
}
.photo-btn:hover { background: var(--hazard); }
/* 連拍(button 元素)= 主打動作:實心安全黃 */
button.photo-btn { font: inherit; background: var(--hazard); border-style: solid; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line-soft); border-radius: var(--radius); }

/* ---------- 時間軸:左軌 + 里程節點 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  position: relative;
  padding: 0 0 16px 46px;
}
.timeline-item:last-child { padding-bottom: 0; }
/* 軌道線由各 item 畫(節點以下),末項不畫 → 線不會突出末節點 */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px; top: 34px; bottom: -2px;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.tl-node {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(23, 20, 16, .85);
  z-index: 1;
}
.timeline-item.resolved .tl-node { background: var(--ok); color: #fff; }
.timeline-item.unresolved .tl-node { background: var(--hazard); color: var(--ink); }
.tl-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.timeline-item.resolved .tl-card { border-left-color: var(--ok); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-round { font-weight: 800; font-size: 14px; }
.tl-handler { font-weight: 700; font-size: 13px; }
.tl-time { font-size: 11px; color: var(--ink-faint); margin-left: auto; }
.tl-row { display: flex; gap: 8px; font-size: 14px; margin: 3px 0; line-height: 1.55; }
.tl-row b {
  flex: 0 0 42px;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  padding-top: 3px;
}
.tl-verdict { align-items: center; }
.badge-ok { color: var(--ok); font-weight: 800; }
.badge-no { color: var(--warn); font-weight: 800; }
.tl-empty { padding: 8px 0 0 46px; }

/* ---------- 手機 ---------- */
@media (max-width: 860px) {
  .detail-cols { grid-template-columns: 1fr; }
  .filter-item select, .filter-item input { min-width: 120px; }
  .filter-actions { margin-left: 0; width: 100%; }
  .case-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .cc-thumb { height: 118px; }
  .cc-problem { min-height: auto; }
}

/* ============================================================
   佇列重設計元件(工業標籤語言版):tabs / chips / 認領 / 結果卡
   ============================================================ */
.detail-top { display: flex; justify-content: space-between; align-items: center; }
.next-one:hover { color: var(--ink); }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding: 2px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  font-weight: 800; font-size: 14px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform .08s, box-shadow .08s;
}
.tab:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.tab.on { background: var(--ink); color: var(--hazard); transform: translate(1px, 1px); box-shadow: none; }
.tab b { font-family: var(--font-mono); font-size: 12px; }
.tab b.hot { color: var(--st-need_judgement); }
.tab.on b, .tab.on b.hot { color: var(--hazard); }

.status-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.schip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 3px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px; font-weight: 700;
  box-shadow: 2px 2px 0 rgba(23, 20, 16, .85);
}
.schip.on { background: var(--ink); color: #fff; box-shadow: none; transform: translate(1px, 1px); }
.schip b { font-family: var(--font-mono); }

.age-badge {
  display: inline-flex; align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 11px; font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.age-badge.hot { background: var(--st-pending); color: #fff; border-color: var(--ink); }

.dl-problem { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; }
.dl-facts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.dl-facts b { color: var(--ink); }
.fact-arrow { color: var(--ink-faint); }

.claim-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.claim-bar input { max-width: 190px; min-height: 42px; }
.claim-hint { font-size: 12px; color: var(--ink-faint); }

.status-more summary {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 6px 2px; user-select: none;
}
.status-more summary::-webkit-details-marker { display: none; }
.status-more[open] .sum-mark { transform: rotate(180deg); }
.status-more .quick-status { margin-top: 10px; }

.oc-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oc {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: var(--bw) solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer; position: relative;
}
.oc input { position: absolute; opacity: 0; pointer-events: none; }
.oc:hover { border-color: var(--ink); }
.oc:has(input:checked) { border-color: var(--ink); background: var(--hazard-tint); box-shadow: var(--shadow-sm); }
.oc-t { font-weight: 800; font-size: 14px; }
.oc-d { font-size: 11.5px; color: var(--ink-soft); }
.oc-branch {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.close-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.close-choice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 14px;
  border: var(--bw) solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.close-choice input { width: 16px; height: 16px; min-height: auto; accent-color: var(--ink); }
.close-choice:has(input:checked) { border-color: var(--ink); background: var(--hazard); }
.field-error .oc, .field-error .close-choice { border-color: var(--danger); }
.more-fields { margin-bottom: 10px; }
.more-fields summary {
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 4px 0; user-select: none;
}
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::before { content: "▸ "; }
.more-fields[open] > summary::before { content: "▾ "; }

@media (max-width: 640px) {
  .oc-group { grid-template-columns: 1fr; }
  .claim-bar input { max-width: none; flex: 1; }
}

/* ---------- 拍照/相簿雙按鈕 + 累積縮圖(可單張移除) ---------- */
.photo-btn-row { display: flex; gap: 8px; }
.photo-btn-row .photo-btn { flex: 1; min-width: 0; }
.photo-preview .thumb {
  position: relative; width: 72px; height: 72px;
  border: 2px solid var(--line); overflow: hidden; background: var(--paper);
}
.photo-preview .thumb img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.photo-preview .thumb-rm {
  position: absolute; top: 0; right: 0;
  width: 20px; height: 20px; padding: 0; border: 0;
  background: var(--ink); color: var(--hazard);
  font-size: 11px; line-height: 20px; cursor: pointer;
}
.photo-preview .thumb-busy {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-faint); border: 2px dashed var(--line);
}
