/* castdemo.css  ホームページのデモ用：キャストのマイページの「デモの操作」の箱（PC は右に常時・狭い画面は右上のボタンで開閉）・携帯の通知の見本・ひとこと。
   cast.css は変更しない。デモで出さないもの：「この端末の登録を解除する」のカード・「この端末の通知を解除」（最初から登録済み・通知設定済みの状態を保つ） */
.hpcd-panel { position: fixed; z-index: 45; top: 16px; left: calc(50% + 252px); width: 284px; box-sizing: border-box; background: #fff; border: 1px solid #e3d6db; border-radius: 16px; box-shadow: 0 10px 30px rgba(90, 40, 60, .16); padding: 14px 14px 12px; font: 14px/1.5 -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; color: #3b2a30; }
.hpcd-panel .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hpcd-panel .h b { font-size: 15px; }
.hpcd-panel .h .x { display: none; background: none; border: 0; font-size: 16px; color: #8a7079; cursor: pointer; padding: 2px 4px; }
.hpcd-panel .d { margin: 0 0 10px; font-size: 12.5px; color: #6b5760; }
.hpcd-panel .b { display: block; width: 100%; box-sizing: border-box; text-align: left; margin: 0 0 8px; padding: 11px 12px; border-radius: 12px; border: 1.5px solid #e6cfd7; background: #fff; color: #3b2a30; font-weight: 700; font-size: 14px; cursor: pointer; }
.hpcd-panel .b:hover { border-color: #d46a8a; }
.hpcd-panel .b.p { background: #d46a8a; border-color: #d46a8a; color: #fff; }
.hpcd-panel .b.p:hover { background: #c2577a; }
.hpcd-panel .b.s { font-weight: 600; font-size: 13px; color: #6b5760; background: #faf4f6; }
.hpcd-panel .msg { font-size: 12.5px; color: #1d5fa8; background: #eaf2ff; border-radius: 10px; padding: 8px 10px; margin: 2px 0 8px; display: none; }
.hpcd-panel .msg.on { display: block; }
.hpcd-panel .f { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 11.5px; color: #8a7079; border-top: 1px solid #f0e3e8; padding-top: 8px; }
.hpcd-panel .f button { background: none; border: 0; padding: 0; color: #1d5fa8; text-decoration: underline; cursor: pointer; font-size: 11.5px; }
.hpcd-panel .f a { color: #1d5fa8; }
.hpcd-pill { display: none; }
@media (max-width: 1099px) {
  .hpcd-pill { display: inline-flex; position: fixed; z-index: 45; top: calc(8px + env(safe-area-inset-top)); right: 8px; background: rgba(17, 24, 39, .82); color: #fff; border: 0; border-radius: 999px; padding: 6px 11px; font: 700 12px/1.2 -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; }
  .hpcd-panel { display: none; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 360px); z-index: 75; }
  .hpcd-panel.open { display: block; }
  .hpcd-panel .h .x { display: inline-block; }
}
/* 携帯の通知の見本（画面を閉じているときに通知欄に出る形。上から出て 5 秒で消える） */
.hpcd-osn { position: fixed; z-index: 80; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(94vw, 420px); box-sizing: border-box; background: rgba(250, 250, 252, .97); color: #111; border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; animation: hpcd-down .3s ease-out; cursor: pointer; font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
.hpcd-osn img { width: 38px; height: 38px; border-radius: 9px; display: block; }
.hpcd-osn .t { display: flex; justify-content: space-between; font-size: 13px; }
.hpcd-osn .t b { font-weight: 700; }
.hpcd-osn .t span { color: #6b7280; font-size: 12px; }
.hpcd-osn .b { font-size: 14px; margin-top: 1px; }
.hpcd-osn .hint { grid-column: 1 / -1; font-size: 11px; color: #6b7280; border-top: 1px solid #e5e7eb; padding-top: 6px; margin-top: 2px; }
.hpcd-osn.out { animation: hpcd-up .45s ease-in forwards; }
@keyframes hpcd-down { from { transform: translate(-50%, -120%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes hpcd-up { to { transform: translate(-50%, -140%); opacity: 0; } }
/* ひとこと（操作の結果） */
.hpcd-hint { position: fixed; z-index: 62; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom)); max-width: min(92vw, 440px); background: #1d5fa8; color: #fff; border-radius: 12px; padding: 9px 14px; font: 600 13px/1.45 -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); text-align: center; animation: hpcd-fade .2s ease-out; }
@keyframes hpcd-fade { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* デモで出さないもの */
.cm-card:has(> [data-act="logout"]) { display: none; }
[data-act="push-off"] { display: none; }
