.liveGate { min-height:100svh; display:grid; place-content:center; background:var(--navy-deep); color:#fff; padding:24px }
.liveGate .brand { margin-block-end:clamp(28px,8vh,70px); color:white }
.liveGate h1 { font-size:var(--s-head); margin:0 0 16px }
.liveGateChoice { display:flex;gap:10px;flex-wrap:wrap }
.liveWorkspace { max-width:1100px;margin:20px auto;padding:12px max(14px,2vw) 80px }
.liveForm { display:grid;gap:14px;max-width:470px }
.liveForm label { display:grid;gap:5px;font-weight:600 }
.liveForm input,.liveForm select { min-height:44px;padding:8px;border:1px solid var(--rule);border-radius:var(--radius);font:inherit }
.liveLinks { display:flex;flex-wrap:wrap;gap:14px;margin-block:12px;align-items:center }
.liveStats {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-block:20px}
.liveStats div,.liveReport {background:white;border:1px solid var(--rule);padding:16px;border-radius:var(--radius)}
.liveStats dt {color:var(--muted);font-size:var(--s-small)} .liveStats dd {font-size:var(--s-head);margin:4px 0 0;font-weight:600;color:var(--navy)}
.liveReports {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.liveReport h2{font-size:var(--s-lead)}.liveReport li{display:grid;grid-template-columns:minmax(75px,1fr) minmax(40px,1fr) 3ch;gap:10px;align-items:center}
.liveReport ul{list-style:none;padding:0}.liveReport progress{width:100%;accent-color:var(--navy)}
.liveDeptNav{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:12px max(14px,3vw);background:var(--navy-deep);color:white}.liveDeptNav :is(a,button){color:inherit}.liveDeptNav button{background:none;border:0;text-decoration:underline;cursor:pointer}
.liveGateChoice button{min-width:100px}.live-error{color:var(--warn)}.live-product-links{display:flex;flex-wrap:wrap;gap:14px;margin-block:14px}
.liveChatPhoto{display:block;margin-block-start:6px}.liveChatPhoto img{display:block;max-width:min(100%,260px);max-height:220px;object-fit:contain}
.livePager{display:flex;align-items:center;justify-content:center;gap:16px;margin-block:24px}
.liveChatTools{grid-column:1/-1;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;font-size:var(--s-small)}
.liveAttach{display:inline-flex;align-items:center;position:relative;overflow:hidden;min-block-size:40px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.liveAttach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.liveAttach:focus-within{outline:2px solid currentColor;outline-offset:2px}
[data-chat-filename]{min-width:0;overflow-wrap:anywhere}
[data-chat-filename]:empty{display:none}

.peopleRow{border-bottom:1px solid var(--rule);padding-block:12px}
.peopleRow summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;overflow-wrap:anywhere}
.peopleRow summary bdi,.peopleRow summary>span+span{font-size:.9rem}
.peopleRow .liveForm{margin-block:16px;max-width:36rem}
.peopleRow fieldset{display:grid;gap:8px;padding:12px;border:1px solid var(--rule)}
.peopleRow label.peopleCheck{display:flex;align-items:center;gap:8px}
.peopleRow label.peopleCheck input{width:1.1rem;height:1.1rem}

/* Buyer procurement conversations */
.boWorkspace.purchaseChat {
  --pc-line: color-mix(in srgb, var(--rule) 70%, white);
  --pc-on-dark: color-mix(in srgb, white 80%, var(--navy));
  --pc-rail-hover: color-mix(in srgb, var(--navy) 88%, white);
  --pc-focus: color-mix(in srgb, var(--navy) 75%, var(--ground));
  width: min(100%, 1176px);
  padding: clamp(18px, 3.5vw, 48px) clamp(12px, 3vw, 36px) clamp(30px, 5vw, 72px);
}
.pcDesk {
  display: grid;
  grid-template-columns: clamp(218px, 22vw, 272px) minmax(0, 1fr);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: clip;
  background: white;
  box-shadow: 0 10px 34px color-mix(in srgb, var(--navy) 6%, transparent);
}
.purchaseChat svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.pcDesk .pcHistory {
  position: relative; isolation: isolate; align-self: stretch; overflow: hidden;
  display: flex; flex-direction: column; gap: 20px;
  max-height: none; padding: clamp(20px, 2.4vw, 30px) 18px 16px;
  border: 0; border-radius: 0; background: var(--navy-deep); color: white;
}
.pcHistory::before {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 45%;
  background: linear-gradient(to bottom, var(--navy-deep), color-mix(in srgb, var(--navy-deep) 30%, transparent) 60%, color-mix(in srgb, var(--navy-deep) 40%, transparent)), url("/assets/auth/trade.jpg") 56% 76% / cover;
}
.pcRailTitle, .pcHistoryToggle { display: flex; align-items: center; gap: 10px; padding-inline: 6px; }
.pcRailTitle svg, .pcHistoryToggle svg:first-child { color: var(--gold); }
.pcRailTitle h2 { margin: 0; font-size: var(--s-lead); font-weight: 650; line-height: 1.4; color: white; }
.pcHistoryToggle { display: none; }
.pcRailBody { flex: 1; min-height: 0; }
.pcRailBody [data-live-inbox] { display: grid; gap: 5px; max-height: clamp(155px, 31vh, 360px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--navy) 58%, white) transparent; }
.pcHistoryEmpty { margin: 0; padding-inline: 7px; max-width: 23ch; color: var(--pc-on-dark); font-size: 14px; line-height: 1.75; }
.pcRailBody a { color: white; padding: 9px 10px; gap: 5px; border: 1px solid transparent; border-radius: 8px; overflow-wrap: anywhere; line-height: 1.45; }
.pcRailBody a:hover, .pcRailBody a[aria-current] { background: var(--pc-rail-hover); border-color: color-mix(in srgb, var(--navy) 72%, white); color: white; }
.pcRailBody a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pcRailBody a strong { font-size: 14px; font-weight: 600; }
.pcRailBody a small { color: var(--pc-on-dark); font-size: var(--s-small); }
.pcHistory a.pcBrowse {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 13px; color: #fff; background: var(--navy);
  border: 1px solid color-mix(in srgb, var(--navy) 55%, white); border-radius: 8px; font-size: 14px; font-weight: 600;
}
.pcHistory a.pcBrowse:hover { background: var(--pc-rail-hover); }
.pcDesk .pcPanel { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.pcPanel .pcHead { display: flex; gap: 13px; align-items: center; padding: 19px clamp(18px, 3vw, 36px); border-bottom: 1px solid var(--pc-line); }
.pcHead img { width: 48px; height: 48px; border-radius: 50%; }
.pcHead h1 { color: var(--navy-deep); font-size: clamp(var(--s-lead), 2.3vw, var(--s-head)); letter-spacing: -.02em; line-height: 1.22; }
.pcHead p { margin: 3px 0 0; font-size: var(--s-small); color: var(--muted); }
.pcContext { display: flex; gap: 10px; padding: 8px clamp(16px, 3vw, 36px); overflow-x: auto; border-bottom: 1px solid var(--pc-line); }
.pcContext .boProduct { flex: none; gap: 9px; max-width: min(100%, 300px); font-size: var(--s-small); }
.pcContext .boProduct img { width: 38px; height: 38px; border-radius: var(--radius); }
.pcPanel .boChatLog {
  flex: 1 1 auto; height: clamp(290px, 39vh, 440px); min-height: 0; gap: 14px;
  background: color-mix(in srgb, var(--ground) 50%, white); padding: 20px clamp(16px, 3vw, 36px); overscroll-behavior-y: contain;
}
.pcWelcome { margin: auto; width: min(100%, 540px); padding-block: 8px 13px; text-align: center; color: var(--navy-deep); }
.pcParcel { display: grid; place-items: center; margin: 0 auto 14px; width: 56px; height: 56px; border: 1px solid color-mix(in srgb, var(--kraft) 58%, white); border-radius: 8px; color: color-mix(in srgb, var(--gold) 45%, var(--ink)); background: color-mix(in srgb, var(--gold) 18%, white); }
.pcParcel svg { width: 30px; height: 30px; stroke-width: 1.4; }
.pcWelcome h2 { margin: 0; font-size: clamp(24px, 2.4vw, var(--s-head)); line-height: 1.25; letter-spacing: -.025em; }
.pcWelcome p { margin: 9px auto 0; max-width: 43ch; font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.pcPrompts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pcPrompts button { min-height: 44px; border: 1px solid var(--rule); border-radius: 8px; padding: 5px 14px; background: white; color: var(--navy); font: inherit; font-weight: 550; font-size: var(--s-small); line-height: 1.4; cursor: pointer; }
.pcPrompts button:hover { background: color-mix(in srgb, var(--gold) 14%, white); border-color: var(--kraft); }
.pcPanel .boBubble { flex: none; max-width: min(86%, 510px); border: 1px solid var(--pc-line); padding: 10px 15px; border-radius: 8px; border-end-start-radius: var(--radius); line-height: 1.5; }
.pcPanel .boMine { color: #fff; border-color: var(--navy); background: var(--navy); border-radius: 8px; border-end-end-radius: var(--radius); }
.pcPanel .boBubble small { font-size: var(--s-small); }
.pcPanel .boMine small { color: var(--pc-on-dark); }
.pcPanel .boBubble p { margin-top: 3px; }
.pcPanel .liveChatPhoto img { border-radius: var(--radius); }
.pcPanel .boComposer {
  position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px;
  padding: 11px clamp(12px, 2vw, 25px) 10px; border-top: 1px solid var(--pc-line); background: white;
}
.pcPanel .boComposer textarea {
  grid-column: 1/-1; grid-row: 1; display: block; width: 100%; height: 58px; padding: 10px 9px; resize: none;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--navy-deep); border: 1px solid var(--pc-line); border-radius: 8px; background: white;
}
.pcPanel .boComposer textarea::placeholder { color: var(--muted); }
.pcPanel .boComposer textarea:focus-visible { border-color: var(--pc-focus); outline: none; }
.pcPanel .liveChatTools { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 0 12px; min-width: 0; }
.pcPanel .liveAttach, .pcDemand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 6px; font-size: var(--s-small); line-height: 1.35; color: color-mix(in srgb, var(--navy) 70%, var(--muted)); cursor: pointer; }
.pcPanel .liveAttach { font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.pcPanel .liveAttach svg { width: 17px; height: 17px; }
.pcPanel .liveAttach:hover, .pcDemand:hover { color: var(--navy-deep); background: var(--ground); border-radius: var(--radius); }
.pcDemand input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); flex: none; cursor: pointer; }
.pcPanel [data-chat-filename] { flex-basis: 100%; padding-inline: 6px; font-size: var(--s-small); color: var(--navy); }
.pcSend { display: inline-flex; grid-column: 2; grid-row: 2; align-items: center; justify-content: center; align-self: start; gap: 8px; min-height: 44px; padding: 7px 16px; border: 0; border-radius: 8px; background: var(--gold); color: var(--navy-deep); font: inherit; font-size: var(--s-card); font-weight: 700; cursor: pointer; }
.pcSend:hover { background: var(--gold-hover); }
.pcSend:disabled { opacity: .55; cursor: wait; }
.pcSend svg { width: 17px; height: 17px; }
.pcPanel .boError { padding: 0 clamp(16px, 3vw, 36px) 12px; }
.pcDesk :is(button,a,input):focus-visible, .pcPanel .liveAttach:focus-within { outline: 2px solid var(--pc-focus); outline-offset: 2px; }
.pcHistory :is(button,a):focus-visible { outline-color: var(--gold); outline-offset: -3px; }
[dir="rtl"] .purchaseChat :is(.pcBrowse,.pcSend) svg { transform: scaleX(-1); }
[dir="rtl"] .purchaseChat .boComposer textarea:placeholder-shown { direction: rtl; text-align: start; }
@media (max-width: 720px) {
  .boWorkspace.purchaseChat { padding: 14px 10px 26px; }
  .pcDesk { grid-template-columns: minmax(0, 1fr); border-radius: 8px; }
  .pcDesk .pcHistory { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 2px 11px; }
  .pcHistory::before, .pcRailTitle { display: none; }
  .pcHistoryToggle { display: flex; width: fit-content; max-width: 100%; min-height: 44px; border: 0; background: transparent; color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .pcHistoryToggle svg { width: 17px; height: 17px; }
  .pcHistoryToggle svg:last-child { width: 13px; }
  .pcHistoryToggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
  .pcHistoryToggle[aria-expanded="false"] + .pcRailBody { display: none; }
  .pcRailBody { grid-column: 1/-1; grid-row: 2; padding: 4px 0 12px; }
  .pcRailBody [data-live-inbox] { max-height: 160px; }
  .pcHistoryEmpty { max-width: none; }
  .pcHistory a.pcBrowse { grid-column: 2; grid-row: 1; padding: 5px 6px; min-height: 44px; background: transparent; border: 0; gap: 6px; color: var(--ground); font-size: var(--s-small); }
  .pcBrowse svg { width: 15px; height: 15px; }
  .pcPanel .pcHead { padding: 13px 16px; gap: 10px; }
  .pcHead img { width: 40px; height: 40px; }
  .pcPanel .boChatLog { height: clamp(250px, 37dvh, 350px); padding: 12px; }
  .pcWelcome { padding-block: 6px; }
  .pcParcel { width: 44px; height: 44px; border-radius: 8px; margin-bottom: 11px; }
  .pcParcel svg { width: 25px; height: 25px; }
  .pcWelcome p { margin-top: 6px; }
  .pcPrompts { margin-top: 10px; gap: 5px; }
  .pcPrompts button { padding-inline: 9px; }
  .pcPanel .boComposer { padding: 7px 9px; column-gap: 5px; }
  .pcPanel .boComposer textarea { height: 50px; }
  .pcPanel .liveChatTools { gap: 0 4px; }
  .pcPanel .liveAttach, .pcDemand { padding-inline: 4px; }
  .pcSend { padding-inline: 12px; }
}
@media (max-width: 390px) {
  .pcPanel .boChatLog:has(.pcWelcome) { min-height: 260px; }
  .pcPanel .liveChatTools { gap: 0; }
  .pcSend { padding-inline: 9px; }
}
