/* 目录树与搜索框复用软件 TreeItem、SidebarSearch 和 LibraryTaxonomyTree 的尺寸与状态。 */
:is(#software-demo, .software-preview) .av-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--text-secondary);
  background: var(--bg-surface);
}
:is(#software-demo, .software-preview) .av-search-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-search {
  height: 28px;
  padding: 0 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  background: var(--bg-elevated);
}
:is(#software-demo, .software-preview) .av-search svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
:is(#software-demo, .software-preview) .av-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 11px;
  font-family: var(--font-sans);
}
:is(#software-demo, .software-preview) .av-search input::placeholder {
  color: var(--text-tertiary);
}
:is(#software-demo, .software-preview) .av-search input::-webkit-search-cancel-button {
  appearance: none;
  display: none;
}
:is(#software-demo, .software-preview) .av-search:focus-within {
  border-color: var(--border-strong);
}
:is(#software-demo, .software-preview) .av-tree {
  padding: 8px 0;
  overflow: auto;
  flex: 1;
  min-height: 0;
  font-size: 12px;
}
:is(#software-demo, .software-preview) .av-tree-label {
  padding: 12px 16px 4px;
  margin: 0;
  font: 500 11px/1.5 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}
:is(#software-demo, .software-preview) .av-tree-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  text-align: left;
  border: 0 !important;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 12px !important;
  line-height: 1.5;
  cursor: pointer;
  position: relative;
  transition: background 0.1s;
}
:is(#software-demo, .software-preview) .av-tree-row:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-tree-row.selected {
  background: var(--bg-active);
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-tree-count {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-tree-branch {
  margin: 0;
  padding: 0;
  border: 0;
}
:is(#software-demo, .software-preview) .av-tree-branch > summary {
  list-style: none;
}
:is(#software-demo, .software-preview) .av-tree-branch > summary::-webkit-details-marker {
  display: none;
}
:is(#software-demo, .software-preview) .av-tree-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit !important;
  color: inherit;
  text-align: left;
  padding: 0 !important;
  min-width: 0;
  flex: 1;
}
:is(#software-demo, .software-preview) .av-tree-row.av-indent {
  padding-left: 32px !important;
}
:is(#software-demo, .software-preview) .av-tree-row.av-indent-2 {
  padding-left: 52px !important;
}
:is(#software-demo, .software-preview) .av-chevron,
:is(#software-demo, .software-preview) .av-chevron-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
:is(#software-demo, .software-preview) .av-chevron {
  margin-right: 2px;
  color: var(--text-tertiary);
  border-radius: 2px;
  transition: transform 0.15s;
}
:is(#software-demo, .software-preview) .av-chevron svg {
  width: 10px;
  height: 10px;
}
:is(#software-demo, .software-preview) .av-tree-icon {
  width: 14px;
  height: 14px;
}
:is(#software-demo, .software-preview) .av-tree-branch[open] > summary > .av-chevron {
  transform: rotate(90deg);
}
:is(#software-demo, .software-preview) .av-taxonomy-tree .av-tree-text {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-cn-serif);
  font-size: 13px;
}
:is(#software-demo, .software-preview) .av-taxonomy-tree > .av-tree-row:first-child {
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-taxonomy-tree > .av-tree-row:first-child .av-tree-text {
  font-weight: 500;
}
:is(#software-demo, .software-preview) .av-taxonomy-tree .av-tree-count {
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-sync-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  padding: 5px 9px !important;
  color: var(--text-secondary, #a69b8b);
}
:is(#software-demo, .software-preview) .av-sync-button svg {
  width: 14px;
  height: 14px;
}
:is(#software-demo, .software-preview) .av-trip-list {
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
:is(#software-demo, .software-preview) .av-month-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 24px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font: 500 13px var(--font-cn-serif);
  color: var(--text-secondary);
}
:is(#software-demo, .software-preview) .av-month-heading small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-trip-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 14px 24px !important;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle) !important;
}
:is(#software-demo, .software-preview) .av-trip-row:hover,
:is(#software-demo, .software-preview) .av-library-row:hover,
:is(#software-demo, .software-preview) .av-species-trip:hover {
  background: rgba(123, 168, 154, 0.045);
}
:is(#software-demo, .software-preview) .av-row-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 88px;
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-row-date strong {
  font: 500 22px/1 var(--font-serif);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-row-date small {
  font: 11px/1.3 var(--font-sans);
  color: var(--text-tertiary);
}
:is(#software-demo, .software-preview) .av-row-place {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:is(#software-demo, .software-preview) .av-row-place > strong {
  font: 500 15px/1.3 var(--font-cn-serif);
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-row-place > small {
  font-size: 11px;
  color: var(--text-tertiary, #837869);
  line-height: 1.8;
}
:is(#software-demo, .software-preview) .av-warning {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid rgba(182, 154, 94, 0.3);
  border-radius: 3px;
  padding: 0 4px;
  color: #b69a5e;
  font-size: 9px;
}
:is(#software-demo, .software-preview) .av-row-count {
  width: 64px;
  padding-right: 16px;
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:is(#software-demo, .software-preview) .av-row-count > strong {
  font: 18px/1 var(--font-serif);
  color: var(--text-primary);
}
:is(#software-demo, .software-preview) .av-row-count > small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-row-sources {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
:is(#software-demo, .software-preview) .av-empty {
  padding: 70px 24px;
  color: var(--text-tertiary, #837869);
  text-align: center;
  font-size: 13px;
}
:is(#software-demo, .software-preview) .av-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--bg-base, #1f1d1b);
  color: var(--text-primary, #eee9e0);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
:is(#software-demo, .software-preview) .av-detail-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-default, #3c352e);
  flex-shrink: 0;
  background: var(--bg-base, #1f1d1b);
}
:is(#software-demo, .software-preview) .av-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text-secondary, #a69b8b);
  font-size: 12px !important;
  padding: 4px 0 !important;
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-back svg {
  width: 14px;
  height: 14px;
}
:is(#software-demo, .software-preview) .av-trip-crumb {
  font-size: 12px;
  color: var(--text-secondary, #a69b8b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#software-demo, .software-preview) .av-trip-crumb > span {
  padding: 0 5px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-source-seg {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: var(--bg-elevated, #2b2722);
  padding: 2px;
  border-radius: 5px;
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-source-seg button {
  padding: 4px 8px !important;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-tertiary, #837869);
  font-size: 10px !important;
  white-space: nowrap;
}
:is(#software-demo, .software-preview) .av-source-seg button.active {
  background: var(--bg-base, #1f1d1b);
  color: var(--text-primary, #eee9e0);
}
:is(#software-demo, .software-preview) .av-source-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #7ba89a);
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-source-dot.ebird {
  background: #c8994c;
}
:is(#software-demo, .software-preview) .av-source-dot.birdreport {
  background: #709eaf;
}
:is(#software-demo, .software-preview) .av-detail-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
:is(#software-demo, .software-preview) .av-trip-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 40px 28px;
  border-bottom: 1px solid var(--border-default, #3c352e);
}
:is(#software-demo, .software-preview) .av-big-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
:is(#software-demo, .software-preview) .av-big-date > strong {
  font: 36px var(--font-serif, Georgia, serif);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
:is(#software-demo, .software-preview) .av-big-date > small {
  font-size: 12px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-trip-heading {
  min-width: 0;
}
:is(#software-demo, .software-preview) .av-trip-heading h2 {
  font: 20px var(--font-cn-serif, serif);
  margin: 0 0 5px;
  line-height: 1.3;
}
:is(#software-demo, .software-preview) .av-trip-heading p {
  font-size: 12px;
  color: var(--text-secondary, #a69b8b);
  margin: 0 0 7px;
}
:is(#software-demo, .software-preview) .av-trip-heading .av-time {
  margin-top: 8px;
}
:is(#software-demo, .software-preview) .av-header-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
:is(#software-demo, .software-preview) .av-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-default, #3c352e);
}
:is(#software-demo, .software-preview) .av-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-subtle, #35302b);
}
:is(#software-demo, .software-preview) .av-stats > div:last-child {
  border-right: 0;
}
:is(#software-demo, .software-preview) .av-stats strong {
  font: 28px var(--font-serif, Georgia, serif);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
:is(#software-demo, .software-preview) .av-stats small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-observation-list {
  padding: 0 40px 30px;
}
:is(#software-demo, .software-preview) .av-observation-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
:is(#software-demo, .software-preview) .av-observation-index {
  width: 28px;
  flex-shrink: 0;
  text-align: right;
  color: var(--text-disabled);
  font: 12px var(--font-serif);
  font-variant-numeric: tabular-nums;
}
:is(#software-demo, .software-preview) .av-observation-row > img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-observation-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:is(#software-demo, .software-preview) .av-species-name {
  font: 500 14px/1.25 var(--font-cn-serif) !important;
  padding: 0 !important;
  color: var(--text-primary);
  text-align: left;
}
:is(#software-demo, .software-preview) .av-species-name:hover {
  color: var(--accent, #7ba89a);
  text-decoration: underline;
}
:is(#software-demo, .software-preview) .av-latin {
  font-style: italic;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 12px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-observation-count {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
:is(#software-demo, .software-preview) .av-observation-count > strong {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  min-height: 20px;
  font: 16px var(--font-serif);
  color: var(--text-secondary);
}
:is(#software-demo, .software-preview) .av-observation-count > strong > small {
  font: 11px var(--font-sans);
  color: var(--text-tertiary);
  margin-right: 2px;
}
:is(#software-demo, .software-preview) .av-diff-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 9.5px/1 var(--font-sans) !important;
  border: 1px solid var(--warning-border) !important;
  padding: 1px 5px !important;
  border-radius: 3px;
  color: var(--warning);
  background: var(--warning-bg);
  margin-top: 2px;
}
:is(#software-demo, .software-preview) .av-source-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-secondary);
}
:is(#software-demo, .software-preview) .av-source-values > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
:is(#software-demo, .software-preview) .av-source-values strong {
  font-weight: 400;
}
:is(#software-demo, .software-preview) .av-taxon-label {
  font-size: 12px;
  color: var(--text-secondary, #a69b8b);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
:is(#software-demo, .software-preview) .av-taxon-label em {
  font: italic 12px var(--font-serif, Georgia, serif);
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-library {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
  container-name: archive-library;
}
:is(#software-demo, .software-preview) .av-library-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
:is(#software-demo, .software-preview) .av-library-header,
:is(#software-demo, .software-preview) .av-library-row {
  display: grid;
  grid-template-columns: 56px minmax(150px, 1fr) 156px 92px 92px 56px 56px 108px;
  column-gap: 16px;
  align-items: center;
  padding: 0 24px;
}
:is(#software-demo, .software-preview) .av-library-header {
  min-height: 34px;
  border-bottom: 1px solid var(--border-default, #3c352e);
  font-size: 10px;
  color: var(--text-tertiary, #837869);
  flex-shrink: 0;
}
:is(#software-demo, .software-preview) .av-library-header button {
  font: inherit !important;
  color: inherit;
  padding: 0 !important;
  text-align: left;
}
:is(#software-demo, .software-preview) .av-library-row {
  width: 100%;
  padding: 14px 24px !important;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle, #35302b) !important;
  min-height: 84px;
}
:is(#software-demo, .software-preview) .av-library-row > img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
}
:is(#software-demo, .software-preview) .av-library-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
:is(#software-demo, .software-preview) .av-library-name > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
:is(#software-demo, .software-preview) .av-library-name strong {
  font: 16px var(--font-cn-serif, serif);
  color: var(--text-primary, #eee9e0);
  white-space: nowrap;
}
:is(#software-demo, .software-preview) .av-library-name small {
  font-size: 10px;
  color: var(--text-secondary, #a69b8b);
}
:is(#software-demo, .software-preview) .av-library-name em {
  font: italic 12px var(--font-serif, Georgia, serif);
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-library-row .av-col-taxonomy {
  font-size: 11px;
  color: var(--text-secondary, #a69b8b);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
:is(#software-demo, .software-preview) .av-library-row .av-col-taxonomy small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-library-row .av-col-last,
:is(#software-demo, .software-preview) .av-library-row .av-col-first,
:is(#software-demo, .software-preview) .av-library-row .av-col-observations,
:is(#software-demo, .software-preview) .av-library-row .av-col-photos {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
:is(#software-demo, .software-preview) .av-library-row .av-col-last strong,
:is(#software-demo, .software-preview) .av-library-row .av-col-first strong {
  font: 16px var(--font-serif, Georgia, serif);
  font-variant-numeric: tabular-nums;
}
:is(#software-demo, .software-preview) .av-library-row .av-col-last small,
:is(#software-demo, .software-preview) .av-library-row .av-col-first small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-col-observations,
:is(#software-demo, .software-preview) .av-col-photos {
  text-align: right;
}
:is(#software-demo, .software-preview)
  .av-library-row
  .av-col-observations
  strong,
:is(#software-demo, .software-preview) .av-library-row .av-col-photos strong {
  font: 20px var(--font-serif, Georgia, serif);
}
:is(#software-demo, .software-preview)
  .av-library-row
  .av-col-observations
  small,
:is(#software-demo, .software-preview) .av-library-row .av-col-photos small {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-sparkline {
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
:is(#software-demo, .software-preview) .av-sparkline i {
  flex: 1;
  min-height: 2px;
  border-radius: 1px;
  background: var(--bg-elevated);
  position: relative;
}
:is(#software-demo, .software-preview) .av-sparkline i.has-records {
  background: var(--accent);
  opacity: 0.7;
}
:is(#software-demo, .software-preview) .av-folded {
  display: none;
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-species-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
:is(#software-demo, .software-preview) .av-species-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 48px;
  padding: 10px 40px;
  background: rgba(31, 29, 27, 0.88);
  backdrop-filter: blur(16px);
}
:is(#software-demo, .software-preview) .av-taxonomy-crumb {
  margin-left: auto;
}
:is(#software-demo, .software-preview) .av-species-hero {
  height: 460px;
  position: relative;
  isolation: isolate;
}
:is(#software-demo, .software-preview) .av-species-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  position: absolute;
  inset: 0;
  z-index: -2;
}
:is(#software-demo, .software-preview) .av-species-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 18 16 / 95%) 0%, rgb(20 18 16 / 30%) 50%, transparent 100%);
  z-index: -1;
}
:is(#software-demo, .software-preview) .av-reference-links {
  position: absolute;
  top: 24px;
  left: 60px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
:is(#software-demo, .software-preview) .av-reference-links a {
  font: 12px var(--font-sans);
  color: rgb(245 241 234 / 60%);
  text-decoration: none;
}
:is(#software-demo, .software-preview) .av-reference-links a:hover {
  color: #f5f1ea;
}
:is(#software-demo, .software-preview) .av-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 60px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
:is(#software-demo, .software-preview) .av-hero-taxonomy {
  margin: 0 0 14px;
  font: 11px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(245 241 234 / 55%);
}
:is(#software-demo, .software-preview) .av-hero-taxonomy span {
  margin: 0 2px;
}
:is(#software-demo, .software-preview) .av-hero-content h2 {
  font: 500 64px/1 var(--font-cn-serif);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: #f5f1ea;
}
:is(#software-demo, .software-preview) .av-hero-latin {
  font: italic 22px var(--font-serif);
  margin: 0 0 4px;
  color: rgb(245 241 234 / 60%);
}
:is(#software-demo, .software-preview) .av-hero-english {
  font: 14px var(--font-sans);
  color: rgb(245 241 234 / 45%);
  letter-spacing: 0.02em;
  margin: 0;
}
:is(#software-demo, .software-preview) .av-status-chip {
  display: inline-flex;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(96, 198, 89, 0.38);
  border-radius: 3px;
  padding: 3px 8px;
  background: rgba(96, 198, 89, 0.14);
  color: #74cd6e;
  white-space: nowrap;
}
:is(#software-demo, .software-preview) .av-species-body {
  padding: 40px 60px 60px;
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
:is(#software-demo, .software-preview) .av-section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
:is(#software-demo, .software-preview) .av-section-title h3 {
  font: 18px var(--font-cn-serif, serif);
  margin: 0;
  color: var(--text-primary, #eee9e0);
}
:is(#software-demo, .software-preview) .av-section-title::after {
  content: "";
  height: 1px;
  background: var(--border-subtle, #35302b);
  flex: 1;
}
:is(#software-demo, .software-preview) .av-section-title > span {
  font-size: 10px;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-species-stats {
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}
:is(#software-demo, .software-preview) .av-species-stats > div {
  align-items: flex-start;
  padding: 20px 24px;
  gap: 0;
  border: 0;
  background: var(--bg-base);
}
:is(#software-demo, .software-preview) .av-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
:is(#software-demo, .software-preview) .av-featured-grid > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}
:is(#software-demo, .software-preview) .av-species-trip {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--border-subtle, #35302b) !important;
  text-align: left;
}
:is(#software-demo, .software-preview) .av-species-trip .av-row-date {
  width: 88px;
}
:is(#software-demo, .software-preview) .av-species-trip .av-row-date strong {
  font-size: 22px;
}
:is(#software-demo, .software-preview) .av-species-trip-place {
  flex: 1;
  font-size: 13px;
  min-width: 0;
}
:is(#software-demo, .software-preview) .av-species-trip-count {
  width: 48px;
  font: 18px var(--font-serif, Georgia, serif);
  text-align: right;
}
@container archive-library (max-width:1100px) {
  :is(#software-demo, .software-preview) .av-library-header,
  :is(#software-demo, .software-preview) .av-library-row {
    grid-template-columns: 56px minmax(150px, 1fr) 156px 92px 92px 56px 56px;
  }
  :is(#software-demo, .software-preview) .av-col-activity {
    display: none;
  }
}
@container archive-library (max-width:1000px) {
  :is(#software-demo, .software-preview) .av-library-header,
  :is(#software-demo, .software-preview) .av-library-row {
    grid-template-columns: 56px minmax(150px, 1fr) 156px 92px 56px 56px;
  }
  :is(#software-demo, .software-preview) .av-col-first {
    display: none !important;
  }
  :is(#software-demo, .software-preview) .av-folded-first {
    display: block;
  }
}
@container archive-library (max-width:900px) {
  :is(#software-demo, .software-preview) .av-library-header,
  :is(#software-demo, .software-preview) .av-library-row {
    grid-template-columns: 56px minmax(150px, 1fr) 156px 92px 56px;
  }
  :is(#software-demo, .software-preview) .av-col-photos {
    display: none !important;
  }
  :is(#software-demo, .software-preview) .av-folded-photos {
    display: block;
  }
}
@container archive-library (max-width:820px) {
  :is(#software-demo, .software-preview) .av-library-header,
  :is(#software-demo, .software-preview) .av-library-row {
    grid-template-columns: 56px minmax(150px, 1fr) 156px 56px;
  }
  :is(#software-demo, .software-preview) .av-col-last {
    display: none !important;
  }
  :is(#software-demo, .software-preview) .av-folded-last {
    display: block;
  }
}
@container archive-library (max-width:630px) {
  :is(#software-demo, .software-preview) .av-library-header,
  :is(#software-demo, .software-preview) .av-library-row {
    grid-template-columns: 56px minmax(120px, 1fr) 40px;
    column-gap: 12px;
    padding-inline: 16px !important;
  }
  :is(#software-demo, .software-preview) .av-col-taxonomy {
    display: none !important;
  }
}
@container software-demo (max-width: 760px) {
  :is(#software-demo, .software-preview) .av-trip-list {
    padding-inline: 12px;
  }
  :is(#software-demo, .software-preview) .av-trip-row {
    gap: 12px;
    padding-block: 18px !important;
    flex-wrap: wrap;
  }
  :is(#software-demo, .software-preview) .av-trip-row .av-row-sources {
    margin-left: 82px;
    width: auto;
    justify-content: flex-start;
  }
  :is(#software-demo, .software-preview) .av-row-place > strong {
    font-size: 14px;
  }
  :is(#software-demo, .software-preview) .av-detail-bar {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  :is(#software-demo, .software-preview) .av-trip-crumb {
    display: none;
  }
  :is(#software-demo, .software-preview) .av-source-seg {
    margin-left: auto;
  }
  :is(#software-demo, .software-preview) .av-source-seg button {
    font-size: 9px !important;
    padding: 4px 5px !important;
  }
  :is(#software-demo, .software-preview) .av-trip-header {
    padding: 24px 18px;
    gap: 18px;
  }
  :is(#software-demo, .software-preview) .av-big-date > strong {
    font-size: 30px;
  }
  :is(#software-demo, .software-preview) .av-trip-heading h2 {
    font-size: 18px;
  }
  :is(#software-demo, .software-preview) .av-observation-list {
    padding-inline: 14px;
  }
  :is(#software-demo, .software-preview) .av-observation-row {
    gap: 10px;
  }
  :is(#software-demo, .software-preview) .av-observation-index {
    width: 16px;
  }
  :is(#software-demo, .software-preview) .av-observation-row > img {
    width: 40px;
    height: 40px;
  }
  :is(#software-demo, .software-preview) .av-observation-count {
    width: 78px;
  }
  :is(#software-demo, .software-preview) .av-source-values {
    min-width: 0;
    width: 100%;
    font-size: 10px;
    padding-left: 6px;
  }
  :is(#software-demo, .software-preview) .av-source-values > div {
    gap: 8px;
  }
  :is(#software-demo, .software-preview) .av-species-bar {
    padding-inline: 18px;
  }
  :is(#software-demo, .software-preview) .av-taxonomy-crumb {
    font-size: 10px;
    max-width: 55%;
    text-align: right;
  }
  :is(#software-demo, .software-preview) .av-species-hero {
    height: 330px;
  }
  :is(#software-demo, .software-preview) .av-reference-links {
    left: 20px;
    top: 16px;
  }
  :is(#software-demo, .software-preview) .av-reference-links a {
    font-size: 10px;
  }
  :is(#software-demo, .software-preview) .av-hero-content {
    padding: 32px 24px 25px;
    gap: 10px;
  }
  :is(#software-demo, .software-preview) .av-hero-content h2 {
    font-size: 42px;
  }
  :is(#software-demo, .software-preview) .av-hero-latin {
    font-size: 20px;
  }
  :is(#software-demo, .software-preview) .av-hero-english {
    font-size: 14px;
  }
  :is(#software-demo, .software-preview) .av-hero-taxonomy {
    font-size: 10px;
  }
  :is(#software-demo, .software-preview) .av-hero-taxonomy span {
    padding-inline: 4px;
  }
  :is(#software-demo, .software-preview) .av-status-chip {
    font-size: 9px;
    padding: 4px;
  }
  :is(#software-demo, .software-preview) .av-species-body {
    padding: 28px 20px 40px;
    gap: 32px;
  }
  :is(#software-demo, .software-preview) .av-species-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#software-demo, .software-preview) .av-species-stats > div {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle, #35302b);
  }
  :is(#software-demo, .software-preview) .av-species-stats > div:nth-child(2) {
    border-right: 0;
  }
  :is(#software-demo, .software-preview) .av-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  :is(#software-demo, .software-preview) .av-species-trip {
    gap: 12px;
    flex-wrap: wrap;
  }
  :is(#software-demo, .software-preview) .av-species-trip .av-row-date {
    width: 56px;
  }
  :is(#software-demo, .software-preview) .av-species-trip .av-row-sources {
    margin-left: 68px;
    width: auto;
    justify-content: flex-start;
  }
}
:is(#software-demo, .software-preview) .av-status-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
:is(#software-demo, .software-preview) .av-status-chip.neutral {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
}
:is(#software-demo, .software-preview) .av-aliases {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 24px;
  margin: 0;
}
:is(#software-demo, .software-preview) .av-aliases dt,
:is(#software-demo, .software-preview) .av-aliases dd {
  padding: 13px 0 12px;
  margin: 0;
  border-bottom: 1px solid var(--border-subtle, #35302b);
}
:is(#software-demo, .software-preview) .av-aliases dt {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, #837869);
}
:is(#software-demo, .software-preview) .av-aliases dd {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary, #a69b8b);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
:is(#software-demo, .software-preview) .av-alias-name small {
  font: 8px var(--font-sans, sans-serif);
  letter-spacing: 0.04em;
  color: var(--text-tertiary, #837869);
  margin-left: 7px;
  white-space: nowrap;
}
@container software-demo (max-width: 760px) {
  :is(#software-demo, .software-preview) .av-aliases {
    grid-template-columns: 65px 1fr;
    gap: 0 12px;
  }
  :is(#software-demo, .software-preview) .av-aliases dd {
    font-size: 11px;
  }
}

:is(#software-demo, .software-preview) .av-observed-count {
  font-size: 10px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-right: 4px;
}
:is(#software-demo, .software-preview) .av-observed-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px !important;
  border: 1px solid var(--border-default, #3c352e) !important;
  border-radius: 4px;
  font-size: 11px;
}
:is(#software-demo, .software-preview) .av-observed-filter.selected {
  color: var(--accent-primary, #7ba89a);
}
:is(#software-demo, .software-preview) .av-library-omission {
  height: 24px;
  padding-left: 48px;
  color: var(--text-tertiary, #837869);
  font-size: 22px;
  line-height: 24px;
  border-bottom: 1px solid var(--border-subtle, #35302b);
}
:is(#software-demo, .software-preview) .av-library-row.av-unobserved {
  opacity: 0.5;
}
:is(#software-demo, .software-preview) .av-library-row.av-unobserved:hover {
  opacity: 0.85;
}
:is(#software-demo, .software-preview) .av-unobserved .av-library-name strong {
  font-weight: 400;
}
:is(#software-demo, .software-preview) .av-library-placeholder {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-default);
  border-radius: 3px;
  background: rgb(255 248 232 / 1.2%);
  color: var(--text-disabled);
}
:is(#software-demo, .software-preview) .av-library-placeholder svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
}
:is(#software-demo, .software-preview) .av-species-hero-empty {
  background: var(--bg-elevated, #35302b);
}
:is(#software-demo, .software-preview) .av-empty-section {
  grid-column: 1 / -1;
  padding: 24px 0;
  margin: 0;
  color: var(--text-tertiary, #837869);
  font-size: 12px;
}
:is(#software-demo, .software-preview) .av-export-checkbox {
  width: 16px;
  height: 16px;
  margin-right: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  color: var(--bg-base);
}
:is(#software-demo, .software-preview) .av-export-row.selected {
  background: rgba(123, 168, 154, 0.08);
}

:is(#software-demo, .software-preview) .av-tree-omission {
  padding: 0 14px;
  color: var(--text-tertiary, #837869);
  line-height: 24px;
  font-size: 18px;
}

:is(#software-demo, .software-preview) .av-filter-menu {
  position: relative;
}
:is(#software-demo, .software-preview) .av-filter-menu > summary {
  list-style: none;
  cursor: pointer;
}
:is(#software-demo, .software-preview) .av-filter-menu > summary::-webkit-details-marker {
  display: none;
}
:is(#software-demo, .software-preview) .av-filter-menu[open] > summary {
  background: rgba(255, 255, 255, 0.06);
}
:is(#software-demo, .software-preview) .av-filter-menu svg {
  width: 16px;
  height: 16px;
}
:is(#software-demo, .software-preview) .av-filter-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 276px;
  max-width: calc(100vw - 16px);
  padding: 14px;
  z-index: 30;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-dropdown, 0 8px 32px rgb(0 0 0 / 35%));
}
:is(#software-demo, .software-preview) .av-filter-option {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px !important;
  font: 500 11px var(--font-sans) !important;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-default) !important;
  border-radius: 3px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* 使用软件来源差异面板、EmptyCard、FilterBar 与保护等级提示的样式。 */
:is(#software-demo, .software-preview) .av-source-tag {
  font: 500 10px/1.5 var(--font-sans);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgb(255 248 232 / 16%);
  background: rgb(255 248 232 / 5%);
  color: #b7b0a6;
}
:is(#software-demo, .software-preview) .av-source-tag.ebird {
  color: #d9a05b;
  background: rgb(232 163 61 / 14%);
  border-color: rgb(232 163 61 / 38%);
}
:is(#software-demo, .software-preview) .av-source-tag.birdreport {
  color: #5fb8dc;
  background: rgb(42 170 225 / 14%);
  border-color: rgb(42 170 225 / 38%);
}
:is(#software-demo, .software-preview) .av-sparkline i.hot { opacity: 1; }
:is(#software-demo, .software-preview) .av-species-stats small {
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
:is(#software-demo, .software-preview) .av-species-stats strong { line-height: 1; }
:is(#software-demo, .software-preview) .av-species-stats .av-value-date { font-size: 18px; }
:is(#software-demo, .software-preview) .av-species-body .av-section-title h3 { font-size: 22px; font-weight: 500; }
:is(#software-demo, .software-preview) .av-empty-card {
  grid-column: 1 / -1;
  border: 1px dashed var(--border-default);
  border-radius: 8px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: rgb(255 248 232 / 1.5%);
}
:is(#software-demo, .software-preview) .av-empty-card > svg {
  width: 32px;
  height: 32px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  stroke-width: 1.3;
}
:is(#software-demo, .software-preview) .av-empty-title { font: 16px var(--font-cn-serif); color: var(--text-secondary); }
:is(#software-demo, .software-preview) .av-empty-description { font-size: 12px; color: var(--text-tertiary); max-width: 400px; line-height: 1.6; }
:is(#software-demo, .software-preview) .av-status-wrap { position: relative; display: inline-flex; }
:is(#software-demo, .software-preview) .av-status-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: none;
  background: rgb(46 42 38 / 95%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-tooltip);
  z-index: 30;
}
:is(#software-demo, .software-preview) .av-status-wrap:hover .av-status-tooltip,
:is(#software-demo, .software-preview) .av-status-wrap:focus-within .av-status-tooltip { display: block; }
:is(#software-demo, .software-preview) .av-export-row.selected .av-export-checkbox { background: var(--accent); border-color: var(--accent); }
:is(#software-demo, .software-preview) .av-filter-title { font: 13px var(--font-cn-serif); margin-bottom: 12px; }
:is(#software-demo, .software-preview) .av-filter-group-label { font: 500 11px var(--font-sans); letter-spacing: 0.04em; color: var(--text-secondary); margin-bottom: 10px; }
:is(#software-demo, .software-preview) .av-filter-option.selected { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-border-strong) !important; }
:is(#software-demo, .software-preview) .av-library-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 36px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
:is(#software-demo, .software-preview) .av-filter-axis-label { font-size: 11px; color: var(--text-tertiary); }
:is(#software-demo, .software-preview) .av-filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-active); font-size: 11px; }
:is(#software-demo, .software-preview) .av-filter-remove { padding: 0 !important; color: var(--text-tertiary); font-size: 12px !important; }
:is(#software-demo, .software-preview) .av-filter-result { margin-left: auto; font-size: 12px; color: var(--text-tertiary); }
:is(#software-demo, .software-preview) .av-filter-clear { padding: 0 !important; font-size: 11px !important; color: var(--accent); }

:is(#software-demo, .software-preview) .av-tree-text { flex: 1; min-width: 0; }
:is(#software-demo, .software-preview) .av-export-button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500;
  border: 1px solid var(--accent-border-strong) !important;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent);
}
:is(#software-demo, .software-preview) .av-export-button.secondary {
  border-color: var(--border-default) !important;
  background: transparent;
  color: var(--text-secondary);
}
:is(#software-demo, .software-preview) .av-export-button:hover { background: var(--bg-hover); }
:is(#software-demo, .software-preview) .av-export-button:disabled { opacity: 0.5; cursor: not-allowed; }

:is(#software-demo, .software-preview) .av-observation-name > .av-latin { font-size: 11px; margin-top: 1px; }
:is(#software-demo, .software-preview) .av-observation-row > img { border: 1px solid var(--border-subtle); }
:is(#software-demo, .software-preview) .av-source-values { width: 100%; }
:is(#software-demo, .software-preview) .av-export-checkbox svg { width: 12px; height: 12px; }
:is(#software-demo, .software-preview) .av-export-button svg { width: 14px; height: 14px; }
