.ms-crm-notes-host{
  margin-top:16px;
  padding:16px;
  border:1px solid var(--border-color,rgba(127,127,127,.24));
  border-radius:16px;
  background:var(--surface-card,rgba(255,255,255,.04));
}
.ms-crm-notes-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:12px;
}
.ms-crm-notes-heading h3{margin:0;font-size:16px}
.ms-crm-notes-heading p{margin:3px 0 0;opacity:.68;font-size:12px}
.ms-crm-note-new,.ms-crm-note-save,.ms-crm-note-mic{
  border:0;border-radius:10px;padding:9px 14px;cursor:pointer;
  font:inherit;font-weight:650;background:var(--accent,#2878ff);color:#fff;
}
.ms-crm-note-new:disabled,.ms-crm-note-save:disabled,.ms-crm-note-mic:disabled{
  opacity:.55;cursor:default;
}
.ms-crm-note-list{display:grid;gap:8px}
.ms-crm-note-item{
  border:1px solid var(--border-color,rgba(127,127,127,.22));
  border-radius:11px;overflow:hidden;
}
.ms-crm-note-item summary{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:11px 13px;cursor:pointer;list-style:none;
}
.ms-crm-note-item summary::-webkit-details-marker{display:none}
.ms-crm-note-summary-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.ms-crm-note-summary-main strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ms-crm-note-summary-main span,.ms-crm-note-author{font-size:12px;opacity:.68}
.ms-crm-note-body{
  padding:12px 13px 14px;
  border-top:1px solid var(--border-color,rgba(127,127,127,.18));
  line-height:1.5;
}
.ms-crm-note-empty,.ms-crm-note-error{padding:12px;opacity:.7}
.ms-crm-note-dialog-shell[hidden]{display:none!important}
.ms-crm-note-dialog-shell{
  position:fixed;inset:0;z-index:100000;display:grid;
  place-items:center;padding:18px;
}
.ms-crm-note-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.55);
  backdrop-filter:blur(3px);
}
.ms-crm-note-dialog{
  position:relative;z-index:1;width:min(680px,100%);
  max-height:min(820px,calc(100vh - 36px));overflow:auto;
  border-radius:18px;padding:20px;background:var(--surface,#fff);
  color:var(--text-color,#182033);box-shadow:0 24px 80px rgba(0,0,0,.3);
}
[data-theme="dark"] .ms-crm-note-dialog,.dark .ms-crm-note-dialog{
  background:#172033;color:#f4f7fb;
}
.ms-crm-note-dialog-header{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:20px;margin-bottom:18px;
}
.ms-crm-note-dialog-header h2{margin:0}
.ms-crm-note-dialog-header p{margin:5px 0 0;opacity:.7}
.ms-crm-note-close{
  border:0;background:transparent;color:inherit;font-size:28px;cursor:pointer;
}
.ms-crm-note-field{
  display:grid;gap:6px;margin-bottom:14px;font-weight:600;
}
.ms-crm-note-field input,.ms-crm-note-field textarea{
  width:100%;box-sizing:border-box;
  border:1px solid var(--border-color,rgba(127,127,127,.35));
  border-radius:11px;padding:11px 12px;background:transparent;
  color:inherit;font:inherit;
}
.ms-crm-note-field textarea{
  min-height:210px;resize:vertical;line-height:1.5;
}
.ms-crm-note-voice{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px;
  padding:12px;border-radius:12px;background:rgba(127,127,127,.09);
}
.ms-crm-note-stop,.ms-crm-note-actions button{
  border:1px solid var(--border-color,rgba(127,127,127,.3));
  border-radius:10px;padding:9px 13px;background:transparent;
  color:inherit;cursor:pointer;font:inherit;
}
.ms-crm-note-stop:disabled{opacity:.45;cursor:default}
.ms-crm-note-voice-status{font-size:12px;opacity:.72}
.ms-crm-note-message{min-height:20px;margin-top:10px;font-size:13px}
.ms-crm-note-message[data-state="success"],
.ms-crm-note-message[data-state="error"]{font-weight:650}
.ms-crm-note-actions{
  display:flex;justify-content:flex-end;gap:10px;margin-top:18px;
}
@media(max-width:600px){
  .ms-crm-note-dialog-shell{padding:0;align-items:end}
  .ms-crm-note-dialog{
    width:100%;max-height:92vh;border-radius:18px 18px 0 0;
  }
  .ms-crm-notes-heading{align-items:flex-start}
  .ms-crm-note-item summary{
    align-items:flex-start;flex-direction:column;gap:5px;
  }
}

/* OMNIA NOTES R2B.5 */
.ms-company-notes-shell{
  width:100%;
}

.ms-crm-note-toolbar{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin:.75rem 0;
}

.ms-crm-note-editor{
  display:grid;
  gap:.75rem;
}

.ms-crm-note-editor label{
  display:grid;
  gap:.35rem;
}

.ms-crm-note-editor input,
.ms-crm-note-editor textarea{
  width:100%;
  box-sizing:border-box;
}

.ms-company-note-overview-titles{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.35rem;
  margin:.5rem 0 .75rem;
}

.ms-company-note-title-link{
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
  text-decoration:underline;
}
