/*
 * 未登録の体験（public/js/trial.js・registration.js、2026-10-10）。
 * 質問欄の上に、残りの回数（控えめな一行）と、最初の質問のあとの登録の帯（×で閉じる。操作は止めない）。
 * 登録の小窓は、中身の高さで、狭い幅。値はすべて kosei.css の名前。ボタンは parts.css・buttons.css の部品のまま。
 */
.trial-left {
  margin: 0 0 var(--space-1);
  padding: 0 var(--space-2);
  font-size: var(--fs-tag);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: right;
}
.trial-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0 var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0 0 0 var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface-quiet);
  font-size: var(--fs-note);
}
.trial-band p {
  margin: 0;
  padding: var(--space-2) 0;
  line-height: 1.6;
  color: var(--text);
}
.trial-band-close {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}
.trial-band-close:hover {
  color: var(--text);
}
/* 狭い画面：言葉と×を一行目に、登録のボタンを二行目に */
@media (max-width: 700px) {
  .trial-band {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'p x' 'b b';
    padding-left: var(--space-3);
  }
  .trial-band p {
    grid-area: p;
    padding-bottom: 0;
  }
  .trial-band .small-button {
    grid-area: b;
    justify-self: start;
    margin-left: calc(-1 * var(--space-3));
  }
  .trial-band-close {
    grid-area: x;
    align-self: start;
  }
}

/* 登録の小窓（registration.js）。理由ごとの題と一文、アカウント、戻る・登録 */
#modal:has(.registration) {
  max-width: 32rem;
  min-height: 0;
}
/* 狭い画面では窓の余白を詰めて、題を1行に */
@media (max-width: 44rem) {
  #modal:has(.registration) {
    --pad-y: 32px;
    --pad-x: 24px;
  }
}
.registration h2 {
  font-size: var(--fs-title);
  /* 見出しは読点・かぎかっこの切れ目で折る（「使い／切りました」と語の途中で折れていた。2026-10-27）。auto-phrase は、ブラウザの句の
     分け方が「使い」「切りました」を別の句にするので、そこで折れた（手元の Chromium 153 で確かめた）。切れ目のない長い語が幅を越えるときだけ、どこでも折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.registration-account {
  font-size: var(--fs-note);
  color: var(--text-muted);
}
.registration-actions {
  justify-content: flex-end;
  margin-top: var(--space-5);
}
.registration .link.small {
  margin-top: var(--space-2);
}
/* 登録の窓の「お知らせメールを受け取る」（最初からチェック済み） */
/* 機能・改善のお知らせ（最初からチェック済み。斉藤さん 2026-10-18「はっきり見せる」）：枠で囲み、本文と同じ大きさの字と大きめのチェック */
.registration-news {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  line-height: 1.6;
  min-height: 2.75rem;
  cursor: pointer;
  word-break: auto-phrase;
}
.registration-news input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15em 0 0;
  flex: none;
  accent-color: var(--accent, #17305a);
}
.registration-news > span {
  flex: 1;
  min-width: 0;
}
.registration-news b {
  display: block;
  font-weight: 600;
}
.registration-nw {
  display: block;
  font-size: var(--fs-note);
  color: var(--text-muted);
}
.registration-note {
  margin-bottom: 0;
  font-size: var(--fs-note);
  color: var(--text-muted);
}

/* 全員質問の一文は、質問欄の下に1行ぶんの幅で（「全員に聞く」と送るボタンのあいだに挟まない） */
body.is-chat .cv .composer-box .trial-all-hint {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
}
.report-contents ul { margin: 0 0 0.6rem; padding: 0; list-style: none; }
.report-contents li { margin: 0 0 0.35rem; font-size: 0.9rem; }
.report-contents li strong { margin-right: 0.5em; }
.report-contents-plan span { display: block; font-size: 0.8rem; color: var(--muted, #666); }

.voices-fixed { margin: 0; }
