:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #161616;
  --muted: #6c7280;
  --border: #dfe4ee;
  --shadow: 0 12px 30px rgba(27, 39, 79, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f7fc 0%, #eef4ff 100%);
}
a { color: #0b57d0; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { font-weight: 800; font-size: 1.1rem; color: #111; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.page-shell { padding: 24px 0 56px; }
.card, .hero-card, .auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-card, .card { padding: 22px; margin-bottom: 20px; }
.auth-card { max-width: 520px; margin: 36px auto; padding: 28px; }
.grid.two-col { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 20px; }
.stack-side { display: grid; gap: 20px; align-content: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted, .meta { color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; }
.alert.success { background: #eaf8ec; border: 1px solid #b8e3c0; }
.alert.error { background: #fff0f0; border: 1px solid #f1c2c2; }
.stack-form { display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea, select {
  width: 100%; border: 1px solid #cfd6e4; border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff;
}
textarea { resize: vertical; }
.btn {
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #7b39ff, #ff168a); color: white; display: inline-flex; align-items: center; justify-content: center;
}
.btn.small { padding: 9px 14px; font-size: .92rem; }
.btn.alt { background: #eceff6; color: #111; }
.btn.danger { background: #dc3545; }
.small-link { margin-top: 16px; }
.wheel-wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.needs-wheel-svg { width: 100%; height: auto; display: block; }
.wheel-segment { cursor: pointer; transition: transform .18s ease, filter .18s ease, fill-opacity .18s ease; transform-origin: center; }
.wheel-segment:hover { fill-opacity: .9; filter: brightness(1.05); }
.segment-text { font-size: 12px; fill: #111; font-weight: 700; pointer-events: none; }
.quadrant-text { font-size: 18px; fill: #fff; font-weight: 800; pointer-events: none; }
.center-title { font-size: 28px; font-weight: 800; fill: #111; }
.center-subtitle { font-size: 12px; fill: #555; }
.stat-list, .link-list, .entry-list { margin: 0; padding: 0; list-style: none; }
.stat-list li, .request-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stat-list li:last-child, .request-row:last-child { border-bottom: 0; }
.entry-item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.entry-item:last-child { border-bottom: 0; }
.entry-badge { width: 14px; border-radius: 999px; }
.inline-form, .inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.request-row { padding: 14px 0; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 24, .55); }
.modal-panel {
  position: relative; z-index: 2; width: min(540px, calc(100% - 24px)); margin: 6vh auto 0; background: #fff;
  border-radius: 24px; padding: 24px; box-shadow: 0 25px 70px rgba(0,0,0,.28);
}
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .grid.two-col { grid-template-columns: 1fr; }
  .card-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 20px, 100%); }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .segment-text { font-size: 10px; }
  .quadrant-text { font-size: 16px; }
}
