/* 復刻の重複在庫（#473 T5・A案）。色と字はメインボードの印（app.css の :root）をそのまま使う */
.mc-body{display:flex;flex-direction:column;gap:28px}
.mc-blk>h2{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.mc-blk>h2 small{font-size:16px;font-weight:400;color:var(--sub)}
.mc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:16px}
.mc-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;background:var(--card)}
.mc-pair{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--line)}
.mc-pair figure{margin:0;background:var(--card);min-width:0}
.mc-pair figcaption{padding:6px 10px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-ph{display:block;width:100%;aspect-ratio:10/7;background:var(--fill);overflow:hidden;position:relative}
.mc-ph img{display:block;width:100%;height:100%;object-fit:contain}
.mc-noimg{position:absolute;inset:0;display:grid;place-items:center;color:var(--sub);font-size:14px}
.mc-words{padding:12px 16px 4px;display:flex;flex-direction:column;gap:3px;min-width:0}
.mc-title{font-size:17px;font-weight:600;overflow-wrap:anywhere}
.mc-size{font-weight:600;color:var(--sub);margin-left:6px}
.mc-new{color:var(--accent);font-weight:600}
.mc-same{color:var(--ok);font-weight:600}
.mc-diff{color:var(--late);font-weight:600}
.mc-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.mc-acts .btn{min-height:44px}
.mc-acts3{display:grid;grid-template-columns:1fr 1fr auto;padding:12px 16px 16px}
.mc-sending{color:var(--accent);font-weight:600}
.mc-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border-top:1px solid var(--line)}
.mc-next{display:grid;gap:10px}
.mc-next-row>.mc-acts .btn{font-size:13px;padding-inline:8px}
@media(max-width:600px){.mc-next-row>.mc-rwords{flex-basis:45%}}
.panel>.mc-row:first-child{border-top:0}
.mc-thumbs{display:flex;gap:4px;flex:none}
.mc-thumb{width:76px;border-radius:8px}
.mc-rwords{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mc-rwords .mc-title{font-size:16px}
/* 比べる表（人の判断が要る・A案 2026-10-22）。違う行を赤く塗る */
.mc-cmpsum{font-weight:600;margin-top:2px}
.mc-cmpsum b{color:var(--late)}
.mc-cmpwrap{overflow-x:auto;max-width:100%}
.mc-row.mc-hascmp{flex-wrap:wrap}
.mc-row.mc-hascmp>.mc-cmpwrap{flex:1 1 100%;min-width:0}
.mc-cmp{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.mc-cmp th,.mc-cmp td{text-align:left;padding:5px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.mc-cmp.wide{min-width:720px}
.mc-cmp.wide td:nth-child(3){min-width:12em}
.mc-cmp thead th{font-size:12px;color:var(--sub);font-weight:600;white-space:nowrap}
.mc-cmp tbody th{font-weight:500;color:var(--sub);white-space:nowrap}
.mc-cmp tr.diff>*{background:color-mix(in srgb,var(--late) 10%,transparent)}
.mc-cmp tr.diff td{color:var(--late);font-weight:700}
.mc-chip{display:inline-block;font-size:11px;font-weight:700;color:var(--late);border:1px solid var(--late);border-radius:6px;padding:0 5px;margin-left:6px}
.mc-kind{font-weight:600;color:var(--warn)}
.mc-kind.red{color:var(--late)}
.mc-kind.ok{color:var(--ok)}
.mc-mark{font-weight:600;color:var(--ok)}
.mc-warn{color:var(--warn)}
.mc-pick.on{background:var(--accent);color:#fff}
.mc-more{display:block;width:100%;padding:12px 16px;border-top:1px solid var(--line);color:var(--accent);font-weight:600;text-align:left}
.mc-fold{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mc-fold summary{padding:14px 16px;font-weight:700;font-size:17px;cursor:pointer;list-style:none;display:flex;justify-content:space-between}
.mc-fold summary::after{content:"開く";color:var(--accent);font-weight:400}
.mc-fold[open] summary::after{content:"閉じる"}
.mc-fold summary::-webkit-details-marker{display:none}
.mc-fold summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.mc-fold>.mc-row:first-of-type,.mc-fold>.empty{border-top:1px solid var(--line)}
.mc-kv{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.mc-kv:first-child{border-top:0}
.mc-kv .v{color:var(--sub);text-align:right}
.mc-kv.stop .v{color:var(--late)}
.mc-switch{width:51px;height:31px;border-radius:16px;background:var(--todo);position:relative;flex:none}
.mc-switch::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.mc-switch[aria-checked="true"]{background:var(--ok)}
.mc-switch[aria-checked="true"]::after{transform:translateX(20px)}
/* 押した品はその場に薄く残し、ボタンの所だけ小さな「✓ 送りました」の1行にする（#533 オーナー案A 2026-10-27）。
   高さは押した時のまま＝下の品がずれない（2026-10-24 案B と同じ理由）。大きな緑の帯にはしない */
.mc-done{min-height:var(--mc-h,auto)}
.mc-done-dim{opacity:.4}
.mc-done-line{display:flex;align-items:center;gap:12px;min-height:44px;min-width:0;color:var(--ok);font-size:15px;font-weight:600}
.mc-card.mc-done>.mc-done-line{margin-top:auto;justify-content:space-between;padding:4px 16px 12px}
.mc-row.mc-done>.mc-done-line{margin-left:auto;justify-content:flex-end}
/* 送った中身は1行に収める（2行になると押した時より高くなり下の品がずれる・全文は文字に重ねると出る） */
.mc-done-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-done-undo{color:var(--accent);font-size:15px;font-weight:600;min-height:44px;padding:0 4px;white-space:nowrap}
.mc-done-undo:disabled{color:var(--sub)}
.mc-tidy{font-size:15px;font-weight:600;color:var(--accent);margin-left:auto}
/* 復刻の印のカードをまとめて送る帯（チェックした品に同じ答え）。下へ動かしても上に貼りつく */
.mc-bulk{position:sticky;top:0;z-index:3;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 16px;margin-bottom:10px;background:var(--fill);border:1px solid var(--line);border-radius:12px}
.mc-bulk-all{display:flex;align-items:center;gap:6px;font-weight:600;min-height:44px}
.mc-bulk-top{display:flex;align-items:center;gap:4px 16px;flex-wrap:wrap}
/* 4つの答えは同じ幅の枠に（広い画面は4つ横並び・狭い画面は2つずつ・スマホは縦）＝段がずれない */
.mc-bulk-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mc-bulk-acts .btn{white-space:normal;line-height:1.3}
@media(max-width:1200px){.mc-bulk-acts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mc-bulk-count{color:var(--sub)}
.mc-bulk .btn{min-height:44px}
.mc-check{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex:none}
.mc-check input,.mc-bulk-all input{width:22px;height:22px}
/* 写真を押すと大きく出す（この品と相手の品を並べる） */
.mc-zoomable{cursor:zoom-in}
.mc-zoomable:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.mc-zoom{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:56px 16px 16px;cursor:zoom-out}
.mc-zoom-row{display:flex;gap:16px;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.mc-zoom figure{margin:0;flex:1 1 0;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.mc-zoom img{max-width:100%;max-height:calc(100% - 32px);object-fit:contain;background:#fff;border-radius:6px}
.mc-zoom-none{color:#fff;font-size:16px}
.mc-zoom figcaption{color:#fff;font-size:15px;text-align:center;overflow-wrap:anywhere}
.mc-zoom-close{position:absolute;top:calc(8px + env(safe-area-inset-top,0px));right:12px;width:44px;height:44px;border-radius:22px;background:rgba(255,255,255,.18);color:#fff;font-size:26px;line-height:44px;text-align:center}
.mc-dialog{text-align:left;width:min(440px,100%)}
.mc-dialog-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
/* 知らせは上に小さく出し、押す邪魔をしない（下は Sidekick と重なる・10/24。大きいと作業の邪魔・#533 10/27）。
   中にボタンは置かない＝押すのは下の画面へ通す */
.mc-toast{position:fixed;left:50%;top:calc(12px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--text);color:var(--card);padding:7px 14px;border-radius:14px;font-size:14px;line-height:1.4;width:max-content;max-width:min(520px,calc(100% - 32px));box-shadow:0 4px 12px rgba(0,0,0,.18);opacity:.94;pointer-events:none;z-index:20}
@media(max-width:720px){
  .mc-zoom-row{flex-direction:column}
  .mc-zoom figure{height:auto;flex:1 1 0;min-height:0}
  /* スマホでは帯が画面の4割を覆うので貼りつかせない（チェックはカードの左上・帯はこの欄の頭） */
  .mc-bulk{position:static;padding:10px 12px}
  .mc-row.mc-done>.mc-done-line{width:100%;justify-content:space-between}
  .mc-bulk-acts{grid-template-columns:1fr}
  .mc-cmp:not(.wide){font-size:13px}
  .mc-cmp:not(.wide) th,.mc-cmp:not(.wide) td{padding:5px 6px;overflow-wrap:anywhere}
  .mc-cmp:not(.wide) tbody th,.mc-cmp:not(.wide) thead th{white-space:normal;width:5.5em}
  .mc-row{flex-wrap:wrap;align-items:flex-start;padding:14px 12px}
  .mc-thumbs{flex-direction:column}
  .mc-thumb{width:56px}
  .mc-row .mc-acts{width:100%;justify-content:stretch}
  .mc-row .mc-acts .btn{flex:1}
  .mc-acts3{grid-template-columns:1fr 1fr}
  .mc-acts3 .btn.red{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){.mc-switch::after{transition:none}}

/* 説明は押したときだけ開く（#598）。色はこの部品の既存の印を使う */
.mc-chip-help{font-size:13px;font-weight:600;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--card));border-radius:980px;padding:3px 10px;min-height:26px}
.mc-chip-help[aria-expanded=true]{background:var(--accent);color:#fff}
.mc-help{font-size:15px;font-weight:400;color:var(--sub);background:var(--fill);border-radius:8px;padding:9px 12px}

.mc-kind .mc-chip-help{margin-left:8px}
.mc-status summary{gap:12px;align-items:baseline}
.mc-status summary::after{content:"開く"}
.mc-status[open] summary::after{content:"閉じる"}
.mc-status-meta{margin-left:auto;font-size:15px;font-weight:400;color:var(--sub)}
.mc-status-stop{border-color:var(--late)}
.mc-status-stop summary,.mc-status-stop .mc-status-meta{color:var(--late)}
.mc-status .panel{border:0;border-top:1px solid var(--line);border-radius:0}
