/* 会員どうしで渡す（gift.js）: 自分のボードにコピー・QR で渡す・会員コード・受け取り箱。
   app.css の上に重ねる（index.html・view.html・plan.html が読む） */
.inboxbadge{border-color:rgba(55,214,122,.55);background:rgba(55,214,122,.12);color:#7fe6a8}
.pfrom{color:#7fe6a8;font-weight:700;white-space:nowrap}
.lp-title small.lp-from{color:#7fe6a8;overflow:hidden;text-overflow:ellipsis}
a.hbtn{text-decoration:none;display:inline-flex;align-items:center}

/* 共有の窓のチェック（名前を載せる・コピーを許可）: チェックと言葉を横に並べる（.dbox label の縦並びを戻す） */
.dbox label.vm-check.shnames{flex-direction:row;flex-wrap:wrap;align-items:center;color:var(--txt);font-size:13px;margin-top:4px;padding:6px 0}
.dbox label.shcopy{flex-direction:row}
/* 共有の窓の「会員に渡す」 */
.shgift{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.shgift .shgiftb{justify-content:flex-start;flex-wrap:wrap}
.shgift .shgiftb .hbtn{flex:1 1 140px;min-height:44px;justify-content:center}
.shcopy{display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
.shcopy input{width:15px;height:15px;accent-color:var(--gold);margin:0}

/* QR: 画面いっぱいに近い大きさ。白地に黒（カメラが読みやすい） */
.dlg.qr-dlg{width:min(92vw,560px)}
.qrbox{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.qrbox h3{align-self:flex-start}
.qrname{font-weight:800;font-size:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qrimg{width:min(78vw,56vh,440px);aspect-ratio:1;background:#fff;border-radius:14px;padding:6px;display:flex}
.qrimg svg{width:100%;height:100%;display:block}
.qrhint{font-size:18px;font-weight:900;color:var(--gold);margin-top:4px}
.qrbox .dbtns{align-self:stretch}
.qrbox .dbtns .hbtn{flex:1;min-height:46px;justify-content:center}

/* 会員コード（アカウント） */
.acmember{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.mcode{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:18px;letter-spacing:.06em;color:var(--gold);user-select:all}
.gsend input[type=text],.dbox input#mcNameIn{width:100%;background:#0b1210;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:10px 12px;font-size:16px;color:var(--txt);margin-top:4px}
.gsend input#gsCode{font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}
.gsto{margin-top:8px;padding:10px 12px;border:1px solid rgba(55,214,122,.45);border-radius:10px;background:rgba(55,214,122,.08);font-size:14px}
.gsto[hidden]{display:none}

/* 受け取り箱 */
.dlg.gbox-dlg{width:min(94vw,560px)}
.gbox-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gblist{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:60vh;overflow-y:auto}
.gbrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}
.gbrow.done{opacity:.7}
.gbwho{font-weight:800;font-size:14px;color:#7fe6a8;grid-column:1/-1}
.gbwho small{margin-left:8px;font-weight:600;font-size:11px;color:var(--txt-dim)}
.gbwhat{min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gbkind{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;border:1px solid var(--line);font-size:11px;color:var(--txt-dim)}
.gbbtns{display:flex;gap:6px;align-items:center}
.gbbtns .hbtn{min-height:40px}
.gbdone{font-size:11px;color:var(--txt-dim);white-space:nowrap}
.gbempty{padding:18px 6px;line-height:1.8;font-size:12px}
.gbblock{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.gbblock .thelp{flex:1 1 100%}
.gbb{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-family:ui-monospace,Menlo,Consolas,monospace;border:1px solid var(--line);border-radius:999px;padding:2px 4px 2px 10px}
.gbb .hbtn{min-height:28px;padding:0 8px;font-size:11px}
@media (max-width:520px){
  .gbrow{grid-template-columns:minmax(0,1fr)}
  .gbbtns .hbtn{flex:1;justify-content:center}
}

/* 閲覧ページ: 自分のボードにコピー。作った人が許可しているリンクだけに出る。スマホでは「FUQAN BOARD で作る」の代わりにこれを出す */
.vh-copy{font:inherit;font-size:12px;font-weight:800;color:#0b1210;background:#7fe6a8;border:none;border-radius:999px;padding:6px 12px;white-space:nowrap;cursor:pointer;min-height:32px}
.vh-copy[hidden]{display:none}
.vh-copy:disabled{opacity:.6}
#pvCopy{background:#7fe6a8;border-color:#7fe6a8;color:#0b1210;font-weight:800}
@media (max-width:700px){
  body.can-copy #header.vh .vh-cta{display:none}
}
