.chat-home-shortcuts {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin: 0;
}
.chat-home-shortcut,
.chat-home-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line, #cdd3da);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--ink, #17212b);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: normal;
  cursor: pointer;
}
.chat-home-shortcut span,
.chat-home-dialog span { min-width: 0; overflow-wrap: anywhere; }
.chat-home-shortcut { border: 0; background: transparent; padding-inline: 8px 12px; font-weight: 500; }
.chat-home-shortcut ion-icon { color: var(--accent); }
.chat-home-shortcut ion-icon,
.chat-home-dialog ion-icon { font-size: 20px; flex: 0 0 20px; pointer-events: none; }
.chat-home-shortcut:hover,
.chat-home-dialog button:hover:not(:disabled) { background: var(--surface-soft, #ECF4F9); }
.chat-home-shortcut:focus-visible,
.chat-home-dialog :focus-visible { outline: 2px solid var(--accent, #086EA6); outline-offset: 2px; }
.chat-home-sidebar { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.dw-main-window .chat-home-sidebar .chat-local-tools { flex-wrap: wrap; gap: 4px; }
.dw-main-window .chat-home-sidebar .chat-local-tools > .local-segments { flex: 0 0 auto; }
.chat-home-shortcut.chat-home-tool { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.chat-home-nav {
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--surface, #fff);
  border-top: 1px solid var(--line, #cdd3da);
}
.chat-home-nav button,
.chat-home-destination-body button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 8px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink, #17212b);
  font: inherit; font-size: 14px; line-height: 1.4; letter-spacing: 0; cursor: pointer;
}
.chat-home-nav button { flex-direction: column; gap: 2px; min-height: 54px; padding: 4px; font-size: 13px; }
.chat-home-nav button span { min-width: 0; white-space: nowrap; }
.chat-home-destination-body span { min-width: 0; overflow-wrap: anywhere; }
.chat-home-nav ion-icon, .chat-home-destination-body ion-icon { font-size: 20px; flex: 0 0 20px; }
.chat-home-more-glyph { display: block; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; mask: url('professional-network-icons/grid-outline.png') center / contain no-repeat; -webkit-mask: url('professional-network-icons/grid-outline.png') center / contain no-repeat; }
.chat-home-nav button[aria-current="page"] { color: var(--accent-strong, #086EA6); font-weight: 650; }
.chat-home-nav button:hover { color: var(--accent-strong, #086EA6); }
.chat-home-destination-body button:hover:not(:disabled) { background: var(--surface-soft, #ECF4F9); }
.chat-home-nav :focus-visible, .chat-home-page :focus-visible { outline: 2px solid var(--accent, #086EA6); outline-offset: -2px; }
.chat-home-page { grid-row: 2 / 4; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; }
.chat-home-page-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line, #cdd3da); }
.chat-home-page-header h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.chat-home-destination-body { min-width: 0; min-height: 0; padding: 8px 12px; overflow: auto; overscroll-behavior: contain; }
.chat-home-people-actions { display: grid; gap: 2px; border-bottom: 1px solid var(--line, #cdd3da); padding-bottom: 8px; }
.chat-home-destination-body .chat-home-people-actions button { justify-content: flex-start; text-align: start; }
.chat-home-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-home-list-heading h3 { font-size: 16px; margin: 8px 0; }
.chat-home-destination-body .chat-home-group { width: 100%; justify-content: flex-start; text-align: start; border-radius: 0; border-bottom: 1px solid var(--line, #cdd3da); }
.chat-home-destination-body .chat-home-group span { flex: 1; }
.chat-home-destination-body .chat-home-status { margin: 4px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-home-destination-body button:disabled { opacity: .55; cursor: default; }
.chat-home-more-section { padding-block: 8px; border-bottom: 1px solid var(--line, #cdd3da); }
.chat-home-more-section:last-child { border-bottom: 0; }
.chat-home-more-section h3 { margin: 0; padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--muted, #536575); }
.chat-home-destination-body .chat-home-more-action { width: 100%; justify-content: flex-start; text-align: start; }
.chat-home-more-action > span { flex: 1; }
.chat-home-more-action > ion-icon:first-child { color: var(--accent-strong, #086EA6); }
.chat-home-more-action strong, .chat-home-more-action small { display: block; }
.chat-home-more-action strong { font-weight: 600; }
.chat-home-more-action small { color: var(--muted, #536575); font-size: 13px; }
.chat-home-call-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line, #cdd3da); padding: 6px 0; }
.chat-home-call-row > span { flex: 1; }
.chat-home-tool { position: relative; }
.chat-home-missed { position: absolute; top: 0; right: 0; min-width: 16px; padding: 0 3px; border-radius: 8px; background: #b3261e; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.chat-home-history { list-style: none; margin: 0 0 16px; padding: 0; }
.chat-home-history li { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line, #cdd3da); overflow-wrap: anywhere; }
.chat-home-history small { color: var(--muted, #536575); }
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse) {
  .chat-home-nav { padding-block: 0 env(safe-area-inset-bottom); }
  .shell.mobile-detail .chat-home-nav { display: none; }
}
dialog.chat-home-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  max-height: min(90vh, 800px);
  max-height: min(800px, calc(var(--app-viewport-height, 100dvh) - 16px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line, #cdd3da);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #17212b);
  letter-spacing: 0;
}
.chat-home-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.chat-home-dialog::backdrop { background: #0006; }
.chat-home-dialog .chat-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #cdd3da);
}
.chat-home-dialog h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.chat-home-dialog .chat-home-subtitle { margin: 0; font-size: 16px; line-height: 1.4; }
.chat-home-dialog .chat-home-body { padding: 16px; overflow: auto; overscroll-behavior: contain; }
.chat-home-dialog .chat-home-translator { display: grid; gap: 12px; }
.chat-home-dialog .chat-home-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chat-home-dialog .chat-home-field { display: grid; min-width: 0; gap: 6px; font-size: 14px; }
.chat-home-dialog select,
.chat-home-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--theme-control-border, var(--line, #cdd3da));
  border-radius: 4px;
  background: var(--surface, #fff);
  color: var(--ink, #17212b);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
.chat-home-dialog textarea { resize: vertical; overflow-wrap: anywhere; }
.chat-home-dialog .chat-home-actions { display: flex; justify-content: flex-end; }
.chat-home-dialog .chat-home-actions { flex-wrap:wrap; gap:6px; }
.chat-home-personal-qr { margin:0 0 16px; text-align:center; }
.chat-home-personal-qr img { width:240px; max-width:100%; height:auto; image-rendering:pixelated; }
.chat-home-personal-qr figcaption { margin-top:8px; font-size:13px; color:var(--muted); }
.chat-home-dialog .chat-home-icon { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.chat-home-dialog .chat-home-command { background: var(--accent, #086EA6); color: var(--on-accent, #fff); }
.chat-home-dialog .chat-home-command:hover:not(:disabled) { background: var(--accent-strong, #086EA6); }
.chat-home-dialog .chat-home-status { min-height: 24px; margin: 4px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-home-dialog .chat-home-groups { display: grid; margin: 8px 0; }
.chat-home-dialog .chat-home-group { justify-content: flex-start; text-align: start; border: 0; border-bottom: 1px solid var(--line, #cdd3da); border-radius: 0; }
.chat-home-dialog .chat-home-group span { flex: 1; }
.chat-home-dialog button:disabled { opacity: .55; cursor: default; }
@media (max-width: 360px) {
  .chat-home-dialog .chat-home-languages { grid-template-columns: minmax(0, 1fr); }
}
