
/* ---------- the range check ---------- */
.rk{display:flex; flex-direction:column; gap:12px}
.rk-card{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); overflow:hidden}
.rk-card[data-open="true"]{border-color:var(--target)}
.rk-head{display:flex; align-items:center; gap:14px; padding:15px 18px; width:100%; text-align:left; background:none; border:0; font:inherit; color:inherit; cursor:pointer}
.rk-head:hover{background:var(--sheet-2)}
.rk-name{flex:1; min-width:0}
.rk-name b{display:block; font-size:14px; font-weight:600}
.rk-name span{display:block; font-size:12.5px; color:var(--ink-3); margin-top:2px}
.rk-now{font-family:var(--f-mono); font-size:11px; color:var(--ink-3); text-align:right; flex:none; max-width:45%}
.rk-now b{display:block; font-family:var(--f-disp); font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.25; font-variant:normal}
.rk-move{font-family:var(--f-mono); font-size:11px; font-weight:600; flex:none; padding:3px 9px; border-radius:18px; background:var(--sheet-2); color:var(--ink-3)}
.rk-move[data-d="up"]{background:var(--up-bg); color:var(--up)}
/* A reading that went down stays neutral. Coral means "feel it here" on the
   figure; spent on a worse number it reads as an alarm, which is the opposite
   of everything else this app says about a bad day. The minus sign carries it. */
.rk-move[data-d="down"]{background:var(--sheet-2); color:var(--ink-3)}
.rk-body{border-top:1px solid var(--rule-soft); padding:17px 18px}
.rk-how{margin:0 0 17px; padding:0; list-style:none; counter-reset:rkstep}
.rk-how li{position:relative; padding-left:27px; font-size:13.5px; color:var(--ink-2); line-height:1.5; margin-bottom:7px}
.rk-how li::before{counter-increment:rkstep; content:counter(rkstep); position:absolute; left:0; top:1px; font-family:var(--f-mono); font-size:10px; color:var(--ink-3); border:1px solid var(--rule); border-radius:50%; width:18px; height:18px; display:grid; place-items:center}
.rk-ladder{border:1px solid var(--rule); border-radius:8px; overflow:hidden; margin:0 0 15px}
.rk-rung{display:flex; align-items:center; gap:11px; padding:9px 12px; background:var(--sheet-2); border:0; border-bottom:1px solid var(--rule-soft); font:inherit; font-size:13.5px; color:var(--ink-2); text-align:left; cursor:pointer; width:100%}
.rk-rung:last-child{border-bottom:0}
.rk-rung:hover{background:var(--target-soft)}
.rk-rung[aria-pressed="true"]{background:var(--target); color:var(--on-target); font-weight:600}
.rk-rung .n{font-family:var(--f-mono); font-size:11px; opacity:.72; width:15px; flex:none}
.rk-rung .was{margin-left:auto; font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; opacity:.8; flex:none}
.rk-side{font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin:0 0 7px}
.rk-hist{display:flex; align-items:flex-end; gap:3px; height:30px; margin-top:9px}
.rk-hist i{flex:1; min-width:3px; max-width:13px; background:var(--q3); border-radius:2px 2px 0 0; display:block; min-height:2px}
.rk-hist i[data-last="true"]{background:var(--target)}
.rk-lock{display:flex; align-items:center; gap:14px; padding:15px 18px}
/* The sentence under a locked test. It is the question the test answers, not a
   sample of the answer — there is deliberately no number, no bar and no blurred
   ladder here, because a preview of a reading nobody has taken is a fabricated
   reading, and this app does not have one of those anywhere. */
.rk-why{font-size:12.5px; color:var(--ink-2); line-height:1.55; margin:0; max-width:70ch}
/* The countdown between readings. Deliberately not .rk-due: no border, no
   filled background, no button. It is one muted line saying where the record
   stands, and the moment it starts looking like the due card it has become the
   nag the due card is allowed to be and this is not. */
.rk-quiet{font-size:12.5px; color:var(--ink-3); line-height:1.55; margin:0; max-width:70ch}
.rk-note{display:flex; align-items:flex-start; gap:10px; font-size:12.5px; color:var(--ink-2); margin-top:13px; padding:11px 13px; border-radius:8px; background:var(--sheet-2); line-height:1.5}
.rk-note .k{font-family:var(--f-mono); font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3); flex:none; padding-top:2px; width:62px}
.rk-due{display:flex; align-items:center; gap:16px; padding:16px 18px; border:1px solid var(--target); border-radius:12px; background:var(--target-soft); flex-wrap:wrap}
.rk-due b{font-family:var(--f-disp); font-size:17px; display:block}
.rk-due p{font-size:12.5px; color:var(--ink-2); margin-top:3px; max-width:58ch}
@media (max-width:560px){
  .rk-head{flex-wrap:wrap}
  .rk-now{max-width:none; text-align:left; width:100%; order:3}
}
