* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6fb;
  color: #1e2430;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #e6e9f0;
}
.brand { font-weight: 900; font-size: 1.3rem; text-decoration: none; color: #1e2430; }
.btn, .btn-secondary {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}
.btn { background: #ff5a5f; color: #fff; }
.btn:hover { background: #e14448; }
.btn-secondary { background: #eef0f5; color: #1e2430; margin-right: 10px; }
.btn-secondary:hover { background: #e2e5ee; }

.container { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.container.narrow { max-width: 560px; }
.tagline { text-align: center; color: #6b7280; margin: 6px 0 28px; }
h1 { font-size: 1.5rem; margin: 0 0 6px; }
.breadcrumb { font-size: 0.85rem; color: #6b7280; margin-bottom: 10px; }
.breadcrumb a { color: #4b5563; }
.muted { color: #6b7280; font-size: 0.9rem; }
.error { background: #fde8e8; color: #9b1c1c; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.empty { text-align: center; color: #6b7280; padding: 40px 0; }

.poll-list { display: flex; flex-direction: column; gap: 14px; }
.poll-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #eef0f5;
}
.poll-card:hover { border-color: #ff5a5f; }
.poll-q { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.mini-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mini-bar-row { display: flex; align-items: center; gap: 10px; }
.mini-bar-label { font-size: 0.82rem; width: 90px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.mini-bar-track { flex: 1; height: 8px; background: #f0f1f5; border-radius: 999px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: linear-gradient(90deg, #ff5a5f, #ff9066); border-radius: 999px; }
.poll-meta { font-size: 0.8rem; color: #9ca3af; }

.form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.form label { font-size: 0.85rem; font-weight: 700; margin-top: 8px; }
.form input[type=text] {
  padding: 11px 14px; border: 1px solid #d8dce5; border-radius: 10px; font-size: 0.95rem; font-family: inherit;
}
#options { display: flex; flex-direction: column; gap: 8px; }
.form button.btn { margin-top: 16px; align-self: flex-start; }

.vote-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.vote-option {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border: 1px solid #e2e5ee; border-radius: 10px; cursor: pointer;
}
.vote-option:hover { border-color: #ff5a5f; }
.vote-option input { accent-color: #ff5a5f; }
.vote-form .btn { margin-top: 8px; align-self: flex-start; }

.result-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.result-row {}
.result-top { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 6px; font-weight: 600; }
.bar-track { height: 12px; background: #f0f1f5; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #ff5a5f, #ff9066); border-radius: 999px; transition: width 0.4s ease; }

.footer { text-align: center; color: #9ca3af; font-size: 0.8rem; padding: 20px 0 40px; }
