#view-sources .sources-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -8px 0 20px; color: var(--muted); font-size: 13px; }
#view-sources .sources-summary span + span::before { content: "·"; margin-inline-end: 16px; color: var(--icon-faint); }
#view-sources #sources-recording-summary[data-tone] { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
#view-sources #sources-recording-summary[data-tone]::before { content: ""; width: 8px; height: 8px; margin: 0; border-radius: 50%; background: var(--status-off, var(--muted)); }
#view-sources #sources-recording-summary[data-tone="ok"] { color: var(--success); }
#view-sources #sources-recording-summary[data-tone="ok"]::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
#view-sources #sources-recording-summary[data-tone="off"] { color: var(--warning); }
#view-sources #sources-recording-summary[data-tone="off"]::before { background: var(--warning); }
#view-sources #sources-recording-summary[data-tone="info"] { color: var(--accent-text); }
#view-sources #sources-recording-summary[data-tone="info"]::before { background: var(--accent); }
#view-sources .sources-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#view-sources .sources-tabs::-webkit-scrollbar { display: none; }
#view-sources .sources-tabs button { flex: 0 0 auto; }
#view-sources .sources-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 16px 12px; background: none; color: var(--muted); white-space: nowrap; min-height: 44px; }
#view-sources .sources-tabs button[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
#view-sources .sources-tabs button:hover { background: var(--surface-2); color: var(--text); }
html[data-ui-level=simple] #view-sources #sources-tab-secret { display: none; }
#view-sources:has(#sources-tab-recording[aria-selected="true"]) #load-dialogs,
#view-sources:has(#sources-tab-recording[aria-selected="true"]) .source-refresh-info { display: none; }
#view-sources .tab-count { min-width: 20px; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
#view-sources #recording-tab-dirty { background: var(--warning-soft); color: var(--warning); }
#view-sources .recording-intro { margin: 0 0 16px; }
#view-sources .recording-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#view-sources #monitoring-form { grid-column: 1 / -1; }
#view-sources .recording-sections .card { margin: 0; }
#view-sources .recording-sections h2 { margin: 0 0 6px; font-size: 17px; }
#view-sources .recording-sections .muted { margin: 0 0 14px; max-width: 82ch; font-size: 13px; }
#view-sources .recording-sections .monitoring-options { gap: 12px 20px; }
#view-sources .recording-sections .monitoring-options label { padding: 0; }
#view-sources .recording-sections .monitoring-options small { font-size: 12px; }
#view-sources #max-media { width: 180px; max-width: 100%; }
#view-sources .recording-savebar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-md); }
#view-sources .recording-savebar.is-dirty { border-color: var(--accent-border); }
#view-sources .recording-savebar:not(.is-dirty) { position: static; box-shadow: none; background: transparent; border-color: transparent; padding-inline: 0; }
#view-sources .recording-savebar strong { font-size: 13px; font-weight: 600; }
#view-sources .recording-savebar .hint { margin: 4px 0 0; }
#view-sources .recording-savebar .hint:empty { display: none; }
#view-sources .recording-actions { display: flex; gap: 8px; flex-shrink: 0; }
#view-sources .scope-card { margin: 0; }
#view-sources .source-list-card { margin-bottom: 20px; }
#view-sources .source-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 4px; }
#view-sources .source-list-heading h2 { margin: 0; font-size: 17px; }
#view-sources .source-filters { display: grid; grid-template-columns: minmax(160px, 1.6fr) repeat(3, minmax(120px, 1fr)); gap: 8px; padding: 12px 20px 16px; }
#view-sources .source-filters input, #view-sources .source-filters select { margin: 0; width: 100%; min-width: 0; }
#view-sources .source-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 20px; background: var(--accent-soft); border-top: 1px solid var(--accent-border); }
#view-sources .source-selection-bar strong { margin-inline-end: auto; font-size: 13px; }
#view-sources .source-selection-bar select { width: auto; min-width: 140px; margin: 0; }
#view-sources .sources-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#view-sources .sources-table .target-row { display: table-row; padding: 0; border: 0; }
#view-sources .sources-table th { color: var(--muted); text-align: start; font-size: 12px; font-weight: 500; background: var(--surface-2); }
#view-sources .sources-table th, #view-sources .sources-table td { padding: 9px 8px; vertical-align: middle; border-top: 1px solid var(--border-soft); }
#view-sources .sources-table tbody tr:hover { background: var(--row-hover); }
#view-sources .source-select-cell { width: 44px; text-align: center !important; }
#view-sources .source-select-cell input { margin: 0; vertical-align: middle; }
#view-sources .source-name-cell strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
#view-sources .source-id { display: inline-block; color: var(--muted); font: 11px/18px var(--mono); }
#view-sources .source-origin { margin-inline-start: 8px; color: var(--muted); font-size: 11px; }
#view-sources .source-type-cell { width: 110px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#view-sources .source-status-cell { width: 132px; }
#view-sources .source-reason { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
#view-sources .source-star-cell { width: 44px; padding-inline: 2px !important; }
#view-sources .source-menu-cell { width: 44px; padding-inline: 2px !important; }
#view-sources .source-state { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 2px 10px; }
#view-sources .source-state.enabled { color: var(--success); border-color: var(--success-border); background: var(--success-soft); }
#view-sources .source-state.unconfirmed { color: var(--warning); border-color: var(--warning-border); background: var(--warning-soft); }
#view-sources .source-state.excluded, #view-sources .source-state.ignored { color: var(--muted); background: var(--surface-3); }
#view-sources .source-row-menu { position: relative; }
#view-sources .source-row-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0; margin: 0; width: 36px; border-radius: 6px; font-size: 22px; list-style: none; }
#view-sources .source-row-menu > summary::before, #view-sources .source-row-menu > summary::after, #view-sources .source-row-menu > summary::-webkit-details-marker { display: none; }
#view-sources .source-row-menu[open] > summary { background: var(--surface-3); }
#view-sources .source-row-actions { display: grid; position: absolute; inset-inline-end: 0; top: 38px; z-index: 8; min-width: 260px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-popover); box-shadow: var(--shadow-md); }
#view-sources .source-row-actions button { display: grid; gap: 2px; justify-items: start; text-align: start; min-height: 38px; height: auto; padding: 8px 10px; white-space: normal; }
#view-sources .source-menu-item small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; }
#view-sources .source-row-actions [data-source-action="remove"] { color: var(--danger); }
#view-sources .source-empty { text-align: center; padding: 28px 20px; color: var(--muted); }
#view-sources .source-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border-soft); }
#view-sources .source-pagination > div { display: flex; gap: 4px; }
#view-sources .source-pagination button { font-size: 12px; }
#view-sources .source-pagination .hint { margin: 0; white-space: nowrap; font-size: 12px; }
#view-sources .source-action-result { margin: 0; padding: 10px 20px; }
#view-sources .source-action-result:empty { display: none; }
#view-sources .source-refresh-info { margin: -6px 0 18px; max-width: 78ch; }
#view-sources .source-refresh-info .hint { margin: 0; font-size: 12px; }
#view-sources .source-refresh-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 4px; }
#view-sources .source-refresh-error { color: var(--danger); }
#view-sources #dialog-refresh-progress { width: 180px; height: 5px; margin-top: 8px; accent-color: var(--accent); }
#view-sources #available-card .target-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; }
#view-sources #available-card .target-row input[hidden] { display: block !important; visibility: hidden; }
#view-sources .available-source-name { min-width: 0; overflow-wrap: anywhere; }
#view-sources .available-source-name strong { font-weight: 550; font-size: 13px; }
#view-sources .available-source-name .hint { font-size: 11px; margin: 2px 0 0; }
#view-sources #available-card .source-pagination { padding-inline: 0; }
#view-sources #available-card .source-pagination > div { margin-inline-start: auto; }
@media (max-width: 600px) {
  #view-sources .sources-summary { gap: 6px 12px; margin-bottom: 12px; }
  #view-sources .sources-summary span + span::before { margin-inline-end: 10px; }
  #view-sources .sources-tabs { display: flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  #view-sources .sources-tabs::-webkit-scrollbar { display: none; }
  #view-sources .sources-tabs button { flex: 0 0 auto; gap: 5px; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
  #view-sources .sources-tabs .tab-count { min-width: 16px; padding-inline: 4px; font-size: 11px; }
  #view-sources .recording-sections .padded { padding: 16px; }
  #view-sources .recording-sections { grid-template-columns: 1fr; }
  #view-sources .recording-sections .monitoring-options { gap: 10px; }
  #view-sources .recording-sections .monitoring-presets { gap: 6px; margin: 12px 0; }
  #view-sources .recording-sections .monitoring-presets button { flex: 1 1 auto; font-size: 12px; }
  #view-sources .recording-savebar { flex-wrap: wrap; bottom: 6px; padding: 12px; gap: 10px; }
  #view-sources .recording-actions { width: 100%; flex-wrap: wrap; }
  #view-sources .recording-actions button { flex: 1; font-size: 12px; padding-inline: 8px; }
  #view-sources #recording-recommended-apply { flex-basis: 100%; }
  #view-sources .source-list-heading { padding: 14px 12px 0; }
  #view-sources .source-list-heading h2 { font-size: 15px; }
  #view-sources .source-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  #view-sources .source-filters input { grid-column: 1 / -1; }
  #view-sources .source-filters select { font-size: 12px; }
  #view-sources #target-sort { grid-column: 1 / -1; }
  #view-sources .source-selection-bar { padding: 10px 12px; gap: 6px; }
  #view-sources .source-selection-bar strong { width: 100%; }
  #view-sources .source-selection-bar select { min-width: 0; max-width: 140px; font-size: 12px; }
  #view-sources .source-selection-bar button { font-size: 12px; padding-inline: 8px; }
  #view-sources .sources-table th, #view-sources .sources-table td { padding: 8px 4px; }
  #view-sources .source-select-cell { width: 30px; }
  #view-sources .source-type-cell { display: none; }
  #view-sources .source-status-cell { width: 93px; }
  #view-sources .source-star-cell, #view-sources .source-menu-cell { width: 38px; }
  #view-sources .source-name-cell strong { font-size: 12px; line-height: 17px; }
  #view-sources .source-id { font-size: 10px; letter-spacing: -.2px; }
  #view-sources .source-state { padding-inline: 6px; font-size: 11px; }
  #view-sources .source-row-menu > summary { min-height: 40px; width: 34px; }
  #view-sources .source-star-cell button { width: 34px; padding-inline: 0; }
  #view-sources .source-pagination { flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  #view-sources #target-select-matching { width: 100%; text-align: start; padding-inline: 0; }
  #view-sources .source-pagination > div { margin-inline-start: auto; }
}

#view-secret-chats .secret-chats { display: grid; gap: 0; padding: 0; overflow: hidden; }
#view-secret-chats .secret-chats p { margin: 0; }
#view-secret-chats .secret-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; padding: 18px 22px; }
#view-secret-chats .secret-mark { width: 40px; height: 40px; border-radius: 12px; }
#view-secret-chats .secret-mark .icon { width: 20px; height: 20px; }
#view-secret-chats .secret-top-text { display: grid; gap: 4px; min-width: 0; }
#view-secret-chats .secret-status { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
#view-secret-chats .secret-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
#view-secret-chats .secret-status[data-state=ok]::before { background: var(--success); }
#view-secret-chats .secret-status[data-state=warn]::before { background: var(--warning); }
#view-secret-chats .secret-explanation { color: var(--text-2); font-size: 13px; }
#view-secret-chats .secret-explanation summary { color: var(--muted); }
#view-secret-chats .secret-explanation p { max-width: 80ch; margin-top: 8px; line-height: 1.6; }
#view-secret-chats .secret-settings { display: grid; gap: 8px; }
#view-secret-chats .secret-settings .check-label { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; margin: 0; font-size: 13.5px; }
#view-secret-chats .secret-chats > .notice, #view-secret-chats .secret-install, #view-secret-chats #secret-recovery { margin: 0 22px 16px; }
#view-secret-chats .secret-install { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
#view-secret-chats .secret-install p { max-width: 90ch; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
#view-secret-chats .secret-install .route-actions { gap: 16px; margin-top: 0; }
#view-secret-chats .secret-install a, #view-secret-chats #secret-module a { font-size: 13px; }
#view-secret-chats #secret-module-digest { display: block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
#view-secret-chats .secret-settings-reason { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 46ch; }
#view-secret-chats .secret-settings-reason p { font-size: 12.5px; line-height: 1.5; }
#view-secret-chats .secret-setup { display: grid; gap: 10px; margin: 0 22px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
#view-secret-chats .secret-setup[data-state=partial], #view-secret-chats .secret-setup[data-state=failed] { border-color: var(--warning-border); background: var(--warning-soft); }
#view-secret-chats .secret-setup-title { font-size: 14px; font-weight: 600; color: var(--text); }
#view-secret-chats .secret-steps { display: grid; gap: 6px; margin: 0; padding-inline-start: 22px; }
#view-secret-chats .secret-step { padding-inline-start: 4px; font-size: 13px; }
#view-secret-chats .secret-step > span + span::before { content: " · "; }
#view-secret-chats .secret-step-state { color: var(--muted); }
#view-secret-chats .secret-step[data-state=done] .secret-step-state { color: var(--success); }
#view-secret-chats .secret-step[data-state=failed] .secret-step-state, #view-secret-chats .secret-step[data-state=stopped] .secret-step-state { color: var(--danger); font-weight: 600; }
#view-secret-chats .secret-step[data-state=active] { font-weight: 600; }
#view-secret-chats .secret-setup .route-actions { margin-top: 0; }
#view-secret-chats .secret-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); min-height: 440px; border-top: 1px solid var(--border); }
#view-secret-chats .secret-side { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 14px; border-inline-end: 1px solid var(--border); }
#view-secret-chats .secret-list-tools { display: flex; align-items: center; gap: 10px; }
#view-secret-chats .secret-list-tools input { flex: 1 1 0; min-width: 0; }
#view-secret-chats .secret-list-tools .hint { font-size: 12px; white-space: nowrap; }
#view-secret-chats .secret-new { padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 12px; }
#view-secret-chats .secret-new summary { font-size: 13.5px; font-weight: 600; color: var(--accent-text, var(--accent)); }
#view-secret-chats .secret-new[open] .secret-start { margin-top: 10px; }
#view-secret-chats .secret-start { display: grid; gap: 8px; }
#view-secret-chats .secret-start label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
#view-secret-chats .secret-list { display: grid; gap: 2px; align-content: start; }
#view-secret-chats .secret-list > .hint { padding: 6px 4px; }
#view-secret-chats .secret-chat-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 1px 12px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: start; white-space: normal; }
#view-secret-chats .secret-chat-row:hover { background: var(--surface-2); }
#view-secret-chats .secret-chat-row .avatar { grid-row: 1 / 3; }
#view-secret-chats .secret-chat-row .avatar .icon, #view-secret-chats .secret-thread-head .avatar .icon { width: 18px; height: 18px; }
#view-secret-chats .secret-chat-row b { font-size: 14px; overflow-wrap: anywhere; }
#view-secret-chats .secret-chat-row small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
#view-secret-chats .secret-chat-row small::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
#view-secret-chats .secret-chat-row[data-state=ready] small::before, #view-secret-chats .secret-chat-row[data-state=rekeying] small::before { background: var(--success); }
#view-secret-chats .secret-chat-row[data-state=pending] small::before, #view-secret-chats .secret-chat-row[data-state=requested] small::before { background: var(--warning); }
#view-secret-chats .secret-chat-row.selected, #view-secret-chats .secret-chat-row.selected:hover { background: var(--accent); color: #fff; }
#view-secret-chats .secret-chat-row.selected small { color: rgb(255 255 255 / .85); }
#view-secret-chats .secret-chat-row.selected small::before { box-shadow: 0 0 0 2px rgb(255 255 255 / .55); }
#view-secret-chats .secret-thread { display: flex; flex-direction: column; min-width: 0; background: var(--feed); }
#view-secret-chats .secret-thread-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
#view-secret-chats .secret-thread-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
#view-secret-chats .secret-thread-who b { font-size: 15px; overflow-wrap: anywhere; }
#view-secret-chats .secret-pill { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
#view-secret-chats .secret-pill[data-state=ready], #view-secret-chats .secret-pill[data-state=rekeying] { background: var(--success-soft); color: var(--success); }
#view-secret-chats .secret-pill[data-state=pending], #view-secret-chats .secret-pill[data-state=requested] { background: var(--warning-soft); color: var(--warning); }
#view-secret-chats .secret-thread-head .route-actions { grid-column: 1 / -1; margin: 0; flex-wrap: wrap; }
#view-secret-chats .secret-thread-head .route-actions button { white-space: nowrap; }
#view-secret-chats .secret-image { display: block; max-width: min(100%, 320px); max-height: 320px; border-radius: 10px; object-fit: contain; background: var(--surface-2); }
#view-secret-chats .secret-key-box { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
#view-secret-chats .secret-key { font-size: 12px; overflow-wrap: anywhere; color: var(--text-2); }
#view-secret-chats .secret-key-box .hint { font-size: 12px; }

#view-secret-chats .secret-message-search { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px 18px; background:var(--surface); border-bottom:1px solid var(--border); }
#view-secret-chats .secret-message-search input { flex:1 1 180px; width:0; min-width:120px; }
#view-secret-chats .secret-search-actions { display:flex; flex:none; gap:6px; }
#view-secret-chats .secret-message-search button { min-height:36px; padding-inline:10px; }
#view-secret-chats .secret-search-status, #view-secret-chats .secret-search-scope { flex-basis:100%; margin:0; font-size:12px; color:var(--muted); }
#view-secret-chats .secret-search-status bdi { font-family:var(--mono); font-variant-numeric:tabular-nums; color:var(--text); }
#view-secret-chats .secret-search-match { padding:0; color:var(--warning); background:var(--warning-soft); border-radius:2px; }
#view-secret-chats .secret-search-match[aria-current=true] { color:var(--accent-text); background:var(--accent-soft); outline:2px solid var(--accent); outline-offset:1px; }

#view-secret-chats .secret-feed { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 240px; max-height: 56vh; overflow: auto; overscroll-behavior: contain; padding: 18px; }
#view-secret-chats .secret-message { align-self: flex-start; display: grid; gap: 3px; max-width: min(64ch, 82%); padding: 8px 12px; border: 1px solid var(--bubble-border); border-radius: 16px 16px 16px 6px; background: var(--bubble); box-shadow: var(--shadow-xs); line-height: 1.5; }
#view-secret-chats .secret-message.out { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: var(--accent-soft); }
#view-secret-chats .secret-message.deleted { border-color: var(--danger-border); background: var(--danger-soft); }
#view-secret-chats .secret-text { overflow-wrap: anywhere; white-space: pre-wrap; unicode-bidi: plaintext; }
#view-secret-chats .secret-message .text-link { justify-self: start; }
#view-secret-chats .secret-meta { justify-self: end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#view-secret-chats .secret-note { color: var(--danger); font-size: 12px; font-weight: 550; }
#view-secret-chats .secret-message:not(.deleted) .secret-note { color: var(--warning); }
#view-secret-chats .secret-event { align-self: center; max-width: 92%; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); font-size: 12px; text-align: center; }
#view-secret-chats .secret-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 12px 18px 6px; border-top: 1px solid var(--border); background: var(--surface); }
#view-secret-chats .secret-send textarea { width: 100%; resize: vertical; }
#view-secret-chats .secret-thread > .hint { padding: 0 18px 12px; background: var(--surface); font-size: 12px; }
#view-secret-chats .secret-empty { margin: auto; display: grid; justify-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
#view-secret-chats .secret-empty-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-xs); }
#view-secret-chats .secret-empty-mark .icon { width: 28px; height: 28px; }
@media (max-width: 900px) {
  #view-secret-chats .secret-top { grid-template-columns: auto minmax(0, 1fr); }
  #view-secret-chats .secret-settings { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  #view-secret-chats .secret-layout { grid-template-columns: 1fr; min-height: 0; }
  #view-secret-chats .secret-side { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  #view-secret-chats .secret-list { max-height: 220px; overflow: auto; }
  #view-secret-chats .secret-thread-head { grid-template-columns: 40px minmax(0, 1fr); }
  #view-secret-chats .secret-thread-head .route-actions { grid-column: 1 / -1; }
  #view-secret-chats .secret-key-box { grid-row: auto; }
  #view-secret-chats .secret-message { max-width: 92%; }
  #view-secret-chats .secret-send { grid-template-columns: 1fr; }
}
#view-sources .scope-warning { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-width: 1px 1px 1px 4px; border-radius: 12px; }
#view-sources .scope-warning > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--warning); }
#view-sources .scope-warning p { margin: 0 0 6px; color: var(--text); font-weight: 600; }
