.notes-workspace {
  container-type: inline-size;
  min-width: 0;
  position: relative;
  padding-bottom: 24px;
}
.note-section-heading,
.note-editor-top,
.note-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note-section-heading h2 {
  font-size: 24px;
}
.note-section-heading p,
.note-empty p,
.note-assistant p,
.note-attachments p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.note-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.note-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.note-card {
  display: block;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #171b29, #10131d);
  min-height: 180px;
  overflow: hidden;
}
.note-card.selected {
  border-color: var(--cyan);
}
.note-card h3 {
  font-size: 18px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.note-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.note-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ab9de6;
  font-size: 12px;
}
.note-card-label {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 1px;
}
.note-empty {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.note-empty > span {
  color: var(--cyan);
  font-size: 32px;
}
.note-editor {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #11151ee6;
  min-width: 0;
}
.is-editing .note-library {
  display: none;
}
.note-editor-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #11151e;
  padding: 10px 0;
  margin-bottom: 24px;
}
.note-editor-top > span {
  color: var(--muted);
  font-size: 13px;
}
.note-editor label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.note-editor input,
.note-editor textarea,
.note-filters input {
  min-width: 0;
  width: 100%;
  font-size: 16px;
}
.note-editor textarea {
  min-height: 360px;
  resize: vertical;
  line-height: 1.8;
  font-family: inherit;
}
.note-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.note-meta > label:first-child {
  flex: 1;
}
.note-meta .note-pin {
  flex-direction: row;
  align-items: center;
}
.note-pin input {
  width: 20px;
  height: 20px;
}
.note-word-count {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}
.note-attachments {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.note-attachments > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.note-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.note-attachment > span {
  flex: 1;
  overflow-wrap: anywhere;
  min-width: 0;
}
.note-attachment small {
  display: block;
  color: #efa6bf;
}
.note-assistant {
  padding: 20px;
  border: 1px solid #635c8b70;
  border-radius: 14px;
  background: #26213840;
}
.note-assistant > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.note-delete {
  margin-top: 24px;
}
.note-alert {
  padding: 16px;
  color: #ffaabc;
  border: 1px solid #a35a7470;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.note-alert button {
  margin-left: 12px;
}
.note-notice {
  padding: 12px;
  color: var(--cyan);
}
.note-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: 85dvh;
  overflow: auto;
  box-sizing: border-box;
  background: #131723;
  color: var(--white);
  border: 1px solid #74649b;
  border-radius: 18px;
  padding: 24px;
}
.note-dialog::backdrop {
  background: #000a;
}
.note-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 15px;
  line-height: 1.8;
  max-height: 45dvh;
  overflow: auto;
  padding: 18px;
  background: #0c101a;
  border-radius: 12px;
}
.note-dialog p {
  color: var(--muted);
  line-height: 1.7;
}
.note-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.note-dialog nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.note-drive-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.note-drive-list button {
  text-align: left;
  overflow-wrap: anywhere;
}
.note-dialog h2 {
  font-size: 22px;
}
.personalization-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@container (max-width:600px) {
  .note-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .note-section-heading h2 {
    font-size: 20px;
  }
  .note-filters {
    grid-template-columns: 1fr;
  }
  .note-editor {
    padding: 16px;
  }
  .note-editor-top {
    gap: 8px;
    flex-wrap: wrap;
  }
  .note-meta {
    gap: 12px;
  }
  .note-editor textarea {
    min-height: 38dvh;
  }
  .note-attachment {
    flex-wrap: wrap;
  }
  .note-attachment > span {
    flex-basis: 100%;
  }
  .note-assistant {
    padding: 14px;
  }
  .note-assistant > div > * {
    width: 100%;
  }
  .note-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .personalization-workspace:has(.notes-workspace.is-editing)
    .personalization-heading {
    display: none;
  }
  .personalization-workspace:has(.notes-workspace.is-editing)
    .personalization-tabs {
    margin-top: 16px;
  }
  .note-dialog {
    padding: 16px;
  }
  .personalization-tabs button span {
    font-size: 11px;
  }
  .personalization-heading h1 {
    font-size: 30px;
  }
  .note-dialog button,
  .notes-workspace button {
    min-height: 44px;
  }
}
