.nc-demo {
  --nc-ink: #29242d;
  --nc-muted: #645e64;
  --nc-rule: #e1dcd5;
  width: 100%;
  margin-inline: auto;
  color: var(--nc-ink);
  font-family: var(--font-sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-align: left;
  scroll-margin-top: 24px;
}
.nc-demo *,
.nc-demo *::before,
.nc-demo *::after { box-sizing: border-box; }
.nc-demo [hidden] { display: none !important; }
.nc-demo .nc-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.nc-demo .nc-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nc-demo button { font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
.nc-demo button:focus-visible,
.nc-demo input:focus-visible { outline: 2px solid #8254a9; outline-offset: 2px; }
.nc-frame {
  overflow: hidden;
  border: 1px solid #d8d0c6;
  border-radius: 17px;
  background: #faf9f6;
  box-shadow: 0 3px 8px #352a2110, 0 20px 52px -22px #382c2330;
}
.nc-topbar {
  display: flex;
  align-items: center;
  height: 57px;
  gap: 27px;
  padding: 0 clamp(17px, 3.5vw, 35px);
  border-bottom: 1px solid var(--nc-rule);
  background: #fffdfa;
}
.nc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -.055em;
}
.nc-brand img { display: block; width: 26px; height: 26px; }
.nc-current {
  display: inline-flex;
  position: relative;
  align-self: stretch;
  align-items: center;
  gap: 6px;
  padding-inline: 2px;
  color: #39323a;
  font-size: 13px;
  font-weight: 650;
}
.nc-demo .nc-current .nc-icon { width: 14px; height: 14px; }
.nc-current::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f88370;
  border-radius: 3px 3px 0 0;
}
.nc-sample {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border: 1px solid #e5d7c9;
  border-radius: 999px;
  padding: 4px 10px;
  color: #6e5146;
  background: #fcf5ed;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.nc-panel { padding: clamp(18px, 3.2vw, 32px) clamp(17px, 3.5vw, 35px) 18px; }
.nc-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nc-heading h2 {
  margin: 0;
  color: var(--nc-ink);
  font-family: inherit;
  font-size: clamp(26px, 3vw, 33px);
  line-height: 1.15;
  letter-spacing: -.055em;
  font-weight: 710;
}
.nc-heading p { margin: 4px 0 0; color: var(--nc-muted); font-size: 13px; line-height: 1.45; }
.nc-search {
  display: inline-flex;
  width: min(290px, 44%);
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #d8d2cb;
  border-radius: 7px;
  background: #fffefd;
  color: #6a6266;
}
.nc-search:focus-within { outline: 2px solid #8254a9; outline-offset: 2px; }
.nc-search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 0;
  padding: 0;
  color: var(--nc-ink);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
}
.nc-search input::placeholder { color: #686167; opacity: 1; }
.nc-demo .nc-search input:focus-visible { outline: none; }
.nc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 14px; }
.nc-filters, .nc-views { display: inline-flex; align-items: center; }
.nc-filters { gap: 3px; }
.nc-demo .nc-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 33px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5b5359;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 550;
  white-space: nowrap;
}
.nc-demo .nc-filter[aria-pressed="true"] { border-color: #efd5c9; background: #fbe6db; color: #633e36; }
.nc-demo .nc-filter:hover { background: #f2ece6; }
.nc-demo .nc-filter .nc-icon { width: 14px; height: 14px; }
.nc-views { gap: 1px; border: 1px solid #ded9d2; border-radius: 7px; padding: 2px; background: #efede9; }
.nc-views button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #706971;
  background: transparent;
}
.nc-views button[aria-pressed="true"] { color: var(--nc-ink); border-color: #ddd8d2; background: #fff; box-shadow: 0 1px 2px #2a242411; }
.nc-views button:hover { color: var(--nc-ink); }
.nc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nc-card {
  --nc-card: #fffdfa;
  --nc-tint: #7b6c67;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dad5cf;
  border-radius: 11px;
  background: var(--nc-card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nc-card:hover { border-color: #a99d94; box-shadow: 0 3px 9px #44312d0c; }
.nc-card:has(.nc-open:focus-visible) { outline: 2px solid #8254a9; outline-offset: 2px; }
.nc-lilac { --nc-card: #efebf8; --nc-tint: #716080; border-color: #dcd5e6; }
.nc-mint { --nc-card: #e7f0e7; --nc-tint: #547359; border-color: #d0dfd1; }
.nc-sand { --nc-card: #f6efdf; --nc-tint: #796644; border-color: #e5d9c1; }
.nc-peach { --nc-card: #fae8de; --nc-tint: #865a47; border-color: #e6d1c5; }
.nc-photo { display: block; width: 100%; aspect-ratio: 2.1; height: auto; object-fit: cover; background: #e1daca; }
.nc-card-main { flex: 1; min-width: 0; padding: 15px 17px 16px; }
.nc-card-top { display: flex; align-items: center; min-height: 18px; margin-bottom: 8px; }
.nc-type { display: inline-flex; align-items: center; gap: 5px; color: #716671; font-size: 12px; font-weight: 600; }
.nc-demo .nc-type .nc-icon { width: 13px; height: 13px; }
.nc-card:not(.nc-image) .nc-card-main { padding-top: 18px; }
.nc-card:not(.nc-image) .nc-type { color: var(--nc-tint); }
.nc-card:not(.nc-image) .nc-card-top { margin-bottom: 22px; }
.nc-card h3 {
  margin: 0;
  color: var(--nc-ink);
  font-family: inherit;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 690;
  letter-spacing: -.045em;
  line-height: 1.22;
}
.nc-demo .nc-open {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.nc-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nc-demo .nc-open:focus-visible { outline: none; }
.nc-excerpt { margin: 8px 0 0; color: #60575d; font-size: 13px; line-height: 1.48; }
.nc-rows { list-style: none; padding: 0; margin: 16px 0 4px; }
.nc-rows li { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 7px 0; font-size: 14px; line-height: 1.5; color: #443c47; }
.nc-rows li + li { border-top: 1px solid #4b355b20; }
.nc-rows li span { flex: none; min-width: 3ch; color: var(--nc-tint); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.nc-demo .nc-fav {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #5d465318;
  border-radius: 50%;
  color: #655a64;
  background: #fffdf8ee;
}
.nc-card:not(.nc-image) .nc-fav { border-color: transparent; background: transparent; color: var(--nc-tint); }
.nc-demo .nc-fav:hover { border-color: #8f7975; }
.nc-demo .nc-fav[aria-pressed="true"] { color: #76431e; background: #fff5d9; }
.nc-fav[aria-pressed="true"] .nc-icon { fill: #f5ba64; }
.nc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid #57445622;
  color: #675e67;
  font-size: 12px;
  line-height: 1.4;
}
.nc-meta span:first-child { display: flex; align-items: center; gap: 5px; }
.nc-meta span:last-child { white-space: nowrap; }
.nc-demo .nc-meta .nc-icon { width: 13px; height: 13px; }
.nc-more-wrap { display: flex; justify-content: center; margin-top: 12px; }
.nc-demo .nc-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 8px 12px;
  border-radius: 7px;
  background: transparent;
  color: #5e535b;
  font-size: 13px;
  font-weight: 600;
}
.nc-more:hover { text-decoration: underline; }
.nc-demo .nc-more .nc-icon { width: 14px; height: 14px; }
.nc-empty { padding: 35px 12px; border: 1px dashed var(--nc-rule); border-radius: 10px; text-align: center; }
.nc-demo .nc-empty > .nc-icon { width: 24px; height: 24px; color: var(--nc-muted); }
.nc-empty h3 { margin: 10px 0 5px; font-family: inherit; font-size: 19px; line-height: 1.3; font-weight: 650; }
.nc-empty p { margin: 0 0 14px; font-size: 14px; }
.nc-demo .nc-reset { border: 1px solid var(--nc-rule); background: #fffdf9; border-radius: 6px; padding: 7px 12px; font-size: 13px; color: var(--nc-ink); }
.nc-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.nc-grid[data-view="list"] { grid-template-columns: 1fr; gap: 7px; }
.nc-grid[data-view="list"] .nc-card { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 16px; min-height: 61px; padding: 8px 12px 8px 16px; }
.nc-grid[data-view="list"] .nc-card-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.nc-grid[data-view="list"] .nc-card-top { margin: 0; min-height: 0; }
.nc-grid[data-view="list"] .nc-photo,
.nc-grid[data-view="list"] .nc-rows,
.nc-grid[data-view="list"] .nc-excerpt { display: none; }
.nc-grid[data-view="list"] h3 { font-size: 16px; }
.nc-grid[data-view="list"] .nc-meta { grid-column: 2; grid-row: 1; border: 0; gap: 12px; padding: 0; }
.nc-grid[data-view="list"] .nc-fav { grid-column: 3; grid-row: 1; position: relative; top: auto; right: auto; justify-self: end; }

.nc-dialog {
  width: min(490px, calc(100% - 32px));
  max-height: 80dvh;
  overflow: auto;
  margin: auto;
  padding: 23px 26px 26px;
  color: var(--nc-ink);
  border: 1px solid #d7cec2;
  border-radius: 14px;
  background: #fffcf6;
  box-shadow: 0 15px 60px #251e2633;
}
.nc-dialog::backdrop { background: #2e253559; }
.nc-dialog-bar { display: flex; align-items: center; justify-content: space-between; color: var(--nc-muted); font-size: 13px; font-weight: 600; }
.nc-demo .nc-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--nc-rule); border-radius: 7px; background: white; color: var(--nc-ink); }
.nc-dialog h3 { margin: 15px 0; font-family: inherit; font-size: 28px; line-height: 1.13; font-weight: 700; letter-spacing: -.045em; }
.nc-dialog-copy { font-size: 15px; line-height: 1.55; }
.nc-dialog-copy h4 { margin: 17px 0 3px; font-size: 15px; line-height: 1.4; }
.nc-dialog-copy p { margin: 5px 0 12px; color: #514954; }
.nc-dialog-copy ul, .nc-dialog-copy ol { padding-left: 1.4em; }
.nc-dialog-copy li { margin: 7px 0; }
@media (max-width: 800px) {
  .nc-grid { gap: 10px; }
  .nc-card-main { padding-inline: 12px; }
  .nc-meta { padding-inline: 12px; }
  .nc-rows li { gap: 7px; font-size: 13px; }
}
@media (max-width: 670px) {
  .nc-frame { border-radius: 12px; }
  .nc-topbar { height: 48px; gap: 16px; padding-inline: 15px; }
  .nc-brand { gap: 6px; font-size: 16px; }
  .nc-brand img { width: 23px; height: 23px; }
  .nc-sample { font-size: 11px; padding: 3px 8px; }
  .nc-panel { padding: 18px 13px 12px; }
  .nc-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .nc-search { width: 100%; }
  .nc-search input { height: 39px; font-size: 16px; }
  .nc-toolbar { gap: 5px; margin-block: 12px; }
  .nc-filters { gap: 1px; }
  .nc-demo .nc-filter { min-height: 34px; font-size: 12px; padding-inline: 7px; }
  .nc-demo .nc-filter .nc-icon { display: none; }
  .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nc-grid[data-view="list"] .nc-card { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
  .nc-grid[data-view="list"] .nc-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .nc-grid[data-view="list"] .nc-fav { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 510px) {
  .nc-current { display: none; }
  .nc-grid { grid-template-columns: 1fr; }
  .nc-card-main { padding: 13px 15px; }
  .nc-card h3 { font-size: 20px; }
  .nc-meta { padding: 9px 15px; }
  .nc-card:not(.nc-image) .nc-card-top { margin-bottom: 8px; }
  .nc-rows { margin-top: 8px; }
  .nc-photo { aspect-ratio: 2.65; }
}
@media (max-width: 365px) {
  .nc-topbar { gap: 10px; }
  .nc-current { font-size: 12px; }
  .nc-demo .nc-current .nc-icon { display: none; }
  .nc-views button { width: 25px; }
  .nc-demo .nc-filter { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-card { transition: none; }
}
