/* daily rehab card */
.daily { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sel); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.dhead > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.dhead b { font-family: var(--display); font-size: 20px; }
.dmeta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dmeta b { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.daily .ex { background: var(--surface2); }

/* couple challenge */
.chal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.chal-top { display: flex; justify-content: space-between; align-items: center; }
.chal b { font-family: var(--display); font-size: 20px; }
.chal .badge { font-family: var(--mono); font-size: 12px; }
.cbar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.cbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--b), var(--t)); transition: width .4s; }
.chal.won { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }

/* train together */
.jbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.jbar > span { font-size: 14px; flex: 1 1 180px; }
.jbar .btn { padding: 9px 14px; font-size: 14px; }
.jbar.ask, .jbar.on, .jbar.pend { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.jbar.ask { border-color: var(--t); background: color-mix(in srgb, var(--t) 8%, var(--surface)); }
.jbar.on { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }

/* weekly recap */
.recap h3 { font-size: 22px; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recap-grid > div { border-top: 3px solid var(--c); background: var(--surface2); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.recap-grid b { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.recap-grid small { color: var(--muted); font-family: var(--mono); }

/* five tabs */
.tabbar .wrap { grid-template-columns: repeat(5, 1fr); }

/* camera tests */
.test h3 { font-size: 20px; }
.test details summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.test details[open] summary { margin-bottom: 8px; }
.msg.tiny { font-size: 12px; margin-top: -4px; }
.row b small { color: var(--muted); font-weight: 500; }
dialog.camdlg { border: 0; padding: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; background: #000; color: #fff; }
dialog.camdlg::backdrop { background: #000; }
.cam-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cam-wrap video, .cam-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cam-wrap .mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.cam-top .eyebrow { color: #fff; opacity: .85; }
.cam-top .iconbtn { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.cam-cue { position: absolute; top: calc(56px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; text-align: center; font: 700 24px/1.15 var(--display); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.cam-big { position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px var(--display); color: rgba(255,255,255,.85); text-shadow: 0 4px 24px rgba(0,0,0,.5); pointer-events: none; }
.cam-bot { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cam-bot span { font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.cam-bot .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.3); }
.cam-big { font-size: 64px; place-items: start center; padding-top: 110px; }
.cam-rep { position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(0,0,0,.55); border: 3px solid #2ecc71; border-radius: 22px; padding: 8px 22px; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.cam-rep b { font: 700 64px/1 var(--display); color: #2ecc71; }
.cam-rep span { font: 600 18px var(--display); opacity: .85; }
.cam-rep.pop { animation: repPop .45s ease-out; }
.cam-rep.done { background: #2ecc71; }
.cam-rep.done b, .cam-rep.done span { color: #fff; }
@keyframes repPop { 0% { transform: translateX(-50%) scale(1); } 35% { transform: translateX(-50%) scale(1.35); } 100% { transform: translateX(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .cam-rep.pop { animation: none; } }
.row b small.up { color: var(--ok); }
.row b small.down { color: var(--bad); }
.test .seg { align-self: flex-start; flex-wrap: wrap; }
.test .find { padding: 8px 0; border-top: 1px solid var(--line); }
.test input[type="text"] { font: 500 16px var(--body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); min-width: 0; flex: 1; width: auto; }

/* session feedback */
.fb .fbq { display: flex; flex-direction: column; gap: 6px; }
.fbopts { display: flex; gap: 6px; flex-wrap: wrap; }
.fbopts button { flex: 1 1 0; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); font: 600 12px var(--body); cursor: pointer; }
.fbopts button span { font-size: 22px; line-height: 1; }
.fbopts button[aria-pressed="true"] { border-color: var(--sel); background: color-mix(in srgb, var(--sel) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--sel); }

/* partner wall */
.wall .post { border-left: 3px solid var(--c); padding: 8px 0 8px 10px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.wall .ptop { display: flex; justify-content: space-between; gap: 8px; }
.wall .ptop b { font-weight: 600; }
.wall small { color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.wall .preacts { display: flex; gap: 6px; }
.wall .preacts span { background: var(--surface2); border-radius: 999px; padding: 2px 8px; font-size: 14px; }
.wall .pcom { font-size: 14px; background: var(--surface2); border-radius: 8px; padding: 6px 8px; }
.wall .pact { display: flex; gap: 6px; flex-wrap: wrap; }
.wall .pact button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 16px; cursor: pointer; color: var(--ink); }
.wall .pact button[aria-pressed="true"] { border-color: var(--sel); background: color-mix(in srgb, var(--sel) 14%, var(--surface)); }
.wall .pact .pcbtn { font: 600 13px var(--body); }
.wall input[type="text"] { font: 500 16px var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); min-width: 0; flex: 1; }
