.src-body { gap:16px; min-width:0 }
.src-body .field { min-width:0; align-content:start }
.src-body .input { width:100%; min-width:0; max-width:100% }
.src-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start }
.src-note { color:var(--muted); font-size:13px; line-height:1.45 }
.src-choices { min-width:0; margin:0; padding:0; border:0 }
.src-choices legend { padding:0; margin-bottom:7px; font-size:14px; font-weight:650 }
.src-choices>div { overflow-y:auto; max-height:min(32svh,270px); border:1px solid var(--line); border-radius:11px }
.src-choices .src-note { padding:14px }
.src-choice,.src-saving-row { display:flex; align-items:center; gap:12px; min-width:0; width:100%; padding:11px 14px; text-align:left; border:0; border-bottom:1px solid var(--line); background:var(--surface) }
.src-choice:last-child,.src-saving-row:last-child { border-bottom:0 }
.src-choice { cursor:pointer }
.src-choice input,.src-check input { width:18px; height:18px; flex:none; margin:0; accent-color:var(--accent-fill) }
.src-choice:has(:checked){background:var(--tint)}
.src-choice:has(:disabled){color:var(--muted);background:var(--soft);cursor:default}
.src-choice span,.src-identity>div,.src-saving-row>span,.src-group>div { min-width:0; display:grid; gap:2px; overflow-wrap:anywhere }
.src-identity { display:flex; align-items:center; gap:12px }
.src-thumb { flex:none; display:grid; place-items:center; width:48px; height:48px; overflow:hidden; border-radius:10px; background:var(--soft); color:var(--muted) }
.src-thumb img { width:100%; height:100%; object-fit:cover }
.src-choice b,.src-saving-row b { font-size:14px; font-weight:650 }
.src-saving-row:hover {background:var(--soft)}
.src-facts { display:grid; gap:0; margin:0 }
.src-facts>div { display:flex; gap:12px; justify-content:space-between; align-items:baseline; padding:7px 0; border-bottom:1px solid var(--line); font-size:14px }
.src-facts dt { color:var(--muted) }
.src-facts dd { text-align:right; font-weight:560; overflow-wrap:anywhere }
.src-band,.src-estimate { display:grid; gap:4px; border-radius:11px; padding:13px 15px; background:var(--soft) }
.src-estimate { background:var(--success-bg); color:var(--success) }
.src-estimate strong { font-size:clamp(24px,4vw,32px); font-weight:680; letter-spacing:-.04em; line-height:1.2; font-variant-numeric:tabular-nums }
.src-estimate small {color:inherit}
.src-answers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
.src-answers h3,.src-answers .primary {grid-column:1/-1}
.src-check { display:flex; gap:10px; align-items:center; padding:9px 0; font-size:14px; cursor:pointer }
.src-group { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--line) }
.tool-classification-copy { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere }
.tool-classification-copy small { color:var(--muted) }
.button.src-link { width:auto; min-height:40px; padding:5px 7px; color:var(--accent); border:0; background:transparent; box-shadow:none }
.src-savings { min-width:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden }
.src-savings>header { display:flex; gap:10px; align-items:center; padding:14px 16px; background:var(--success-bg); color:var(--success) }
.src-savings>header h2 { font-size:17px; font-weight:650 }
.src-savings>header svg {width:19px;height:19px}
.src-saving-row>span:first-child { flex:1 }
.src-saving-row .src-amount { text-align:right; color:var(--success);white-space:nowrap }
.src-saving-row .src-amount small { color:var(--muted) }
.src-saving-row svg { width:15px;height:15px;color:var(--muted);transform:rotate(-90deg) }
.src-savings details summary { padding:13px 16px; border-top:1px solid var(--line); font-size:14px }
.src-savings details summary strong { margin-left:8px }
@media(max-width:600px) {
  .src-fields { grid-template-columns:1fr; gap:12px }
  .src-body { gap:14px }
  .src-body input,.src-body select { font-size:16px }
  .src-body .button,.src-group .button { min-height:44px; white-space:normal }
  .src-choice,.src-saving-row { padding:10px 12px; min-height:50px; gap:10px }
  .src-choices>div {max-height:32svh}
  .src-saving-row b { font-size:14px }
  .src-savings>header { padding:12px }
  .src-savings>header h2 { font-size:16px }
  .src-body .dialog-actions .button {width:100%}
}
.inv-more { position:relative; margin-left:auto }
.inv-more summary { display:flex; align-items:center; gap:4px; min-height:44px; padding-inline:10px; border-radius:9px; font-size:14px; font-weight:600; color:var(--accent); list-style:none }
.inv-more summary::-webkit-details-marker { display:none }
.inv-more summary svg {width:15px;height:15px}
.inv-more[open] summary { background:var(--tint) }
.inv-more>div {position:absolute; z-index:4; right:0; top:100%; display:grid; min-width:205px; padding:5px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 8px 26px #2024361a}
.inv-more .button { width:100%; min-height:44px; padding:8px 11px; justify-content:flex-start; background:var(--surface); border:0; box-shadow:none; color:var(--ink); font-size:14px; font-weight:550 }
.inv-more .button:hover,.inv-more .button:focus-visible { background:var(--soft) }
.inv-more .button svg {display:none}
@media(max-width:640px) {
  .inv-page .section-title { flex-flow:row nowrap; align-items:center; gap:6px }
  .inv-page .inv-quick-actions {display:flex;flex-wrap:nowrap;gap:8px}
  .inv-page .inv-quick-actions .button {min-height:44px;min-width:0; flex:1; padding-inline:8px; font-size:14px}
}

.src-context>summary,.src-unavailable>summary {display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer}
.src-context>summary::-webkit-details-marker,.src-unavailable>summary::-webkit-details-marker {display:none}
.src-find-context,.src-find-facts {display:grid;gap:10px;min-width:0}
.src-find-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
.src-find-context .due-picker {padding:0;background:transparent}
.src-context {border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.src-context>summary {padding:8px 10px;min-height:56px;color:var(--muted)}
.src-context>summary i {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--tint);color:var(--accent);flex:none}
.src-context>summary i svg {width:17px;height:17px}
.src-context>summary>span {display:grid;gap:2px;min-width:0;flex:1}
.src-context>summary strong {color:var(--ink);font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.src-context>summary small {color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.src-context>summary>svg:last-child,.src-unavailable summary svg {width:16px;height:16px}
.src-context[open]>summary>svg:last-child,.src-unavailable[open]>summary svg {transform:rotate(180deg)}
.src-context>div {border-top:1px solid var(--line);padding:10px}
.src-context .field {font-size:12px}
.src-context select.input {min-height:44px;padding-inline:8px 25px}
@media(max-width:480px) { .src-context .src-find-facts {grid-template-columns:minmax(0,1fr)} }
.src-search-control {position:relative;display:block}
.src-search-field svg {position:absolute;left:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.src-search-field input.input {padding-left:40px}
.src-choice .src-choice-img {display:grid;place-items:center;overflow:hidden;flex:none;width:40px;height:40px;border-radius:9px;background:var(--soft);color:var(--muted)}
.src-choice-img img {width:100%;height:100%;object-fit:cover}
.src-choice .src-choice-name {flex:1}
.src-choice:has(:checked) .src-choice-name b {color:var(--accent)}
.src-unavailable summary {padding:11px 14px;min-height:44px;font-size:13px;font-weight:600;color:var(--muted);background:var(--soft)}
.src-unavailable summary svg {margin-left:auto}
.src-unavailable>.src-choice {background:var(--surface)}
.src-destination {display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;background:var(--tint);color:var(--ink)}
.src-destination>svg {color:var(--accent)}
.src-destination>div {display:grid;gap:2px;min-width:0;flex:1}
.src-destination time {display:grid;justify-items:end;gap:2px;font-size:13px;text-align:right}
.src-destination time b {font-size:16px}
@media(max-width:640px) {
  .src-body {gap:17px}
  .src-body[data-source-form=sourceAsk] {gap:12px}
  .src-body .src-thumb {width:58px;height:58px;border-radius:14px}
  .src-identity strong {font-size:19px;line-height:1.16;letter-spacing:-.035em}
  .src-identity>div {gap:5px}
  .src-search-field,.src-context .field,.src-body>label.field {font-weight:600}
  .src-choices>div {max-height:none;overflow:visible;border-radius:15px}
  .src-choice {min-height:65px;gap:11px;padding:10px 13px}
  .src-choice:first-child {border-radius:14px 14px 0 0}
  .src-choice:last-child,.src-unavailable:not([open])>summary {border-radius:0 0 14px 14px}
  .src-choice:only-child {border-radius:14px}
  .src-choice .src-choice-img {width:44px;height:44px;border-radius:10px}
  .src-choice b {font-size:15px;line-height:1.25}
  .src-choice-name small {line-height:1.35}
  .src-choice input[type=radio] {margin-left:auto}
  .src-answers h3 {margin:3px 0 5px}
  .src-answers .button {min-height:48px}
  .src-estimate {padding:16px 17px;gap:5px;border-radius:15px}
  .src-estimate strong {font-size:34px;line-height:1.08}
  .src-check {gap:12px;line-height:1.4;padding-block:6px}
  .src-facts>div {padding-block:10px}
  .src-savings {background:var(--surface);border-radius:17px}
  .src-savings>header {padding:12px 15px;gap:8px}
  .src-saving-row {padding:15px;gap:8px}
  .src-saving-row .src-saving-name {gap:5px}
  .src-saving-row b {font-size:15px;line-height:1.25}
  .src-saving-row .src-amount strong {font-size:20px;letter-spacing:-.04em}
}
@media(max-width:640px) {
  .src-pair:has(input) {display:grid;gap:0;border:1px solid var(--line);border-radius:15px;overflow:hidden}
  .src-pair:has(input) .src-identity {gap:10px;padding:11px 13px}
  .src-pair:has(input) .src-identity+input+.src-identity {border-top:1px solid var(--line);background:var(--soft)}
  .src-pair:has(input) .src-thumb {width:42px;height:42px;border-radius:9px}
  .src-pair:has(input) strong {font-size:15px;line-height:1.25}
}
@media(min-width:356px) and (max-width:640px) {
  .src-fields.src-delivery-fields {grid-template-columns:minmax(0,1.5fr) minmax(96px,.85fr)}
}

@media screen and (max-width:640px) {
  #dialog .src-body > .button,
  #dialog .src-answers > .button {width:100%;min-width:0;min-height:var(--sheet-action-height,46px);white-space:normal;overflow-wrap:anywhere}
  #dialog .src-answers {align-items:stretch}
  #dialog .src-facts > div {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px}
  #dialog .src-facts :is(dt,dd) {margin:0;min-width:0;overflow-wrap:anywhere}
  #dialog .src-pair,#dialog .src-pair .src-identity > div {min-width:0}
  #dialog .src-estimate strong {max-width:100%;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
}

/* Handheld inventory filter sheet. Each facet opens its own searchable list. */
#dialog .phone-filter-form { gap:14px; }
.inv-filter-groups { display:grid; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.inv-filter-group + .inv-filter-group { border-top:1px solid var(--line); }
.inv-filter-group summary { display:flex; align-items:center; gap:12px; min-height:66px; padding:10px 13px; list-style:none; cursor:pointer; }
.inv-filter-group summary>span:nth-child(2) { display:grid; flex:1; min-width:0; gap:2px; overflow-wrap:anywhere; }
.inv-filter-group summary b { font-size:15px; line-height:1.28; }
.inv-filter-group summary small { color:var(--muted); font-size:13px; line-height:1.3; }
.inv-filter-group.selected summary small { color:var(--accent); font-weight:600; }
.inv-filter-group summary>svg,.enquiry-archive summary>svg { width:16px; height:16px; flex:none; color:var(--muted); }
.inv-filter-group[open] summary>svg,.enquiry-archive[open] summary>svg { transform:rotate(180deg); }
.inv-filter-symbol { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:var(--soft); color:var(--muted); flex:none; }
.inv-filter-symbol svg { width:18px; height:18px; }
.inv-filter-group[open] .inv-filter-symbol,.inv-filter-group.selected .inv-filter-symbol { background:var(--tint); color:var(--accent); }
.inv-filter-group-body { margin:0 12px 12px; border-radius:12px; background:var(--soft); padding:4px 9px; }
.inv-filter-group-body>.input { margin:5px 0; }
.inv-filter-options { max-height:34dvh; overflow:auto; }
.inv-filter-option { min-height:44px; display:flex; align-items:center; gap:9px; padding:8px 4px; cursor:pointer; font-size:14px; }
.inv-filter-option+.inv-filter-option { border-top:1px solid var(--line); }
.inv-filter-option input { width:18px; height:18px; flex:none; accent-color:var(--accent-fill); }
.inv-filter-option span { min-width:0; overflow-wrap:anywhere; }
.inv-filter-option:has(:checked) { color:var(--accent); font-weight:620; }
.inv-filter-group-body>[data-no-options] { display:block; padding:10px 4px; color:var(--muted); }
.inv-filter-empty { color:var(--muted); line-height:1.4; font-size:14px; }
.phone-filter-form [data-filter-apply] { font-variant-numeric:tabular-nums; }

/* A request shows the next available action from the current user's side. */
#dialog .enquiry-inbox { gap:18px; }
.enquiry-group,.enquiry-archive { display:grid; gap:8px; }
.enquiry-group h3,.enquiry-archive summary { display:flex; align-items:center; gap:7px; font-size:15px; margin:0; }
.enquiry-count { padding:2px 6px; line-height:1.15; background:var(--soft); border-radius:6px; color:var(--muted); font-size:12px; font-weight:600; }
.enquiry-archive summary { min-height:44px; list-style:none; cursor:pointer; }
.enquiry-archive summary>svg { margin-left:auto; }
.enquiry-archive[open]>.enquiry-card { margin-top:8px; }
.enquiry-card { display:grid; grid-template-columns:minmax(0,1fr); gap:11px; width:100%; min-width:0; border:1px solid var(--line); border-radius:15px; text-align:left; padding:13px 14px 0; background:var(--surface); color:var(--ink); }
.enquiry-card-identity { display:flex; align-items:center; gap:10px; }
.enquiry-card-identity>span:last-child { display:grid; min-width:0; gap:3px; }
.enquiry-card-identity strong { font-size:15px; line-height:1.25; overflow-wrap:anywhere; }
.enquiry-card-identity small,.enquiry-card-facts { color:var(--muted); font-size:13px; line-height:1.28; }
.enquiry-card-facts { display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; }
.enquiry-card-facts>span { display:flex; gap:5px; min-width:0; overflow-wrap:anywhere; }
.enquiry-card-facts svg { width:15px; height:15px; flex:none; }
.enquiry-card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:43px; padding-block:7px; border-top:1px solid var(--line); }
.enquiry-card-foot>span { color:var(--muted); font-size:13px; line-height:1.25; min-width:0; overflow-wrap:anywhere; }
.enquiry-card-foot.positive>span { color:var(--success); }
.enquiry-card-foot.attention>span { color:var(--warning); }
.enquiry-card-foot>b { display:inline-flex; align-items:center; justify-content:space-between; gap:5px; font-size:14px; line-height:1.25; color:var(--accent); flex:none; }
.enquiry-card-foot>b:only-child { width:100%; }
.enquiry-card-foot b svg { width:15px; height:15px; transform:rotate(-90deg); }
#dialog .src-request>.enquiry-back { min-height:44px; justify-content:flex-start; justify-self:start; width:auto; border:0; margin:0; padding:8px 4px; color:var(--accent); background:transparent; font-size:14px; }
@media(hover:hover) { .enquiry-card:hover,.inv-filter-group summary:hover {background:var(--soft)} }
