










 
.shell.desk-on { height: 100vh; min-height: 0; }
.shell.desk-on .body-row { min-height: 0; overflow: hidden; }
 
.shell.desk-on .rail { width: 56px; padding: 14px 8px; }
.shell.desk-on .rail-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.shell.desk-on .rail-item { justify-content: center; padding: 10px 0; gap: 0; position: relative; }
.shell.desk-on .rail-item > span:not(.rail-icon):not(.rail-chip) { display: none; }
.shell.desk-on .rail-item > .rail-chip { position: absolute; top: 2px; right: 0; margin: 0; padding: 1px 5px; font-size: 9px; }

.shell.desk-on #viewHost {
  max-width: none; padding: 0; min-height: 0; height: 100%; overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas:
    "head head   head"
    "list banner banner"
    "list frame  context"
    "list main   context";
}
.shell.desk-on #viewHost:not(.desk-has-context) {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "head head" "list banner" "list frame" "list main";
}
.shell.desk-on #workHead { grid-area: head; }
.shell.desk-on #deskList { grid-area: list; }
.shell.desk-on #deskBanner { grid-area: banner; }
.shell.desk-on #deskFrame { grid-area: frame; }
.shell.desk-on #phonesPane, .shell.desk-on #emailPane, .shell.desk-on #chatPane, .shell.desk-on #deskEmpty { grid-area: main; min-width: 0; min-height: 0; }
.shell.desk-on #deskOffers { grid-area: main; }
.shell.desk-on #deskContext { grid-area: context; }
.shell.desk-on #viewPane { display: none; }
.shell:not(.desk-on) .desk-list, .shell:not(.desk-on) .desk-frame,
.shell:not(.desk-on) .desk-empty, .shell:not(.desk-on) .desk-context, .shell:not(.desk-on) .desk-banner { display: none !important; }
.shell.desk-on #viewHost:not(.desk-has-context) #deskContext { display: none; }
.shell.desk-on #viewHost.desk-has-focus #deskEmpty { display: none; }

 
.shell.desk-on #phonesPane { overflow: auto; padding: 18px 24px 32px; background: var(--bg); }
.shell.desk-on #emailPane, .shell.desk-on #chatPane { overflow: hidden; background: var(--bg); }

 
.desk-head {
  display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: nowrap;
  min-height: 64px; padding: 8px 16px; margin: 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.desk-head-state { flex: 0 1 340px; min-width: 248px; display: flex; }
.desk-head-state > .work-state { flex: 1; min-width: 0; display: flex; }
.desk-head .beacon {
  padding: 7px 12px 7px 14px; gap: 11px; border-radius: var(--r-md); min-height: 48px;
}
.desk-head .beacon .dot { width: 10px; height: 10px; }
.desk-head .beacon-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.desk-head .beacon-label { font-size: 15px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.desk-head .beacon-top { flex-wrap: wrap; column-gap: 8px; height: 18px; overflow: hidden; }
.desk-head .beacon-top .beacon-label { line-height: 18px; max-width: 100%; }
.desk-head .beacon-focus { line-height: 14px; }
.desk-head .beacon-reason { display: none; }
.desk-head .beacon-line { font-size: 12px; font-weight: 500; opacity: .86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.desk-head .beacon-line:empty { display: none; }
.desk-head .beacon .timer { font-size: 15px; font-variant-numeric: tabular-nums; margin-left: 6px; }
.desk-head .beacon-caret { width: 8px; height: 8px; margin-left: 2px; }
.desk-head .state-menu { min-width: 260px; right: auto; max-height: min(72vh, 620px); }
.desk-head > .work-schedule { flex: 1 1 280px; max-width: 360px; min-width: 0; display: flex; }
.desk-head .work-schedule-toggle { min-height: 48px; padding: 6px 30px 6px 12px; border-radius: var(--r-md); }
.desk-head .work-schedule-week { left: auto; right: auto; width: 400px; }
.desk-head-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.desk-queues { display: flex; align-items: center; gap: 6px; }
.desk-q {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border-radius: 999px; background: var(--chip); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; cursor: default; user-select: none;
}
.desk-q-glyph { color: var(--muted); font-size: 13px; line-height: 1; }
.desk-q-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.desk-q.is-zero .desk-q-n { color: var(--muted); font-weight: 500; }
.desk-q.is-late { background: rgba(var(--amber-rgb), .16); border-color: rgba(var(--amber-rgb), .6); }
.desk-q.is-late .desk-q-n, .desk-q.is-late .desk-q-glyph { color: var(--amber); }
.desk-new { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--r-md); font-size: 14px; }
.desk-new-plus { font-size: 17px; font-weight: 500; line-height: 1; margin-top: -1px; }


.desk-phone {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 11px; min-width: 0;
  border-radius: 999px; background: var(--chip); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; white-space: nowrap;
}
.desk-phone-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.desk-phone[data-tone="ok"] .desk-phone-dot { background: var(--green); }
.desk-phone[data-tone="warn"] .desk-phone-dot { background: var(--amber); }
.desk-phone[data-tone="off"] .desk-phone-line { color: var(--muted); }
.desk-phone-line, .desk-phone-short { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.desk-phone-short { display: none; }
.desk-phone-act { flex: none; padding: 2px 0; font-size: 12.5px; }

 
.desk-list {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: var(--surface); border-right: 1px solid var(--line);
}
.desk-list-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.desk-list-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.desk-list-count { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 1px 7px; }
.desk-list-count:empty { display: none; }
.desk-list-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.desk-sec { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.desk-sec-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 10px 8px 6px; margin: 0; }
.desk-sec-incoming .desk-sec-title { color: var(--amber); }
.desk-list-empty { color: var(--faint); font-size: 13px; padding: 18px 10px; }
.desk-sec-take .desk-sec-title { color: var(--amber); }
.desk-take-row { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--r-md); font-size: 13px; color: var(--ink); }
.desk-take-row .btn { margin-left: auto; padding: 4px 14px; font-size: 12px; }
.desk-take-said { font-size: 12px; color: var(--coral); margin: 0 8px 8px; }
.desk-empty-actions [data-take].is-busy, .desk-take-row [data-take].is-busy { opacity: .6; cursor: progress; }

.desk-card {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 11px;
  width: 100%; text-align: left; padding: 10px 10px 10px 13px; min-height: 52px; max-height: 76px;
  background: transparent; border-radius: var(--r-md); color: var(--ink); overflow: hidden;
}
.desk-card:hover { background: var(--raised); }
.desk-card.is-focus { background: var(--raised); box-shadow: inset 3px 0 0 var(--blue); }
.desk-card.is-offer { background: rgba(var(--amber-rgb), .08); box-shadow: inset 3px 0 0 var(--amber); }
.desk-card.is-offer.is-focus { background: var(--raised); }
.desk-card.is-new { animation: deskArrive 2.4s ease-out; }
@keyframes deskArrive { from { background: rgba(var(--accent-rgb), .28); } to { background: transparent; } }
.desk-card-skeleton { height: 60px; background: var(--raised); opacity: .5; margin: 4px 0; pointer-events: none; }
.desk-glyph {
  width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--chip); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; flex: none;
}
.desk-card.is-focus .desk-glyph { color: var(--ink); }
.desk-card-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.desk-card-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.desk-card-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-card-timer { flex: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.desk-card-timer.tone-wait { color: var(--amber); font-weight: 600; }
.desk-card-timer.tone-wrap { color: var(--muted); }
.desk-unread {
  flex: none; align-self: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px;
  background: var(--blue); color: var(--accent-ink); font-size: 11px; font-weight: 700; font-family: var(--mono);
  display: inline-flex; align-items: center; justify-content: center;
}
.desk-card-line { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); }
.desk-card-client { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-card-sep { flex: none; color: var(--faint); }
.desk-card-phase { flex: none; white-space: nowrap; margin-right: auto; }
.desk-card-note { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-card-note.tone-wait { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.desk-card-note.tone-live { color: var(--blue); font-weight: 600; }
.desk-card-note.tone-muted { color: var(--faint); }
.desk-pill {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--amber);
  border: 1px solid rgba(var(--amber-rgb), .7); background: rgba(var(--amber-rgb), .12); border-radius: 999px; padding: 0 7px; line-height: 17px;
}
.desk-offer-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--left, 0) * 100%);
  background: var(--amber); transition: width .5s linear;
}
.desk-parked-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none;
  padding: 10px 8px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.desk-parked-toggle:hover { color: var(--ink); }
.desk-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin: 0 2px; }
.desk-sec-parked.open .desk-caret { transform: rotate(45deg); }
.desk-capacity {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); min-height: 42px;
}
.desk-capacity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.desk-capacity-dot.is-open { background: var(--green); }

 
.desk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

 
.desk-banner {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 13px;
  color: var(--ink); background: rgba(var(--amber-rgb), .16); border-bottom: 1px solid rgba(var(--amber-rgb), .45);
}
.desk-banner-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--amber); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }

 
.desk-frame {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.desk-glyph-lg { width: 36px; height: 36px; font-size: 17px; border-radius: var(--r-md); }
.desk-frame-id { min-width: 0; }
.desk-frame-title { font-size: 17px; font-weight: 650; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.desk-frame-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.desk-frame-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.desk-frame-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.desk-contact-no { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.desk-frame-phase { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.desk-frame-phase.tone-wrap { color: var(--amber); }
.desk-frame-actions { display: flex; align-items: center; gap: 6px; }
.desk-frame-actions button.sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.desk-end:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.desk-confirm-ask { font-size: 13px; font-weight: 600; margin-right: 4px; }
.desk-details-toggle { display: none; }
.desk-more { position: relative; }
.desk-more-btn { min-width: 34px; letter-spacing: .1em; }
.desk-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
}
.desk-menu-item { display: block; width: 100%; text-align: left; background: none; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; }
.desk-menu-item:hover, .desk-menu-item:focus-visible { background: var(--raised); }

 
.desk-offers {
  align-self: start; justify-self: center; z-index: 25; width: min(400px, calc(100% - 32px));
  margin-top: 28px; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.desk-offers.hidden { display: none; }
.desk-offer {
  position: relative; overflow: hidden; pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--amber);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px 18px;
}
.desk-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.desk-offer-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.desk-offer-left { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--amber); }
.desk-offer-who { display: flex; align-items: center; gap: 11px; }
.desk-offer-name { font-size: 18px; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-offer-where { font-size: 13px; color: var(--muted); margin: 6px 0 0 39px; }
.desk-offer-said { font-size: 13px; color: var(--coral); margin-top: 8px; }
.desk-offer-said:empty { display: none; }
.desk-offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.desk-offer-actions button { padding: 11px 14px; font-size: 14px; border-radius: var(--r-md); }
.desk-offer .desk-offer-bar { height: 3px; }






.shell:not(.desk-on) .desk-offers {
  position: fixed; right: 16px; bottom: 16px; z-index: 39; margin: 0; width: min(400px, calc(100vw - 32px));
}
 
body:has(> .newbuild) .shell:not(.desk-on) .desk-offers { bottom: 96px; }

 
.desk-empty { display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 32px 24px; background: var(--bg); overflow: auto; }


.desk-empty-notes { width: 100%; max-width: 520px; margin-top: 22px; display: grid; gap: 10px; text-align: left; }
.desk-empty.is-offering .desk-empty-inner { visibility: hidden; }
.desk-empty-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 440px; }
.desk-empty-mark { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px; position: relative; border: 2px solid var(--line); }
.desk-empty-mark::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--faint); }
.desk-empty-mark.is-ready { border-color: rgba(52, 168, 96, .45); }
.desk-empty-mark.is-ready::after { background: var(--green); }
.desk-empty-mark.is-away { border-color: rgba(224, 93, 68, .45); }
.desk-empty-mark.is-away::after { background: var(--coral); }
.desk-empty-heading { font-size: 26px; font-weight: 700; letter-spacing: .01em; margin: 0; }
.desk-empty-timer { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 17px; color: var(--muted); margin-top: 6px; }
.desk-empty-timer:empty { display: none; }
.desk-empty-line { font-size: 14px; color: var(--muted); margin-top: 12px; }
.desk-empty-waiting { font-size: 13px; color: var(--faint); margin-top: 6px; }
.desk-empty-actions { display: flex; gap: 10px; margin-top: 22px; }
.desk-empty-actions button { padding: 10px 20px; font-size: 14px; border-radius: var(--r-md); }
.desk-empty-said { font-size: 13px; color: var(--coral); margin-top: 12px; max-width: 360px; }
.desk-go { background: var(--green); color: #fff; }

 
.desk-context { position: relative; min-height: 0; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); }
.desk-context-strip { display: none; }
.desk-context-body { padding: 16px 18px 24px; }
.desk-context-head { display: flex; align-items: center; justify-content: space-between; }
.desk-context-close { display: none; }
.desk-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.desk-label-gap { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.desk-context-name { font-size: 17px; font-weight: 650; margin-top: 8px; overflow-wrap: anywhere; }
.desk-ids { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.desk-id { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.desk-id-glyph { color: var(--muted); width: 16px; text-align: center; flex: none; }
.desk-id-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-id-none { color: var(--faint); }
.desk-copy { flex: none; padding: 0 2px; }
.desk-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 10px 0 0; font-size: 13px; }
.desk-facts dt { color: var(--muted); }
.desk-facts dd { margin: 0; overflow-wrap: anywhere; }

 
.shell.desk-on .chat-shell.chat-single { height: 100%; min-height: 0; gap: 0; }


.chat-single .chat-single-meta { flex: none; padding: 12px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; border-bottom: 1px solid var(--line); }
.chat-single .chat-single-meta:empty { display: none; }
.chat-single .chat-prechat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; }
.chat-single .chat-transcript { padding: 20px 24px; }
.chat-single .chat-message { max-width: min(78%, 640px); }
.chat-single .chat-message-customer { background: var(--surface); border: 1px solid var(--line); }
.chat-single .chat-message-agent { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .35); }
.chat-single .chat-loading { color: var(--faint); font-size: 13px; padding: 8px 0; }
.chat-single > .chat-error { padding: 0 24px; }
.chat-single .chat-said { font-size: 12px; color: var(--green); padding: 0 24px; }
.chat-single .chat-said:empty { display: none; }
.chat-single .chat-compose { background: var(--surface); padding: 14px 24px 16px; }


.chat-single .chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input input" "replies send"; gap: 10px; align-items: start; }
.chat-single .chat-composer > textarea { grid-area: input; }
.chat-single .chat-composer > .chat-saved-replies { grid-area: replies; flex-basis: auto; }
.chat-single .chat-composer > button[type="submit"] { grid-area: send; min-width: 96px; }
.chat-single .chat-composer > .chat-saved-replies > button { padding: 8px 14px; }
.shell.desk-on .nm-shell.nm-single { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.nm-single .nm-single-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 28px; }
.nm-single #nmWrap:not(:empty), .nm-single #nmSendNote:not(:empty) { padding: 12px 24px 0; }
.nm-single .nm-read { max-width: 920px; }

 
@media (max-width: 1439px) {
  .shell.desk-on #viewHost { grid-template-columns: 280px minmax(0, 1fr) 320px; }
  .shell.desk-on #viewHost:not(.desk-has-context) { grid-template-columns: 280px minmax(0, 1fr); }
}


@media (max-width: 1279px) {
  .shell.desk-on #viewHost { grid-template-columns: 264px minmax(0, 1fr) 44px; }
  .shell.desk-on #viewHost:not(.desk-has-context) { grid-template-columns: 264px minmax(0, 1fr); }
  .desk-context { overflow: visible; }
  .desk-context-strip {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 10px 0 0; padding: 0;
    background: none; color: var(--muted); font-size: 18px; border-radius: var(--r-md);
  }
  .desk-context-strip:hover, .desk-context-strip[aria-expanded="true"] { color: var(--ink); background: var(--raised); }
  .desk-context-body { display: none; }
  #viewHost.desk-drawer-open .desk-context-body {
    display: block; position: absolute; top: 0; right: 44px; width: 360px; max-height: 100%; overflow-y: auto; z-index: 30;
    background: var(--surface); border: 1px solid var(--line); border-right: 0; box-shadow: var(--shadow);
  }
  #viewHost.desk-drawer-open .desk-context-close { display: inline; }
  .desk-head .work-schedule-line:first-child { display: none; }
  .desk-head-state { flex-basis: 290px; }
  

  .desk-phone-line { display: none; }
  .desk-phone-short { display: inline; }
}


@media (max-width: 1023px) {
  .shell.desk-on #viewHost, .shell.desk-on #viewHost:not(.desk-has-context) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas: "head" "list" "banner" "frame" "main";
  }
  .shell.desk-on #deskContext { grid-area: main; display: none; }
  .shell.desk-on #viewHost.desk-has-context.desk-drawer-open #deskContext {
    display: block; z-index: 30; justify-self: end; width: min(360px, 100%); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .shell.desk-on #viewHost.desk-drawer-open .desk-context-body { display: block; position: static; width: auto; box-shadow: none; border: 0; }
  .desk-context-strip { display: none !important; }
  .desk-details-toggle { display: inline-flex; }
  .desk-head { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
  .desk-head-state { flex: 1 1 100%; min-width: 0; }
  .desk-head > .work-schedule { flex: 1 1 100%; max-width: none; min-width: 0; }
  .desk-head .work-schedule-week { width: min(400px, calc(100vw - 90px)); right: 0; }
  

  .desk-head-end { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .desk-phone { margin-right: auto; max-width: 100%; }
  .desk-phone-line { display: inline; }
  .desk-phone-short { display: none; }
  .desk-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-list-head, .desk-capacity { display: none; }
  .desk-list-scroll { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; overscroll-behavior-x: contain; }
  .desk-sec { flex-direction: row; gap: 6px; padding: 0; flex: none; }
  .desk-sec-title { display: none; }
  .desk-parked-toggle { width: auto; padding: 0 10px; white-space: nowrap; border: 1px dashed var(--line); border-radius: var(--r-md); }
  .desk-card { width: 196px; flex: none; min-height: 0; max-height: none; padding: 8px 10px; border: 1px solid var(--line); grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
  .desk-card .desk-glyph { width: 24px; height: 24px; font-size: 12px; }
  .desk-card-note { display: none; }
  .desk-list-empty { padding: 4px 2px; }
  .desk-frame { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .desk-frame-end { grid-column: 1 / -1; align-items: stretch; }
  .desk-frame-meta { justify-content: space-between; }
  .desk-frame-actions { flex-wrap: wrap; justify-content: flex-end; }
  .chat-single .chat-transcript, .chat-single .chat-compose, .chat-single .chat-single-meta { padding-left: 14px; padding-right: 14px; }
  .nm-single .nm-single-scroll { padding: 14px; }
  .shell.desk-on #phonesPane { padding: 14px 12px 24px; }
}



@media (max-width: 600px) {
  .shell.desk-on .topbar { gap: 10px; padding: 0 12px; }
  .shell.desk-on .topbar .product, .shell.desk-on .user-name, .shell.desk-on .user-caret,
  .shell.desk-on .say-word, .shell.desk-on .note-word { display: none; }
  .shell.desk-on .user-chip { padding: 3px; }
  


  .shell.desk-on .nc-skill { min-width: 0; width: 100%; }
  .shell.desk-on .nc-num { min-width: 0; width: 0; }
  .shell.desk-on #newCallCard { display: flex; flex-direction: column; }
  .shell.desk-on #newCallCard > .nc-pad { order: 1; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-card.is-new { animation: none; background: rgba(var(--accent-rgb), .14); }
  .desk-offer-bar { transition: none; }
  .desk-banner-spin { animation: none; border-right-color: var(--amber); opacity: .6; }
  .desk-caret { transition: none; }
}





 
 
 
 




.desk-cust-summary { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.desk-hist-list { list-style: none; margin: 8px 0 0; padding: 0; }
.desk-hist-row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.desk-hist-row:first-child { border-top: 0; padding-top: 4px; }
.desk-hist-glyph { grid-column: 1; grid-row: 1; color: var(--muted); font-size: 13px; text-align: center; }
.desk-hist-kind { grid-column: 2; grid-row: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-hist-when { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.desk-hist-result { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; }
.desk-hist-outcome { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-hist-outcome.is-none { font-weight: 400; color: var(--faint); }
.desk-hist-by { flex: none; color: var(--muted); }
.desk-hist-no { grid-column: 3; grid-row: 2; justify-self: end; font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.desk-hist-note {
  grid-column: 2 / 4; margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.desk-hist-note.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.desk-hist-fold { grid-column: 2 / 4; justify-self: start; padding: 2px 0; }
.desk-hist-said { font-size: 13px; color: var(--faint); margin-top: 10px; }
.desk-hist-failed { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.desk-hist-failed button.sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.desk-hist-skeleton { height: 40px; margin-top: 10px; border-radius: var(--r-sm); background: var(--raised); opacity: .55; }
.desk-hist-more { width: 100%; margin-top: 6px; }
.desk-hist-more.sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-sm); }






@media (min-width: 1280px) {
  .shell.desk-on:not(.script-open) #viewHost.desk-has-context #phonesPane .card:has(> #callerBox) { display: none; }
}
.shell.desk-on #viewHost.desk-has-context.desk-drawer-open #phonesPane .card:has(> #callerBox) { display: none; }



@media (min-width: 1280px) {
  .shell.desk-on.script-open #viewHost.desk-has-context { grid-template-columns: 300px minmax(0, 1fr) 44px; }
  .shell.desk-on.script-open .desk-context { overflow: visible; }
  .shell.desk-on.script-open .desk-context-strip {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 10px 0 0; padding: 0;
    background: none; color: var(--muted); font-size: 18px; border-radius: var(--r-md);
  }
  .shell.desk-on.script-open .desk-context-strip:hover, .shell.desk-on.script-open .desk-context-strip[aria-expanded="true"] { color: var(--ink); background: var(--raised); }
  .shell.desk-on.script-open .desk-context-body { display: none; }
  .shell.desk-on.script-open #viewHost.desk-drawer-open .desk-context-body {
    display: block; position: absolute; top: 0; right: 44px; width: 360px; max-height: 100%; overflow-y: auto; z-index: 30;
    background: var(--surface); border: 1px solid var(--line); border-right: 0; box-shadow: var(--shadow);
  }
  .shell.desk-on.script-open #viewHost.desk-drawer-open .desk-context-close { display: inline; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .shell.desk-on.script-open #viewHost.desk-has-context { grid-template-columns: 280px minmax(0, 1fr) 44px; }
}
 






.shell:has(#deskOffers:not(.hidden) .desk-offer[data-offer^="phone:offer:"]) > #namedTransferOffer.is-asking { display: none; }
 
 
.desk-new-wrap { position: relative; display: flex; }
.desk-new-menu { min-width: 230px; }
.desk-new-item { display: flex; align-items: flex-start; gap: 11px; }
 
.desk-new-item:disabled { cursor: default; opacity: 1; }
.desk-new-item:disabled:hover { background: none; }
.desk-new-glyph { width: 18px; text-align: center; color: var(--muted); flex: none; line-height: 20px; }
.desk-new-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk-new-label { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink); }
.desk-new-item:disabled .desk-new-label, .desk-new-item:disabled .desk-new-glyph { color: var(--faint); }
.desk-new-why { font-size: 12px; color: var(--muted); white-space: normal; }
 
 
.desk-list-head.desk-list-tabs { gap: 20px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.desk-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 0 9px; margin-bottom: -1px;
  background: none; border-radius: 0; border-bottom: 2px solid transparent;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.desk-tab:hover { color: var(--ink); }
.desk-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.desk-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 2px; }
.desk-recent-days { padding: 4px 8px; font-size: 12px; color: var(--muted); max-width: 140px; }
 
.desk-card-line .desk-recent-who { flex: 0 0 auto; max-width: 64%; }
.desk-recent-said { color: var(--coral); padding-bottom: 4px; }
.desk-sec-recent > .linkish { align-self: flex-start; margin: 0 6px; }
.desk-recent-outcome { color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 
@media (max-width: 1023px) {
  .desk-list-head.desk-list-tabs { display: flex; padding: 8px 12px 0; margin-bottom: 0; }
  .desk-recent-head { flex: none; }
  .desk-sec-recent > .desk-list-empty { white-space: nowrap; }
}

.desk-history-links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 14px 8px; font-size: 12px; }
