/* カスタマーレビュー（メインステージの「レビュー」の面。本番の形だけ。WP 2-2）。部品は src/pages/b/_reviews.mjs。
   トークンの役割の名前だけを使う（暗い地と明るい地のどちらでも）。評価の色分けはしない（字で伝える。熾は主ボタンと点だけ）。 */
@layer page {
  .rv { display: grid; gap: var(--es-space-21); margin-top: var(--es-space-21); }
  .rv[hidden] { display: none; }

  /* 概要 */
  .rv-sum { display: grid; gap: var(--es-space-8); padding: var(--es-space-21); background: var(--es-surface); border-radius: var(--es-radius-l); }
  .rv-sum__row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--es-space-13); row-gap: var(--es-space-3); margin: 0; min-width: 0; }
  .rv-sum__row[hidden] { display: none; }
  .rv-sum__k { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-sum__sub { margin-inline-start: var(--es-space-8); }
  .rv-sum__v { font-size: var(--es-text-21); line-height: var(--es-lh-21); font-weight: var(--es-fw-bold); color: var(--es-text-strong); overflow-wrap: anywhere; }
  .rv-sum__note { flex: 1 1 100%; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); text-wrap: pretty; }
  .rv-sum__note:empty { display: none; }

  /* 書く */
  .rv-write { display: grid; gap: var(--es-space-13); }
  .rv-msg { margin: 0; font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text-strong); display: flex; flex-wrap: wrap; gap: var(--es-space-8); }
  .rv-msg[hidden], .rv-form[hidden], .rv-mine[hidden] { display: none; }
  .rv-form { display: grid; gap: var(--es-space-13); }
  .rv-form__lead { margin: 0; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text); text-wrap: pretty; }
  .rv-form__body { min-height: calc(26px * 5 + 10px); }
  .rv-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--es-space-13); }
  .rv-form__btns { display: flex; flex-wrap: wrap; gap: var(--es-space-8); margin-inline-start: auto; }
  .rv-form__btns .btn[hidden] { display: none; }
  .rv-mine { display: grid; gap: var(--es-space-8); padding: var(--es-space-21); background: var(--es-surface); border-radius: var(--es-radius-l); }
  .rv-mine__h { margin: 0; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-mine__h:focus { outline: none; }
  .rv-mine__acts { display: flex; gap: var(--es-space-21); margin: 0; }

  /* 絞り込み・おすすめするか（ラジオの札） */
  .rv-filters { display: flex; flex-wrap: wrap; column-gap: var(--es-space-34); row-gap: var(--es-space-13); }
  .rv-filt, .rv-rec { border: 0; margin: 0; padding: 0; min-width: 0; }
  .rv-filt__k { padding: 0; margin-bottom: var(--es-space-5); font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-filt__row { display: flex; flex-wrap: wrap; gap: var(--es-space-8); }
  .rv-chip { cursor: pointer; position: relative; }
  .rv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .rv-chip:has(input:checked) { box-shadow: inset 0 0 0 var(--es-line-2) var(--es-accent); color: var(--es-text-strong); }
  .rv-chip:has(input:focus-visible) { outline: var(--es-line-2) solid var(--es-focus); outline-offset: 3px; }

  /* 並び */
  .rv-showing, .rv-status { margin: 0; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-showing:empty, .rv-status[hidden] { display: none; }
  .rv-status { font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); display: flex; flex-wrap: wrap; gap: var(--es-space-8); }
  .rv-list { list-style: none; margin: 0; padding: 0; display: grid; }
  .rv-item { display: grid; gap: var(--es-space-8); padding: var(--es-space-21) 0; border-top: var(--es-line-1) solid var(--es-rule); min-width: 0; }
  .rv-list > .rv-item:first-child { border-top: 0; }
  .rv-mine .rv-item { padding: 0; }
  .rv-item__head { display: flex; align-items: center; gap: var(--es-space-13); min-width: 0; }
  .rv-item__mark { flex: 0 0 auto; }
  .rv-item__who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--es-space-8); margin: 0; min-width: 0; }
  .rv-item__name { font-size: var(--es-text-16); line-height: var(--es-lh-16); font-weight: var(--es-fw-bold); color: var(--es-text-strong); overflow-wrap: anywhere; min-width: 0; }
  .rv-item__count, .rv-item__date { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-item__verdict { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--es-space-13); margin: 0; }
  .rv-verdict { font-size: var(--es-text-16); line-height: var(--es-lh-16); font-weight: var(--es-fw-bold); color: var(--es-text-strong); }
  .rv-verdict--up::before, .rv-verdict--down::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: var(--es-space-8); border-radius: var(--es-radius-full); vertical-align: 0.1em; }
  .rv-verdict--up::before { background: var(--es-text-strong); }
  .rv-verdict--down::before { box-shadow: inset 0 0 0 var(--es-line-1) var(--es-text-strong); }
  .rv-item__body { font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; min-width: 0; }
  .rv-item__body.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
  .rv-item__more { justify-self: start; }
  .rv-item__more[hidden], .rv-item__helpful[hidden], .rv-item__note[hidden], .rv-item__acts[hidden] { display: none; }
  .rv-item__helpful, .rv-item__note { margin: 0; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  .rv-item__note { color: var(--es-text-strong); }
  .rv-item__acts { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--es-space-8); row-gap: var(--es-space-5); }
  .rv-item__q { font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); margin-inline-end: var(--es-space-5); }
  .rv-item__report { margin-inline-start: auto; font-size: var(--es-text-13); }
  .rv-morewrap[hidden] { display: none; }
  .rv-rules { margin: 0; font-size: var(--es-text-13); }
}
@layer page {
  /* 「あなたのレビュー」の面（地が面の色）では、頭文字の円に線を足して地と分ける */
  .rv-mine .rv-item__mark { box-shadow: inset 0 0 0 var(--es-line-1) var(--es-border); }
}
