.admin-notes-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.4rem;
}

.admin-notes-hero h1 { max-width: 14ch; }

.admin-notes-seal {
  display: grid;
  place-items: center;
  width: 8.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 99, 45, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 99, 45, 0.12), transparent 66%);
  box-shadow: inset 0 0 0 0.55rem rgba(0, 0, 0, 0.22);
  text-align: center;
}

.admin-notes-seal span,
.admin-notes-seal small {
  color: var(--accent);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.admin-notes-seal strong {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
}

.admin-notes-section { padding-top: 0; }

.admin-notes-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.admin-notes-stats article {
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(14, 16, 20, 0.78);
}

.admin-notes-stats span,
.admin-notes-filters label > span,
.admin-note-content > span,
.admin-note-lower section > header > span {
  display: block;
  color: var(--text-soft);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-notes-stats strong {
  display: block;
  margin-top: 0.22rem;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}

.admin-notes-filters {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 0.3fr) auto auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background: rgba(5, 7, 9, 0.55);
}

.admin-notes-filters label { display: grid; gap: 0.38rem; }
.admin-notes-filters input,
.admin-notes-filters select { min-height: 44px; }
.admin-notes-filters .button { min-height: 44px; padding: 0.65rem 0.95rem; white-space: nowrap; }

.admin-notes-workspace {
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.65fr);
  gap: 0.8rem;
  min-height: 40rem;
}

.admin-notes-list-panel,
.admin-note-detail {
  transform: none !important;
}

.admin-notes-list-panel { padding: 0.8rem; }

.admin-notes-list-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.admin-notes-list-panel h2 { margin-top: 0.22rem; font-size: 1.25rem; }

.admin-notes-list-panel > header > span {
  min-width: 2.3rem;
  padding: 0.35rem;
  border: 1px solid rgba(216, 99, 45, 0.25);
  border-radius: 999px;
  color: var(--accent-light);
  text-align: center;
}

.admin-notes-list {
  display: grid;
  gap: 0.48rem;
  max-height: 49rem;
  margin-top: 0.65rem;
  overflow: auto;
  scrollbar-width: thin;
}

.admin-note-row {
  display: grid;
  gap: 0.32rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.admin-note-row:hover,
.admin-note-row.is-active {
  border-color: rgba(216, 99, 45, 0.34);
  background: linear-gradient(120deg, rgba(216, 99, 45, 0.1), rgba(255, 255, 255, 0.025));
}

.admin-note-row-top,
.admin-note-row-meta,
.admin-note-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-note-row-top strong {
  overflow: hidden;
  font-family: "Syne", sans-serif;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-note-row-top i,
.admin-note-status {
  flex: 0 0 auto;
  padding: 0.25rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-note-row-top .is-active,
.admin-note-status.is-active { border-color: rgba(74, 207, 139, 0.28); color: #83e3b2; }
.admin-note-row-top .is-trashed,
.admin-note-status.is-trashed { border-color: rgba(218, 73, 62, 0.32); color: #f08f87; }
.admin-note-row-top .is-archived,
.admin-note-status.is-archived { border-color: rgba(216, 99, 45, 0.28); color: var(--accent-light); }

.admin-note-owner { justify-content: flex-start; color: var(--accent-light); font-size: 0.7rem; }
.admin-note-owner small { color: var(--text-soft); font-size: 0.59rem; }
.admin-note-excerpt { overflow: hidden; color: var(--text-soft); font-size: 0.72rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.admin-note-row-meta small { color: var(--text-soft); font-size: 0.58rem; }

.admin-note-detail { padding: 1.15rem; }

.admin-note-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-note-detail-head h2 { max-width: 24ch; margin-top: 0.28rem; font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.02; }
.admin-note-detail-head p:last-child { margin: 0.65rem 0 0; color: var(--text-soft); font-size: 0.76rem; }
.admin-note-detail-head p strong { color: var(--text); }
.admin-note-detail-head p small { margin-left: 0.35rem; }

.admin-note-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.admin-note-meta div { padding: 0.65rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; background: rgba(255, 255, 255, 0.018); }
.admin-note-meta dt { color: var(--text-soft); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-note-meta dd { margin: 0.24rem 0 0; font-size: 0.75rem; font-weight: 700; }

.admin-note-content {
  min-height: 17rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(2, 4, 6, 0.62);
}

.admin-note-content > div { margin-top: 0.8rem; color: #d8dade; font-size: 0.88rem; line-height: 1.7; overflow-wrap: anywhere; }

.admin-note-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.7rem; }
.admin-note-lower > section { padding: 0.82rem; border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 12px; background: rgba(255, 255, 255, 0.016); }
.admin-note-lower section > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.58rem; border-bottom: 1px solid var(--line); }
.admin-note-lower section > header > strong { color: var(--accent-light); font-size: 0.72rem; }

.admin-note-people,
.admin-note-history { display: grid; gap: 0.38rem; margin-top: 0.58rem; max-height: 11rem; overflow: auto; }
.admin-note-people article,
.admin-note-history article { display: flex; align-items: center; justify-content: space-between; gap: 0.55rem; padding: 0.5rem 0.58rem; border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.admin-note-people article > div { display: grid; }
.admin-note-people strong,
.admin-note-history strong { font-size: 0.72rem; }
.admin-note-people small,
.admin-note-history small,
.admin-note-history span { color: var(--text-soft); font-size: 0.58rem; }
.admin-note-people article > span { color: var(--accent-light); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.admin-notes-empty { margin: 0.75rem 0 0; color: var(--text-soft); font-size: 0.75rem; }

.admin-note-placeholder { display: grid; place-items: center; min-height: 34rem; align-content: center; text-align: center; }
.admin-note-placeholder > span { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border: 1px solid rgba(216, 99, 45, 0.3); border-radius: 50%; color: var(--accent); font-family: "Syne", sans-serif; font-size: 1.5rem; }
.admin-note-placeholder h2 { margin-top: 1rem; }
.admin-note-placeholder p { max-width: 30rem; color: var(--text-soft); }

@media (max-width: 980px) {
  .admin-notes-workspace { grid-template-columns: 1fr; }
  .admin-notes-list { max-height: 24rem; }
  .admin-note-detail { min-height: 30rem; }
  .admin-notes-filters { grid-template-columns: 1fr 12rem auto auto; }
}

@media (max-width: 700px) {
  .admin-notes-hero { grid-template-columns: 1fr; }
  .admin-notes-seal { display: none; }
  .admin-notes-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-notes-stats article:first-child { grid-column: 1 / -1; }
  .admin-notes-filters { grid-template-columns: 1fr 1fr; }
  .admin-notes-filters label:first-child { grid-column: 1 / -1; }
  .admin-note-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-note-lower { grid-template-columns: 1fr; }
  .admin-note-detail-head { display: grid; }
}

@media (max-width: 460px) {
  .admin-notes-filters { grid-template-columns: 1fr; }
  .admin-notes-filters label:first-child { grid-column: auto; }
  .admin-notes-workspace { min-height: 0; }
  .admin-note-meta { grid-template-columns: 1fr; }
}
