*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;background:#070b15;color:#fff}
header{padding:24px;background:linear-gradient(135deg,#2036ff,#00b7ff);}
h1{margin:0;font-size:28px;letter-spacing:.5px}
h2{margin:6px 0 0 0;font-weight:500;font-size:16px;opacity:.95}
main{padding:20px;max-width:1150px;margin:0 auto}
.card{background:#0e1730;border:1px solid #22325a;border-radius:14px;padding:18px 18px 22px;margin:16px 0;box-shadow:0 10px 24px rgba(0,0,0,.25)}
h3{margin:0 0 12px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:12px 0}
label{display:block;font-size:13px;margin-bottom:6px}
select,input,button,textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #334a7a;background:#0c1326;color:#fff;font-size:14px}
textarea{min-height:70px;resize:vertical}
button{cursor:pointer;background:#00b7ff;border:1px solid #00a3e6;font-weight:600}
button:hover{filter:brightness(1.05)}
small{display:block;opacity:.75;margin-top:6px}
.plan .week{border:1px solid #22325a;border-radius:12px;padding:12px;margin:10px 0;background:#0b1324}
.plan h4{margin:6px 0 10px 0}
.day{border:1px dashed #334a7a;padding:10px;border-radius:10px;margin:8px 0;background:#0a1221}
.day-title{font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;margin-left:0}
.badge.work{background:#ff3265}
.badge.off{background:#00d17a}
.badge.deload{background:#ffb020}
.badge.short{background:#9d7dff}
.meta{font-size:12px;opacity:.85;margin-top:4px}
.exs li{margin:4px 0}
.legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.legend .key{display:flex;align-items:center;gap:6px;font-size:12px}
.legend .dot{width:10px;height:10px;border-radius:50%}
.legend .work .dot{background:#ff3265}
.legend .off .dot{background:#00d17a}
.legend .deload .dot{background:#ffb020}
.legend .short .dot{background:#9d7dff}
.controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.controls button{flex:0 0 auto}
.check{display:flex;align-items:center;gap:8px}
.check input{width:auto}
.logwrap{margin-top:10px;border-top:1px dashed #334a7a;padding-top:10px}
.table{overflow:auto;border:1px solid #22325a;border-radius:12px}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid #1b2746;text-align:left;font-size:14px}
th{position:sticky;top:0;background:#0f1830}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.progress .bar{width:260px;height:10px;background:#1b2746;border-radius:999px;overflow:hidden}
.progress .bar span{display:block;height:10px;background:#00d17a}
.progress .pmeta{font-size:12px;opacity:.85;margin-top:4px;text-align:right}
@media print{
  header, footer, .topbar .progress, #exportLogBtn, #exportJsonBtn, #resetBtn, #printBtn{display:none}
  body{background:#fff;color:#000}
  .card{border:none;box-shadow:none}
  .day{border:1px solid #ccc;background:#fff}
}