.plan-page { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; color: #eef3fc; }
.plan-page h1 { font-size: 25px; font-weight: 700; margin: 0; }
.plan-head { display: flex; align-items: flex-start; gap: 10px; }
.plan-btn {
  padding: 5px 9px; min-height: 20px; background: #15263a; border: 1px solid #304b67;
  border-radius: 6px; font-size: 12px; color: #eef3fc;
}
.plan-primary {
  padding: 7px 13px; background: #1975f3; color: #fff; border: 1px solid #3c8afa; border-radius: 6px; font-weight: 700;
}
.plan-icon {
  width: 28px; height: 28px; padding: 0; border: 1px solid #30465e; border-radius: 5px; background: #142538; color: #afc7df;
}
.plan-mode {
  padding: 7px 10px; font-size: 12px; background: #122235; border: 1px solid #29435e; border-radius: 5px; color: #9db7d0;
}
.plan-mode.active { background: #1f4068; border-color: #498dd5; color: #fff; }
.plan-body { display: flex; gap: 14px; flex: 1; min-height: 0; }
.plan-left { flex: 4; display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.plan-toolbar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.plan-period { font-size: 14px; font-weight: 700; min-width: 140px; text-align: center; }
.plan-timeline { flex: 1; overflow: auto; min-height: 0; }
.plan-grid { display: grid; gap: 0; min-width: 860px; }
.plan-cell { background: #0d1b2a; border-right: 1px solid #22364b; border-bottom: 1px solid #22364b; min-height: 88px; padding: 4px; }
.plan-cell.head { min-height: 48px; text-align: center; padding: 8px 4px; }
.plan-title-cell { display: flex; gap: 8px; padding: 7px; min-width: 210px; }
.plan-title-cell .c { width: 42px; height: 60px; border-radius: 4px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.plan-tiny { height: 5px; background: #273e56; border-radius: 2px; overflow: hidden; margin-top: 4px; }
.plan-tiny > i { display: block; height: 100%; background: #338afa; }
.plan-card {
  background: #293241; border: 1px solid #435570; border-radius: 6px; padding: 7px 9px;
  min-height: 80px; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
}
.plan-card .nm { font-size: 13px; font-weight: 600; }
.plan-card .chip { font-size: 11px; border-radius: 5px; padding: 2px 5px; }
.plan-side { width: 320px; flex: 0 0 320px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.plan-panel { background: #0e1b2a; border: 1px solid #283b52; border-radius: 8px; padding: 11px 12px; }
.plan-panel h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.plan-prep { background: #0e1b2a; border: 1px solid #283b52; border-radius: 8px; padding: 8px 10px; }
.plan-strip { display: flex; gap: 2px; height: 10px; margin: 8px 0; }
.plan-strip span { display: block; height: 100%; border-radius: 2px; }
.plan-kpi { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 1100px) {
  .plan-body { flex-direction: column; }
  .plan-side { width: auto; flex: none; }
}

/* Codex: desktop proportions from the native planning view. */
@media (min-width: 1101px) {
  .plan-side { width: 280px; flex-basis: 280px; }
  .plan-timeline { flex: 0 1 auto; min-height: 240px; max-height: 46vh; }
}
.plan-prep { min-height: 145px; }
.plan-card + .plan-card { margin-top: 6px; }
.plan-card .nm { overflow-wrap: anywhere; }
.plan-panel .plan-kpi { padding: 7px 0; }
.plan-duration { font-size: 11px; color: #b3c6dd; }
