.workspace-entity-summary{box-sizing:border-box;width:100%;min-width:0;padding:.55rem .7rem;border:1px solid #dce5ed;border-radius:10px;background:#fff;color:#1f3550}
.workspace-entity-summary>summary{display:flex;align-items:center;gap:.5rem;min-width:0;cursor:pointer;list-style:none}
.workspace-entity-summary>summary::-webkit-details-marker{display:none}
.workspace-entity-summary-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem .6rem;min-width:0}
.workspace-entity-summary-heading strong{font-size:.92rem;overflow-wrap:anywhere}
.workspace-entity-summary-status{font-size:.76rem;color:#536d88}
.workspace-deal-rollback-note{flex-basis:100%;font-size:.74rem;color:#8a4c1f;overflow-wrap:anywhere}
.workspace-entity-summary-facts{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem .75rem;color:#405a75;font-size:.76rem}
.workspace-entity-summary-facts small{color:#72849a}
.workspace-entity-summary-expand{margin-left:auto;color:#71849b}
.workspace-entity-summary[open] .workspace-entity-summary-expand{transform:rotate(180deg)}
.workspace-entity-summary-details{display:grid;gap:0;margin:.55rem 0 0;padding-top:.35rem;border-top:1px solid #e7edf3}
.workspace-entity-summary-details>div{display:grid;grid-template-columns:minmax(7rem,28%) minmax(0,1fr);gap:.5rem;padding:.35rem 0}
.workspace-entity-summary-details dt{color:#6d8098}.workspace-entity-summary-details dd{margin:0;overflow-wrap:anywhere}
.workspace-entity-history{min-width:0;min-height:0;display:flex;flex-direction:column;gap:.4rem}
.workspace-entity-history-load{text-align:center;flex:none}
.workspace-entity-history-load button{border:0;border-radius:8px;background:#eef4fa;color:#35638f;padding:.35rem .7rem;cursor:pointer}
.workspace-entity-history-load button:hover{background:#e1edf8}
.workspace-entity-history-error{margin:.25rem 0;color:#9b3e38;font-size:.78rem}
.workspace-entity-history-list{display:flex;flex-direction:column;gap:.55rem;min-width:0}
.workspace-entity-history-empty{margin:.5rem 0;color:#708298;text-align:center}
.workspace-entity-history-item{display:flex;align-items:flex-start;gap:.45rem;max-width:min(85%,72ch);min-width:0}
.workspace-entity-history-item.is-outgoing{align-self:flex-end;flex-direction:row-reverse}
.workspace-entity-history-item.is-system{align-self:center;justify-content:center;max-width:min(90%,72ch);text-align:center}
.workspace-entity-history-item.is-system .workspace-entity-history-avatar{display:none}
.workspace-entity-history-avatar{display:grid;place-items:center;flex:none;width:1.8rem;height:1.8rem;border-radius:50%;background:#dfe9f3;color:#496783;font-size:.75rem;font-weight:700}
.workspace-entity-history-bubble{min-width:0;padding:.5rem .7rem;border:1px solid #dce5ee;border-radius:11px;background:#f8fafc;overflow-wrap:anywhere}
.workspace-entity-history-bubble small{display:block;color:#627b96;font-size:.7rem}
.workspace-entity-history-bubble p{margin:.2rem 0 0;white-space:pre-wrap}
.workspace-entity-history-bubble a{display:inline-block;margin-top:.25rem;font-size:.76rem;color:#316b9f}
[data-record-kind="client"],[data-record-kind="organization"]{--record-ink:#465976;--record-fill:#f3f5f8;--record-tint:#e9edf4;--record-line:#dce4ee}
[data-record-kind="dialog"],[data-record-kind="channel"],[data-record-kind="project"]{--record-ink:#265bae;--record-fill:#f3f8ff;--record-tint:#e7f0ff;--record-line:#d6e5fa}
[data-record-kind="event"]{--record-ink:#355f9e;--record-fill:#eef6ff;--record-tint:#e4effe;--record-line:#d0e4fb}
[data-record-kind="case"]{--record-ink:#99463d;--record-fill:#fff4f1;--record-tint:#ffe9e5;--record-line:#f0d9d3}
[data-record-kind="deal"],[data-record-kind="payment"],[data-record-kind="order"]{--record-ink:#286344;--record-fill:#f0f8f0;--record-tint:#e4f3e9;--record-line:#d4e9d6}
[data-record-kind="invoice"]{--record-ink:#795215;--record-fill:#fff9ec;--record-tint:#fff1d2;--record-line:#f0e4bf}
[data-record-kind="snapshot"]{--record-ink:#7147a0;--record-fill:#f5f1fc;--record-tint:#eee5fb;--record-line:#e4d9f5}
[data-record-kind="variable"],[data-record-kind="profile"]{--record-ink:#216777;--record-fill:#f0fafb;--record-tint:#e3f4f5;--record-line:#d6ebed}
.workspace-entity-history-item .workspace-entity-history-bubble{background:var(--record-fill,#f8fafc);border-color:var(--record-line,#dce5ee)}
.workspace-entity-history-kind{color:var(--record-ink,#496783)}
.workspace-entity-history-kind svg,.workspace-client-balance-row strong svg{vertical-align:-.14em;margin-inline-end:.28rem}
.workspace-entity-summary>.workspace-entity-summary-body>.workspace-card{margin:.45rem 0 0;min-height:0}
.workspace-entity-summary>.workspace-entity-summary-body>.workspace-card:last-child{margin-bottom:.1rem}
.workspace-entity-summary:not([open])>summary{min-height:1.4rem}
.workspace-entity-summary[open]{min-height:0}
.workspace-entity-summary[open]>.workspace-entity-summary-body>.workspace-card:first-of-type{margin-top:.6rem}
@media(max-width:850px){
  .workspace-entity-summary{padding:.4rem .55rem}
  .workspace-entity-summary-heading strong{font-size:.86rem}
  .workspace-entity-summary-facts{font-size:.72rem}
  .workspace-entity-history-item{max-width:94%}
  .workspace-entity-summary-details>div{grid-template-columns:1fr;gap:.05rem}
}
.workspace-entity-history-host{padding:.3rem .45rem;min-height:14rem;min-width:0}
.workspace-entity-document{padding:.35rem .55rem;border:1px solid #dce5ed;border-radius:9px;background:#fff}
.workspace-entity-document>summary{cursor:pointer;color:#426786;font-size:.78rem}
.workspace-entity-document>.workspace-card{margin:.4rem 0 0}
.workspace-case-status.workspace-entity-summary{padding:.45rem .6rem;min-height:0}
.workspace-case-status.workspace-entity-summary>summary{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.workspace-case-status.workspace-entity-summary>summary .workspace-kicker{margin:0;font-size:.7rem}
.workspace-case-status.workspace-entity-summary>summary strong{font-size:.86rem}
.workspace-case-status.workspace-entity-summary>summary span:last-child{font-size:.72rem;color:#617b94}
.workspace-case-conversation .workspace-entity-history{flex:1}
.workspace-entity-history-host .workspace-record-timeline{margin:0}
.workspace-client-fold{padding:.4rem .55rem;min-height:0}
.workspace-client-fold>summary{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;cursor:pointer;font-size:.78rem}
.workspace-client-fold>summary span{color:#5e7892}
.workspace-client-fold>.workspace-entity-summary-body>.workspace-card{margin:.45rem 0 0}
.workspace-client-stat-fold>summary{cursor:pointer;font-size:.75rem;color:#55738e}
.workspace-client-stat-fold .workspace-client-stat-grid{margin:.35rem 0}
[data-client-block="journal"] .workspace-entity-history-list{padding:.2rem .1rem;min-height:10rem}
[data-client-block="journal"]>h2{margin:.1rem 0 .25rem;font-size:.82rem}
@media(max-width:850px){.workspace-entity-history-host{min-height:12rem;padding:.2rem}.workspace-entity-summary{line-height:1.25}}
.workspace-open-object-detail[hidden]{display:none!important}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary:not([open]){display:block;position:relative;box-shadow:none}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary[open]{position:relative;top:auto;left:auto;right:auto;z-index:auto;max-height:none;overflow:visible;box-shadow:none}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary>summary{display:flex;align-items:center;gap:.5rem;min-height:1.6rem}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary>summary strong{font-size:.85rem;color:#233d59}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary>summary span{margin-left:auto;font-size:.72rem;color:#607a92;text-align:right}
.workspace-conversation-mode .workspace-event-details.workspace-entity-summary[open]>:not(summary){margin-top:.35rem}
.workspace-conversation-mode .workspace-dialog-surface:has(.workspace-event-details) .workspace-dialog-history{flex:1;min-height:12rem}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-tools,
.workspace-conversation-mode .workspace-case-composer:not(.is-expanded)>.workspace-composer-tools{display:none!important}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions{display:flex!important;flex:none;align-items:center;margin:0}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions>:not(:first-child){display:none!important}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions>[data-composer-expand]{display:inline-flex!important}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions>.workspace-primary{white-space:nowrap}
.workspace-conversation-mode .workspace-case-composer:not(.is-expanded)>.workspace-composer-actions{display:flex!important;align-items:center;gap:.3rem}
.workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions>.workspace-case-close{display:none!important}
.workspace-composer-expand{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;min-height:2rem;border:1px solid #dce6f0;border-radius:7px;background:#f3f7fb;color:#426785;cursor:pointer}
.workspace-composer-expand[aria-expanded="true"]{transform:rotate(180deg)}
@media(max-width:650px){
  .workspace-conversation-mode .workspace-event-details.workspace-entity-summary{padding:.35rem .45rem}
  .workspace-conversation-mode .workspace-event-details.workspace-entity-summary>summary{flex-wrap:wrap;gap:.1rem .4rem}
  .workspace-conversation-mode .workspace-event-details.workspace-entity-summary>summary span{margin-left:0;text-align:left}
  .workspace-conversation-mode .workspace-composer:not(.is-expanded)>.workspace-composer-actions>.workspace-primary{font-size:.72rem;padding:.38rem .5rem}
}
.workspace-entity-history-attachments{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}
.workspace-entity-history-attachments>a{display:flex;align-items:center;gap:.35rem;max-width:100%;word-break:break-word}
.workspace-entity-history-attachments img{max-width:140px;max-height:110px;object-fit:contain;border-radius:.35rem}
.workspace-history-field-label{display:inline-block;padding:.22rem .5rem;margin:.45rem 0 .2rem;border-radius:5px;background:#e7effb;color:#285b92;font-size:.8rem;font-weight:700}
.workspace-history-field-value{white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0 .6rem;line-height:1.55}
.workspace-document-field-focus{outline:2px solid #7aaff1;outline-offset:3px;border-radius:6px;background:#fff7d9!important;transition:background-color .3s}
.workspace-document-focus-note{padding:.5rem;background:#fff7db;color:#765b23;border-radius:6px}

.panel-scroll-edge-host{position:relative}
.panel-scroll-edge{position:absolute;z-index:3;inset-inline-end:13px;inset-block-end:12px;width:36px;height:36px;display:grid;place-items:center;border:1px solid #a9bfe0;border-radius:8px;background:#f8fbff;color:#285b99;box-shadow:0 2px 8px #2d4f7626;cursor:pointer}
.panel-scroll-edge[hidden]{display:none}
.panel-scroll-edge[data-edge=end] svg{transform:rotate(180deg)}
