/* Suggested Notes Polish 2 Revised
   Controlled Notes growth and main-sheet textarea resize protection. */
.paper textarea {
  resize: none !important;
}

.notes-zone textarea {
  overflow: hidden !important;
  resize: none !important;
}

.note-editor-shell {
  --notes-print-height: 83.3px;
}

.note-editor-shell[data-notes-lines="5"] { --notes-print-height: 103.3px; }
.note-editor-shell[data-notes-lines="6"] { --notes-print-height: 123.3px; }
.note-editor-shell[data-notes-lines="7"] { --notes-print-height: 143.3px; }

@media screen {
  body.notes-screen-six-three .paper {
    height: calc(var(--screen-paper-height) + 7px);
  }
}

.notes-capacity-review {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  color: #8b1e2d;
  font: 700 10px/1 Arial, sans-serif;
  background: #fff7f8;
  border: 1px solid rgba(164, 46, 58, .55);
  border-radius: 4px;
  cursor: pointer;
}

.notes-capacity-review:hover,
.notes-capacity-review:focus-visible {
  outline: 2px solid rgba(164, 46, 58, .22);
  outline-offset: 1px;
}

.notes-capacity-dialog {
  width: min(650px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 0;
  color: #0b2d52;
  background: #fff;
  border: 1px solid #6f8298;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(3, 22, 43, .35);
}

.notes-capacity-dialog::backdrop {
  background: rgba(3, 22, 43, .48);
  backdrop-filter: blur(3px);
}

.notes-capacity-dialog-card { padding: 20px; }
.notes-capacity-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.notes-capacity-dialog p { margin: 0 0 12px; font-size: 13px; line-height: 1.4; }
.notes-capacity-editor {
  display: block;
  width: 100%;
  min-height: 170px;
  box-sizing: border-box;
  padding: 8px 10px;
  resize: vertical;
  color: #0b2d52;
  font: 15px/1.4 "Aptos", "Segoe UI", Arial, sans-serif;
  background: #fff;
  border: 1px solid #7f8da1;
  border-radius: 6px;
}
.notes-capacity-message { min-height: 18px; margin-top: 7px; color: #9a2030; font-size: 12px; font-weight: 600; }
.notes-capacity-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.notes-capacity-actions button {
  min-width: 128px;
  min-height: 34px;
  padding: 6px 12px;
  color: #fff;
  font: 600 13px/1 "Aptos", "Segoe UI", Arial, sans-serif;
  background: #132f50;
  border: 1px solid #50657d;
  border-radius: 6px;
  cursor: pointer;
}
.notes-capacity-actions .notes-capacity-apply { background: #c52639; border-color: #a51f31; }

@media print {
  .note-editor-shell {
    height: var(--notes-print-height) !important;
    min-height: var(--notes-print-height) !important;
  }
  .notes-capacity-review,
  .notes-capacity-dialog {
    display: none !important;
  }
}
