
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#f8fafc;background:#0b1220}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#0b1220,#111827 36%,#0f172a);min-height:100vh}
header{position:sticky;top:0;z-index:5;padding:calc(env(safe-area-inset-top) + 14px) 18px 12px;display:flex;justify-content:space-between;align-items:center;background:rgba(11,18,32,.94);backdrop-filter:blur(12px);border-bottom:1px solid #273449}
h1,h2,p{margin:0} h1{font-size:20px} h2{font-size:20px;line-height:1.2}
.eyebrow,.label{font-size:11px;font-weight:800;letter-spacing:.12em;color:#93c5fd}
main{max-width:680px;margin:0 auto;padding:14px 14px calc(40px + env(safe-area-inset-bottom))}
.card{background:#172033;border:1px solid #273449;border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.status,.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.muted{color:#94a3b8;margin-top:4px;font-size:13px}
.ring{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;border:5px solid #334155;font-size:13px;font-weight:800}
select,input{width:100%;border-radius:12px;border:1px solid #475569;background:#0f172a;color:#fff;padding:12px;font-size:16px}
select{width:auto;min-width:100px}
.check{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid #263247}
.check:last-child{border-bottom:none}
.check input{width:24px;height:24px;margin:0;accent-color:#38bdf8;flex:none}
.check span{font-size:16px;line-height:1.35}
.check.done span{text-decoration:line-through;color:#64748b}
.target-grid,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.target-grid div{background:#0f172a;border:1px solid #334155;border-radius:14px;padding:12px}
.target-grid span{display:block;color:#94a3b8;font-size:12px;margin-bottom:4px}
.target-grid strong{font-size:17px}
label{font-size:12px;color:#cbd5e1}
label input{margin-top:6px}
button,.import-label{border:0;border-radius:12px;padding:13px 16px;font-weight:800;font-size:15px;background:#38bdf8;color:#06111d;cursor:pointer}
#saveResults{width:100%;margin-top:12px}
.secondary{background:#243247;color:#e2e8f0;border:1px solid #40506a}
.saved{min-height:20px;margin-top:8px;color:#86efac;font-size:13px}
.history-row{display:grid;grid-template-columns:52px 1.2fr repeat(3,1fr);gap:6px;padding:10px 0;border-bottom:1px solid #263247;font-size:13px}
.history-row.head{color:#94a3b8;font-size:11px;font-weight:700}
.small p{color:#cbd5e1;line-height:1.45;margin:8px 0 14px}
.import-label{display:block;text-align:center;margin-top:8px}
.import-label input{display:none}
.hidden{display:none}
@media(max-width:420px){
  .target-grid,.form-grid{grid-template-columns:1fr 1fr}
  .history-row{grid-template-columns:44px 1.1fr repeat(3,.8fr);font-size:12px}
  h1{font-size:18px} h2{font-size:18px}
}

.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.date-grid div{background:#0f172a;border:1px solid #334155;border-radius:14px;padding:12px}
.date-grid span{display:block;color:#94a3b8;font-size:12px;margin-bottom:4px}
.date-grid strong{font-size:15px}
.week-picker{text-align:right;min-width:120px}
.week-picker .muted{font-size:11px;margin-top:5px}
@media(max-width:420px){
  .date-grid{grid-template-columns:1fr 1fr}
  .week-picker{min-width:105px}
}

.picker-row{display:flex;gap:6px;justify-content:flex-end}.picker-row select{min-width:0}.picker-row #daySelect{max-width:132px}
