.inkd-note-invitation {
  margin: 1.75rem 0 2.1rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid #8b2f25;
  background: #f7f2e8;
}
.inkd-note-invitation[hidden], .inkd-note-dialog [hidden] { display: none; }
.inkd-note-invitation h2 { margin: 0; font-size: 1.23rem; }
.inkd-note-invitation p { margin: 0.25rem 0 0.7rem; }
.inkd-note-invitation button, .inkd-note-dialog button {
  color: #211d19;
  background: #faf4e9;
  border: 1px solid #a89984;
  border-radius: 5px;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  font: 650 0.88rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.inkd-note-invitation button { color: #fff; background: #812c23; border-color: #812c23; }
.inkd-note-dialog {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  overflow: auto;
  color: #221e19;
  background: #f3eee3;
  border: 1px solid #a89984;
  border-radius: 10px;
  box-shadow: 0 20px 70px #1e160c4d;
  font: 1rem/1.55 system-ui, sans-serif;
  z-index: 100;
}
.inkd-note-dialog::backdrop { background: #211b15a1; }
.inkd-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  gap: 0.8rem;
  padding: 1rem clamp(1rem, 3.5vw, 1.7rem);
  background: #f3eee3;
  border-bottom: 1px solid #cdbda5;
}
.inkd-note-head h2 { margin: 0; font: 600 clamp(1.45rem, 5vw, 2.4rem)/1.12 Georgia,serif; }
.inkd-note-body { padding: 1rem clamp(1rem, 3.5vw, 1.7rem) 1.4rem; }
.inkd-note-body h3, .inkd-note-body label { margin: 0; font: 700 0.94rem/1.4 system-ui,sans-serif; }
.inkd-note-body [data-note-status], .inkd-note-body [data-note-passage], .inkd-note-account {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.85rem;
  background: #fbf7ed;
  border: 1px solid #cdbda5;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.inkd-note-body [data-note-status] { border-left: 3px solid #8b2f25; }
.inkd-note-body blockquote {
  margin: 0.3rem 0 0;
  max-height: 8rem;
  overflow: auto;
  padding-left: 0.7rem;
  border-left: 2px solid #8b2f25;
  font: 1rem/1.45 Georgia,serif;
}
.inkd-note-body textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0.25rem 0 0.35rem;
  padding: 0.6rem;
  resize: vertical;
  border: 1px solid #a89984;
  border-radius: 5px;
  background: #fbf7ed;
  color: #221e19;
  font: 1rem/1.5 system-ui,sans-serif;
}
.inkd-note-hint { margin: 0 0 0.65rem; color: #564939; font-size: 0.85rem; }
.inkd-note-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.inkd-note-account p { margin: 0 0 0.55rem; }
.inkd-note-dialog button.inkd-note-sign-in { background: transparent; border: 0; padding: 0; max-width: 100%; }
.inkd-note-sign-in img { display: block; width: 252px; max-width: 100%; height: auto; }
.inkd-note-dialog button:disabled { opacity: 0.55; cursor: default; }
.inkd-note-dialog :focus-visible, .inkd-note-invitation :focus-visible { outline: 2px solid #165e9b; outline-offset: 3px; }
