@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@700&display=swap");

:root {
  --violet: #2563EB;
  --lagoon: #000000;
  --gold: #C4B5FD;
  --alabaster: #FFFFFF;
  --moss: #475569;
  --ink: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
}

body#notes-page .ux-reveal,
body#notes-page .ux-reveal.is-visible,
body#notes-page .notes-page,
body#notes-page .search-container,
body#notes-page .container,
body#notes-page .notes-section {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  visibility: visible !important;
}

body#notes-page #searchButton {
  background: linear-gradient(130deg, #fbc466, var(--gold));
  color: #3c2d00;
  border: none;
  box-shadow: 0 12px 20px rgba(196, 181, 253, 0.22);
}

body#notes-page #searchButton:hover {
  background: linear-gradient(130deg, #ffd171, var(--gold));
}

.notes-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 14px 10px;
}

.page-title-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 32%),
    radial-gradient(circle at bottom left, rgba(196, 181, 253, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  padding: clamp(20px, 3.5vw, 34px);
  text-align: center;
}

.notes-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--lagoon);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title-card h1 {
  margin: 0;
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(1.8rem, 1.15rem + 1.85vw, 2.65rem);
}

.page-title-card h1 i {
  color: var(--violet);
  margin-right: 10px;
}

.page-title-card p {
  margin: 10px auto 0;
  max-width: 680px;
  color: var(--moss);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.12rem);
}

.notes-overview {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(236, 243, 247, 0.78));
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.overview-card strong {
  display: block;
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.55rem);
}

.overview-card span {
  display: block;
  margin-top: 6px;
  color: var(--moss);
  font-size: 0.94rem;
}

.ticker-wrapper {
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
}

.ticker p {
  margin: 0;
  display: inline-block;
  padding: 10px 0;
  color: var(--lagoon);
  font-weight: 700;
  animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.search-container {
  margin: 14px auto 0;
  max-width: 820px;
  display: grid;
  gap: 10px;
  position: relative;
}

.search-label {
  color: var(--lagoon);
  font-weight: 800;
  font-size: 0.92rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.search-shell:focus-within {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.search-shell i {
  color: var(--lagoon);
}

#searchInput {
  width: 100%;
  border: none;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
}

#searchInput:focus {
  outline: none;
}

#searchButton {
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(130deg, #fbc466, var(--gold));
  color: #3c2d00;
  font-weight: 700;
  cursor: pointer;
}

.search-status {
  margin: 0;
  color: var(--moss);
  font-weight: 700;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  z-index: 20;
}

.suggestions[hidden] {
  display: none;
}

.suggestion-item,
.suggestion-empty {
  display: grid;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--lagoon);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

.suggestion-item {
  border: none;
  cursor: pointer;
}

.suggestion-item strong,
.suggestion-empty strong {
  font-size: 0.95rem;
}

.suggestion-item span,
.suggestion-empty span {
  color: var(--moss);
  font-size: 0.86rem;
}

.suggestions > *:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(37, 99, 235, 0.12);
}

.container {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  min-height: 220px;
  padding: 28px 20px;
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 247, 0.82));
  color: var(--moss);
}

.empty-state i {
  font-size: 2rem;
  color: var(--violet);
}

.empty-state strong {
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0;
  max-width: 420px;
}

.notes-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.11);
  padding: 20px;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.notes-section h2 {
  margin: 0 0 10px;
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
}

.notes-section h2 i {
  color: var(--violet);
  margin-right: 8px;
}

.section-heading-row p {
  margin: 0;
  max-width: 680px;
  color: var(--moss);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.note-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 247, 0.88));
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.note-card.is-active {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.18),
    0 22px 34px rgba(0, 0, 0, 0.18);
}

.note-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  filter: blur(8px);
  pointer-events: none;
}

.note-card.accent-1::after,
.note-card.accent-2::after,
.note-card.accent-3::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  border-radius: 22px 22px 0 0;
}

.note-card.accent-1::after {
  background: linear-gradient(90deg, var(--violet), #9d94ff);
}

.note-card.accent-2::after {
  background: linear-gradient(90deg, var(--gold), #ffd171);
}

.note-card.accent-3::after {
  background: linear-gradient(90deg, var(--lagoon), #2f79a8);
}

.note-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.09);
  color: var(--lagoon);
  font-size: 0.82rem;
  font-weight: 800;
}

.note-card h3 {
  margin: 18px 0 10px;
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 1.22rem;
  line-height: 1.3;
}

.note-card p {
  margin: 0;
  color: var(--moss);
  line-height: 1.55;
  max-width: 28ch;
}

.note-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.note-btn.is-disabled {
  opacity: 0.68;
  cursor: not-allowed;
  pointer-events: auto;
}

.back-button {
  text-align: center;
}

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--lagoon);
  font-weight: 700;
}

.back-button a:hover {
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(37, 99, 235, 0.4);
}

@media (max-width: 780px) {
  .notes-overview {
    grid-template-columns: 1fr;
  }

  .search-container {
    gap: 12px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .notes-page {
    padding-inline: 10px;
  }

  .notes-section {
    padding: 13px;
  }

  .note-actions {
    flex-direction: column;
  }

  .note-btn {
    width: 100%;
  }
}

/* Notes library redesign */
body#notes-page {
  background: #fbfdff;
  color: #101936;
}

body#notes-page .notes-page {
  max-width: 1240px;
  padding: 18px 16px 28px;
}

body#notes-page .page-title-card {
  min-height: 256px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 22px;
  text-align: left;
  border: 1px solid #e2e6ff;
  border-radius: 12px;
  background: linear-gradient(105deg, #f4f0ff 0%, #f9fbff 52%, #eef6ff 100%);
  box-shadow: none;
  padding: 32px;
}

body#notes-page .title-copy {
  position: relative;
  z-index: 2;
}

body#notes-page .notes-kicker {
  display: block;
  width: fit-content;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4d55ff;
  font-size: 0.78rem;
}

body#notes-page .page-title-card h1 {
  margin: 0;
  color: #111936;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.65rem, 2.7vw, 2.24rem);
  line-height: 1.18;
  letter-spacing: 0;
}

body#notes-page .page-title-card h1 i {
  display: none;
}

body#notes-page .page-title-card p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #344269;
  font-size: 1rem;
  line-height: 1.55;
}

body#notes-page .notes-overview {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

body#notes-page .overview-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas: "icon value" "icon label";
  align-items: center;
  column-gap: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(224, 229, 255, 0.84);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body#notes-page .overview-card i {
  grid-area: icon;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5b62ff;
  background: #eef0ff;
  font-size: 1rem;
}

body#notes-page .overview-card:nth-child(2) i {
  color: #f8a91d;
}

body#notes-page .overview-card strong {
  grid-area: value;
  font-family: "Manrope", Arial, sans-serif;
  color: #111936;
  font-size: 1.28rem;
  line-height: 1.1;
}

body#notes-page .overview-card span {
  grid-area: label;
  margin: 3px 0 0;
  color: #6b7798;
  font-size: 0.94rem;
}

body#notes-page .notes-hero-art,
body#practice-page .practice-hero-art {
  position: relative;
  width: 230px;
  height: 190px;
  justify-self: center;
}

body#notes-page .art-book,
body#practice-page .art-book {
  position: absolute;
  right: 42px;
  top: 12px;
  width: 108px;
  height: 132px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6e78ff, #3d50d8);
  box-shadow: 14px 10px 0 #5262dc, 0 16px 24px rgba(68, 83, 218, 0.26);
}

body#notes-page .art-book::before,
body#practice-page .art-book::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  width: 18px;
  height: 46px;
  background: #ffd45d;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

body#notes-page .art-book::after,
body#practice-page .art-book::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 22px;
  top: 63px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 0 rgba(255, 255, 255, 0.18);
}

body#notes-page .art-paper,
body#practice-page .art-paper {
  position: absolute;
  left: 32px;
  bottom: 28px;
  width: 78px;
  height: 78px;
  border-radius: 7px;
  transform: rotate(4deg);
  background: #ffc75c;
  box-shadow: 0 12px 20px rgba(223, 150, 36, 0.18);
}

body#notes-page .art-paper::after,
body#practice-page .art-paper::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(179, 99, 29, 0.24);
  box-shadow: 0 17px 0 rgba(179, 99, 29, 0.18);
}

body#notes-page .art-pen,
body#practice-page .art-pen {
  position: absolute;
  right: 4px;
  top: 38px;
  width: 18px;
  height: 132px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6e78ff, #293dc5);
  transform: rotate(4deg);
}

body#notes-page .art-pen::after,
body#practice-page .art-pen::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -15px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 18px solid #293dc5;
}

body#notes-page .art-spark,
body#practice-page .art-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  color: #7580ff;
}

body#notes-page .art-spark::before,
body#notes-page .art-spark::after,
body#practice-page .art-spark::before,
body#practice-page .art-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: currentColor;
}

body#notes-page .art-spark::before,
body#practice-page .art-spark::before {
  width: 100%;
  height: 34%;
}

body#notes-page .art-spark::after,
body#practice-page .art-spark::after {
  width: 34%;
  height: 100%;
}

body#notes-page .art-spark-one,
body#practice-page .art-spark-one {
  left: 10px;
  top: 56px;
  transform: rotate(45deg);
}

body#notes-page .art-spark-two,
body#practice-page .art-spark-two {
  right: -12px;
  top: 88px;
  transform: rotate(45deg);
}

body#notes-page .ticker-wrapper {
  margin-top: 18px;
  border-radius: 9px;
  border: 0;
  background: #0b3455;
  box-shadow: 0 10px 18px rgba(20, 50, 83, 0.16);
}

body#notes-page .ticker p {
  display: block;
  padding: 11px 46px 11px 42px;
  color: #fff;
  font-size: 0.86rem;
  animation: none;
  white-space: normal;
}

body#notes-page .ticker::before {
  content: "\f0eb";
  position: absolute;
  margin: 9px 0 0 16px;
  color: #ffd45d;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

body#notes-page .ticker::after {
  content: "\00d7";
  position: absolute;
  right: 16px;
  margin-top: -30px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

body#notes-page .search-container {
  max-width: none;
  margin-top: 24px;
}

body#notes-page .search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 16px;
}

body#notes-page .search-shell {
  min-height: 42px;
  border-color: #dfe5f5;
  border-radius: 999px;
  color: #8b96b6;
  background: #fff;
}

body#notes-page #searchInput {
  font-size: 0.88rem;
}

body#notes-page #searchButton,
body#notes-page .sort-button,
body#notes-page .view-toggle {
  min-height: 42px;
  border: 1px solid #e3e8f7;
  border-radius: 999px;
  background: #fff;
  color: #263455;
  box-shadow: none;
}

body#notes-page #searchButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body#notes-page .sort-button {
  padding: 0 18px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

body#notes-page .view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

body#notes-page .view-toggle button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #687390;
  background: transparent;
  cursor: pointer;
}

body#notes-page .view-toggle button.is-active {
  color: #fff;
  background: #6568ff;
}

body#notes-page .search-status {
  font-size: 0.86rem;
  color: #6d7896;
}

body#notes-page .container {
  margin-top: 28px;
  gap: 34px;
}

body#notes-page .notes-section {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#notes-page .section-heading-row {
  align-items: center;
  margin-bottom: 16px;
}

body#notes-page .notes-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  color: #17213d;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.16rem;
  line-height: 1.2;
}

body#notes-page .notes-section h2 i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #5b62ff;
  background: #f0f2ff;
  margin: 0;
}

body#notes-page .section-heading-row p {
  margin-left: 54px;
  color: #697596;
  font-size: 0.88rem;
}

body#notes-page .view-all-link {
  align-self: flex-start;
  padding: 8px 15px;
  border: 1px solid #e4e8fb;
  border-radius: 999px;
  color: #5b62ff;
  background: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
}

body#notes-page .notes-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body.notes-list-view#notes-page .notes-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.notes-list-view#notes-page .note-card {
  min-height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

body.notes-list-view#notes-page .note-card h3 {
  min-height: auto;
  margin: 0;
  flex: 1 1 240px;
}

body.notes-list-view#notes-page .note-card p {
  flex: 2 1 340px;
  margin: 0;
}

body.notes-list-view#notes-page .note-tags {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body.notes-list-view#notes-page .note-actions {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid #f0f2fa;
  padding-top: 12px;
  margin-top: 4px;
}

body#notes-page .note-card {
  min-height: 248px;
  padding: 18px;
  border: 1px solid #dce3f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body#notes-page .note-card::after,
body#notes-page .note-card-glow,
body#notes-page .note-card-top {
  display: none;
}

body#notes-page .note-card h3 {
  min-height: 42px;
  margin: 0 0 13px;
  color: #19223d;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.28;
}

body#notes-page .note-card h3::after {
  content: none;
  display: none;
}

body#notes-page .note-card p {
  max-width: none;
  color: #53617f;
  font-size: 0.88rem;
  line-height: 1.58;
}

body#notes-page .note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

body#notes-page .note-tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: #4c54e9;
  background: #edf0ff;
  font-size: 0.75rem;
  font-weight: 800;
}

body#notes-page .note-tag:nth-child(2n) {
  color: #b85d20;
  background: #fff1de;
}

body#notes-page .note-actions {
  margin-top: 14px;
  padding-top: 0;
  align-items: center;
  justify-content: space-between;
  color: #71809f;
  font-size: 0.76rem;
}

body#notes-page .note-actions::before {
  content: attr(data-meta);
}

body#notes-page .note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #e5e8f5;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 850;
  min-width: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body#notes-page .note-btn i {
  font-size: 0.85rem;
}

body#notes-page .note-btn-view {
  color: #303b58;
  background: #ffffff;
}

body#notes-page .note-btn-download {
  color: #ffffff;
  background: #7b5cff;
  border-color: #7b5cff;
}

body#notes-page .note-btn-view:hover {
  background: #f8f9fc;
}

body#notes-page .note-btn-download:hover {
  background: #6a4df7;
  border-color: #6a4df7;
}

body#notes-page .note-btn-view:hover,
body#notes-page .note-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(107, 76, 255, 0.15);
}


body#notes-page .load-more-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border: 1px solid #d9ddff;
  border-radius: 9px;
  color: #5b62ff;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  body#notes-page .page-title-card {
    grid-template-columns: 1fr;
  }

  body#notes-page .notes-hero-art {
    position: absolute;
    right: 26px;
    top: 52px;
    width: 170px;
    height: 150px;
    opacity: 0.9;
  }

  body#notes-page .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body#notes-page .notes-page {
    padding: 10px 8px 20px;
  }

  body#notes-page .page-title-card {
    min-height: 190px;
    padding: 18px;
  }

  body#notes-page .page-title-card h1 {
    max-width: 260px;
    font-size: 1.22rem;
  }

  body#notes-page .page-title-card p {
    max-width: 240px;
    font-size: 0.82rem;
  }

  body#notes-page .notes-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body#notes-page .overview-card {
    min-height: 58px;
    grid-template-columns: 30px 1fr;
    padding: 10px;
  }

  body#notes-page .overview-card i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  body#notes-page .overview-card strong {
    font-size: 1rem;
  }

  body#notes-page .overview-card span {
    font-size: 0.75rem;
  }

  body#notes-page .notes-hero-art {
    right: 8px;
    top: 52px;
    transform: scale(0.68);
    transform-origin: top right;
  }

  body#notes-page .ticker-wrapper {
    display: none;
  }

  body#notes-page .search-form {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 9px;
  }

  body#notes-page .sort-button,
  body#notes-page .view-toggle,
  body#notes-page .search-status {
    display: none;
  }

  body#notes-page #searchButton {
    width: 46px;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #6665ff;
    border-color: #6665ff;
    font-size: 0;
  }

  body#notes-page #searchButton i {
    font-size: 0.95rem;
  }

  body#notes-page .section-heading-row {
    flex-direction: row;
  }

  body#notes-page .notes-section h2 {
    font-size: 0.95rem;
  }

  body#notes-page .notes-section h2 i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  body#notes-page .section-heading-row p {
    display: none;
  }

  body#notes-page .view-all-link {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.82rem;
  }

  body#notes-page .notes-grid {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e5e9f7;
    border-radius: 9px;
    background: #fff;
  }

  body#notes-page .note-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 15px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f8;
    border-radius: 0;
  }

  body#notes-page .note-card:last-child {
    border-bottom: 0;
  }

  body#notes-page .note-card h3 {
    min-height: 0;
    margin: 0;
    font-size: 0.86rem;
  }

  body#notes-page .note-card h3::after {
    content: none;
    display: none;
    float: none;
  }

  body#notes-page .note-card p {
    display: none;
  }

  body#notes-page .note-tags {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    align-content: start;
    margin: 0;
    padding: 0;
    max-width: 120px;
  }

  body#notes-page .note-tag {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  body#notes-page .note-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 0.68rem;
  }
}

/* Shared shell styles (merged from shared-shell.css) */

:root {
  --gx-primary: #2563EB;
  --gx-lagoon: #000000;
  --gx-gold: #C4B5FD;
  --gx-alabaster: #FFFFFF;
  --gx-moss: #475569;
  --gx-ink: #000000;
  --gx-white: #ffffff;
  --gx-border: 1px solid rgba(0, 0, 0, 0.16);
  --gx-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.sq-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: var(--gx-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sq-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sq-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
}

.sq-logo span {
  color: var(--gx-lagoon);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sq-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--gx-lagoon);
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 0.25s ease;
}

.sq-link i {
  color: var(--gx-moss);
}

.sq-link:hover,
.sq-link.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--gx-lagoon);
}

.sq-link:hover i,
.sq-link.active i {
  color: var(--gx-primary);
}

.sq-nav-item {
  position: relative;
}

.sq-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 216px;
  background: rgba(255, 255, 255, 0.96);
  border: var(--gx-border);
  border-radius: 12px;
  box-shadow: var(--gx-shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.sq-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sq-dropdown a {
  color: var(--gx-lagoon);
  text-decoration: none;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sq-dropdown a i {
  margin-right: 8px;
}

.sq-dropdown a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.sq-user-id {
  margin: 2px 4px 8px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--gx-moss);
  font-weight: 700;
}

.sq-auth {
  display: flex;
  align-items: center;
}

.sq-auth button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.sq-login-btn {
  background: rgba(0, 0, 0, 0.12);
  color: var(--gx-lagoon);
  border: 1px solid rgba(0, 0, 0, 0.26) !important;
}

.sq-register-btn,
.sq-profile-btn {
  background: linear-gradient(130deg, #fbc466, var(--gx-gold));
  color: #3c2d00;
  box-shadow: 0 10px 20px rgba(196, 181, 253, 0.26);
}

.sq-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sq-user-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.24);
}

.sq-user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: var(--gx-lagoon);
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}























































@media (max-width: 980px) {
  .sq-header-container {
    flex-wrap: nowrap;
  }

  .sq-toggle {
    display: inline-grid;
  }

  .sq-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    border: var(--gx-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--gx-shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .sq-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sq-link {
    width: 100%;
  }


}

@media (max-width: 680px) {
  .sq-logo span {
    display: none;
  }

  .sq-auth button {
    padding: 8px 11px;
    font-size: 0.84rem;
  }




}



