/* LP の「試してみる」デモ。index.html（英日）から読み込む。
   パネルの寸法はアプリの PanelLayout.Compact（幅280・行高28・角丸8）に合わせてある。
   見た目をアプリと揃えておかないと、インストール後に「デモと違う」になるため。 */

.demo-chat{
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  padding:4px 0; margin:0 0 16px;
}
.demo-msg{display:flex; gap:12px; padding:14px 20px}
.demo-msg + .demo-msg{border-top:1px solid var(--border)}
.demo-avatar{
  flex:none; width:32px; height:32px; border-radius:8px;
  display:grid; place-items:center; font-weight:600; font-size:.85rem;
  background:var(--surface-2); color:var(--text-dim);
}
.demo-name{font-weight:700; font-size:.9rem; margin:0 0 2px}
.demo-name time{font-weight:400; color:var(--text-dim); font-size:.8rem; margin-left:8px}
.demo-body{margin:0; font-size:.98rem; overflow-wrap:anywhere}

.caution.demo-notice{margin:-12px 0 24px}

/* ---- パネル（画面右下に固定） ---- */
.pd-panel{
  position:fixed; right:16px; bottom:16px; z-index:50;
  width:min(280px, calc(100vw - 32px));
  display:flex; flex-direction:column; gap:4px;
  font-family:var(--font-body); font-size:13px; line-height:1.4;
}
.pd-panel[hidden]{display:none}
.pd-chrome{
  background:var(--panel-bg);
  -webkit-backdrop-filter:blur(18px) saturate(1.4); backdrop-filter:blur(18px) saturate(1.4);
  border:1px solid var(--panel-line); border-radius:8px;
  box-shadow:var(--panel-shadow);
  animation:pd-in .18s ease-out both;
}
@keyframes pd-in{from{opacity:0; transform:translateX(12px)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){ .pd-chrome{animation:none} }

.pd-rowwrap{position:relative}
.pd-row{
  all:unset; box-sizing:border-box; width:100%; height:28px; padding:0 8px;
  display:flex; align-items:center; gap:6px; cursor:pointer; color:var(--text);
}
.pd-rowwrap:hover > .pd-chrome, .pd-chrome:hover{background:var(--panel-hover)}
.pd-row:focus-visible{outline:2px solid var(--accent); outline-offset:-2px; border-radius:8px}
.pd-key{flex:none; width:30px; font-family:var(--font-mono); font-size:11px; color:var(--text-dim)}
.pd-ico{flex:none; width:16px; height:16px; color:var(--accent); display:grid; place-items:center}
.pd-ico svg{width:15px; height:15px}
.pd-ttl{flex:none; font-weight:600; white-space:nowrap}
.pd-det{min-width:0; flex:1; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pd-count{flex:none; font-family:var(--font-mono); font-size:11px; color:var(--text-dim)}
.pd-header .pd-ttl{flex:1}
.pd-back{color:var(--text-dim)}
.pd-back .pd-ttl{font-weight:400}
.pd-back .pd-hint{font-size:11px; flex:none}

/* ホバー中だけ出す × 。行の中に並べると補足の省略位置が揺れるので重ねて置く（アプリと同じ）。 */
.pd-x{
  all:unset; position:absolute; top:4px; right:4px; width:20px; height:20px;
  display:none; place-items:center; border-radius:999px; cursor:pointer;
  color:var(--text-dim); background:var(--panel-hover);
}
.pd-x:hover{color:var(--text)}
.pd-x:focus-visible{display:grid; outline:2px solid var(--accent)}
.pd-rowwrap:hover > .pd-x{display:grid}

.pd-reading{padding:2px 10px 10px; font-size:13px}
.pd-src{margin:0; color:var(--text-dim); white-space:pre-wrap; overflow-wrap:anywhere}
.pd-sep{border:0; border-top:1px solid var(--panel-line); margin:8px 0}
.pd-dst{margin:0; white-space:pre-wrap; overflow-wrap:anywhere}
.pd-note{margin:8px 0 0; font-size:11px; color:var(--text-dim)}
