.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
.loading { color: var(--slate-text); text-align: center; padding: 60px 0; }
.foot { text-align: center; font-size: 12px; color: var(--slate-text); padding: 8px 16px 28px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 1px 0 rgba(27,42,74,.04); }
.card + .card, .card + section, section + .card { margin-top: 18px; }

.join-lede { font-size: 19px; color: var(--navy); margin: 4px 0 6px; line-height: 1.45; }
.join-lede strong { color: var(--sand-deep); font-weight: 600; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--slate-text); margin: 0 2px 14px; }
.who b { color: var(--navy); font-weight: 600; }
.linkish { background: none; border: none; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 10px 4px; font-size: 14px; min-height: 44px; }

.waiting { text-align: center; padding: 46px 22px; }
.waiting .mark { width: 64px; height: 64px; margin: 0 auto 18px; }
.waiting .mark path { stroke: var(--sand); }
.waiting h2 { font-size: 22px; color: var(--navy); margin: 0 0 8px; font-weight: 600; }
.waiting p { margin: 0; color: var(--slate-text); }
@media (prefers-reduced-motion: no-preference) {
  .waiting .mark { animation: breathe 4s ease-in-out infinite; }
  @keyframes breathe { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
  .q-enter { animation: rise .35s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.q-num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: var(--sand); font-weight: 700; font-size: 16px; }
.q-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-deep); font-weight: 700; }
.q-prompt { font-size: 21px; line-height: 1.4; color: var(--navy); margin: 6px 0 4px; font-weight: 600; }
.status-pill { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand-pale); color: var(--sand-deep); }
.status-pill.closed { background: #ECEEF1; color: var(--slate-text); }

.review { margin: 18px 0 6px; padding: 18px 18px 16px; border-left: 4px solid var(--sand); background: var(--ivory); border-radius: 0 10px 10px 0; }
.stars { color: var(--sand-deep); letter-spacing: 3px; font-size: 18px; }
.stars .off { color: #D8CFC2; }
.review blockquote { margin: 8px 0 10px; font-size: 17px; line-height: 1.55; }
.review .sig { font-size: 14px; color: var(--slate-text); }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.instruction { margin: 16px 0 4px; padding: 20px; border: 1.5px dashed var(--sand); border-radius: 12px; font-size: 20px; color: var(--navy); background: var(--ivory); font-weight: 600; }

.attach { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); text-decoration: none; color: var(--navy); min-height: 60px; }
.attach .ico { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.attach .t { font-weight: 600; line-height: 1.3; }
.attach .s { font-size: 13px; color: var(--slate-text); }
.attach.missing { opacity: .8; border-style: dashed; }

.tip { margin: 16px 0 4px; padding: 14px 16px; border-radius: 12px; background: #F4EEE4; border: 1px solid #E6D7C2; }
.tip b { color: var(--navy); display: block; margin-bottom: 2px; }

.suffix-wrap { position: relative; }
.suffix-wrap .input { padding-right: 70px; font-size: 22px; font-weight: 600; }
.suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-text); font-weight: 600; }

.received { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #E9F2EC; color: var(--ok); font-weight: 600; }
.received .tick { width: 22px; height: 22px; flex: 0 0 22px; }
.closed-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #ECEEF1; color: var(--slate-text); }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Readiness */
.myproblem { margin: 14px 0 6px; padding: 14px 16px; background: var(--ivory); border-radius: 10px; border: 1px solid var(--line); }
.myproblem .eyebrow { margin-bottom: 4px; }
.test { margin-top: 20px; }
.test .tl { font-weight: 700; color: var(--navy); }
.test .th { font-size: 14px; color: var(--slate-text); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap); border-radius: 10px; border: 1.5px solid #CFC6B8; background: var(--white); cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px; line-height: 1.2; }
.seg input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.seg input:focus-visible + label { outline: 3px solid var(--sand); outline-offset: 2px; }

/* Vote */
.vote-meter { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px -20px 0; padding: 12px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sand); }
.dots span.on { background: var(--sand); }
.division-group h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-text); margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.division-group h3 i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.problem-btn { display: flex; width: 100%; text-align: left; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; min-height: var(--tap); line-height: 1.4; }
.problem-btn .box { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid #BDB3A4; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.problem-btn[aria-pressed="true"] { border-color: var(--navy); background: #F3F1EB; }
.problem-btn[aria-pressed="true"] .box { background: var(--navy); border-color: var(--navy); }
.problem-btn[aria-pressed="true"] .box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }
.problem-btn .yours { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-deep); font-weight: 700; margin-left: 6px; }
.problem-btn[disabled] { cursor: default; opacity: .9; }

/* Earlier questions */
.earlier { margin-top: 28px; }
.earlier h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-text); margin: 0 0 8px; font-weight: 700; }
.earlier ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.earlier li button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 4px; min-height: var(--tap); background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.earlier .n { min-width: 34px; height: 30px; border-radius: 999px; background: var(--sand-pale); color: var(--navy); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.earlier .l { flex: 1; color: var(--navy); font-weight: 600; }
.earlier .st { font-size: 13px; color: var(--slate-text); }
.earlier .st.done { color: var(--ok); font-weight: 600; }
.back { margin-bottom: 12px; }
.conn { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--anchor); color: var(--ivory); padding: 8px 16px; border-radius: 999px; font-size: 14px; display: none; }
.conn.show { display: block; }
