/* Keep the notepad's paper edge steady while the native caret marks focus. */
body :is(#team-pad, #pad-form textarea[name="text"]),
body :is(#team-pad, #pad-form textarea[name="text"]):is(:focus, :focus-visible) {
  border: 1px solid var(--line, #dbe3de);
  outline: none;
  box-shadow: none;
}

body .main.page-calls .team-calls-workspace,
body .main.page-calls #pad-form {
  min-height: calc(100dvh - 180px);
}

body #pad-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body #pad-form .page-toolbar {
  margin-bottom: 0;
}

body :is(#team-pad, #pad-form textarea[name="text"]).note-editor {
  width: 100%;
  min-height: clamp(520px, calc(100dvh - 260px), 960px) !important;
  line-height: 1.6;
  resize: vertical;
}

@media (max-width: 640px) {
  body :is(#team-pad, #pad-form textarea[name="text"]).note-editor {
    min-height: calc(100dvh - 230px) !important;
  }
}
