/* Add from materials & labor (estimate-price-book.js). Tokens only; 15 title, 14 name, 13 body, 12 labels. */
.efpb-wrap{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,15,25,.55)}
.efpb-card{width:100%;max-width:560px;max-height:88vh;display:flex;flex-direction:column;gap:12px;padding:18px 16px 16px;border-radius:16px 16px 0 0;background:var(--card);color:var(--ink);box-shadow:0 -8px 32px rgba(0,0,0,.25)}
.efpb-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.efpb-head h3{margin:0;font-size:15px;font-weight:800;line-height:1.35;color:var(--ink)}
.efpb-x{width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--slate);font-size:24px;line-height:1;cursor:pointer}
.efpb-q{width:100%;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);color:var(--ink);font-size:16px}
#efpb-body{overflow-y:auto;min-height:0}
.efpb-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.efpb-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto 32px;gap:10px;align-items:center;min-height:60px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);color:var(--ink);text-align:left;cursor:pointer}
.efpb-row:disabled{opacity:.6;cursor:not-allowed}
.efpb-row:not(:disabled):active{border-color:var(--gold-deep)}
.efpb-main{min-width:0;display:grid;gap:4px}
.efpb-name{font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.efpb-meta{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12px;font-weight:600;color:var(--slate)}
.efpb-tag{padding:1px 8px;border-radius:99px;background:var(--gold-bg);color:var(--gold-ink);font-weight:700}
.efpb-tag.labor{background:var(--canvas);border:1px solid var(--line);color:var(--ink)}
.efpb-side{display:grid;justify-items:end;gap:1px;text-align:right}
.efpb-price{font-family:var(--mono);font-size:15px;font-weight:800;color:var(--ink)}
.efpb-unit,.efpb-none{font-size:12px;font-weight:600;color:var(--slate)}
.efpb-add{display:grid;place-items:center;width:32px;height:32px;border-radius:99px;background:var(--gold-deep);color:#fff;font-size:20px;font-weight:700}
.efpb-note{padding:14px 16px;border:1px dashed var(--line);border-radius:12px;background:var(--canvas);font-size:13px;font-weight:500;line-height:1.55;color:var(--ink)}
.efpb-note.bad{border-style:solid;border-color:var(--red);background:var(--red-bg)}
@media (min-width:700px){.efpb-wrap{align-items:center}.efpb-card{border-radius:16px}}

/* Prototype look (.est-proto on the card) */
.efpb-card.est-proto{font-family:var(--ep-font);padding:20px;gap:16px;border-radius:var(--ep-radius-card) var(--ep-radius-card) 0 0}
.efpb-card.est-proto .efpb-head h3{font:700 var(--ep-title)/1.25 var(--ep-font);letter-spacing:-.01em}
.efpb-card.est-proto .efpb-x{border:1px solid var(--line);border-radius:var(--ep-radius-field);font-size:22px;width:44px;height:44px}
.efpb-card.est-proto .efpb-q{min-height:var(--ep-field-h);border-radius:var(--ep-radius-field);font:500 15px var(--ep-font);background:var(--card)}
.efpb-card.est-proto .efpb-list{gap:10px}
.efpb-card.est-proto .efpb-row{min-height:68px;padding:12px 14px;border-radius:14px;background:var(--card);box-shadow:var(--ep-shadow)}
.efpb-card.est-proto .efpb-name{font:700 15px/1.35 var(--ep-font)}
.efpb-card.est-proto .efpb-meta{font:600 12px var(--ep-font)}
.efpb-card.est-proto .efpb-tag{padding:3px 10px;border:1px solid var(--gold-deep)}
.efpb-card.est-proto .efpb-tag.labor{border-color:var(--line)}
.efpb-card.est-proto .efpb-price{font:700 16px var(--ep-font);font-variant-numeric:tabular-nums}
.efpb-card.est-proto .efpb-unit,.efpb-card.est-proto .efpb-none{font-family:var(--ep-font)}
.efpb-card.est-proto .efpb-add{background:var(--rail,#161e2e)}
.efpb-card.est-proto .efpb-note{font:500 14px/1.55 var(--ep-font);border-radius:14px}
@media (min-width:700px){.efpb-card.est-proto{border-radius:var(--ep-radius-card)}}
