.mv-root {
  max-width: 1180px;
  margin: auto;
  padding: 32px 36px 48px;
  color: var(--fg, var(--ink, #22323d));
}
.mv-root[hidden] {
  display: none;
}
.mv-heading h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 550;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.mv-heading p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.mv-muted,
.mv-meta,
.mv-snippet {
  color: var(--muted, #70818c);
}
.mv-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line, #e2eaf0);
  padding-bottom: 20px;
}
.mv-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted, #70818c);
}
.mv-filters select,
.mv-filters input[type='search'] {
  border: 1px solid var(--line, #dce7ee);
  background: var(--surface, #fff);
  color: var(--fg, var(--ink, #22323d));
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}
.mv-filters input[type='search'] {
  flex: 1;
  min-width: 160px;
}
.mv-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.mv-check input {
  accent-color: var(--accent, #338ece);
}
.mv-button {
  border: 1px solid var(--line, #dce7ee);
  background: var(--surface, #fff);
  color: inherit;
  border-radius: 9px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mv-button:hover,
.mv-message:hover {
  border-color: var(--accent, #338ece);
  background: var(--soft, #f1f7fb);
}
.mv-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.mv-status {
  font-size: 12px;
  line-height: 1.65;
  min-height: 20px;
  margin: 15px 0;
}
.mv-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.mv-source {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted, #70818c);
}
.mv-source .mv-button {
  padding: 6px 10px;
  font-size: 11px;
}
.mv-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.4fr);
  gap: 24px;
  align-items: start;
}
.mv-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mv-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2eaf0);
  border-radius: 12px;
  padding: 17px 18px;
  cursor: pointer;
}
.mv-message[aria-pressed='true'] {
  border-color: var(--accent, #338ece);
  background: var(--soft, #f1f7fb);
}
.mv-subject {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mv-meta {
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.mv-snippet {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  /* A preview, not the message: collapse newsletter blank lines and clamp. */
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.mv-unread {
  font-size: 10px;
  font-weight: 550;
  color: var(--accent, #338ece);
}
.mv-read {
  min-width: 0;
  position: sticky;
  top: 20px;
  padding: 22px;
  border: 1px solid var(--line, #e2eaf0);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.mv-read h2 {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.mv-read p {
  font-size: 12px;
  line-height: 1.65;
}
.mv-body {
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  margin: 20px 0 0;
  max-height: 68vh;
  overflow: auto;
}
.mv-empty {
  font-size: 13px;
  color: var(--muted, #70818c);
  line-height: 1.7;
  padding: 20px 0;
}
.mv-read-notice {
  color: var(--muted, #70818c);
}
.mv-root button:focus-visible,
.mv-root input:focus-visible,
.mv-root select:focus-visible {
  outline: 2px solid var(--accent, #338ece);
  outline-offset: 3px;
}
@media (max-width: 780px) {
  .mv-root {
    padding: 24px 20px;
  }
  .mv-workspace {
    grid-template-columns: 1fr;
  }
  .mv-read {
    position: static;
  }
  .mv-body {
    max-height: none;
  }
  .mv-filters input[type='search'] {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mv-root * {
    scroll-behavior: auto;
  }
}
