/* Pass 13 (owner 2026-11-24 20:56): C-bird colour tokens (signal, ink, open-tint) replace the old teal literals; layout unchanged. */
/* Pass 28/28b: chat notice, NDA controls, project summary card, NDA question
   and the native <dialog> sheet (Design spec: field borders #8A9690). */
.btn-outline{background:#fff;color:var(--teal-darker);border:1.5px solid var(--signal)}
.btn-outline:hover{background:var(--mint);color:var(--teal-darker)}
.btn-sm{font-size:14px;padding:10px 16px}

/* Legal's chat notice (Legal's CIPA mitigation, Design §2) */
.adv-notice{display:flex;gap:10px;align-items:flex-start;background:var(--open-tint);border:1px solid #CDE7E1;border-radius:10px;padding:12px 14px;margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--ink)}
.adv-log .adv-notice{margin:0;max-width:100%}
.adv-notice p{margin:0}
.adv-notice a{color:var(--signal);text-decoration:underline}
.adv-lock{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--signal);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.adv-notice-body{min-width:0}
.adv-more{margin-top:6px}
.adv-more summary{cursor:pointer;color:var(--signal);text-decoration:underline;min-height:44px;display:flex;align-items:center;width:max-content;max-width:100%}
.adv-more p{margin:0 0 6px}
.nda-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;height:40px;margin-top:8px;padding:0 16px;border:1.5px solid var(--signal);color:var(--signal);background:#fff;border-radius:6px;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
.nda-btn::after{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px}
.nda-link{color:var(--signal);font-weight:600}
button.nda-link{display:inline-block;padding:12px 0;margin:-12px 0;font-size:14px;line-height:1.5;vertical-align:baseline}
.adv-compact{font-size:14px;color:var(--body);margin:8px 0 0;line-height:1.5}
.adv-compact a{color:var(--signal)}
.adv-terms{margin-top:8px}
.nda-pill{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:16px;background:var(--open-tint);color:var(--signal);font-size:14px;font-weight:600;max-width:100%;overflow-wrap:anywhere;line-height:1.4}
.adv-notice .nda-pill{margin-top:8px}
.adv-sysline{align-self:center;text-align:center;font-size:14px;color:var(--quiet);margin:4px 8px;max-width:90%}

/* Summary card */
.sum-card,.nda-q{margin-top:16px}
.sum-eyebrow{margin:0 0 4px}
.sum-verline{font-size:14px;color:var(--quiet);margin:0 0 8px}
.sum-pills{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.sum-pill{display:inline-block;font-size:14px;padding:2px 10px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--body)}
.sum-pill-empty{background:#FFF8EC;border-color:#F0D9AC;color:#4A3A1A}
.sum-sec{border-top:1px solid var(--line);padding:12px 0}
.sum-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sum-label{font-family:var(--sans);font-size:14px;font-weight:600;color:var(--ink);margin:0}
.sum-head .sh-link{min-height:44px;min-width:44px;padding:0 4px;flex:none}
.sum-text{margin:4px 0 0;font-size:15px;line-height:1.5;color:var(--body);overflow-wrap:anywhere}
.sum-missing{font-size:14px;font-style:italic;color:#55636F}
.sum-tag{display:inline-block;font-style:normal;font-size:14px;font-weight:500;color:var(--teal-darker);background:var(--mint);border-radius:4px;padding:0 6px;margin-left:4px;white-space:nowrap}
.sum-oq{margin:6px 0 0;padding:10px 12px 10px 32px}
.sum-oq li{margin:2px 0}
.sum-editing .field{margin-top:6px}
.sum-editing textarea{min-height:110px;border-color:#8A9690}
.sum-edit-row{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:8px}
.sum-edit-row .adv-count{margin-right:auto}
.sum-edit-row .btn,.sum-edit-row .sh-link{min-height:44px}
.sum-estimate{background:var(--bg);border:1px dashed #8A9690;border-radius:8px;padding:12px 16px;margin:12px 0 16px}
.sum-estimate dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:14px}
.sum-estimate dt{color:var(--quiet)}.sum-estimate dd{margin:0;color:var(--ink)}
.sum-confirmed{font-size:14px;font-weight:600;color:var(--signal);background:var(--open-tint);border-radius:8px;padding:10px 12px;margin:8px 0 0}
.sum-confirmed a{color:var(--signal);display:inline-block;min-height:24px}
.sum-health{color:#8A4B00}
.sum-card .sh-actions .btn{min-height:48px}
.nda-q-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.nda-q-btn{width:100%;min-height:56px;text-align:center}
.nda-q-foot{margin:0}
.adv-receipt{font-size:14px;color:var(--body);background:var(--white);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:12px 0}

/* The sheet: native <dialog>; bottom sheet under 768px, centred from 768px */
html.adv-sheet-open,html.adv-sheet-open body{overflow:hidden}
dialog.adv-sheet{border:0;padding:0;background:#fff;color:var(--ink);box-shadow:0 -8px 24px rgba(20,22,26,.18)}
dialog.adv-sheet::backdrop{background:rgba(20,22,26,.45)}
.sheet-form{display:flex;flex-direction:column;max-height:inherit}
.sheet-body{padding:20px 16px 8px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.sheet-body>*{flex-shrink:0}
.sheet-body .err{color:#B42318;font-size:14px;margin:-8px 0 0}
.sheet-body .sh-h{margin:0}
.sheet-body .sh-h:focus{outline:none}
.sheet-foot{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:12px 16px max(22px, env(safe-area-inset-bottom))}
.sheet-cancel{min-height:44px;padding:0 8px}
.sheet-send{min-height:52px;display:inline-flex;align-items:center;gap:8px}
.sheet-send[aria-disabled=true]{background:var(--signal);opacity:1;cursor:progress}
.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:adv-spin .8s linear infinite}
@keyframes adv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}}
.adv-sheet .field input[type=text],.adv-sheet .field input[type=email]{font-size:16px;border-color:#8A9690;height:48px}
.adv-sheet .field .err{margin:0}
.sheet-tag{display:inline-block;margin-left:6px;font-size:14px;font-weight:500;color:var(--signal);background:var(--open-tint);border-radius:4px;padding:0 6px}
.sheet-hint{font-weight:400;color:var(--quiet)}
.sheet-what{font-size:14px;color:var(--body)}
.sheet-what summary{cursor:pointer;color:var(--signal);font-weight:600;min-height:44px;display:flex;align-items:center}
.sheet-what ul{margin:4px 0 0;padding-left:20px}
.adv-tick{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--body);cursor:pointer;min-height:44px}
.adv-tick input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;margin:1px 0 0;border:2px solid #8A9690;border-radius:4px;background:#fff;display:grid;place-content:center;cursor:pointer}
.adv-tick input::before{content:"";width:12px;height:12px;transform:scale(0);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);background:#fff}
.adv-tick input:checked{background:var(--signal);border-color:var(--signal)}
.adv-tick input:checked::before{transform:scale(1)}
.adv-tick input:focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px}
.adv-tick input[aria-invalid=true]{border-color:#B42318}
.sheet-lede{font-size:15px;color:var(--body);margin:0}
.sheet-notice{font-size:14px;color:var(--quiet);margin:0}
.sheet-notice a{color:var(--signal)}
.sheet-errs{background:#FEF3F2;color:#B42318;border-radius:8px;padding:10px 12px;font-size:14px;margin:0}
.sheet-errs p{margin:0}.sheet-errs ul{margin:4px 0 0;padding-left:20px}.sheet-errs a{color:#B42318}
@media (max-width:767px){
  dialog.adv-sheet{margin:auto 0 0;width:100%;max-width:100%;max-height:92dvh;border-radius:16px 16px 0 0}
  .adv-box.sum-card,.adv-box.nda-q{padding:20px 16px}
  .nda-q-btns{grid-template-columns:1fr}
}
@media (min-width:768px){
  dialog.adv-sheet{width:min(560px,100vw - 48px);max-height:88vh;border-radius:16px}
  .sheet-body{padding:24px 24px 8px}
  .sheet-foot{padding:12px 24px 22px}
}

/* Pass 29 (Part A): item rows under a summary section (assumed items, target
   markets, target unit cost) and the "Assumed:" tag. */
.sum-row{margin:8px 0 0;padding:8px 12px;border-left:3px solid var(--line);background:var(--bg);border-radius:0 6px 6px 0}
.sum-row-assumed{border-left-color:#C98A12;background:#FFF8EC}
.sum-row .sum-head{min-height:0}
.sum-row-label{font-size:14px;font-weight:600;color:var(--ink);margin:0}
.sum-row .sum-text{margin:2px 0 0}
.sum-tag-assumed{margin:0 4px 0 0;color:#4A3A1A;background:#F6E2B8}
.sum-pill-assumed{background:#FFF8EC;border-color:#F0D9AC;color:#4A3A1A}
.sum-row.sum-editing input[type=text]{font-size:16px;height:48px;border-color:#8A9690;width:100%}
