.q-wrap { display: flex; flex-direction: column; gap: 16px; }
.q-friend-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f0fdfa; border: 1px solid #99f6e4; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: #0f172a; flex-wrap: wrap; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-modes { display: inline-flex; background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; gap: 4px; }
.q-mode-btn { border: none; background: transparent; color: #475569; font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.q-mode-btn.is-on { background: #ffffff; color: #0f766e; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.q-prog-meta { font-size: 14px; font-weight: 600; color: #475569; }
.q-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.q-bar-fill { height: 100%; background: #0f766e; width: 4%; transition: width 0.2s ease; }
.q-card { background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.q-domain { font-size: 12px; font-weight: 700; color: #0f766e; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.q-prompt { font-size: 22px; font-weight: 700; line-height: 1.4; color: #0f172a; margin: 0 0 24px; max-width: 65ch; }
.q-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.q-opt { min-height: 52px; padding: 12px 8px; border-radius: 12px; border: 1px solid #cbd5e1; background: #ffffff; color: #0f172a; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; text-align: center; }
.q-opt:hover { border-color: #0f766e; background: #f0fdfa; color: #0f766e; }
.q-opt.is-picked { border-color: #0f766e; background: #0f766e; color: #ffffff; }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.res-panel { background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.res-badge { display: inline-block; background: #0f766e; color: #ffffff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 12px; margin-bottom: 8px; }
.res-title { font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.res-sub { font-size: 14px; color: #475569; margin: 0 0 16px; }
.res-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.r-row-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.r-track { height: 8px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.r-fill { height: 100%; background: #0f766e; border-radius: 8px; }
.r-fill-sec { background: #2563eb; }
.res-detail-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.res-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; font-size: 14px; }
.res-box strong { display: block; color: #0f172a; margin-bottom: 4px; font-size: 14px; }
.res-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cmp-box { margin-top: 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.cmp-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cmp-input { flex: 1; min-width: 180px; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font-family: inherit; font-size: 14px; }
.cmp-msg { font-size: 14px; color: #0f766e; font-weight: 600; margin-top: 8px; word-break: break-all; }
@media (max-width: 640px) {
  .q-card, .res-panel { padding: 16px; }
  .q-prompt { font-size: 18px; }
  .q-opts { grid-template-columns: 1fr; }
  .q-opt { text-align: left; padding: 12px 16px; min-height: 44px; }
  .res-grid { grid-template-columns: 1fr; }
}