.phone-context-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-radius: 12px; background: var(--md-surface-container-low); }
.phone-context-info .hint { margin: 0; }
.phone-context-info .text-button { padding: 4px 0; }
.phone-context-info.has-matches { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; border: 1px solid var(--md-primary); border-left-width: 4px; background: var(--md-primary-container); color: var(--md-on-primary-container); }
.phone-context-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--md-primary); color: var(--md-on-primary); }
.phone-context-info.has-matches .phone-context-summary { flex: 1; font-size: 15px; font-weight: 500; }
.phone-context-summary strong { font-size: 17px; font-weight: 700; white-space: nowrap; }
.phone-context-open { flex-shrink: 0; min-height: 36px; font-weight: 600; border-color: var(--md-primary); }
.phone-context-error { color: var(--md-warning); }
.phone-context-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.phone-context-heading .hint { margin: 0; }
.phone-context-table-wrap { width: 100%; overflow-x: hidden; }
.phone-context-table { width: 100%; min-width: 0; table-layout: fixed; }
.phone-context-table .history-entry { width: 152px; }
.phone-context-table .related-property { width: auto; }
.phone-context-table .related-team { width: 184px; }
.phone-context-table th { padding: 14px 12px; }
.phone-context-table td { padding: 14px 12px; }
.phone-context-table .offer-thumb { flex-basis: 88px; width: 88px; height: 66px; }
.phone-context-table .offer-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.phone-context-table .offer-facts :is(dt, dd) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.phone-context-property { min-width: 0; }
.phone-context-property-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.phone-context-property-head .offer-identity { min-width: 0; }
.phone-context-property > .offer-facts { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--md-outline-variant); }
.phone-context-property .phone-context-price { min-width: 104px; padding-left: 10px; }
.phone-context-property .phone-context-price .offer-price { display: block; font-size: 17px; line-height: 22px; }
.phone-context-property .phone-context-price small { margin-top: 3px; font-size: 11px; line-height: 16px; }
.phone-context-table .offer-location { line-height: 1.5; }
.phone-context-table .offer-address { line-height: 1.5; }
.phone-context-table .phone-context-entry time { display: block; }
.phone-context-table .phone-context-entry time strong { font-size: 15px; }
.phone-context-table .phone-context-entry time span { color: var(--md-on-surface-variant); margin-left: 6px; font-size: 12px; }
.phone-context-table .history-person { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 8px; background: var(--inquiry-person-surface); }
.phone-context-table .history-person > div { min-width: 0; }
.phone-context-table .history-person .control-label { display: block; font-size: 12px; line-height: 16px; }
.phone-context-table .history-person strong { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--md-on-surface); }
.phone-context-table .history-person .inquiry-person-avatar { position: relative; flex: 0 0 32px; width: 32px; height: 32px; }
.phone-context-table .history-person .inquiry-person-avatar > .material-symbols-rounded { font-size: 22px; }
.phone-context-table .history-person .inquiry-person-role { width: 20px; height: 20px; }
.phone-context-table .history-person .inquiry-person-role .material-symbols-rounded { font-size: 12px; }
.phone-context-table tbody tr { cursor: default; }
.phone-context-table tbody tr > td, .phone-context-table tbody tr:is(:hover, :focus-within) > td { background: var(--md-surface); border-bottom: 0; }
.phone-context-table .phone-context-group + .phone-context-group > tr:first-child > td { border-top: 8px solid var(--md-surface-container-low); }
.phone-context-table .offer-identity { min-width: 0; }
.phone-context-table td.phone-context-price { white-space: nowrap; }
.phone-context-table small { display: block; margin-top: 8px; color: var(--md-on-surface-variant); }
.phone-context-entry strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.history-team { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: baseline; font-size: 14px; line-height: 20px; }
.history-team .control-label { font-size: 12px; }
.history-team strong { font-weight: 600; }
.phone-context-team .inquiry-forwarding:not(:empty) { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--md-outline-variant); }
.phone-context-team .inquiry-forwarding > small:first-child { margin-top: 0; }
.phone-context-team .inquiry-forwarding.is-pending > small:first-child { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #fff1d6; color: #754600; }
.phone-context-table .phone-context-note td { padding-top: 0; }
.history-notes { display: grid; gap: 10px; }
.history-notes:has(> section + section) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.history-note { padding: 12px 16px; border: 1px solid var(--desk-note-border); border-radius: 8px; background: var(--desk-note-surface); color: var(--desk-note-text); }
.history-note h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 18px; }
.history-note p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.phone-context-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; }
.phone-context-pagination span { margin-right: auto; color: var(--md-on-surface-variant); }
@media(max-width:700px) {
  .phone-context-pagination { flex-wrap: wrap; }
  .phone-context-table colgroup, .phone-context-table thead { display: none; }
  .phone-context-table, .phone-context-table tbody, .phone-context-table tr, .phone-context-table td { display: block; width: 100%; }
  .phone-context-table .phone-context-interest > td { padding: 12px; }
  .phone-context-table .phone-context-entry { border-bottom: 1px solid var(--md-outline-variant); }
  .phone-context-table .phone-context-team { border-top: 1px solid var(--md-outline-variant); }
  .phone-context-table .phone-context-note td { padding: 0 12px 12px; }
}
@media(max-width:450px) {
  .phone-context-info.has-matches { flex-wrap: wrap; }
  .phone-context-info.has-matches .phone-context-summary { flex-basis: calc(100% - 48px); }
  .phone-context-open { margin-left: 48px; }
}
