/* ===========================================================================
   survey.css = 調査ページ（index.html）だけで使う見た目

   構成: 1.調査する前 / 2.調査中 / 3.バッジ獲得のポップアップ
   ★色は app.css のパレット（var(--d-...)）だけを使う。
   =========================================================================== */

.survey {
  /* 調査ボタンとゲージの大きさ。狭いスマホでは画面幅に合わせて小さくなる */
  --dial: min(245px, 66vw);
  padding-top: 8px;
}

/* ===========================================================================
   1. 調査する前
   =========================================================================== */
/* ===== 屋外／屋内（始める前） ===== */
.place-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: min(260px, 100%);
  margin: 20px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
}
.place-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--d-muted);
  font: 700 13.5px var(--d-font);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.place-switch__option svg {
  width: 16px;
  height: 16px;
}
/* 選んでいる側の背景は、スライドする .seg（app.css）が描く */
.place-switch {
  --seg-pad: 4px;
  --seg-gap: 4px;
  --seg-radius: 999px;
}
.place-switch__option[aria-checked="true"] {
  color: var(--d-text);
}

.survey-start {
  display: grid;
  place-items: center;
  width: var(--dial);
  height: var(--dial);
  margin: 28px auto 0;
  border-radius: 50%;
  background: var(--d-bg);
  box-shadow: var(--d-raised-lg);
}

.survey-start__well {
  display: grid;
  place-items: center;
  width: 86.5%;
  height: 86.5%;
  border-radius: 50%;
  box-shadow: var(--d-inset);
}

.survey-start__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 83%;
  height: 83%;
  border: 0;
  border-radius: 50%;
  background: var(--d-strong);
  color: var(--d-on-strong);
  font: 700 23px var(--d-font);
  letter-spacing: 0.08em;
  box-shadow: 6px 8px 18px var(--d-shadow-dark);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.survey-start__button:active {
  transform: scale(0.96);
}
.survey-start__button svg {
  width: 34px;
  height: 34px;
}

.survey-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 0;
  color: var(--d-muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.survey-privacy svg {
  width: 16px;
  height: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 2px 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.recent-card {
  padding: 0 18px;
}

.recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent__row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid var(--d-divider);
}
.recent__row:last-child {
  border-bottom: 0;
}

/* メダルを押すと記録を見られる（survey_page.js の recentMedal） */
.recent__badge {
  display: flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.recent__badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.recent__db {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.recent__db small {
  margin-left: 2px;
  color: var(--d-muted);
  font-size: 11px;
  font-weight: 500;
}

.recent__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recent__title {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent__meta {
  margin-top: 2px;
  color: var(--d-muted);
  font-size: 11.5px;
}

.recent__empty {
  margin: 0;
  padding: 22px 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* ===========================================================================
   2. 調査中
   =========================================================================== */
.live-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 4px;
}

/* 押せる表示：調査中は屋外⇔屋内の切り替え、中断中は再開 */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px 6px 14px;
  background: var(--d-surface);
  border: 1px solid var(--d-edge);
  border-radius: 999px;
  box-shadow: var(--d-raised);
  color: var(--d-text);
  font: 700 14px var(--d-font);
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
}
.live-pill:active {
  transform: scale(0.98);
}
/* 屋外／屋内の小さなラベル（へこんだ形） */
.live-pill__place {
  order: -1; /* 点より前に出す */
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  color: var(--d-accent);
  font-size: 12px;
  letter-spacing: 0.04em;
}
/* 中断中は、押せることが分かるように強い色にする */
.live-pill[data-state="interrupted"] {
  background: var(--d-strong);
  color: var(--d-on-strong);
}
.live-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--d-accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}
/* 判定中は点の色で知らせる */
.live-pill[data-mode="loud"]::before {
  background: var(--d-very-loud);
}
/* 準備中・一時停止中・中断中は点を止める */
.live-pill:not([data-state="measuring"])::before {
  background: var(--d-muted);
  animation: none;
}

@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}

.live-progress {
  color: var(--d-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* --- 推定dBのゲージ --- */
.gauge {
  display: grid;
  place-items: center;
  width: var(--dial);
  height: var(--dial);
  margin: 28px auto 0;
  border-radius: 50%;
  background: var(--d-bg);
  box-shadow: var(--d-raised-lg);
}

.gauge__well {
  position: relative;
  display: grid;
  place-items: center;
  width: 86.5%;
  height: 86.5%;
  border-radius: 50%;
  box-shadow: var(--d-inset);
}

.gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 線の始まりを真上（12時）にする */
  transform: rotate(-90deg);
}
.gauge svg circle {
  fill: none;
  stroke-width: 7;
}
.gauge__track {
  stroke: var(--d-track);
}
.gauge__bar {
  stroke: var(--d-accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

/* 砂の板（survey_page.js が badge.js の plate で作る）。輪の内側いっぱいに、数字の後ろに敷く */
.gauge__well .sand-plate {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  color: var(--d-muted); /* 砂の色 */
  opacity: 0.6;
  pointer-events: none;
}

.gauge__center {
  position: relative;
  /* 砂の上でも数字が読めるよう、地の色でふちどる */
  text-shadow: 0 0 3px var(--d-bg), 0 0 6px var(--d-bg), 0 0 10px var(--d-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gauge__label {
  color: var(--d-muted);
  font-size: 11.5px;
}
.gauge__value {
  margin-top: 4px;
  font-size: calc(var(--dial) * 0.24);
  font-weight: 700;
  line-height: 1;
}
.gauge__unit {
  margin-top: 4px;
  color: var(--d-muted);
  font-size: 13px;
}

/* 音量の目安（静か〜かなり）。色は data-tone で変える */
.gauge__chip {
  margin-top: 10px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--d-accent);
  color: var(--d-on-alert);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.gauge__chip[data-tone="normal"] {
  background: var(--d-accent-soft);
  color: var(--d-on-accent-soft);
}
.gauge__chip[data-tone="loud"] {
  background: var(--d-loud);
}
.gauge__chip[data-tone="very-loud"] {
  background: var(--d-very-loud);
}

/* --- 平均と最大 --- */
.live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 10px;
}
.stat__label {
  color: var(--d-muted);
  font-size: 11px;
  white-space: nowrap;
}
.stat__value {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
}
.stat__value small {
  color: var(--d-muted);
  font-size: 11px;
}

/* --- 波形（直近10秒の音量） --- */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-top: 16px;
  padding: 16px 14px;
}
.wave span {
  flex: 1;
  min-height: 4px;
  border-radius: 3px;
  background: var(--d-accent-soft);
  transition: height 0.2s ease;
}
.wave span[data-tone="quiet"],
.wave span[data-tone="calm"] {
  background: var(--d-accent);
}
.wave span[data-tone="loud"] {
  background: var(--d-loud);
}
.wave span[data-tone="very-loud"] {
  background: var(--d-very-loud);
}

/* --- この調査 --- */
.session {
  margin-top: 16px;
  padding: 16px 18px 14px;
}
.session__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.session__label {
  font-size: 13px;
  font-weight: 700;
}
.session__count {
  margin: 2px 0 0;
  font-size: 15px;
}
.session__count b {
  margin-right: 2px;
  font-size: 20px;
}
.session__line {
  margin: 12px 0 10px;
  border: 0;
  border-top: 1px solid var(--d-divider);
}
.session__last {
  margin: 0;
  color: var(--d-muted);
  font-size: 12.5px;
}

/* --- 案内（発生源・85dB） --- */
.notice {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
}
.notice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--d-bg);
  box-shadow: 3px 3px 7px var(--d-shadow-dark), -3px -3px 7px var(--d-shadow-light);
  color: var(--d-accent);
}
.notice__icon svg {
  width: 22px;
  height: 22px;
}
.notice h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.notice p {
  margin: 0;
  color: var(--d-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.notice--warning .notice__icon {
  color: var(--d-very-loud);
}

.live-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

/* --- エラー --- */
.survey-error {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--d-very-loud) 16%, var(--d-surface));
  color: var(--d-text);
  font-size: 13px;
  line-height: 1.7;
}

/* ===========================================================================
   3. バッジ獲得のポップアップ
   画面の下から出るシート。下のタブより手前に出す（z-index）。
   =========================================================================== */
.badge-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(36, 59, 53, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .badge-popup {
  background: rgba(10, 20, 17, 0.5);
}

.badge-popup__sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 366px;
  padding: 16px 20px 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--d-edge);
  border-radius: 30px;
  box-shadow: 0 18px 48px var(--drop);
  animation: sheet-up 0.28s ease-out both;
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.badge-popup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.badge-popup__paused {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink2);
  font-size: 11px;
  font-weight: 700;
}
.badge-popup__paused svg {
  width: 12px;
  height: 12px;
}
.badge-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
}
.badge-popup__close svg {
  width: 20px;
  height: 20px;
}

.badge-popup__medal {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.badge-popup__text {
  text-align: center;
}
.badge-popup__kicker {
  margin: 0;
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge-popup__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.badge-popup__note {
  margin: 0;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.6;
}

/* 平均・最大・時間帯（へこんだ箱） */
.badge-popup__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
}
.badge-popup__stats > div {
  padding: 8px;
  border-radius: 14px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  text-align: center;
}
.badge-popup__stats dt {
  color: var(--ink2);
  font-size: 11px;
}
.badge-popup__stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.badge-popup__stats dd small {
  color: var(--ink2);
  font-size: 11px;
}
#badge-popup-band {
  font-weight: 700;
}

.badge-popup__primary {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--d-strong);
  color: var(--d-on-strong);
  font: 700 16px var(--d-font);
  box-shadow: var(--d-raised);
  cursor: pointer;
}

/* 「Blueskyでシェア」。投稿ボタンより控えめに、枠線だけにする */
.badge-popup__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--d-strong);
  border-radius: 16px;
  color: var(--d-strong);
  font: 700 15px var(--d-font);
  text-decoration: none;
}
.badge-popup__share svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.badge-popup__hint {
  margin: 0;
  color: var(--ink2);
  font-size: 11px;
}

/* 「最近の記録」から開いたとき：調査していないので、一時停止の表示と再開の案内は出さない
   （一時停止の表示は場所を残す。✕ボタンの位置がずれないように） */
.badge-popup[data-mode="view"] .badge-popup__paused {
  visibility: hidden;
}
.badge-popup[data-mode="view"] .badge-popup__hint {
  display: none;
}

/* ===========================================================================
   投稿シート（獲得ポップアップの「音の内容を投稿する」から開く）
   外側の暗い背景は .badge-popup と同じ。シートは上の見出し・中身（ここだけ動く）・下のボタンの3段
   =========================================================================== */
.post-sheet__sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 366px;
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  margin: 0;
  /* 獲得ポップアップと違って文字が多いので、後ろが透けない色にする */
  background: var(--d-surface);
  border: 1px solid var(--d-edge);
  border-radius: 30px;
  box-shadow: 0 18px 48px var(--drop);
  overflow: hidden;
  animation: sheet-up 0.28s ease-out both;
}

.post-sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 12px;
}
.post-sheet__medal {
  flex: none;
}
.post-sheet__heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.post-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.post-sheet__sub {
  overflow: hidden;
  color: var(--ink2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-sheet__head .badge-popup__paused {
  flex: none;
  align-self: flex-start;
  margin-top: 6px;
}

.post-sheet__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  padding: 8px 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* --- 各項目 --- */
.post-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.post-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  font-size: 14.5px;
  font-weight: 700;
}
/* legend は flex にならないブラウザがあるので、下の余白を自分で付ける */
legend.post-field__label {
  margin-bottom: 10px;
}
.post-field__label small {
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
}
.post-field__required {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(196, 110, 80, 0.16);
  color: #b0573a;
  font-size: 11px;
  font-weight: 700;
}
[data-theme="dark"] .post-field__required {
  background: rgba(232, 150, 120, 0.16);
  color: #f0a58a;
}
.post-field__aside {
  margin-left: auto;
  color: var(--ink2);
  font-size: 11.5px;
  font-weight: 500;
}
.post-field__note,
.post-field__empty {
  margin: 0;
  color: var(--ink2);
  font-size: 11px;
  line-height: 1.6;
}

/* --- タグのボタン（選ぶとふくらんだ明るい色になる） --- */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 14px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--d-surface);
  box-shadow: 3px 3px 8px var(--d-shadow-dark), -3px -3px 8px var(--d-shadow-light);
  color: var(--d-text);
  font: 700 13px var(--d-font);
  white-space: nowrap;
  cursor: pointer;
}
.tag-chip:focus-visible {
  outline: 2px solid var(--d-accent);
  outline-offset: 2px;
}
.tag-chip__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  font-size: 12.5px;
}
.tag-chip[aria-pressed="true"] {
  background: var(--d-accent-soft);
  color: var(--d-on-accent-soft);
}
.tag-chip[aria-pressed="true"] .tag-chip__icon {
  background: var(--d-strong);
  box-shadow: none;
  color: var(--d-on-strong);
}
[data-theme="dark"] .tag-chip[aria-pressed="true"] .tag-chip__icon {
  background: #243b35;
  color: #f1e9d2;
}

/* --- タグの「もっと見る」（index.html の小さなスクリプトが .tag-more を足す） ---
   8個を超える分を折りたたむ。個数を変えるときは、ここの 9（= 8+1）と index.html の LIMIT を一緒に直す。
   選んでいるタグは、折りたたんでも隠さない */
.tag-chips[data-collapsed="true"] .tag-chip:nth-child(n + 9):not([aria-pressed="true"]) {
  display: none;
}
.tag-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 12px auto 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  color: var(--d-muted);
  font: 700 12.5px var(--d-font);
  cursor: pointer;
}
/* 右の「∨」。開いているときは「∧」 */
.tag-more::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
.tag-more[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.tag-more:active {
  box-shadow: var(--d-inset), 0 0 0 1px var(--d-edge);
}
.tag-more:focus-visible {
  outline: 2px solid var(--d-accent);
  outline-offset: 2px;
}

/* 季節タグの枠（へこんだ箱） */
.post-season {
  margin-top: 14px;
  padding: 12px 12px 14px;
  border-radius: 20px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
}
.post-season__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.post-season__label span {
  margin-left: 8px;
  color: var(--ink2);
  font-size: 11px;
  font-weight: 500;
}

/* --- 内容 --- */
.post-textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  color: var(--d-text);
  font: 500 14px/1.6 var(--d-font);
  resize: vertical;
}
.post-textarea::placeholder {
  color: var(--ink3);
}
.post-textarea:focus-visible {
  outline: 2px solid var(--d-accent);
  outline-offset: 2px;
}

/* --- 写真 --- */
/* ファイル選択の部品そのものは見えなくして、label をボタンの見た目にする */
.post-photo__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.post-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.post-photo svg {
  width: 22px;
  height: 22px;
}
.post-photo__input:focus-visible + .post-photo {
  outline: 2px solid var(--d-accent);
  outline-offset: 2px;
}
.post-photo__preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-photo__preview img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--d-raised);
}
.post-photo__remove {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--d-text);
  font: 500 13px var(--d-font);
  cursor: pointer;
}

/* --- 下のボタン（動かない） --- */
.post-sheet__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px 14px;
  border-top: 1px solid var(--line);
}
.post-sheet__foot .badge-popup__primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.post-sheet__error {
  width: 100%;
  margin: 0 0 6px;
  color: #b0573a;
  font-size: 12px;
  text-align: center;
}
[data-theme="dark"] .post-sheet__error {
  color: #f0a58a;
}
.post-sheet__back {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink2);
  font: 700 14px var(--d-font);
  cursor: pointer;
}

/* ===========================================================================
   調査中の「直前の音を投稿する」（波形の下）
   =========================================================================== */
.live-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.live-post__button {
  background: var(--d-accent-soft);
  box-shadow: var(--d-raised);
  color: var(--d-on-accent-soft);
}
.live-post__button svg {
  width: 18px;
  height: 18px;
}
.live-post__button:disabled {
  background: var(--d-bg);
  box-shadow: var(--d-inset);
  color: var(--ink3);
  cursor: not-allowed;
}
.live-post__note {
  margin: 0;
  color: var(--ink2);
  font-size: 11.5px;
  text-align: center;
}
