/* スマホから選ぶ (10-31): the PC dialog (#hoOverlay / #hoModal, rendered by public/shared/handoff.js), shared by
   public/index.html and any other page with a dropzone. Uses the page's tokens (--blue-* / --gray-* / --green-600 / --shadow-lg);
   the trigger button's styles stay with each page. */
.ho-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 400; align-items: center; justify-content: center; padding: 16px; }
.ho-overlay.active { display: flex; }
.ho-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 400px; padding: 24px 26px 20px; box-shadow: var(--shadow-lg); position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; outline: none; }
.ho-modal h4:focus { outline: none; }
.ho-modal h4 { margin: 0 0 4px; font-size: 17px; color: var(--gray-800); padding-right: 28px; }
.ho-modal .ho-sub { margin: 0 0 16px; font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.ho-x { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: none; background: none; color: var(--gray-400); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.ho-x:hover { background: var(--gray-100); color: var(--gray-600); }
.ho-qr { width: 200px; height: 200px; margin: 4px auto 10px; display: flex; align-items: center; justify-content: center; }
.ho-qr svg { width: 200px; height: 200px; display: block; }
.ho-qr .ho-ph { width: 200px; height: 200px; border-radius: 10px; background: var(--gray-50); color: var(--gray-400); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ho-url { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--gray-500); margin-bottom: 14px; word-break: break-all; }
.ho-status { display: flex; align-items: center; gap: 10px; background: var(--gray-50); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--gray-700); }
.ho-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); flex: none; }
.ho-dot.live { background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); animation: hoPulse 1.4s ease-in-out infinite; }
.ho-dot.ok { background: var(--green-600, #16A34A); box-shadow: 0 0 0 4px #DCFCE7; }
.ho-dot.bad { background: #DC2626; box-shadow: 0 0 0 4px #FEE2E2; }
@keyframes hoPulse { 50% { opacity: .5; } }
.ho-foot { margin: 12px 0 0; font-size: 11.5px; color: var(--gray-400); line-height: 1.6; }
.ho-files { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.ho-files li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.ho-files b { font-weight: 600; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ho-files .ok { color: var(--green-600, #16A34A); flex: none; }
.ho-files span { flex: none; }
.ho-bar { height: 6px; border-radius: 3px; background: var(--gray-100); overflow: hidden; margin-top: 8px; }
.ho-bar i { display: block; height: 100%; background: var(--blue-600); width: 0; transition: width .3s; }
.ho-primary { display: block; width: 100%; margin-top: 14px; background: var(--blue-600); color: #fff; border: none; border-radius: 9px; padding: 11px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ho-primary:hover { background: var(--blue-700); }
.ho-primary:disabled { opacity: .6; cursor: default; }
.ho-secondary { background: #fff; color: var(--blue-700); border: 1.5px solid var(--blue-100); margin-top: 8px; }
.ho-secondary:hover { background: var(--blue-50); }
.ho-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; align-items: center; }
.ho-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-200); }
.ho-thumbs span { font-size: 12px; color: var(--gray-500); }
.ho-ghost { display: block; width: 100%; margin-top: 8px; background: none; border: none; color: var(--gray-500); font-size: 13px; padding: 6px; cursor: pointer; font-family: inherit; }
.ho-ghost:hover { color: var(--gray-700); text-decoration: underline; }
.ho-modal button:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
