.people-timeline.person-open{display:flex;flex-direction:column}.people-timeline.person-open>h3,.people-timeline.person-open>.people-timeline-toolbar{display:none}.people-timeline.person-open>.people-timeline-status{order:2}.people-timeline.person-open>.profile-collection{order:3}.people-timeline.person-open>.people-timeline-content{order:1}
.profile-collection{padding:20px;border:1px solid var(--border);border-radius:18px;background:var(--surface,var(--card));margin:16px 0}
.profile-collection-heading{font-size:17px;margin-bottom:14px}.profile-collection-form,.profile-collection-options,.profile-collection-actions,.profile-collection-counts,.profile-collection-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.profile-collection-form select{flex:1;min-width:150px}.profile-collection-options{margin-top:14px;font-size:13px}.profile-collection-status:not(:empty){margin-top:18px}.profile-collection-summary strong{font-size:22px;font-variant-numeric:tabular-nums}
.profile-collection progress{width:100%;height:8px;accent-color:var(--accent,#315cff);margin:12px 0}.profile-collection-counts{font-size:12px;color:var(--muted)}.profile-phase{padding:5px 10px;border-radius:20px;background:var(--bg);font-size:12px}.profile-phase.complete{color:var(--good,#13825b)}.profile-phase.partial{color:var(--warn,#b56b0b)}
.profile-collection-sources{margin-top:12px}.profile-source{padding:8px 0;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between}.profile-source p{flex-basis:100%;margin:0}.profile-collection-actions:not(:empty){margin-top:14px}.profile-collection .notice{margin-top:12px}
.profile-card{border:1px solid var(--border);border-radius:18px;overflow:hidden;margin-top:16px;min-width:0}.profile-card-heading{padding:20px;display:flex;justify-content:space-between;align-items:start;gap:12px}.profile-card-heading h3{margin:0;font-size:22px;overflow-wrap:anywhere}.profile-card-heading p{margin:6px 0 0}.profile-card-heading>div{min-width:0}
.profile-tabs{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid var(--border);overflow-x:auto}.profile-tab{white-space:nowrap;border:0!important;border-radius:8px 8px 0 0!important;background:transparent!important;color:var(--muted);padding:12px!important}.profile-tab[aria-selected=true]{color:var(--accent-text,var(--accent,#315cff));box-shadow:inset 0 -3px var(--accent,#315cff);font-weight:650}
.profile-card-content{padding:20px;min-width:0}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:var(--bg);border-radius:12px;margin-bottom:16px}.profile-facts{display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);gap:10px 20px;font-size:13px}.profile-facts dt{color:var(--muted)}.profile-facts dd{margin:0;overflow-wrap:anywhere}.profile-badges{display:flex;gap:6px;flex-wrap:wrap}
.profile-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:14px;margin-bottom:16px}.profile-asset{min-width:0;border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.profile-asset small{color:var(--muted);font-size:11px}.profile-asset p{margin:0}.profile-asset .review-preview img{width:100%;height:170px;object-fit:contain}.profile-asset .review-media-actions{flex-wrap:wrap}.profile-history{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.profile-history>summary{font-weight:650;cursor:pointer}
@media(max-width:600px){.profile-collection,.profile-card-content,.profile-card-heading{padding:14px}.profile-card-heading{flex-wrap:wrap}.profile-collection-options{gap:8px 14px}.profile-collection-counts{display:grid;grid-template-columns:1fr 1fr}.profile-tabs{padding:0 8px}.profile-facts{gap:8px 12px}.profile-assets{grid-template-columns:1fr}.profile-card-heading h3{font-size:19px}}
.workspace[data-current-view="chats"] { height: 100dvh; min-height: 0; }
.workspace[data-current-view="chats"] main { height: 100%; min-height: 0; }
.workspace[data-current-view="chats"] .topbar { flex-shrink: 0; position: relative; }
.workspace[data-current-view="chats"] .health-toolbar,
.workspace[data-current-view="chats"] .context-bar { flex-shrink: 0; }
.workspace[data-current-view="chats"] .content {
  display: flex; flex-direction: column; min-height: 0; max-width: none;
  padding: 20px 24px; overflow: hidden;
}
.workspace[data-current-view="chats"] #view-chats { flex: 1; min-height: 0; }
.workspace[data-current-view="chats"] .chats-shell {
  height: 100%; min-height: 0; grid-template-columns: minmax(200px, 28%) minmax(0, 1fr); gap: 16px;
}
.workspace[data-current-view="chats"] #chats-list {
  flex: 1; min-height: 0; max-height: none; overscroll-behavior: contain;
}
.workspace[data-current-view="chats"] .chat-pane,
.workspace[data-current-view="chats"] .chat-feed { min-height: 0; }
.workspace[data-current-view="chats"] .chat-feed { overscroll-behavior: contain; }
.workspace[data-current-view="chats"] footer { display: none; }
.chat-mode-chips { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.chat-mode-chips > .chat-setting-chip { flex: 0 1 auto; }
.chat-setting-chip { max-width: 100%; min-width: 0; min-height: 28px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.chat-setting-chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chat-toolbar .live-controls { margin-inline-start: auto; }
.chat-history-tools { gap: 0; }
.chat-history-tools select { border-start-end-radius: 0; border-end-end-radius: 0; }
.chat-history-tools button { border: 1px solid var(--border); border-inline-start: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
.workspace[data-current-view="chats"] .chat-state { gap: 6px 12px; min-height: 24px; }
.workspace[data-current-view="chats"] .chat-state .small { min-height: 26px; padding: 0; }
.chat-media-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 12px; }
.chat-media-notice > .icon { flex: none; width: 15px; height: 15px; }
.chat-media-notice .text-link { font-size: inherit; }
.media-missing { display: inline-flex; align-items: center; margin-top: 5px; color: var(--muted); }
.media-missing .icon { width: 14px; height: 14px; }
.reply-unavailable { margin: 2px 0 6px; padding-inline-start: 8px; border-inline-start: 2px solid var(--border-strong); color: var(--muted); font-size: 12px; }
.chat-view-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); align-self: flex-start; max-width: 100%; }
.chat-view-tabs .filter { min-height: 30px; padding: 0 10px; font-size: 12px; }
.chat-view-tabs .filter.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }
.chat-filter-row[hidden] { display: none; }
.chat-feed .chat-profile-view { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.chat-profile-view > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.chat-feed .chat-day { position: relative; top: auto; z-index: auto; box-shadow: none; align-self: center; flex-shrink: 0; width: min(100%, 260px); text-align: center; border-radius: 999px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-safety { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; padding:10px 16px; border-block:1px solid var(--border); background:var(--surface-2); font-size:12px; flex-shrink:0; }
.chat-safety label,.chat-action-confirm label { display:flex; align-items:center; gap:7px; cursor:pointer; }
.chat-safety label { margin:0; font-size:inherit; min-width:0; }
.chat-action-confirm label[hidden] { display:none; }
.chat-safety input,.chat-action-confirm input { width:auto; margin:0; }
.chat-safety-hint { flex:1 1 200px; color:var(--text-2); }
.chat-safety.can-send { border-inline-start:3px solid var(--warning,#b26a00); }
.chat-action-confirm { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.chat-action-confirm h2 { font-size:20px; margin-top:0; overflow-wrap:anywhere; }
.chat-action-confirm p { color:var(--text-2); }
.chat-action-confirm .dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.secret-mask { display:inline; background:var(--surface-2); border-radius:4px; overflow-wrap:anywhere; }
.secret-reveal { margin-inline-start:6px; font-size:12px; vertical-align:baseline; }
.secret-reveal-error { display:block; font-size:12px; color:var(--text-2); }
.text-url { overflow-wrap:anywhere; text-decoration:underline dotted; text-underline-offset:2px; }
.text-url-copy { display:inline-grid; place-items:center; width:24px; height:24px; margin-inline-start:2px; padding:0; border:0; border-radius:6px; background:none; color:var(--muted); vertical-align:middle; cursor:pointer; }
.text-url-copy:hover { color:var(--accent-text); background:var(--surface-2); }
.text-url-copy:focus-visible { outline:2px solid var(--focus); outline-offset:1px; }
.text-url-copy .icon { width:14px; height:14px; }
#chat-history-feedback { flex-shrink:0; margin:8px 16px; }
.chat-compose:not(:focus-within) #chat-compose-hint { display:block; visibility:hidden; }
.chat-newer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; flex-shrink: 0; }
.chat-media-notice { flex-shrink: 0; }
.chat-sub-danger { color: var(--danger); }
.chat-sub-warning { color: var(--warning); }
.chat-sub-accent { color: var(--accent-text); }
.bubble-head .sender { color: inherit; }
.sender-details > summary::after { opacity: 0; transition: opacity .15s; }
.sender-details > summary:hover::after, .sender-details > summary:focus-visible::after, .sender-details[open] > summary::after { opacity: 1; }
.msg.post .bubble { max-width: min(72ch, 100%); }
.bubble-meta { gap: 10px; min-height: 18px; margin-top: 2px; padding-top: 0; }
.bubble-meta .pill { gap: 4px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 550; line-height: 1.4; }
.bubble-meta .pill .icon { width: 13px; height: 13px; flex: none; }
.bubble-meta button.pill:hover span, .bubble-meta button.pill[aria-expanded="true"] span { text-decoration: underline; text-underline-offset: 3px; }
.bubble-meta .time { font-size: 12px; }
.chat-service time { font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .workspace[data-current-view="chats"] .chats-sidebar,
  .workspace[data-current-view="chats"] .chat-pane { display: flex; }
  .workspace[data-current-view="chats"] .chat-header { display: flex; }
  .workspace[data-current-view="chats"] .chat-header .chat-actions { flex-direction: row; }
  .workspace[data-current-view="chats"] .chat-title .avatar { display: inline-flex; }
  .workspace[data-current-view="chats"] .chat-back { display: none; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .workspace[data-current-view="chats"] .content { padding: 12px; }
  .workspace[data-current-view="chats"] .chats-shell { gap: 10px; }
  .workspace[data-current-view="chats"] .chat-item { gap: 8px; padding-inline: 8px; }
}
@media (max-width: 767px) {
  .chat-view-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; align-self: stretch; }
  .chat-view-tabs .filter { flex: 0 0 auto; white-space: nowrap; }
  .chat-safety { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; padding:6px 12px; }
  .chat-safety label { min-height:28px; }
  .chat-safety-hint { display:none; }
  .workspace[data-current-view="chats"] .health-toolbar { display:none; }
  .workspace[data-current-view="chats"] .content { padding: 10px 8px; }
  .workspace[data-current-view="chats"] .chats-shell { grid-template-columns: minmax(0, 1fr); }
  .chats-shell[data-panel="chat"] .chats-sidebar, .chats-shell[data-panel="list"] .chat-pane { display: none; }
  .chat-back { display: inline-flex; min-height: 40px; }
  .workspace[data-current-view="chats"] .chat-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 12px; }
  .workspace[data-current-view="chats"] #chat-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap: break-word; word-break: normal; }
  .chat-header .chat-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .chat-title .avatar { display: none; }
  .chat-filters { margin-inline-start: 0; }
  .workspace[data-current-view="chats"] .chat-status { padding: 8px 12px; }
  .workspace[data-current-view="chats"] .chat-toolbar { padding-inline: 12px; }
  .workspace[data-current-view="chats"] .chat-feed { padding: 12px; }
  .workspace[data-current-view="chats"] .chat-compose { padding-inline: 12px; }
}
.people-timeline{min-width:0}.people-timeline-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.people-timeline-toolbar label{display:flex;flex-direction:column;gap:4px}.people-timeline-toolbar input{width:110px}.people-timeline-table{overflow-x:auto}.people-timeline-events{padding-left:24px}.people-timeline-events li{padding:12px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.people-timeline-events small{display:block;color:var(--muted)}.people-timeline-events p{margin:6px 0}.people-timeline-content>h4{margin-top:18px}
.chat-gap { align-self: center; display: flex; align-items: center; gap: 8px; max-width: min(94%, 680px); margin: 8px auto; padding: 6px 14px; border: 1px dashed var(--border-dashed); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12.5px; line-height: 1.45; animation: rise-in .4s var(--ease-out) backwards; }
.chat-gap .icon { flex: none; width: 15px; height: 15px; color: var(--icon-faint); }
.chat-gap b { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; }
.chat-gap[data-kind=coverage] { border-style: solid; border-color: var(--warning-border); border-radius: 14px; background: var(--warning-soft); color: var(--text); }
.chat-gap[data-kind=coverage] .icon { color: var(--warning); }
.chat-gap[data-kind=coverage] strong { flex: none; font-weight: 650; }
.chat-gap-lines { display: grid; gap: 1px; min-width: 0; font-variant-numeric: tabular-nums; }
.chat-gap-summary { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.chat-gap-details > summary { width: fit-content; min-height: 24px; color: var(--accent-text); font-size: 12px; cursor: pointer; }
.chat-gap-all { display: grid; gap: 2px; margin-top: 4px; color: var(--text-2); font-size: 12px; }
#chat-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
#chat-sub .chat-sub-sep ~ .chat-sub-sep { display: none; }
.chat-metric { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 1px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-weight: 550; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease-out); }
.chat-metric .icon { width: 13px; height: 13px; }
.chat-metric:hover { transform: translateY(-1px); border-color: var(--border-hover); }
.chat-metric[data-tone=deleted] { border-color: var(--danger-border); background: var(--danger-soft); color: var(--danger); }
.chat-metric[data-tone=missing] { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }
.chat-metric[data-tone=edited] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-text); }
.chat-metric[aria-pressed=true] { color: #fff; border-color: transparent; }
.chat-metric[data-tone=deleted][aria-pressed=true] { background: var(--danger-solid); }
.chat-metric[data-tone=missing][aria-pressed=true] { background: var(--tile-orange); }
.chat-metric[data-tone=edited][aria-pressed=true] { background: var(--accent); }
.change-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px dashed var(--border-dashed); color: var(--text-2); font-size: 12.5px; line-height: 1.5; animation: unfold .22s ease-out; }
button.pill-deleted, button.pill-missing { transition: transform .18s var(--ease-out), box-shadow .18s; }
button.pill-deleted:hover, button.pill-missing:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.chat-pick-toggle { display: inline-flex; align-items: center; gap: 6px; }
.chat-pick-toggle .icon { width: 14px; height: 14px; }
.chat-pick-toggle[aria-pressed=true] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-text); }
.chat-pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 12px 0; padding: 8px 10px 8px 14px; border: 1px solid var(--accent-border); border-radius: 14px; background: var(--accent-soft); font-size: 13px; animation: chat-pick-in .22s cubic-bezier(.2,.8,.2,1); }
.chat-pick-bar > .icon { width: 16px; height: 16px; color: var(--accent); }
.chat-pick-bar strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.chat-pick-space { flex: 1 1 auto; }
@keyframes chat-pick-in { from { opacity: 0; transform: translateY(-6px); } }
.msg.pickable { position: relative; cursor: pointer; margin-inline: -8px; padding: 3px 8px; border-radius: 14px; transition: background-color .15s ease; }
.msg.pickable:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.msg.pickable.picked { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.msg-pick { flex: none; align-self: center; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1.5px solid var(--border-hover); border-radius: 50%; background: var(--surface); color: transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.msg-pick .icon { width: 13px; height: 13px; }
.msg.picked .msg-pick { border-color: var(--accent); background: var(--accent); color: #fff; transform: scale(1.06); }
.msg-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .chat-pick-bar { animation: none; } .msg.pickable, .msg-pick { transition: none; } }
.person-card{position:fixed;inset-block:0;inset-inline-end:0;z-index:39;width:min(440px,100%);overflow-y:auto;background:var(--surface);border-inline-start:1px solid var(--border);box-shadow:var(--shadow-lg);animation:slide-in .32s cubic-bezier(.2,.8,.3,1)}
.person-card[hidden]{display:none}.person-card .people-timeline{padding:16px 20px 28px}
.person-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.person-card-head h3{margin:0}
.person-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
@media (prefers-reduced-motion: reduce){.person-card{animation:none}}
.person-rhythm{margin:12px 0}.person-rhythm>summary{cursor:pointer;font-weight:600}
.person-rhythm-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px 16px;margin:12px 0}.person-rhythm-facts dt{color:var(--muted);font-size:12px}.person-rhythm-facts dd{margin:2px 0 0;font-weight:600}
.person-rhythm-heat{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:2px}.person-rhythm-heat caption{caption-side:bottom;text-align:start;color:var(--muted);font-size:12px;padding-top:6px}
.person-rhythm-heat th{font-size:10px;font-weight:500;color:var(--muted);padding:0;text-align:start;overflow:hidden;white-space:nowrap}.person-rhythm-heat thead th{overflow:visible}.person-rhythm-heat thead th:first-child{width:3.4em}.person-rhythm-heat tbody th{text-overflow:ellipsis;padding-inline-end:4px}
.person-rhythm-heat td{height:12px;padding:0;border-radius:2px;background:color-mix(in srgb,var(--accent) calc(var(--level)*1%),var(--surface-2))}.person-rhythm-heat td.empty{background:var(--surface-2)}
.person-rhythm-heat td:focus{outline:2px solid var(--focus);outline-offset:1px}.person-rhythm-value{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.person-rhythm-heat.numbers{min-width:600px}.person-rhythm-heat.numbers td{height:20px;text-align:center;background:color-mix(in srgb,var(--accent) calc(var(--level)*.35%),var(--surface-2))}
.person-rhythm-heat.numbers .person-rhythm-value{position:static;width:auto;height:auto;clip:auto;font-size:10px;font-variant-numeric:tabular-nums;color:var(--text)}.person-rhythm-heat.numbers td.empty .person-rhythm-value{color:var(--muted)}
.person-rhythm-scroll{overflow-x:auto;padding:2px}.person-rhythm-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0}.person-rhythm-readout{min-height:1.5em;margin:6px 0 0}
.person-rhythm-error{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0}.person-rhythm-error p{margin:0}
.authors-collect{margin:12px 0;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.authors-collect[hidden]{display:none}
.authors-collect-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}.authors-collect-head>div{min-width:0}.authors-collect-head p{margin:2px 0 0}
.authors-collect-progress{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:10px}.authors-collect progress{width:100%;margin:8px 0 4px}
.authors-collect-workers{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}.authors-collect-workers li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 12px;align-items:baseline;font-size:13px}
.authors-collect-workers li b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.authors-collect-workers li>span:last-child{font-variant-numeric:tabular-nums;text-align:end}
.authors-collect-dialog fieldset{border:0;margin:12px 0 0;padding:0;display:grid;gap:6px}.authors-collect-dialog legend{font-weight:600;margin-bottom:4px}
.authors-collect-accounts{display:flex;flex-direction:column;gap:4px;max-height:260px;overflow-y:auto;margin-top:4px}.authors-collect-accounts[hidden]{display:none}.authors-collect-accounts select{max-width:100%}
@media (max-width:480px){.authors-collect-workers li{grid-template-columns:minmax(0,1fr) auto}.authors-collect-workers li>.hint{grid-column:1/-1;grid-row:2}}
.chat-empty:has(> h2) { position: relative; padding-top: 132px; }
.chat-empty:has(> h2)::before { content: ""; position: absolute; top: 40px; left: 50%; width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; background: var(--accent-soft); }
.chat-empty:has(> h2)::after { content: ""; position: absolute; top: 62px; left: 50%; width: 28px; height: 28px; margin-left: -14px; background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M20 14.5a2 2 0 0 1-2 2H8.5L4 20V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M20 14.5a2 2 0 0 1-2 2H8.5L4 20V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E") center / contain no-repeat; }

.chat-info { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.chat-info[hidden] { display: none; }
.chat-info-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 14px; border-bottom: 1px solid var(--border); }
.chat-info-tabs { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 2px 4px; min-width: 0; }
.chat-info-tab { flex: 0 0 auto; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chat-info-tab:hover { background: var(--surface-2); }
.chat-info-tab[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.chat-info-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.chat-info-body > .people, .chat-info-body > .chat-profile-view { padding: 16px; }
.chat-info-body .people-timeline { padding: 14px 16px 24px; }
.chat-info-body table { width: 100%; }
.chat-info-body .people-table { display: block; overflow-x: auto; }
.chat-info-toggle.active { color: var(--accent-text); background: var(--accent-soft); }
.chat-info-card { display: grid; gap: 14px; padding: 18px 16px 6px; }
.chat-info-identity { display: grid; justify-items: center; gap: 10px; text-align: center; }
.chat-info-identity .avatar { width: 84px; height: 84px; font-size: 30px; }
.chat-info-identity h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.chat-info-identity .hint { margin: 2px 0 0; }
.chat-info-actions { display: grid; gap: 2px; padding: 6px 0; border-block: 1px solid var(--border); }
.chat-info-action { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font-size: 14px; text-align: start; cursor: pointer; }
.chat-info-action:hover:not(:disabled) { background: var(--surface-2); }
.chat-info-action:disabled { opacity: .5; cursor: default; }
.chat-info-action .icon { width: 20px; height: 20px; color: var(--muted); }
.chats-shell[data-info="open"] #chat-export-start .label { display: none; }
#chat-main .chat-title { cursor: pointer; border-radius: 10px; }
#chat-main .chat-title:hover #chat-name { color: var(--accent-text); }
.workspace[data-current-view="chats"] .chats-shell[data-info="open"] { grid-template-columns: minmax(220px, 24%) minmax(0, 1fr) minmax(340px, 30%); }
.workspace[data-current-view="chats"] .chats-shell[data-info="open"] .chat-info { border-inline-start: 1px solid var(--border); }
@media (max-width: 1279px) {
  .workspace[data-current-view="chats"] .chats-shell { position: relative; }
  .workspace[data-current-view="chats"] .chats-shell[data-info="open"] { grid-template-columns: minmax(200px, 28%) minmax(0, 1fr); }
  .chats-shell .chat-info:not([hidden]) { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: 20; width: min(420px, 94%); border-inline-start: 1px solid var(--border); box-shadow: var(--shadow-lg); }
}
@media (max-width: 767px) {
  .chats-shell .chat-info:not([hidden]) { position: fixed; inset: 0; width: auto; z-index: 110; border: 0; }
}
.people-collect { margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.people-collect > summary { min-height: 40px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.people-collect[open] > summary { border-bottom: 1px solid var(--border); }
.people-collect > :not(summary) { margin: 12px; }
.chat-back-reply { align-self: center; margin: 6px auto; }
.reply-outside span { color: var(--accent-text); }

.workspace[data-current-view="chats"] .chat-pinned { margin: 0 12px 8px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; flex: none; max-height: 40vh; overflow-y: auto; }
.workspace[data-current-view="chats"] .chat-pinned summary { cursor: pointer; font-weight: 600; min-height: 28px; display: flex; align-items: center; }
.workspace[data-current-view="chats"] .chat-pinned-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.workspace[data-current-view="chats"] .chat-pinned-item { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; min-width: 0; }
.workspace[data-current-view="chats"] .chat-pinned-label { min-width: 0; overflow-wrap: anywhere; }
.workspace[data-current-view="chats"] .chat-pinned-text { display: block; opacity: .85; }
.workspace[data-current-view="chats"] .chat-pinned-item .small { flex: none; min-height: 32px; }
.workspace[data-current-view="chats"] .chat-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.workspace[data-current-view="chats"] .chat-gallery-item { margin: 0; min-width: 0; display: grid; gap: 4px; align-content: start; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--surface); }
.workspace[data-current-view="chats"] .chat-gallery-item figcaption { overflow-wrap: anywhere; }
.workspace[data-current-view="chats"] .chat-gallery-item img, .workspace[data-current-view="chats"] .chat-gallery-item video { max-width: 100%; height: auto; }
.workspace[data-current-view="chats"] .chat-gallery-item .small { min-height: 32px; justify-self: start; }
.workspace[data-current-view="chats"] .chat-gallery { padding: 8px 12px; }

.workspace[data-current-view="chats"] .sticker-label { font-size: 13px; opacity: .85; margin: 4px 0; }
.workspace[data-current-view="chats"] .shared-content { margin: 6px 0; padding: 8px 10px; border-inline-start: 3px solid var(--accent); border-radius: 6px; background: var(--surface-2); font-size: 13.5px; overflow-wrap: anywhere; }
.workspace[data-current-view="chats"] .shared-kind { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.workspace[data-current-view="chats"] .shared-title { font-weight: 600; }
.workspace[data-current-view="chats"] .shared-coordinates { color: var(--text-2); font-variant-numeric: tabular-nums; }
.workspace[data-current-view="chats"] .shared-answers { margin: 4px 0 0; padding-inline-start: 22px; }
.workspace[data-current-view="chats"] .bubble-via { margin: 2px 0 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.workspace[data-current-view="chats"] .bubble-text.big-emoji { font-size: 40px; line-height: 1.25; padding-block: 2px; }
.workspace[data-current-view="chats"] .msg-number { color: var(--text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.workspace[data-current-view="chats"] button.msg-number-copy { min-height: 0; padding: 0 2px; border: 0; background: none; cursor: pointer; }
.workspace[data-current-view="chats"] button.msg-number-copy:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 1700px) { .workspace[data-current-view="chats"] #chat-feed { padding-inline: max(24px, calc((100% - 960px) / 2)); } }
.workspace[data-current-view="chats"] .bubble-head, .workspace[data-current-view="chats"] .bubble-head .sender { min-width: 0; overflow-wrap: anywhere; }
.workspace[data-current-view="chats"] .reply-quote b, .workspace[data-current-view="chats"] .reply-quote span, .workspace[data-current-view="chats"] .chat-service { min-width: 0; overflow-wrap: anywhere; }
