@charset "utf-8";

.hm-review-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}
.hm-view-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #121a17;
  border: 1px solid #2c3d36;
}
.hm-view-toggle button,
.hm-review-toolbar select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9bb0a6;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.hm-view-toggle button.is-on {
  background: #3dd68c;
  color: #062016;
}
.hm-review-toolbar select {
  border: 1px solid #2c3d36;
  background: #1a2320;
  color: #e8f0ec;
  border-radius: 12px;
  min-width: 180px;
}

.hm-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.hm-review-grid.is-list {
  grid-template-columns: 1fr;
}
.hm-review-card {
  background:
    linear-gradient(180deg, rgba(61, 214, 140, 0.07), transparent 40%),
    #1a2320;
  border: 1px solid #31463d;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: hmCardIn 0.24s ease;
}
.hm-review-grid.is-list .hm-review-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}
.hm-review-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.hm-review-pub {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.hm-review-meta {
  margin-left: auto;
  font-size: 12px;
  color: #9bb0a6;
}
.hm-stars {
  color: #f3c14e;
  letter-spacing: 0.06em;
  font-size: 16px;
}
.hm-stars .is-off { color: #3d4a44; }
.hm-review-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #e8f0ec;
  width: 100%;
}
.hm-review-body {
  margin: 0;
  font-size: 13px;
  color: #9bb0a6;
  line-height: 1.5;
  width: 100%;
}
.hm-review-purpose {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #2c3d36;
  color: #b6f5d2;
}

.hm-pub-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #f3e6b8;
}
.hm-rating-meta { color: #9bb0a6; font-weight: 700; }

.hm-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 6, 0.72);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 720px) {
  .hm-modal-bg { align-items: center; }
}
.hm-modal {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #141c19;
  border: 1px solid #31463d;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hm-modal h2 { margin: 0 0 12px; font-size: 22px; }
.hm-modal label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #9bb0a6;
}
.hm-modal input,
.hm-modal select,
.hm-modal textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #2c3d36;
  background: #0f1412;
  color: #fff;
  font: inherit;
}
.hm-modal textarea { min-height: 88px; resize: vertical; }
.hm-star-pick { display: flex; gap: 4px; }
.hm-star-pick button {
  border: 0;
  background: transparent;
  color: #3d4a44;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.hm-star-pick button.is-on { color: #f3c14e; }
.hm-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.hm-modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.hm-modal-actions button { flex: 1; min-height: 46px; border-radius: 12px; font-weight: 800; cursor: pointer; border: 0; }
.hm-modal-cancel { background: transparent; color: #e8f0ec; border: 1px solid #2c3d36 !important; }
.hm-form-msg { min-height: 20px; font-size: 13px; color: #ff9b9b; margin: 8px 0 0; }
.hm-form-msg.is-ok { color: #b6f5d2; }
