.om-head { align-items: flex-start; }
.om-grid {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid var(--line, #d9dedb);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.om-list { border-right: 1px solid var(--line, #d9dedb); background: #f7f8f6; }
.om-list-body { height: 100%; }
.om-thread-row {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line, #d9dedb);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.om-thread-row:hover,
.om-thread-row:focus-visible { background: #fff; outline: 0; }
.om-thread-row.is-unread { border-left: 4px solid var(--cyan, #007f86); padding-left: 12px; background: #fff; }
.om-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.om-row-top time { flex: 0 0 auto; color: var(--muted, #66736d); font-size: 12px; }
.om-row-subject,
.om-row-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-row-subject { margin-top: 3px; font-size: 14px; }
.om-row-preview { margin-top: 3px; color: var(--muted, #66736d); font-size: 13px; }
.om-thread { min-width: 0; padding: 20px; }
.om-thread-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.om-thread-head h2 { margin: 0; }
.om-thread-head .ws-sub { margin: 3px 0 0; }
.om-messages { max-height: 340px; overflow: auto; padding: 4px 4px 18px; }
.om-message { width: min(84%, 620px); margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #f0f2ef; }
.om-message.is-mine { margin-left: auto; background: #e4f3f2; }
.om-message p { margin: 4px 0 0; white-space: pre-wrap; }
.om-message-meta { color: var(--muted, #66736d); font-size: 12px; }
.om-reply,
.om-compose { display: grid; gap: 8px; }
.om-reply textarea,
.om-compose input,
.om-compose textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #cdd4d0);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  font: inherit;
}
.om-compose label:not(:first-child) { margin-top: 8px; }
.om-form-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.om-error { min-height: 1.3em; margin: 0; color: #a12d2d; font-size: 13px; }
.om-picker { border-radius: 8px; box-shadow: 0 8px 24px rgba(25, 38, 32, .12); }
.om-picker button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line, #d9dedb); background: #fff; text-align: left; cursor: pointer; }
.om-picker button:hover,
.om-picker button:focus-visible { background: #f3f7f5; }
.om-not-on { margin: 5px 0; color: var(--muted, #66736d); font-size: 13px; }
.om-near { margin-top: 28px; }
.om-near .ws-head { margin-bottom: 10px; }
.om-near-rows { border-top: 1px solid var(--line, #d9dedb); }
.om-near-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line, #d9dedb); }
.om-near-row b,
.om-near-row span { display: block; }
.om-near-row > div > span { margin-top: 2px; color: var(--muted, #66736d); font-size: 13px; }

@media (max-width: 760px) {
  .om-grid { grid-template-columns: 1fr; }
  .om-list { border-right: 0; border-bottom: 1px solid var(--line, #d9dedb); }
  .om-thread { min-height: 420px; padding: 16px; }
  .om-message { width: 92%; }
}
