:root{font-family:system-ui,'Yu Gothic',Meiryo,sans-serif;color:#18304c;background:#f2f5fa}*{box-sizing:border-box}body{margin:0}header{background:#102e59;color:#fff;padding:17px 26px;display:flex;justify-content:space-between;gap:12px}header strong{font-size:19px}nav{background:#173e70;display:flex;gap:4px;flex-wrap:wrap;padding:7px 18px}nav a{color:white;text-decoration:none;padding:10px 14px;border-radius:4px}nav a:hover{background:#386ba2}main{max-width:1600px;margin:auto;padding:24px}h1{font-size:25px;margin:0 0 22px}h2{font-size:19px;margin:0 0 16px}.panel{background:white;border:1px solid #cbd8e9;border-radius:8px;padding:20px;margin:14px 0;box-shadow:0 1px 4px #dbe1ea}.narrow{max-width:520px;margin:60px auto}.row,.title-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.title-row{justify-content:space-between}.title-row h2{margin:0}.row>*{flex:1}label{display:block;margin:10px 0;font-weight:600}input,select,textarea{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #b9c9da;border-radius:5px;background:white;font:inherit}select[multiple]{min-height:110px}button,.button{display:inline-block;background:#0866b5;color:#fff;border:0;border-radius:5px;padding:10px 17px;text-decoration:none;font:inherit;font-weight:600;cursor:pointer;width:auto}button:hover,.button:hover{filter:brightness(.9)}.secondary{background:#e7edf5;color:#1a406a}.danger{background:#b83e3e}.small{padding:4px 9px}.inline{display:inline}.filter{display:flex;align-items:end;gap:12px;margin:12px 0}.filter label{min-width:180px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{background:#193f71;color:white;text-align:left}td,th{border:1px solid #d0dbe9;padding:9px;vertical-align:top}tr:nth-child(odd) td{background:#f8faff}a{color:#0b62a9}.progress{width:180px;height:12px;border-radius:8px;background:#d8e0eb;overflow:hidden}.progress span{display:block;height:100%;background:#1975c9}.stats strong{display:block;font-size:22px}.good{color:#159447}.warn{color:#c17700}.muted{color:#627487}.badge{background:#df3030;color:#fff;padding:2px 7px;border-radius:15px}.chat{max-height:450px;overflow:auto;background:#f7f9fc;border:1px solid #e0e6ef;padding:10px}.message{background:white;border:1px solid #dbe4ee;border-radius:6px;margin:8px 0;padding:12px}.message p{white-space:normal;overflow-wrap:anywhere}.message small{color:#68788b}.gantt{min-width:1150px}.gantt .parent td{background:#e3edfa;font-weight:700}.week{text-align:center;min-width:66px}.week.planned{background:#87b6ed;color:#2c70b8}.week.complete{background:#9bdbb4;color:#17844a}.week.late{background:#f5a5a5;color:#c02e2e}.success{color:green}@media(max-width:700px){main{padding:12px}header{font-size:14px}nav a{font-size:12px;padding:8px}.row>*{flex:1 1 100%}}@media print{header,nav,.filter,button,.button,form,.muted:not(.print .muted){display:none!important}main{padding:0;max-width:none}.panel{border:0;box-shadow:none;padding:0}body{background:white;font-size:11px}table{font-size:10px}th,td{padding:5px}h1{font-size:17px}@page{size:A4 landscape;margin:10mm}}

/* Gantt: planned range and progress overlay */
.gantt .week{min-width:82px;padding:8px 5px}.gantt .week.planned{background:#d9e9fa}.gantt .week.complete{background:#d5f0df}.gantt .week.late{background:#f8d5d5}.gantt-track{height:15px;width:100%;background:#9dc6ee;border-radius:3px;overflow:hidden}.gantt-fill{height:100%;display:block;background:#2368b8}.week.complete .gantt-fill{background:#2b9b63}.week.late .gantt-fill{background:#c94444}.current-week{outline:2px solid #e6b43c;outline-offset:-2px}
