/* Stop 1 · Lines — Plan ("/plan"): the styles of page-plan.js.
   The class names are the approved prototype's (ln-p-… for Plan, ln-x-… for the pieces it shared with the other Lines
   pages). Every rule is written under .ln-p (the root of this page), so nothing here can reach another page. */
.ln-p{display:flex;flex-direction:column;gap:16px}
.ln-p-warn{display:flex;flex-direction:column;gap:8px}
.ln-p-warn:empty{display:none}

/* the top: one bar (how much of the shortfall is made today) and the four figures */
.ln-p .ln-p-top{padding:18px 20px 18px}
.ln-p .ln-p-top>.pg{height:14px;margin:2px 0 6px}
.ln-p .ln-p-top>.pg .pg-clip{border-radius:7px}
.ln-p .ln-p-cap{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--ink-2)}
.ln-p .ln-x-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px;padding:14px 0 0;border-top:1px solid var(--hair)}
.ln-p .ln-x-figs>.stat{padding:0 18px;border-left:1px solid var(--hair)}
.ln-p .ln-x-figs>.stat:first-child{border-left:0;padding-left:0}
.ln-p .stat-n .badge{margin-top:2px}

/* the key of a bar: a small swatch and its name */
.ln-p .ln-x-key{display:flex;flex-wrap:wrap;gap:3px 16px;font-size:13px;color:var(--ink-2)}
.ln-p .ln-x-key span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ln-p .ln-x-key i{flex:none;width:10px;height:10px;border-radius:3px}
.ln-p .ln-x-key i.tick{width:2px;height:14px;border-radius:1px;background:var(--ink)}
.ln-p .ln-x-key i.pl{width:24px;height:10px;border-radius:5px;background:var(--belt);box-shadow:inset 0 0 0 1px rgba(23,33,46,.1)}
.ln-p .ln-x-key .d{background:var(--flow)}
.ln-p .ln-x-key .e{background:var(--flow-soft)}
.ln-p .ln-x-key .m{background:var(--navy)}
.ln-p .ln-x-key .f{background:#d5c8ab}

/* the bar of a row: the pale track is the scale of the list, the fills lie on it, the tick marks a point on it */
.ln-p .ln-p-bar{position:relative;display:block;width:100%;min-width:130px;height:12px}
.ln-p .ln-p-bar span{position:absolute;inset:0;border-radius:6px;overflow:hidden;background:var(--belt)}
.ln-p .ln-p-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:0 4px 4px 0}
.ln-p .ln-p-bar .e{background:var(--flow-soft)}
.ln-p .ln-p-bar .d{background:var(--flow)}
.ln-p .ln-p-bar .m{background:var(--navy)}
.ln-p .ln-p-bar .f{background:#d5c8ab}
.ln-p .ln-p-bar .p{width:2px;margin-left:-1px;top:-4px;bottom:-4px;border-radius:1px;background:var(--ink);box-shadow:0 0 0 1.5px var(--card)}

/* cells of the two lists */
.ln-p-chips{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.ln-p .tb td.num .ln-p-chips{justify-content:flex-end}
.ln-p-on{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ln-p-mute{color:var(--ink-3)}
.ln-p .pn-tools .ln-x-key{justify-content:flex-end}

/* a smaller computer screen: the brand list drops its bar (every number stays) so that no column is pushed out of sight */
@media (max-width:1339px){
  .ln-p .ln-p-prodT th:nth-child(7),.ln-p .ln-p-prodT td:nth-child(7),.ln-p .ln-p-prodkey{display:none}
  .ln-p .ln-p-prodT .tb th,.ln-p .ln-p-prodT .tb td{padding-left:7px;padding-right:7px}
}
@media (max-width:1179px){
  .ln-p .ln-p-bar{min-width:90px}
}
/* a tablet: the brand list becomes cards two abreast (the phone's cards), so that no column hides behind a sideways scroll */
@media (min-width:641px) and (max-width:1179px){
  .ln-p .ln-p-prodT .tb-sort{display:flex;max-width:380px}
  .ln-p .ln-p-prodT .tb thead{display:none}
  .ln-p .ln-p-prodT .tb,.ln-p .ln-p-prodT tfoot,.ln-p .ln-p-prodT tr,.ln-p .ln-p-prodT td,.ln-p .ln-p-prodT th{display:block}
  .ln-p .ln-p-prodT tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
  .ln-p .ln-p-prodT tbody tr,.ln-p .ln-p-prodT tfoot tr{background:var(--card);border-radius:16px;box-shadow:0 0 0 1px var(--hair);padding:10px 12px 8px}
  .ln-p .ln-p-prodT tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;grid-auto-flow:dense;align-content:start}
  .ln-p .ln-p-prodT .tb tbody td,.ln-p .ln-p-prodT .tb tfoot td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0;border:0;text-align:right;background:transparent!important;font:inherit}
  .ln-p .ln-p-prodT .tb td::before{content:attr(data-label);flex:none;color:var(--ink-3);font:400 13px/1.3 var(--body);text-align:left}
  .ln-p .ln-p-prodT .tb .tb-title{grid-column:1/-1;font:700 17px/1.2 var(--display);padding:0 0 7px;margin-bottom:3px;border:0;border-bottom:1px solid var(--hair);background:transparent!important}
  .ln-p .ln-p-prodT tbody td:empty,.ln-p .ln-p-prodT .tb td.is-blank{display:none}
  .ln-p .ln-p-prodT tbody td:nth-child(3),.ln-p .ln-p-prodT tbody td:nth-child(10),.ln-p .ln-p-prodT tbody td:nth-child(11){grid-column:1/-1}
  .ln-p .ln-p-prodT .tb tbody td:nth-child(7),.ln-p .ln-p-prodT .tb tfoot td:nth-child(7){display:none}
  .ln-p .ln-p-prodT tfoot tr{margin-top:8px;box-shadow:0 0 0 2px var(--ink)}
  .ln-p .ln-p-prodT .tb tfoot td{font-weight:700}
  .ln-p .ln-p-prodT .ln-p-chips{justify-content:flex-end}
}
@media (max-width:640px){
  .ln-p .ln-p-top{padding:16px 14px 16px}
  .ln-p .ln-p-cap{flex-direction:column;gap:2px}
  .ln-p .ln-x-figs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0}
  .ln-p .ln-x-figs>.stat{padding:0 0 0 12px}
  .ln-p .ln-x-figs>.stat:nth-child(odd){border-left:0;padding:0 12px 0 0}
  .ln-p-chips{justify-content:flex-end}
  /* the cards of the two lists: the figures two abreast, so that a card is half as tall */
  .ln-p .tb-cards tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;grid-auto-flow:dense}
  .ln-p .tb-cards tbody .tb-title{grid-column:1/-1}
  .ln-p .tb-cards tbody td:empty{display:none}
  .ln-p .ln-p-prodT tbody td:nth-child(3),.ln-p .ln-p-prodT tbody td:nth-child(10),.ln-p .ln-p-prodT tbody td:nth-child(11){grid-column:1/-1}
  .ln-p .ln-p-lineT tbody td:nth-child(2){grid-column:1/-1;display:block;padding:2px 0 6px}
  .ln-p .ln-p-lineT tbody td:nth-child(2)::before{content:none}
}
/* a note badge under a figure may run to two lines in a narrow column (after 17:00 the Urgent figure says "more than the
   lines can still make", which is wider than a phone's half-width column) */
.ln-p .stat .badge{height:auto;min-height:24px;padding-top:3px;padding-bottom:3px;line-height:1.25;white-space:normal;align-items:flex-start}
.ln-p .stat .badge .ic{margin-top:1px;flex:none}

/* ===== the Plan page's picture on top (lr-… pieces from page-lines.css) ===== */
.lr-plan .lr-big b{font-size:40px}
.lr-pshort{background:repeating-linear-gradient(-45deg,rgba(42,120,214,.30) 0 3px,rgba(42,120,214,.10) 3px 6px)}
.lr-pmake,.lr-pdone,.lr-pplan{position:absolute;left:0;top:0;bottom:0;border-radius:9px;transition:width .8s cubic-bezier(.2,.7,.2,1)}
.lr-pmake{background:var(--flow)}
.lr-pdone{background:var(--navy)}.lr-pplan{background:var(--flow)}
.lr-plg{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:9px;font-size:13px;color:var(--ink-3)}
.lr-plg span{display:inline-flex;align-items:center;gap:6px}
.lr-plg b{font:700 14px/1 var(--display);color:var(--ink);font-variant-numeric:tabular-nums}
.lr-plg em{font-style:normal}
.lr-plg i{flex:none;width:10px;height:10px;border-radius:3px}
.lr-plg .k-pmake,.lr-plg .k-pplan{background:var(--flow)}.lr-plg .k-pbey{background:repeating-linear-gradient(-45deg,rgba(42,120,214,.45) 0 2px,rgba(42,120,214,.15) 2px 4px)}
.lr-plg .k-purg{width:2px;height:14px;border-radius:1px;background:var(--ink)}
.lr-plg .k-pdone{background:var(--navy)}.lr-plg .k-pfree{background:var(--belt);box-shadow:inset 0 0 0 1px var(--axis)}
@media (max-width:760px){
  .lr-plan .lr-big b{font-size:34px}
}
.ln-p-bar .e{background:repeating-linear-gradient(-45deg,rgba(42,120,214,.42) 0 3px,rgba(42,120,214,.14) 3px 6px)!important}
/* Plan top in three parts */
.lr-plan.v2 .lr-big b{font-size:50px}
.lr-plan.v2 .lr-stats .lr-gap{white-space:normal}
.lr-plan.v2 .lr-pich.is-2{margin-top:18px}
.lr-plan.v2 .lr-pic .lr-plant{margin-top:8px}
.lr-plan.v2 .lr-figs .lr-fig>b{font-size:30px}
.lr-plan.v2 .lr-figs .lr-fn,.lr-plan.v2 .lr-figs .lr-gap{white-space:normal;max-width:190px;font-size:13px;color:var(--ink-3);font-weight:500}
.lr-kv.is-crit b,.lr-kv.is-crit em{color:var(--crit)}
