.sched-hero .wrap{padding-bottom:56px}
.sched-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start;margin-top:-30px;position:relative;z-index:2}
.project-panel,.gantt-panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 40px rgba(16,32,51,.06)}
.project-panel{position:sticky;top:14px;overflow:hidden}
.project-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 15px 11px}
.project-panel-head h2,.gantt-head h2{margin:0;font-size:14px}
.project-panel-head p,.gantt-head p{margin:4px 0 0;font-size:9px;color:var(--muted2)}
.project-tools{display:flex;gap:6px;padding:0 12px 10px}
.project-tools input{flex:1;min-width:0;border:1px solid #e1dbcf;background:#fff;border-radius:7px;padding:7px 8px;font-size:9px;outline:none}
.project-tools select{border:1px solid #e1dbcf;background:#fff;border-radius:7px;padding:7px 6px;font-size:9px;color:#5f6b7a;outline:none}
.project-list{max-height:calc(100vh - 245px);overflow:auto;padding:0 8px 10px}
.project-card{width:100%;text-align:left;border:1px solid #ece6dc;background:#fff;border-radius:10px;padding:10px;margin-bottom:6px;cursor:pointer;transition:.2s}
.project-card:hover{border-color:#cbd8d2;background:#fbfdfb}
.project-card.active{border-color:#0f766e;background:#f3faf7;box-shadow:0 0 0 2px rgba(15,118,110,.08)}
.project-card.archived{opacity:.58}
.pc-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.pc-model{font-size:10px;font-weight:700;color:#263243;line-height:1.4;word-break:break-all}
.pc-mold{font-family:"Bahnschrift","Segoe UI",sans-serif;font-size:8px;color:#0f766e;background:#eaf6f2;border-radius:4px;padding:3px 5px;white-space:nowrap}
.pc-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#8a94a3;font-size:8px}
.pc-progress{height:4px;background:#eeeae2;border-radius:999px;margin-top:7px;overflow:hidden}
.pc-progress i{display:block;height:100%;background:#0f766e;border-radius:999px}
.pc-progress-label{display:flex;justify-content:space-between;margin-top:3px;font-size:8px;color:#9a9489}
.gantt-panel{min-width:0;overflow:hidden}
.gantt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:15px 18px 10px;border-bottom:1px solid #eee9df;flex-wrap:wrap}
.gantt-actions{display:flex;gap:6px}
.gantt-wrap{height:470px;padding:6px 4px 0}
.phase-table-wrap{padding:0 18px 16px;border-top:1px solid #f2ede4}
.phase-table{min-width:720px;width:100%}
.phase-table th{position:static;background:#faf8f2;font-size:8px;padding:7px 7px}
.phase-table td{padding:6px 7px;font-size:9px;border-bottom:1px solid #f4efe7}
.phase-table tr:hover td{background:#fcfaf6}
.phase-name{font-weight:700;color:#3f4a59}
.phase-date{font-family:"Bahnschrift","Segoe UI",sans-serif;color:#5f6b7a;white-space:nowrap}
.phase-progress{color:#0f766e;font-weight:700;font-family:"Bahnschrift","Segoe UI",sans-serif}
.phase-progress i{display:inline-block;width:46px;height:4px;background:#e8efe9;border-radius:99px;vertical-align:middle;margin-right:5px;overflow:hidden}
.phase-progress i b{display:block;height:100%;background:#0f766e;border-radius:99px}
.sched-empty{padding:50px 20px;text-align:center;color:#9a9489;font-size:10px}
.project-modal{width:min(1040px,calc(100vw - 24px))}
.project-form-body{padding:15px 20px;overflow:auto}
.phase-editor{display:flex;flex-direction:column;gap:5px}
.pe-row{display:grid;grid-template-columns:1.25fr .95fr .95fr .55fr .95fr .95fr;gap:5px;align-items:center}
.pe-row.header{font-size:8px;color:#9a9489;padding:0 2px}
.pe-row input{border:1px solid #e5ded2;background:#fff;border-radius:6px;padding:6px 6px;font-size:9px;min-width:0;outline:none}
.pe-row input:focus{border-color:#0f766e}
.pe-row .pe-name{font-size:9px;color:#3f4a59;font-weight:700;padding-left:2px;white-space:nowrap}
.sched-stats{display:flex}
@media(max-width:980px){
  .sched-layout{grid-template-columns:1fr}
  .project-panel{position:static}
  .project-list{display:flex;gap:6px;overflow:auto;max-height:none;padding-bottom:10px}
  .project-card{min-width:220px;margin:0}
  .gantt-wrap{height:420px}
}
@media(max-width:620px){
  .sched-layout{margin-top:-24px}
  .gantt-head{padding:12px}
  .gantt-wrap{height:380px}
  .phase-table-wrap{padding:0 12px 12px}
  .pe-row{grid-template-columns:1fr 1fr;padding:6px 0;border-bottom:1px dashed #eee}
  .pe-row.header{display:none}
  .pe-row .pe-name{grid-column:1/-1}
}
