/* アプリの枠の共通の決まり。Web アプリ（index.html）とツールの画面（desktop/index.html）が同じものを読む。
   左のサイドバー・下のタブ・上の文字のナビ（とツールの左の列のログの一覧）は v3 から出していないので外した（2026-10-12。docs/SETLOG_V3.md §1） */

/* ツールの中: スクロールバーの有無で中身の幅が変わらないように（ページを移るときに横にずれない） */
html.in-tool { scrollbar-gutter: stable; }

/* ツールの中（html.in-tool。tool.js・boot-shell.js が付ける）: ロゴを画面に出さない */
html.in-tool .brand { display: none !important; }
html.in-tool .top { justify-content: flex-end; }

/* 拡大・縮小をさせない（2026-10-10）: ダブルタップの拡大を止め、iPhone で入力欄を押したときの自動の拡大を防ぐ（16px 未満の文字だと拡大される） */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px) { input, textarea, select { font-size: max(16px, 1em); } }

/* ---- VR の中のパネル（隠れた WebView の /desktop/?…&vr=1。tool-hints.js が html に vr を付ける）だけ、小さいボタン・文字を大きくする ----
   2026-10-22 のオーナー「アイコンや文字も小さい。特に動画の数に応じて増える〇アイコンや招待ボタンが極端に小さい」。ツールの窓・Web は変えない。
   CSS の幅（vr/webpanel.rs の CSS_W = 920）は、広い画面の組み方（min-width: 900px。升目・左右の矢印）を保つため下げない。代わりにパネルを大きくした（vr/spatial.rs） */
/* VR のパネルを閉じる帯（vr-close.js。2026-10-24 のオーナー「撮影後、パネルが出た時の閉じ方が最初のひとはわからない」）。上の端に固定し、
   中身（上に残る行・シート）はその下から始める。左に「しまう: ✕ か 右スティックを奥に倒して長押し（…また出すときも同じ）」（2 行まで。ボタンで 3 回
   出し入れできたら短い 1 行「右スティック↑長押しで出し入れ」）、右に大きな［✕ パネルを閉じる］ */
html.vr-closebar { --vr-bar-h: 48px; }
.vr-close-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 8px 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.vr-close-hint { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.25; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vr-close-hint.learned { color: var(--muted); white-space: nowrap; text-overflow: ellipsis; display: block; }
/* 撮り終えて自動で出たシートの上の、このパネルの説明（最初の 3 回。vr-close.js の vrIntro） */
.vr-intro { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--accent); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; }
.vr-intro strong { font-size: 19px; }
.vr-close-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 20px 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: 700 16px/1 var(--font-head, inherit); cursor: pointer; }
.vr-close-btn:hover { border-color: var(--accent); }
.vr-close-x { font-size: 21px; line-height: 1; }
html.vr-closebar body { padding-top: var(--vr-bar-h); }
/* 手のひらメニューを隠しているあいだの 1 行（vr-close.js の mountPalmHiddenLine。2026-10-24）。閉じる帯のすぐ下に固定し、その分だけ下げる */
html.vr-closebar.vr-palmline { --vr-bar-h: 96px; }
.vr-palm-line { position: fixed; top: 48px; left: 0; right: 0; z-index: 95; height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 0 8px 0 16px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-bottom: 1px solid var(--line); }
.vr-palm-line[hidden] { display: none; }
/* 設定の「手のひらメニューを出す」の行（隠しているとき。tool-settings.js・desktop.js の palmRowAttn） */
.palm-hidden-row { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vr-palm-text { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-palm-btn { flex: none; height: 40px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--accent); background: var(--bg); color: var(--text); font: 700 16px/1 var(--font-head, inherit); cursor: pointer; }
/* 案内の［わかった］・手のひらメニューの 1 行の［あとで］（2026-10-25 のオーナー「無視できる・消せるボタンが欲しい」）。
   パネルを閉じる［✕ パネルを閉じる］とは見分けられるよう、枠の無い控えめなボタン（レーザーで押せる高さは保つ） */
.vr-hint-off, .vr-palm-later { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 700 15px/1 var(--font-head, inherit); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vr-hint-off:hover, .vr-palm-later:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.vr-hint-off[hidden], .vr-close-hint[hidden] { display: none; }
html.vr-closebar :is(.top, .log-bar.tool-bar, .home-head, .page-back-bar, .settings-head, .tool-update-bar, .promo-bar) { top: var(--vr-bar-h); }
html.vr-closebar .settings-page.wide .settings-nav { top: calc(64px + var(--vr-bar-h)); max-height: calc(100vh - 76px - var(--vr-bar-h)); }
/* シート・ダイアログは帯の下から（帯の高さは vr-close.js が実際の高さで --vr-bar-h に入れる）。シートの高さも帯の分を引く（下の html.vr の
   max-height が同じ強さで後ろにあり、帯の分を引かない 100vh で上書きしていたので、帯が 2 本のとき［送る］の段が下に見切れた。2026-10-25 のオーナーの実機） */
html.vr-closebar .modal { top: var(--vr-bar-h); }
/* 画面いっぱいの高さ（100dvh）で組むシート（共有・まとめ）も、帯の分を引く（前は共有のシートの頭と ✕ が帯の裏に隠れた。2026-10-25 の夜の点検） */
html.vr-closebar .modal.share { padding: 12px; }
html.vr-closebar .modal.share .modal-body { height: calc(100dvh - 24px - var(--vr-bar-h)); max-height: calc(100dvh - 24px - var(--vr-bar-h)); }
html.vr-closebar .modal.share .sh-col-left .sh-post { max-height: calc(100dvh - 200px - var(--vr-bar-h)); }
html.vr-closebar .modal.share .sh-col-left .sh-media :is(video, img, canvas) { max-height: calc(100dvh - 300px - var(--vr-bar-h)); }
html.vr-closebar .modal.recap-sheet .modal-body { height: calc(100dvh - var(--vr-bar-h)); }
/* VR の select の代わりの一覧（vr-select.js。OS の一覧はパネルに写らない。2026-10-25） */
.vr-select { position: fixed; inset: 0; top: var(--vr-bar-h, 0px); z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.vr-select-box { width: min(520px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-sizing: border-box; }
.vr-select-head { display: flex; align-items: center; gap: 12px; }
.vr-select-head strong { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-select-x { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 20px; cursor: pointer; }
.vr-select-list { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.vr-select-opt { flex: none; min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; text-align: left; cursor: pointer; }
.vr-select-opt:hover { border-color: var(--accent); }
.vr-select-opt.on { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); font-weight: 700; }
.vr-select-opt:disabled { opacity: .5; cursor: default; }
/* 更新の帯（tool-update.js）はシート・ダイアログの下に（前は z-index 70 でシートの頭と ✕ を隠していた。2026-10-25 の夜の点検）。VR では帯のボタンも押せる大きさに */
html.vr .tool-update-bar .btn.small, html.vr .tool-update-bar .ghost.small { min-height: 40px; padding: 4px 16px; font-size: 15px; }
/* VR で小さすぎた押せるもの（ホームの［消す］・ログの上のグループ名） */
html.vr .unsent-actions .linklike { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; }
html.vr .lb-name-row button.lb-name { display: inline-flex; align-items: center; min-height: 40px; }
/* 動画の数の〇（ログの 1 日の枠の右上） */
/* VR の動画の数の丸は小さめ（見える丸 12px。押せる範囲は 32px のまま広め。2026-10-25 のオーナー） */
html.vr .mf-dot { width: 32px; height: 32px; }
html.vr .mf-dot::before { inset: 10px; border-width: 2px; }
html.vr .mframes .mframe .mf-dots { gap: 2px; margin: 4px 4px 0 0; }
/* ログの上の行の招待のボタン・日付・前後の日 */
html.vr .lb-name-row .invite-head-btn { height: 47px; padding: 0 19px; font-size: 17px; gap: 7px; }
html.vr .lb-name-row .invite-head-btn .ico { width: 23px; height: 23px; }
html.vr .lb-name { font-size: 17px; }
/* VR のログの上の 1 行: グループ名が入るよう、トーク・共有のボタンは出さない（2026-10-22 のオーナーの実機「チャットアイコンを非表示に」）。名前は … で切る */
html.vr .log-bar .chat-btn, html.vr .log-bar .share-btn { display: none; }
html.vr .log-bar .lb-name-row { flex-wrap: nowrap; }
html.vr .log-bar .lb-name-row .lb-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.vr .log-bar .lb-pair { gap: 8px; }
/* VR の送り先のシート（撮り終えたら VR のパネルに出る。2026-10-22）: レーザーで押しやすく。動画は小さめにして、送り先を多く見せる */
html.vr .modal.send-sheet { padding: 10px 12px; }
html.vr .modal.send-sheet .modal-body { max-width: calc(100vw - 24px); max-height: calc(100vh - 20px - var(--vr-bar-h, 0px)); padding-top: 12px; gap: 8px; }
html.vr .send-sheet .modal-body h2 { font-size: 19px; }
/* 下の［送る］［あとで］［撮り直す］の段は、いつも見える（低いパネルでも一覧のほうを縮める）。左の動画とひとことも、はみ出すときは中でスクロール */
html.vr .send-foot { padding: 8px 16px; }
html.vr .send-main.has-side .send-side { max-height: 100%; overflow-y: auto; }
html.vr .send-sheet .vr-intro { margin: 0 0 6px; padding: 10px 14px; font-size: 14px; }
html.vr .send-sheet .vr-intro strong { font-size: 17px; }
/* 動画は左の列（style.css の .send-main.has-side）。VR は送り先の名前が読めるよう、左を 1/3 にして一覧を広く */
@media (min-width: 760px) { html.vr .send-main.has-side { grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); } }
html.vr .send-targets .send-row { min-height: 56px; font-size: 16px; padding: 10px 16px; }
html.vr .send-targets .send-row input[type=checkbox] { width: 26px; height: 26px; flex: none; }
html.vr .send-sheet .send-memo { min-height: 42px; font-size: 15px; }
html.vr .send-foot .btn, html.vr .send-foot .linklike { min-height: 46px; padding: 8px 26px; font-size: 17px; }
html.vr .send-sheet .icon-btn { min-width: 46px; min-height: 46px; }
html.vr .lb-day .tb-title { font-size: 14px; }
html.vr .lb-day .icon-btn.small { width: 40px; height: 40px; min-width: 40px; font-size: 18px; }
/* 丸いボタン・アイコンのボタン */
html.vr .icon-btn { min-width: 40px; min-height: 40px; font-size: 16px; }
html.vr .round-btn, html.vr .to-top { width: 46px; height: 46px; font-size: 21px; }
html.vr .round-btn .ico { width: 23px; height: 23px; }
html.vr .round-spacer { width: 46px; }
html.vr .mf-act { width: 46px; height: 46px; }
html.vr .mf-act .ico { width: 23px; height: 23px; }
html.vr .rx-opt { width: 49px; height: 49px; font-size: 28px; }
html.vr .sh-seg-btn { min-height: 42px; font-size: 14px; }
html.vr .sh-pick-item { width: 74px; font-size: 14px; }
html.vr .sh-pick-item img, html.vr .sh-pick-item .unsent-ghost { width: 74px; height: 74px; }
html.vr .sh-pick-check { width: 25px; height: 25px; font-size: 14px; }
html.vr .sh-more-body { font-size: 14px; }
html.vr .sh-layout-btn { width: 49px; height: 49px; }
html.vr .sh-layout-btn .ico { width: 25px; height: 25px; }
html.vr .sh-seg-btn .ico { width: 19px; height: 19px; }
html.vr .mframes.fit.peek + .more-below .more-below-btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
/* チップ・小さな印（pill） */
html.vr .chips a { padding: 8px 16px; font-size: 14px; }
html.vr .pill { font-size: 14px; }
/* 小さい文字（15〜16px まで） */
html.vr .home-status, html.vr .home-meta, html.vr .mf-end, html.vr .rx-summary, html.vr .alert, html.vr details summary, html.vr .about-link, html.vr .card h2 { font-size: 14px; }
html.vr .rx-count, html.vr .mframes .mframe .mf-shares, html.vr .reel-stamp, html.vr .small, html.vr .disclaimer, html.vr .last-badge,
html.vr label.toggle span small, html.vr .settings-link-row small, html.vr .settings-nav-item .small { font-size: 14px; }
html.vr .frame-world { font-size: clamp(12px, 3.4cqw, 14px); }
html.vr .mframes .mframe .mf-name { font-size: clamp(13px, 5.5cqw, 16px); }
html.vr .mframes .mframe .mf-meta { font-size: clamp(14px, 6.5cqw, 26px); }

/* ---- VR の中のパネルの文字入力（vkb.js。2026-10-24）。欄を押すと下に出る。レーザーで狙えるように大きなキー ----
   開いている間は html.vkb-open: ページの下に余白を足し、ダイアログはキーボードの上までにする（欄が隠れない） */
html.vkb-open body { padding-bottom: var(--vkb-h, 320px); }
html.vkb-open .modal { bottom: var(--vkb-h, 320px); }
/* 送り先のシートでひとことを書いているあいだ: シートの高さからキーボードの分も引き（前は［送る］の段がキーボードの裏に隠れ、頭も帯の下に切れた）、
   動画は隠して、ひとことの欄と［送る］の段を見せる（2026-10-25 の夜の点検） */
html.vkb-open .modal.send-sheet .modal-body { max-height: calc(100vh - 20px - var(--vr-bar-h, 0px) - var(--vkb-h, 320px)); }
html.vkb-open .send-sheet .send-preview, html.vkb-open .send-sheet .vr-intro { display: none; }
/* AI サポートとお問い合わせのシート（public/support.js）: VR のパネルは低いので、やり取りの欄を縮める。キーボードが出ている間はもっと縮め、例の質問・説明の行は隠す */
html.vr .modal.support-sheet .modal-body { max-width: calc(100vw - 24px); gap: 8px; }
html.vr .support-log { max-height: 38vh; min-height: 100px; }
html.vr .support-tab, html.vr .support-chip { min-height: 44px; }
html.vkb-open .support-log { max-height: 24vh; min-height: 60px; }
html.vkb-open .support-sheet .support-note, html.vkb-open .support-sheet .support-mail { display: none; }
.vkb[hidden] { display: none; }
/* 見た目は VRChat に元からあるキーボードに寄せる（2026-10-25 のオーナー）: 画面の色に関わらず、暗い板に濃い灰の角丸のキー・明るい字・
   キーの間をはっきり空ける・押す/指すと水色。キーボードの中だけ色の名前を置き換える */
.vkb { --bg: #2e353a; --surface: #161b1f; --line: #3d464c; --text: #f1f5f7; --muted: #9fb0b8; --link: #7fdce8;
  --accent: #27c3d6; --accent-text: #04191c; --vkb-util: #232a2f;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--surface); border-top: 2px solid #0b0e10; color: var(--text);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .3); padding: 6px 10px 8px; user-select: none; -webkit-user-select: none; touch-action: none; font-family: var(--font-body); }
.vkb-bar { display: flex; align-items: center; gap: 10px; max-width: 780px; margin: 0 auto 6px; }
.vkb[data-layout="qwerty"] .vkb-bar, .vkb[data-layout="qwerty"] .vkb-cands { max-width: 880px; }
.vkb-nav[hidden] { display: none; }
.vkb-nav { flex: none; display: flex; gap: 6px; }
.vkb-nav .vkb-key { width: 64px; height: 48px; font-size: 22px; }
.vkb-view { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.vkb-label { flex: none; max-width: 30%; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vkb-text { flex: 1; min-width: 0; font-size: 20px; line-height: 1.4; padding: 0; white-space: pre; overflow: hidden; color: var(--text); direction: ltr; }
.vkb-text u { text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--link); }
.vkb-caret { display: inline-block; width: 2px; height: 1.1em; margin: 0 1px; vertical-align: -0.15em; background: var(--accent); animation: vkb-blink 1s steps(1) infinite; }
@keyframes vkb-blink { 50% { opacity: 0; } }
.vkb-done { flex: none; min-height: 48px; padding: 8px 26px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-text); font: 700 18px var(--font-body); cursor: pointer; }
/* かな漢字変換の候補の帯（読みを打っている間だけ）。1 番目が［変換］で入る候補。レーザーで狙えるよう大きく、2 段まで */
.vkb-cands[hidden] { display: none; }
.vkb-cands { display: flex; flex-wrap: wrap; gap: 6px; max-width: 780px; max-height: 110px; overflow: hidden; margin: 0 auto 6px; min-height: 52px; }
.vkb-key.cand { flex: 0 1 auto; min-width: 72px; max-width: 100%; height: 52px; padding: 0 16px; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 50px; }
.vkb-key.cand.first { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); font-weight: 700; }
.vkb-cands-wait { align-self: center; padding: 0 12px; font-size: 20px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; }
.vkb-grid { display: grid; gap: 6px; max-width: 780px; margin: 0 auto; }
.vkb[data-layout="flick"] .vkb-grid { grid-template-columns: 1fr 1.25fr 1.25fr 1.25fr 1fr; grid-auto-rows: 54px; }
/* QWERTY: 実際のキーボードの形。キーは同じ幅（--u = 10 個で 1 段）で、段ごとに真ん中に寄せる（A〜L は半キー内側、Z〜M は ⇧ と ⌫ の間）。
   ⇧・⌫・空白（.grow）は段の残りを埋める */
.vkb[data-layout="qwerty"] .vkb-grid { display: flex; flex-direction: column; gap: 6px; max-width: 880px; --u: calc((100% - 9 * 6px) / 10); }
.vkb-row { display: flex; justify-content: center; gap: 6px; height: 48px; }
.vkb-row > .vkb-key { flex: 0 0 var(--u); }
.vkb-row > .vkb-key.w125 { flex-basis: calc(var(--u) * 1.25); }
.vkb-row > .vkb-key.w15 { flex-basis: calc(var(--u) * 1.5); }
.vkb-row > .vkb-key.grow { flex: 1 1 0; }
.vkb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vkb-key { position: relative; display: grid; place-items: center; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 9px;
  background: var(--bg); color: var(--text); font: 500 22px var(--font-body); cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.vkb-key:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.vkb-key.down { background: color-mix(in srgb, var(--accent) 45%, var(--bg)); box-shadow: none; transform: translateY(1px); }
.vkb-key.util { background: var(--vkb-util); font-size: 17px; font-weight: 700; }
.vkb-key.util.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.vkb-key.enter { font-size: 26px; }
.vkb-key.mod { font-size: 18px; }
.vkb-key.q { font-size: 21px; }
.vkb-c { font-size: 24px; font-weight: 700; }
.vkb-h { position: absolute; font-size: 13px; line-height: 1; color: var(--muted); }
.vkb-h.up { top: 4px; left: 50%; transform: translateX(-50%); }
.vkb-h.down { bottom: 4px; left: 50%; transform: translateX(-50%); }
.vkb-h.left { left: 8px; top: 50%; transform: translateY(-50%); }
.vkb-h.right { right: 8px; top: 50%; transform: translateY(-50%); }
/* 押している間の十字（真ん中 = 押す、上下左右 = フリック）。いまの向きを塗る */
.vkb-pop[hidden] { display: none; }
.vkb-pop { position: absolute; width: 168px; height: 168px; margin: -84px 0 0 -84px; pointer-events: none; z-index: 1;
  display: grid; grid-template: repeat(3, 56px) / repeat(3, 56px); grid-template-areas: ". up ." "left mid right" ". down ."; }
.vkb-pop span { display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font: 700 26px var(--font-body); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.vkb-pop span:empty { visibility: hidden; }
.vkb-pop .up { grid-area: up; } .vkb-pop .left { grid-area: left; } .vkb-pop .mid { grid-area: mid; } .vkb-pop .right { grid-area: right; } .vkb-pop .down { grid-area: down; }
.vkb-pop span.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---- 設定の選ぶ欄・ボタンの並び・「詳しく」（Web の設定・tool-settings.js・/desktop/ の設定で共通）----
   2026-10-22 のオーナー「設定画面のプルダウンの見た目ださい」「VR に項目が多くてみづらい」「文字量が多いのも見づらい」。
   select は自前の見た目（面の色・角丸・右の矢印は線 2 本の背景。色はテーマの --muted に付いてくる）。2〜4 個から選ぶものは .seg-ctl のボタンの並び */
select.lang-select, select.sel, .settings-row select, label.toggle select {
  appearance: none; -webkit-appearance: none; flex: none;
  font-family: inherit; font-size: 15px; line-height: 1.3; color: var(--text);
  min-height: 42px; width: auto; min-width: 9rem; max-width: min(17rem, 56vw); padding: 9px 38px 9px 13px;
  border: 1px solid var(--line); border-radius: 12px; background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 54%, calc(100% - 14px) 54%; background-size: 6px 6px; background-repeat: no-repeat;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: border-color .15s, box-shadow .15s;
}
:is(select.lang-select, select.sel, .settings-row select, label.toggle select):hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
:is(select.lang-select, select.sel, .settings-row select, label.toggle select):focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
:is(select.lang-select, select.sel, .settings-row select, label.toggle select) option { background: var(--surface); color: var(--text); }
@media (max-width: 900px) { select.lang-select, select.sel, .settings-row select, label.toggle select { font-size: 16px; } }

.seg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.seg-row > span:first-child { flex: 1 1 9rem; min-width: 0; }
.seg-row > span:first-child small { display: block; color: var(--muted); font-size: 12px; }
.seg-row > .seg-ctl { margin-left: auto; }
.seg-ctl {
  display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--text) 6%, transparent);
}
.seg-ctl > button {
  flex: 1 1 auto; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg-ctl > button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.seg-ctl > button.on { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .18), inset 0 0 0 1.5px var(--accent); }
.seg-ctl > button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .seg-ctl > button, select.lang-select, select.sel { transition: none; } }

/* 「詳しく」: 長い説明は閉じておく */
details.more { font-size: 13px; color: var(--muted); width: 100%; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--link); font-weight: 700; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
details.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
details.more p { margin: 4px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.settings-row.more-row { min-height: 0; padding-top: 0; padding-bottom: 10px; border-top: 0; cursor: default; }
.settings-row.more-row:hover { background: none; }
.value-chip { flex: 0 1 auto; max-width: 50%; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font-size: 13px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* ---- VR の中のパネル（html.vr。/desktop/?vr=1 と、そこから移った /settings）: 設定をレーザーで押しやすく ----
   本文 17px 以上・説明 15px 以上・押すもの 48px 以上（間は 12px 以上）・カテゴリ 52px 以上。CSS の幅 920px であふれないこと */
html.vr .settings-page, html.vr .settings-view { font-size: 15px; }
html.vr .settings-row, html.vr label.toggle, html.vr .seg-row, html.vr .settings-link-row, html.vr .settings-view .vr-input-priority { min-height: 53px; gap: 12px; font-size: 15px; }
html.vr .settings-row { padding: 12px 18px; }
html.vr .settings-row.more-row { min-height: 0; padding-top: 0; }
html.vr .settings-row .small, html.vr .settings-row small, html.vr label.toggle span small, html.vr .seg-row small, html.vr .settings-link-row small,
html.vr .settings-view .small, html.vr details.more, html.vr .value-chip { font-size: 14px; }
html.vr :is(select.lang-select, select.sel, .settings-row select, label.toggle select) { min-height: 42px; font-size: 15px; padding: 10px 42px 10px 15px; max-width: 22rem; }
html.vr .seg-ctl { gap: 6px; padding: 4px; }
html.vr .seg-ctl > button { min-height: 42px; padding: 8px 18px; font-size: 15px; }
html.vr .settings-row button.ghost, html.vr .settings-row button.btn, html.vr .settings-view .card button.ghost, html.vr .settings-view .card button.btn,
html.vr .settings-view .row > button { min-height: 42px; padding: 8px 20px; font-size: 15px; }
html.vr .tool-settings .hotkey-actions .row, html.vr .settings-view .hotkey-actions, html.vr .settings-view .row { gap: 12px; }
html.vr details.more > summary, html.vr .tool-settings details.guide > summary { min-height: 42px; }
html.vr input.switch { width: 60px; height: 34px; }
html.vr input.switch::after { width: 26px; height: 26px; }
html.vr input.switch:checked::after { transform: translateX(26px); }
html.vr label.toggle input[type=checkbox] { width: 25px; height: 25px; flex: none; }
html.vr .settings-nav-item { min-height: 53px; padding: 12px 16px; font-size: 15px; }
html.vr .settings-nav-item .small { font-size: 14px; }
/* 広い VR のパネル（CSS の幅 920px・高さ 575px〜）の左のカテゴリ: 説明の行を外して 52px にし、8 個が 1 画面に入るようにする。入らなければカテゴリだけをスクロール
   （スティック・レーザーのなぞりはホイールとして指している所に届く）。2026-10-24 のオーナー「VR だと設定画面のカテゴリのスクロールができなくて見切れてる」 */
html.vr .settings-page.wide .settings-nav-item, html.vr .settings-split .settings-nav-item { min-height: 46px; padding: 8px 16px; }
@media (min-width: 720px) { html.vr .settings-page.wide .settings-nav-item .small, html.vr .settings-split .settings-nav-item .small { display: none; } }
html.vr .settings-pane-title { font-size: 19px; }
html.vr .settings-pane h2, html.vr .settings-view .card h2 { font-size: 15px; }
html.vr .settings-pane, html.vr .settings-pane > *, html.vr .settings-group { min-width: 0; max-width: 100%; }

/* 共有の画面（VR のパネル）: 右上の ✕・「共有を開始する」（48px 以上）・日の ‹ ›・「共有のしかた」の手順を大きく（2026-10-22） */
html.vr .modal.share .sh-close, html.vr .sh-sheet-head .sh-close { width: 49px; height: 49px; --ico: 23px; }
html.vr .modal.share .sh-title { padding-right: 68px; }
html.vr .modal.share .sh-copy, html.vr .modal.share .linklike.small { min-height: 40px; padding: 4px 12px; display: inline-flex; align-items: center; }
html.vr .sh-start { height: 46px; padding: 0 22px; font-size: 16px; }
html.vr .sh-start .ico { width: 21px; height: 21px; }
html.vr .sh-day-btn { width: 46px; height: 46px; }
html.vr .sh-day-label { font-size: 16px; }
html.vr .sh-step-body { font-size: 17px; }
html.vr .sh-step-title { font-size: 18px; }
html.vr .sh-step-num { width: 40px; height: 40px; font-size: 18px; }
html.vr .sh-guide-x, html.vr .sh-reveal { min-height: 49px; font-size: 17px; }

html.vr .modal.share .sh-day { margin-right: 72px; }
html.vr .home-share-btn { height: 49px; font-size: 17px; padding: 0 20px; }

/* VR のパネル: ログの左右の余白を広く・矢印の印を余白の真ん中に（2026-10-22 のオーナーの実機「余白が少し変・矢印と少し重なる」） */
@media (min-width: 900px) {
  html.vr .ta-log { padding-left: 64px; padding-right: 64px; }
  html.vr .day-edge { justify-content: center; }
  html.vr .day-edge span { width: min(44px, calc(100% - 8px)); margin: 0 auto; font-size: 25px; }
}
/* ストーリー（stories.js。2026-10-25）: VR ではレーザーで押しやすく、丸・✕・矢印・♡ を大きく。全画面の画面は閉じる帯の下から */
html.vr .story { --ring: 80px; }
html.vr .story-name { font-size: 14px; }
html.vr .story-badge.mchip, html.vr .story-plus { width: 28px; height: 28px; font-size: 14px; }
html.vr .story-row { gap: 18px; }
html.vr .sv-bar { height: 5px; }
html.vr .sv-close { width: 48px; height: 48px; font-size: 21px; }
html.vr .sv-nav { width: 56px; height: 56px; font-size: 30px; }
html.vr .sv-heart { width: 56px; height: 56px; }
html.vr .sv-name { font-size: 17px; }
html.vr .sv-time, html.vr .sv-groups { font-size: 14px; }
html.vr .sv-caption span { font-size: 18px; }
html.vr-closebar .story-viewer { top: var(--vr-bar-h); }
