/* 自定义分享：报名 / 投票模块（20261117ao-local）
   不改 style.css。沿用自定义模块卡片的圆角、浅底与小号中文按钮。 */

.custom-field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: #444;
}

.custom-field input[type="text"],
.custom-field input[type="number"],
.custom-field input[type="datetime-local"],
.custom-field textarea,
.custom-vote-opt {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0.42rem 0.6rem;
  font: inherit;
  background: #fff;
}

.custom-vote-options,
.custom-vote-opt-ops {
  display: grid;
  gap: 0.4rem;
}

.custom-vote-opt-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.custom-vote-opt-row .custom-vote-opt { flex: 1; }

.custom-vote-opt-row .ghost,
.custom-vote-opt-ops .ghost {
  margin: 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.custom-signup-note-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #444;
  margin: 0;
}

.custom-module-note {
  margin: 0;
  color: var(--muted, #888);
  font-size: 0.78rem;
}

.post-module-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  padding: 0.8rem 0.85rem 0.9rem;
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0;
}

.post-module-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #8a6a4a;
  margin: 0;
}

.post-module-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #333;
  line-height: 1.4;
}

.post-module-desc,
.post-module-meta,
.post-module-status {
  margin: 0;
  color: var(--muted, #888);
  font-size: 0.82rem;
  line-height: 1.5;
}

.post-vote-options {
  display: grid;
  gap: 0.4rem;
}

button.post-vote-option {
  display: grid;
  gap: 0.18rem;
  text-align: left;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: #333;
  cursor: pointer;
}

button.post-vote-option:disabled {
  cursor: default;
  opacity: 1;
}

button.post-vote-option.is-mine {
  border-color: #d7b48a;
  background: #fff7ee;
}

.post-vote-option-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.post-vote-option-count {
  font-size: 0.75rem;
  color: var(--muted, #888);
}

.post-vote-bar {
  height: 4px;
  border-radius: 99px;
  background: #eee;
  overflow: hidden;
}

.post-vote-bar > span {
  display: block;
  height: 100%;
  background: #d7b48a;
  border-radius: 99px;
}

.post-signup-actions,
.post-signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.post-signup-form input[type="text"] {
  flex: 1;
  min-width: 8rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0.42rem 0.6rem;
  font: inherit;
  background: #fff;
}

.post-signup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.post-signup-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0e6da;
  font-size: 0.82rem;
}

.post-signup-name { font-weight: 700; color: #333; }
.post-signup-note { color: var(--muted, #888); }

.card-module-teaser {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: baseline;
  line-height: 1.4;
}

.card-module-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #8a6a4a;
  background: #fff3e8;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  line-height: 1.4;
}
