.hazu-tlf-selection-button {
  position: absolute;
  z-index: 99998;
  display: none;
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  background: #1f5f9f;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.hazu-tlf-selection-button.is-visible {
  display: block;
}

.hazu-tlf-mark {
  border: 1px solid rgba(197, 54, 39, .6);
  border-bottom: 3px solid #c53627;
  border-radius: 4px;
  padding: 1px 3px;
  background: #fff0a8;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 240, 168, .55);
}

.hazu-tlf-mark:hover,
.hazu-tlf-mark:focus,
.hazu-tlf-mark.is-focused {
  background: #ffd65c;
  outline: 3px solid rgba(31, 95, 159, .45);
  outline-offset: 2px;
}

.hazu-tlf-block-has-mark {
  position: relative;
}

.hazu-tlf-block-mark {
  position: relative;
  outline: 3px solid rgba(197, 54, 39, .45) !important;
  outline-offset: 3px;
  box-shadow: inset 0 0 0 999px rgba(255, 240, 168, .2);
}

.hazu-tlf-block-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  padding: 5px 8px;
  background: #c53627;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.hazu-tlf-feedback-button {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 99997;
  border: 0;
  border-radius: 6px;
  padding: 10px 13px;
  background: #c53627;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.hazu-tlf-list {
  display: grid;
  gap: 10px;
}

.hazu-tlf-list__item {
  display: grid;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #15171a;
  text-align: left;
  cursor: pointer;
}

.hazu-tlf-list__item:hover,
.hazu-tlf-list__item:focus {
  border-color: #1f5f9f;
  outline: 2px solid rgba(31, 95, 159, .18);
}

.hazu-tlf-list__text {
  font-weight: 700;
}

.hazu-tlf-list__suggestion {
  color: #3d4652;
}

.hazu-tlf-list__status {
  color: #687384;
  font-size: 12px;
}

.hazu-tlf-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 18, 24, .42);
}

.hazu-tlf-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #15171a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.hazu-tlf-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e8eb;
}

.hazu-tlf-dialog__head strong {
  font-size: 16px;
  line-height: 1.4;
}

.hazu-tlf-dialog__body {
  padding: 16px;
}

.hazu-tlf-icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  background: #fff;
  color: #1b1f24;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.hazu-tlf-form,
.hazu-tlf-reply-form {
  display: grid;
  gap: 12px;
}

.hazu-tlf-form label,
.hazu-tlf-reply-form label {
  display: grid;
  gap: 6px;
}

.hazu-tlf-form label span,
.hazu-tlf-reply-form label .hazu-tlf-label-text {
  color: #3d4652;
  font-size: 13px;
  font-weight: 700;
}

/* テーマ（Foxiz）のダークモード input 配色に負けないよう、
   ダイアログ内の入力欄は白背景・濃色文字を !important で固定する。
   これで「ハンドルネーム欄だけ文字が白／背景がグレー」の不統一を解消する。 */
.hazu-tlf-dialog .hazu-tlf-form textarea,
.hazu-tlf-dialog .hazu-tlf-form input,
.hazu-tlf-dialog .hazu-tlf-reply-form textarea,
.hazu-tlf-dialog .hazu-tlf-reply-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd5dd !important;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff !important;
  color: #15171a !important;
  font: inherit;
  font-size: 14px;
  -webkit-text-fill-color: #15171a;
}

.hazu-tlf-dialog .hazu-tlf-form textarea::placeholder,
.hazu-tlf-dialog .hazu-tlf-form input::placeholder,
.hazu-tlf-dialog .hazu-tlf-reply-form textarea::placeholder,
.hazu-tlf-dialog .hazu-tlf-reply-form input::placeholder {
  color: #8a94a3 !important;
  -webkit-text-fill-color: #8a94a3;
  opacity: 1;
}

.hazu-tlf-form textarea {
  min-height: 86px;
  resize: vertical;
}

.hazu-tlf-dialog .hazu-tlf-form textarea[readonly] {
  min-height: 64px;
  background: #f1f4f7 !important;
  color: #3d4652 !important;
  -webkit-text-fill-color: #3d4652;
}

/* 任意項目の見出し行と「任意」バッジ */
.hazu-tlf-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hazu-tlf-dialog .hazu-tlf-label-row .hazu-tlf-optional {
  border: 1px solid #cfd5dd;
  border-radius: 999px;
  padding: 1px 8px;
  background: #eef1f5;
  color: #55606e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

/* 補足文（「未入力でも投稿できます」等）。薄すぎて読めなかったので濃色で明示。 */
.hazu-tlf-hint {
  display: block;
  margin-top: 2px;
  color: #4a5563;
  font-size: 12.5px;
  line-height: 1.5;
}

.hazu-tlf-hint--email {
  color: #1f5f9f;
}

.hazu-tlf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.hazu-tlf-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hazu-tlf-primary,
.hazu-tlf-secondary,
.hazu-tlf-vote {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.hazu-tlf-primary {
  background: #1f5f9f;
  color: #fff;
}

.hazu-tlf-secondary {
  background: #fff;
  color: #26313d;
  border-color: #cfd5dd;
}

.hazu-tlf-vote {
  margin: 10px 0;
  background: #fff7df;
  color: #5c3b00;
  border-color: #f1ca68;
}

.hazu-tlf-message {
  min-height: 20px;
  color: #27613b;
  font-size: 13px;
}

.hazu-tlf-quoted {
  margin-bottom: 10px;
  padding: 10px;
  border-left: 4px solid #d94d35;
  background: #fff8e6;
  font-weight: 700;
}

.hazu-tlf-suggestion {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.hazu-tlf-reason {
  margin-bottom: 8px;
  color: #3d4652;
  white-space: pre-wrap;
}

.hazu-tlf-meta {
  color: #687384;
  font-size: 13px;
}

.hazu-tlf-replies {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.hazu-tlf-reply {
  padding: 9px 10px;
  border-radius: 6px;
  background: #f5f7f9;
  font-size: 14px;
}

.hazu-tlf-reply-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6e8eb;
}

.hazu-tlf-reply-form textarea {
  min-height: 72px;
  resize: vertical;
}

/* 確認画面 */
.hazu-tlf-confirm__lead {
  margin: 0 0 12px;
  color: #15171a;
  font-size: 14px;
  font-weight: 700;
}

.hazu-tlf-confirm__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0 0 16px;
}

.hazu-tlf-confirm__list dt {
  margin: 0;
  color: #55606e;
  font-size: 12.5px;
  font-weight: 700;
}

.hazu-tlf-confirm__list dd {
  margin: 0;
  color: #15171a;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 送信完了 */
.hazu-tlf-thanks {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  text-align: center;
}

.hazu-tlf-thanks__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e5f4ec;
  color: #1f8a52;
  font-size: 28px;
  font-weight: 700;
}

.hazu-tlf-thanks__text {
  margin: 0;
  color: #15171a;
  font-size: 15px;
  line-height: 1.6;
}

.hazu-tlf-thanks .hazu-tlf-form__actions {
  justify-content: center;
  width: 100%;
}

/* 自分の提案ボタン（フィードバックボタンの上に重ねる） */
.hazu-tlf-mine-button {
  position: fixed;
  right: 18px;
  bottom: 132px;
  z-index: 99997;
  border: 0;
  border-radius: 6px;
  padding: 10px 13px;
  background: #1f5f9f;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.hazu-tlf-empty {
  margin: 0;
  color: #55606e;
  font-size: 14px;
}

.hazu-tlf-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hazu-tlf-list__action {
  color: #1f5f9f;
  font-size: 12px;
  font-weight: 700;
}

.hazu-tlf-list__item.is-locked {
  cursor: default;
  opacity: .8;
}

.hazu-tlf-list__item.is-locked .hazu-tlf-list__action {
  color: #8a94a3;
  font-weight: 500;
}

.hazu-tlf-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.hazu-tlf-badge--pending {
  background: #fff3d6;
  color: #8a5a00;
}

.hazu-tlf-badge--approved {
  background: #e5f4ec;
  color: #1f7a49;
}

.hazu-tlf-badge--rejected {
  background: #f0f1f3;
  color: #6b7280;
}

@media (max-width: 640px) {
  .hazu-tlf-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .hazu-tlf-mine-button {
    right: 12px;
    bottom: 118px;
  }

  .hazu-tlf-dialog {
    max-height: calc(100vh - 20px);
  }

  .hazu-tlf-form__actions {
    flex-direction: column-reverse;
  }

  .hazu-tlf-primary,
  .hazu-tlf-secondary {
    width: 100%;
  }

  .hazu-tlf-feedback-button {
    right: 12px;
    bottom: 74px;
  }
}
