* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.5;
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.view { display: block; }
.view.hidden { display: none; }

.lead {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.compass {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.compass .dir {
  font-size: 11px;
  fill: #555;
  font-weight: 500;
}

.compass .qlabel { font-size: 22px; }
.compass .qlabel-sm { font-size: 12px; font-weight: 600; }

.compass .qbox {
  cursor: pointer;
  transition: opacity 0.15s;
}
.compass .qbox:hover,
.compass .qbox:active { opacity: 0.45; }

.hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* Quadrant detail */
.qheader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--qcolor, #ccc);
}
.qheader .back {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}
.qtitle {
  font-size: 22px;
  color: var(--qcolor, #222);
}

.stack .card {
  background: white;
  border-left: 4px solid var(--qcolor, #ccc);
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.stack .card h2 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--qcolor);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.stack .card p {
  white-space: pre-line;
  font-size: 15px;
}

.more-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 4px 0 18px;
  background: var(--qcolor, #666);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.personas-sep {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin: 18px 0 12px;
}
.personas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.persona-btn {
  flex: 1 1 calc(50% - 10px);
  min-height: 64px;
  background: white;
  border: 1.5px solid var(--qcolor, #999);
  color: var(--qcolor, #222);
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

/* Persona overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10;
  padding: 20px;
  overflow-y: auto;
}
.overlay .close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.persona-card {
  background: white;
  max-width: 440px;
  margin: 40px auto;
  padding: 22px;
  border-radius: 8px;
  border-top: 6px solid var(--qcolor, #666);
}
.persona-card h2 { font-size: 20px; margin-bottom: 4px; }
.persona-card .meta {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}
.persona-card .profile {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
}
.persona-card blockquote {
  border-left: 3px solid var(--qcolor, #ccc);
  padding-left: 12px;
  font-style: italic;
  font-size: 15px;
  color: #222;
}
