/* 名刺フォローだけの見た目（共通デザイン style.css のあとに読む）。色は変数で書く */
.test-band{background:var(--warning);color:#fff;text-align:center;font-weight:700;font-size:.85rem;padding:6px 16px}
.only-sp{display:none}
@media (max-width:640px){.only-sp{display:inline-flex}}
.card-head h2{display:flex;align-items:center;gap:6px}
.card-head h2 svg{width:18px;height:18px;color:var(--muted)}
.btn svg{width:18px;height:18px}
.pre{white-space:pre-wrap}

/* 一覧の小さい名刺 */
.thumb{flex:none;width:64px;height:40px;border-radius:6px;object-fit:cover;background:var(--surface-2);border:1px solid var(--line)}
.thumb-empty{display:grid;place-items:center;color:var(--muted);font-weight:700}
.list .item-main{min-width:0}
.list .item-title,.list .item-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-title{font-weight:600}

/* 名刺の画像 */
.card-images,.edit-images{display:grid;gap:12px}
.card-image{display:block;width:100%;border-radius:var(--r);border:1px solid var(--line);background:var(--surface-2)}
.edit-layout{display:grid;gap:16px}
@media (min-width:900px){
  .edit-layout:has(.edit-images){grid-template-columns:minmax(260px,380px) 1fr;align-items:start}
  .edit-images{position:sticky;top:76px}
}
.edit-actions{flex-wrap:wrap}

/* 撮る画面 */
.shots{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:480px){.shots{grid-template-columns:1fr}}
.shot{position:relative;display:grid;place-items:center;aspect-ratio:91/55;border:2px dashed var(--line-strong);border-radius:var(--r);background:var(--surface-2);cursor:pointer;overflow:hidden}
.shot input{position:absolute;inset:0;opacity:0;cursor:pointer}
.shot-empty{display:grid;justify-items:center;gap:4px;color:var(--muted);text-align:center;pointer-events:none}
.shot-empty svg{width:32px;height:32px}
.shot-empty b{color:var(--ink)}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--surface);pointer-events:none}
.shot.has-image{border-style:solid;border-color:var(--accent)}

/* 箇条の並び（区切り線つき） */
.plain-list{list-style:none;margin:0;padding:0}
.plain-list > li{padding:12px 0;border-bottom:1px solid var(--line)}
.plain-list > li:first-child{padding-top:0}
.plain-list > li:last-child{border-bottom:0;padding-bottom:0}
.plain-list .row{gap:6px}

/* メール */
.mail-body,.sig{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:.95rem;line-height:1.8;margin:0;padding:16px;border-radius:var(--r);background:var(--surface-2)}
.sig{font-size:.85rem;padding:10px 12px;margin-top:6px}
.send-when{border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;margin:0}
.send-when legend{font-weight:600;font-size:.875rem;padding:0 6px}
.stats .stat-value{font-size:1.5rem}

/* 長い名前で横にはみ出さないように（グリッドの子は中身の幅まで広がるため） */
.grid-2 > *,.stack > *,.edit-layout > *{min-width:0}
.list .item-main{flex:1}
/* ホームの数字はスマホでも3つ横に並べる */
.grid.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:640px){.stats .stat{padding:10px 12px}.stats .stat-label{font-size:.7rem}.stats .stat-value{font-size:1.25rem}}
