.persistence-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.live-toolbar .field {
  flex: 1;
  min-width: 230px;
}

.live-toolbar .select {
  min-width: 150px;
}

.toolbar .select {
  min-width: 150px;
}

.filter-row {
  margin: 0 0 18px;
}

.section-spaced {
  margin: 24px 0 14px;
}

.search {
  position: relative;
}

.global-results {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 40;
  display: none;
  width: min(440px, calc(100vw - 30px));
  padding: 7px;
  box-shadow: 0 20px 42px color-mix(in oklch, var(--fg) 10%, transparent);
}

.global-results.open {
  display: block;
}

.global-hit {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--fg);
  border-radius: 10px;
  text-decoration: none;
}

.global-hit:hover {
  background: var(--surface-hover);
}

.global-hit div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.global-hit strong,
.global-hit small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-hit small,
.global-empty {
  color: var(--muted);
  font-size: 12px;
}

.global-empty {
  padding: 12px;
}

.live-hive {
  position: relative;
  border-top: 3px solid var(--hive-accent);
}

.live-hive .hive-glyph {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  place-items: center;
  color: var(--hive-accent);
  background: color-mix(in oklch, var(--hive-accent) 12%, var(--surface));
  border-radius: 11px 11px 11px 4px;
  font-family: var(--font-body);
  font-size: 16px;
}

.create-hive {
  min-height: 194px;
  text-align: left;
  border-style: dashed;
  background: color-mix(in oklch, var(--surface) 74%, transparent);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.mini-btn.danger {
  color: var(--danger);
}

.empty-copy {
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.data-stat strong {
  display: block;
  margin-bottom: 7px;
  font-size: 30px;
  font-family: var(--font-display);
}

.data-stat span {
  color: var(--muted);
  font-size: 13px;
}

.document-title {
  display: grid;
  gap: 12px;
  padding-bottom: 17px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.document-title input {
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
}

.editor-warning {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.dialog.wide {
  width: min(680px, calc(100vw - 30px));
}

.dialog .two-col {
  margin-bottom: 15px;
}

html[data-density="compact"] .hive-card,
html[data-density="compact"] .panel-pad,
html[data-density="compact"] .list-card {
  padding-top: 14px;
  padding-bottom: 14px;
}

html[data-density="spacious"] .hive-card,
html[data-density="spacious"] .panel-pad {
  padding-top: 27px;
  padding-bottom: 27px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 17px;
  height: 17px;
}

.tag-remove {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .live-toolbar .field,
  .live-toolbar .select {
    min-width: 100%;
  }

  .item-actions {
    gap: 5px;
  }

  .live-stats {
    grid-template-columns: 1fr;
  }
}
