:root {
  --ink: #191713;
  --muted: #706a61;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: #ded7ca;
  --accent: #a6412b;
  --accent-dark: #7d2e20;
  --accent-soft: #f3dfd7;
  --sage: #486b59;
  --sage-soft: #e0ebe3;
  --danger: #9a2c2c;
  --shadow: 0 18px 60px rgb(63 48 31 / 10%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 2% 5%, rgb(183 76 51 / 11%), transparent 26rem),
    radial-gradient(circle at 98% 30%, rgb(62 100 78 / 10%), transparent 30rem),
    var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

button,
label[for="archive-input"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
label[for="archive-input"]:focus-visible {
  outline: 3px solid rgb(166 65 43 / 35%);
  outline-offset: 2px;
}

code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 60%);
  font-size: 0.9em;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 9px;
  color: white;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 22px max(24px, env(safe-area-inset-left));
}

.brand,
.header-actions,
.inline-actions,
.storage-heading,
.signature-card,
.dialog-heading,
.result-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: var(--surface);
  background: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  box-shadow: 0 8px 18px rgb(22 20 17 / 18%);
}

.brand h1,
.brand p,
.archive-heading h2,
.archive-heading p,
.dialog-heading h2,
.dialog-heading p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
  line-height: 1.2;
}

.header-actions {
  gap: 10px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill {
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #c7d8cb;
  color: var(--sage);
  background: var(--sage-soft);
  font-size: 12px;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.is-offline {
  border-color: #d3c8ad;
  color: #755f25;
  background: #eee6cf;
}

.mini-pill {
  padding: 5px 9px;
  color: var(--muted);
  background: #eee9df;
  font-size: 11px;
}

.mini-pill.good {
  color: var(--sage);
  background: var(--sage-soft);
}

.mini-pill.warn {
  color: #795c1d;
  background: #f3e7c5;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 20px max(24px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 24px;
  width: min(1030px, 100%);
  margin: clamp(14px, 5vh, 64px) auto 0;
}

.hero-card,
.privacy-card,
.conversation-panel,
.message-panel {
  border: 1px solid rgb(112 92 66 / 17%);
  background: rgb(255 253 248 / 89%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card,
.privacy-card {
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: clamp(28px, 5vw, 58px);
}

.hero-card h2 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.privacy-card {
  align-self: start;
  padding: 31px;
}

.privacy-card h2 {
  margin: 0 0 22px;
  font-size: 20px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  color: #4f4b43;
  font-size: 14px;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--sage);
  content: "✓";
  font-size: 11px;
  font-weight: 800;
}

.drop-zone {
  padding: 24px;
  border: 1.5px dashed #b4a995;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgb(244 240 232 / 60%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone.is-dragging {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-zone p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.drop-zone .file-summary {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 20px rgb(166 65 43 / 21%);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: #d0c5b3;
  color: var(--ink);
  background: var(--surface-strong);
}

.button-quiet {
  color: var(--muted);
  background: transparent;
}

.button-quiet:hover:not(:disabled) {
  color: var(--ink);
  background: #ece6da;
}

.button-wide {
  width: 100%;
}

.danger {
  color: var(--danger);
}

.open-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.filter-bar label:not(.search-field),
.conversation-panel > label {
  color: #514c43;
  font-size: 12px;
  font-weight: 750;
}

.filter-bar input,
.filter-bar select,
.conversation-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5ccbe;
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface-strong);
}

.filter-bar input,
.filter-bar select,
.conversation-panel select {
  padding: 10px 12px;
}

.notice,
.progress-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.notice {
  border: 1px solid #d5caae;
  color: #51492f;
  background: #f4ecd6;
  font-size: 14px;
  line-height: 1.6;
}

.notice p {
  margin: 6px 0 0;
}

.notice-error {
  border-color: #e2b9b2;
  color: #752c25;
  background: #f9e6e2;
}

.inline-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.progress-panel {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #d5c8bd;
  background: #f4ede8;
}

.progress-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #d7bcb4;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.storage-panel {
  margin-top: 29px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.storage-heading {
  justify-content: space-between;
  gap: 14px;
}

.storage-heading h3 {
  margin: 0;
  font-size: 15px;
}

.storage-panel > p {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.55;
}

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5dfd4;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 250ms ease;
}

.muted {
  color: var(--muted);
}

.viewer {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 150px);
}

.conversation-panel,
.message-panel {
  border-radius: var(--radius-md);
}

.conversation-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 25px;
}

.archive-heading h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.archive-heading .muted {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.archive-heading-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.conversation-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #605545;
  background: #ebe2d3;
  font-size: 18px;
  font-weight: 850;
}

.conversation-panel > label {
  display: block;
  margin: 25px 0 7px;
}

.stats-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 14px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.stats-list dt {
  color: var(--muted);
}

.stats-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.signature-card {
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid #c7d9cb;
  border-radius: var(--radius-sm);
  color: var(--sage);
  background: var(--sage-soft);
}

.signature-card > span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.signature-card strong {
  font-size: 12px;
}

.signature-card > div {
  min-width: 0;
}

.signature-card p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.4;
}

.message-panel {
  min-width: 0;
  padding: 20px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(130px, 0.72fr)) auto;
  align-items: end;
  gap: 9px;
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 4px 0 17px;
  background: linear-gradient(var(--surface) 85%, transparent);
}

.filter-bar label:not(.search-field) {
  display: grid;
  gap: 5px;
}

.result-heading {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.result-heading p {
  margin: 0;
}

.message-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 19px 2px 40px;
  list-style: none;
}

.message-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  max-width: 820px;
}

.message-item.is-self {
  grid-template-columns: minmax(0, 1fr) 42px;
  margin-left: auto;
}

.message-item.is-self .avatar {
  grid-column: 2;
}

.message-item.is-self .message-body {
  grid-row: 1;
  grid-column: 1;
  align-items: flex-end;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #605545;
  background: #ebe2d3;
  font-weight: 850;
}

.message-item.is-self .avatar {
  color: #7e2d1e;
  background: var(--accent-soft);
}

.avatar,
.conversation-avatar {
  overflow: hidden;
}

.avatar img,
.conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 3px 6px;
  color: var(--muted);
  font-size: 11px;
}

.message-meta strong {
  color: #413d36;
  font-size: 12px;
}

.bubble {
  max-width: min(680px, 100%);
  padding: 12px 14px;
  border: 1px solid #e1d8ca;
  border-radius: 4px 16px 16px;
  background: var(--surface-strong);
  box-shadow: 0 5px 14px rgb(68 52 34 / 5%);
}

.message-item.is-self .bubble {
  border-color: #e7c7bd;
  border-radius: 16px 4px 16px 16px;
  background: #f9e7e1;
}

.message-item.is-neutral {
  display: flex;
  width: 100%;
  max-width: none;
  justify-content: center;
  padding: 2px 0;
}

.neutral-card {
  width: min(560px, 92%);
  padding: 14px 16px;
  border: 1px solid #ddd4c7;
  border-radius: 16px;
  color: #4f493f;
  background: #f5f1ea;
  box-shadow: 0 5px 16px rgb(68 52 34 / 5%);
}

.message-item.is-notice .neutral-card {
  width: auto;
  max-width: min(620px, 92%);
  padding: 8px 13px;
  border-color: transparent;
  border-radius: 999px;
  color: var(--muted);
  background: #ece8e1;
  box-shadow: none;
  text-align: center;
}

.message-item.is-tombstone .neutral-card {
  width: auto;
  min-width: 210px;
  max-width: min(460px, 92%);
  padding: 10px 14px;
  border-style: dashed;
  box-shadow: none;
  text-align: center;
}

.message-item[data-actor-role="interaction_agent"] .neutral-card {
  border-color: #cfbddf;
  background: linear-gradient(145deg, #faf6ff, #f3edf9);
}

.interaction-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgb(113 76 139 / 16%);
}

.interaction-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 13px;
  color: #6e4a83;
  background: #e5d8ee;
  font-size: 13px;
  font-weight: 850;
}

.interaction-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interaction-identity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.interaction-name {
  overflow: hidden;
  color: #45364e;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interaction-role,
.structured-card-label {
  color: #806d8c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.structured-card-content {
  display: grid;
  gap: 7px;
}

.bubble-card .structured-card-content {
  min-width: min(320px, 54vw);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(88 73 53 / 12%);
}

.structured-card-title {
  margin: 0;
  overflow-wrap: anywhere;
  color: #37322c;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.structured-card-summary,
.structured-card-object,
.notice-copy,
.tombstone-copy {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.structured-card-summary {
  color: #625a50;
  font-size: 13px;
  line-height: 1.6;
}

.structured-card-object {
  color: #7c7164;
  font-size: 12px;
}

.structured-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.structured-card-footer span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #66566f;
  background: rgb(133 105 151 / 11%);
  font-size: 10px;
  font-weight: 750;
}

.notice-copy,
.tombstone-copy {
  font-size: 12px;
  line-height: 1.55;
}

.tombstone-copy {
  color: #777065;
  font-weight: 750;
}

.neutral-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: #8a8276;
  font-size: 10px;
}

.message-item.is-notice .neutral-meta {
  margin-top: 4px;
}

.neutral-sender::after {
  content: " ·";
}

.message-text {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
}

.reply-block {
  margin-bottom: 9px;
  padding: 8px 10px;
  border-left: 3px solid #bcae98;
  border-radius: 7px;
  color: var(--muted);
  background: #f1ece3;
  font-size: 12px;
  line-height: 1.55;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 180px));
  gap: 8px;
  margin-top: 9px;
}

.media-button {
  display: grid;
  min-height: 84px;
  overflow: hidden;
  place-items: center;
  padding: 0;
  border: 1px solid #d5ccbf;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  background: #eee8df;
}

.media-button img,
.media-button video {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.media-button span {
  padding: 12px;
  font-size: 12px;
  font-weight: 750;
}

.type-badge {
  padding: 2px 6px;
  border-radius: 99px;
  color: #5f5547;
  background: #eae3d8;
  font-size: 10px;
  font-weight: 800;
}

.empty-state {
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
}

.media-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #d1c7b8;
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 90px rgb(22 17 12 / 35%);
}

.media-dialog::backdrop {
  background: rgb(24 20 15 / 72%);
  backdrop-filter: blur(8px);
}

.dialog-heading {
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  font-size: 20px;
}

.media-content {
  display: grid;
  min-height: 260px;
  max-height: calc(100vh - 120px);
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: #211f1b;
}

.media-content img,
.media-content video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
}

.media-content audio {
  width: min(540px, 100%);
}

.media-fallback {
  color: white;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 30;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 12px;
  color: white;
  background: #25211c;
  box-shadow: 0 15px 40px rgb(21 17 12 / 25%);
  font-size: 13px;
  line-height: 1.5;
}

noscript {
  display: block;
  margin: 20px;
  padding: 14px;
  border: 1px solid #dcaea8;
  border-radius: 10px;
  color: var(--danger);
  background: #f8e5e2;
}

@media (max-width: 1100px) {
  .filter-bar {
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 820px) {
  .app-header {
    padding-top: calc(15px + env(safe-area-inset-top));
    padding-bottom: 10px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand .eyebrow {
    display: none;
  }

  .status-pill {
    min-height: 32px;
  }

  .import-layout,
  .viewer {
    grid-template-columns: 1fr;
  }

  .import-layout {
    margin-top: 10px;
  }

  .privacy-card {
    order: 2;
  }

  .conversation-panel {
    position: static;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .app-header,
  main {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .header-actions .button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero-card,
  .privacy-card,
  .message-panel,
  .conversation-panel {
    border-radius: 20px;
  }

  .hero-card {
    padding: 27px 20px;
  }

  .hero-card h2 {
    font-size: 39px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .drop-zone {
    padding: 20px 12px;
  }

  .privacy-card,
  .conversation-panel {
    padding: 22px 20px;
  }

  .message-panel {
    padding: 13px;
  }

  .filter-bar {
    gap: 7px;
  }

  .filter-bar label:not(.search-field) span {
    font-size: 11px;
  }

  .filter-bar .button {
    width: 100%;
  }

  .message-item,
  .message-item.is-self {
    grid-template-columns: 34px minmax(0, 1fr);
    width: 100%;
  }

  .message-item.is-self {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .message-item.is-neutral {
    display: flex;
  }

  .neutral-card,
  .message-item.is-notice .neutral-card,
  .message-item.is-tombstone .neutral-card {
    max-width: 96%;
  }

  .bubble-card .structured-card-content {
    min-width: 0;
  }

  .avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 12px;
  }

  .bubble {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root,
  html,
  body {
    background: white;
  }

  .app-header,
  .conversation-panel,
  .filter-bar,
  .result-heading,
  .toast {
    display: none !important;
  }

  main,
  .message-panel {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .viewer {
    display: block;
  }

  .message-item {
    break-inside: avoid;
  }
}
