:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172b43;
  background: #f3f5f8;
  font-synthesis: none;
  font-size: 14px;
  --muted: #59697e;
  --primary: #2456a6;
  --border: #c2ccd8;
  --surface: #fff;
  --shadow: 0 3px 18px #25244b04;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
input,
select {
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #2456a6;
}
input,
select {
  min-width: 0;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 10px;
}
.primary,
.secondary {
  border-radius: 8px;
  min-height: 39px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-weight: 550;
  padding: 10px 16px;
  white-space: nowrap;
}
.primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 3px 6px #6255d918;
}
.primary:hover {
  background: #194587;
}
.secondary {
  background: #fff;
  color: #55556e;
  border: 1px solid #e1e1ed;
}
.secondary:hover {
  background: #f7f6ff;
  border-color: #c8c2ec;
}
.text-button {
  background: none;
  border: 0;
  color: #77718e;
  font-size: 12px;
  padding: 6px;
}
.icon-button {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9898a8;
  padding: 8px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #f0eff9;
  color: #6255d9;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 46px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px #6255d925;
}
.brand-dot {
  color: #8675ef;
}
.header-divider {
  height: 22px;
  width: 1px;
  background: var(--border);
}
.header-label {
  font-size: 12px;
  color: #9392a2;
}
.topbar nav {
  margin-left: 40px;
  height: 100%;
  display: flex;
}
.nav-link {
  height: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  position: relative;
}
.nav-link.active {
  color: #6255d9;
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  left: 0;
  right: 0;
  background: #6255d9;
}
.user-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efeafc;
  color: #8b71bc;
  font-size: 13px;
  font-weight: 600;
}
.user-menu strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
}
.user-menu small {
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.search-page {
  max-width: 1780px;
  margin: auto;
  padding: 33px 46px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading > div > p:last-child {
  font-size: 12px;
  color: #9092a2;
  margin-top: 10px;
}
.live-status {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #6c8278;
  font-size: 11px;
  padding: 9px 13px;
  border: 1px solid #e4ebe7;
  background: #f8fbf9;
  border-radius: 8px;
}
.live-status i,
.analyzed-badge i {
  width: 5px;
  height: 5px;
  background: #6ca386;
  border-radius: 100%;
  display: inline-block;
  margin-top: 4px;
}
.live-status small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: #a1aaa5;
}
.upload-banner {
  background: linear-gradient(100deg, #f0eefc, #f6f5fd 72%, #f0effa);
  border: 1px dashed #d3cfee;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 25px;
  border-radius: 11px;
  margin-bottom: 27px;
}
.upload-banner.dragging {
  background: #e7e2ff;
  border-color: #6255d9;
}
.upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #8b7bda;
  background: #e6e0fa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.upload-copy h3 {
  font-size: 15px;
  color: #4b426c;
}
.upload-copy p {
  font-size: 11px;
  color: #9390ac;
  margin-top: 7px;
}
.upload-copy > span {
  font-size: 10px;
  color: #a29cb6;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}
.upload-button {
  margin-left: auto;
  background: #fff9;
  border-color: #d8d1f0;
  color: #6e5cb7;
  font-size: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  border-bottom: 1px solid var(--border);
}
.filter-title h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #56556a;
}
.filter-title h2 svg {
  color: #8e8b9e;
}
.filters details {
  border-bottom: 1px solid #f0eff4;
  padding: 0 17px 15px;
}
.filters details:not([open]) {
  padding-bottom: 0;
}
.filters summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 16px 0;
  cursor: pointer;
  color: #666577;
}
.filters summary::-webkit-details-marker {
  display: none;
}
.filters summary > svg:first-child {
  color: #aaa6b9;
}
.filters summary > svg:last-child {
  margin-left: auto;
  color: #b7b4c2;
  transition: transform 0.2s;
}
.filters details:not([open]) summary > svg:last-child {
  transform: rotate(-90deg);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field > span {
  font-size: 10px;
  color: #8f8c9f;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid #e9e7f0;
  background: #fff;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 11px;
  color: #676277;
  height: 35px;
}
.field input::placeholder {
  color: #b5b1bf;
}
.field input:focus,
.field select:focus {
  border-color: #b1a6e6;
  outline: 2px solid #e5defb;
}
.field input[type="datetime-local"] {
  font-size: 10px;
  padding: 7px;
}
.field input[type="number"] {
  width: 100%;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.preset-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preset-row button {
  font-size: 9px;
  color: #9590aa;
  background: #f8f7fb;
  border: 1px solid #eeecf5;
  border-radius: 4px;
  padding: 5px 6px;
}
.preset-row button:hover {
  color: #6652ad;
  background: #eeebfc;
}
.color-presets {
  display: flex;
  gap: 8px;
}
.color-presets button {
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  display: flex;
}
.color-presets button.selected {
  border-color: #8d79cd;
}
.color-presets i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #00000015;
}
.filter-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
}
.filter-footer .primary {
  font-size: 12px;
  min-height: 40px;
}
.filter-footer .text-button {
  font-size: 10px;
}
.results {
  min-width: 0;
}
.quick-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 7px 8px 7px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.quick-search > svg {
  color: #bab6ca;
}
.quick-search input {
  border: 0;
  flex: 1;
  color: #676277;
  font-size: 12px;
  width: 100%;
  outline: 0;
}
.quick-search input::placeholder {
  color: #aaa6b9;
}
.quick-search .primary {
  font-size: 11px;
  min-height: 33px;
  padding: 8px 14px;
  border-radius: 6px;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.results-toolbar h2 {
  font-size: 16px;
}
.results-toolbar h2 > span {
  font-size: 10px;
  background: #eeeafb;
  color: #8877bd;
  padding: 4px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.results-toolbar p {
  font-size: 10px;
  color: #a5a0b4;
  margin-top: 6px;
}
.results-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-select {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-select select {
  appearance: none;
  background: #fff;
  border: 1px solid #e7e3f0;
  border-radius: 6px;
  font-size: 10px;
  padding: 9px 28px 9px 10px;
  color: #9690a9;
  cursor: pointer;
}
.sort-select svg {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #aaa2b8;
}
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #eeeaf9;
  border: 1px solid #e7e0f6;
  color: #8874b5;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 5px;
}
.result-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.result-card:hover {
  box-shadow: 0 8px 24px #3c2c6f0b;
  transform: translateY(-2px);
}
.card-photo {
  display: block;
  position: relative;
  background: #f0edf4;
  aspect-ratio: 1.38;
  overflow: hidden;
}
.card-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  transition: transform 0.3s;
}
.card-photo:hover > img {
  transform: scale(1.025);
}
.photo-id {
  position: absolute;
  top: 11px;
  left: 11px;
  color: #fff;
  background: #2523328c;
  border: 1px solid #ffffff21;
  backdrop-filter: blur(6px);
  font-size: 9px;
  padding: 5px 7px;
  border-radius: 4px;
}
.analyzed-badge,
.pending-badge {
  position: absolute;
  bottom: 11px;
  left: 11px;
  display: flex;
  gap: 5px;
  align-items: center;
  border-radius: 4px;
  background: #fffef0ed;
  font-size: 8px;
  padding: 5px 7px;
  color: #637d6c;
  box-shadow: 0 1px 3px #0000000b;
}
.pending-badge {
  color: #a28656;
}
.analyzed-badge i {
  margin: 0;
  width: 4px;
  height: 4px;
}
.photo-open {
  position: absolute;
  right: 11px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  background: #ffffffef;
  border-radius: 5px;
  color: #898094;
  display: grid;
  place-items: center;
}
.card-content {
  padding: 16px 16px 0;
}
.person-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #464054;
}
.birth-date {
  font-size: 10px;
  color: #a59daf;
  margin-top: 3px;
  margin-bottom: 15px;
}
.card-meta {
  font-size: 10px;
  color: #9790a3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-meta svg {
  color: #b9b2c3;
  flex-shrink: 0;
}
.card-meta .organization {
  padding-left: 21px;
  font-size: 9px;
  margin-top: -4px;
  color: #b0a9ba;
}
.card-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid #f3f0f7;
  min-height: 33px;
}
.card-contacts {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.card-contacts > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}
.card-contacts dt {
  color: #526277;
}
.card-contacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.object-counts {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #9a8eaa;
  font-size: 12px;
}
.object-counts > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.object-counts em {
  font-style: normal;
  font-size: 11px;
}
.compact .object-counts {
  gap: 12px;
  font-size: 10px;
}
.compact em {
  display: none;
}
.compact svg {
  width: 12px;
  height: 12px;
  color: #b0a5bd;
}
.clothing-chip {
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #a59aae;
  background: #f9f6fb;
  padding: 4px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid #00000015;
}
.card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  border-top: 1px solid #f4f1f8;
  padding: 10px 0;
  color: #a693ba;
  font-size: 9px;
}
.no-photo {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #c1b9cf;
  background: linear-gradient(140deg, #f4f1f8, #ebe8f1);
}
.no-photo span {
  font-size: 10px;
}
.pagination {
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa2b8;
  gap: 10px;
}
.pagination > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pagination .secondary {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 11px;
  color: #988aaa;
}
.site-footer {
  max-width: 1780px;
  margin: 20px auto 0;
  padding: 23px 46px;
  display: flex;
  justify-content: space-between;
  color: #b6afc2;
  font-size: 9px;
  border-top: 1px solid #eae6f0;
}
.site-footer span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.empty-state {
  min-height: 370px;
  background: #fff;
  border: 1px dashed #dfd8ee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  gap: 17px;
  color: #a99bb8;
}
.empty-state h3 {
  color: #71617f;
  font-size: 16px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 460px;
}
.error-text,
.error-state {
  color: #b57077;
}
.skeleton {
  background: linear-gradient(100deg, #f0edf5 25%, #f7f5fa 40%, #f0edf5 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-photo {
  aspect-ratio: 1.38;
}
.skeleton-lines {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.skeleton-lines i {
  height: 11px;
  display: block;
  border-radius: 5px;
}
.skeleton-lines i:nth-child(2) {
  width: 55%;
}
.skeleton-lines i:nth-child(3) {
  width: 78%;
}
.skeleton-lines i:nth-child(4) {
  width: 65%;
  margin-bottom: 40px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  color: #9583b4;
}
.mobile-filter-button,
.mobile-filter-close {
  display: none;
}
.detail-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 46px;
}
.back-link {
  font-size: 12px;
  color: #9a8aae;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.detail-heading > div > p:last-child {
  color: #a596b4;
  font-size: 12px;
  margin-top: 12px;
}
.detail-heading > div > p > span {
  margin: 0 10px;
}
.badge {
  background: #ece7f8;
  color: #9a82b7;
  padding: 8px 11px;
  font-size: 11px;
  border-radius: 6px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 25px;
  align-items: start;
}
.photo-viewer {
  background: #22212c;
  border: 1px solid #3b344b;
  border-radius: 10px;
  overflow: hidden;
}
.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #2c2937;
  gap: 12px;
}
.bbox-toggles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bbox-toggles label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.bbox-toggles input {
  accent-color: #a78ad5;
  margin: 0;
}
.bbox-toggles span {
  opacity: 0.5;
}
.viewer-tools {
  display: flex;
  gap: 3px;
}
.viewer-tools button {
  color: #b1a6c4;
  background: #3a3448;
  border: 0;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.photo-scroll {
  max-height: 75vh;
  overflow: auto;
  display: flex;
  align-items: flex-start;
}
.photo-stage {
  position: relative;
  flex-shrink: 0;
  margin: auto;
  line-height: 0;
}
.photo-stage > img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8e819f;
  padding: 13px;
}
.photo-viewer:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.photo-viewer:fullscreen .photo-scroll {
  max-height: 90vh;
  flex: 1;
}
.photo-viewer:fullscreen .photo-stage {
  max-width: 1200px;
}
.photo-unavailable {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a99ab9;
  gap: 15px;
  border-radius: 10px;
  background: #eeebf5;
  font-size: 13px;
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  padding: 22px;
  background: #fff;
  border: 1px solid #e8e1f0;
  border-radius: 10px;
}
.panel h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  color: #7b6a8d;
  margin-bottom: 20px;
}
.panel h3 > svg {
  color: #b5a5c6;
}
.panel dl {
  margin: 0;
}
.detail-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  padding: 9px 0;
  font-size: 11px;
  border-bottom: 1px solid #f5f1f9;
}
.detail-field:last-child {
  border-bottom: 0;
}
.detail-field dt {
  color: #b0a3bf;
}
.detail-field dd {
  margin: 0;
  color: #82708f;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.detail-field .technical {
  font-family: monospace;
  font-size: 9px;
}
.processing {
  margin-top: 20px;
}
.detected > .eyebrow {
  margin: 22px 0 14px;
}
.object-attributes {
  padding: 14px 0;
  border-bottom: 1px solid #f0eaf7;
}
.object-attributes > strong {
  font-size: 11px;
  color: #9a86ae;
}
.confidence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #ad9aba;
  gap: 9px;
  margin-top: 10px;
}
.confidence > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.confidence-right {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
}
.confidence-track {
  width: 45px;
  height: 3px;
  background: #efe8f7;
  border-radius: 3px;
  overflow: hidden;
}
.confidence-track > i {
  background: #b39acb;
  height: 100%;
  display: block;
}
.detected > small {
  display: block;
  margin-top: 14px;
  font-size: 10px;
}
.detail-loading {
  height: 80vh;
  border-radius: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #211a3a88;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.upload-modal {
  width: min(1100px, 100%);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 20px 100px #17102733;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.modal-header h2 {
  font-size: 20px;
  color: #7b638c;
}
.upload-results {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  align-items: start;
}
.upload-results > .photo-viewer .photo-scroll {
  max-height: 470px;
}
.upload-results > div:last-child {
  max-height: 470px;
  overflow: auto;
  padding: 10px;
}
.face-selection {
  border-top: 1px solid #eee6f6;
  padding: 25px 0;
  margin-top: 25px;
}
.face-selection h3 {
  color: #8b729c;
}
.face-selection p {
  font-size: 11px;
  color: #b5a1c4;
  margin-top: 7px;
  line-height: 1.8;
}
.face-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.face-choice {
  background: #fff;
  border: 2px solid #e8def1;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  width: 100px;
  color: #a48fb8;
}
.face-choice.chosen {
  border-color: #a387c9;
  background: #f8f3ff;
}
.face-choice img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  background: #f4eff8;
}
.face-choice span {
  padding: 8px 5px;
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.upload-actions {
  border-top: 1px solid #eee6f6;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.upload-actions p {
  font-size: 11px;
  color: #af98c1;
  margin-bottom: 9px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.upload-actions .primary {
  font-size: 11px;
}
.upload-progress {
  padding: 25px;
  text-align: center;
  color: #ad98c2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.upload-progress img {
  max-height: 260px;
  max-width: 100%;
  border-radius: 10px;
}
.upload-progress p {
  font-size: 12px;
  line-height: 1.9;
}
.notice {
  padding: 14px;
  background: #f7f2ff;
  border: 1px solid #e9dff7;
  border-radius: 8px;
  color: #a188ba;
  font-size: 12px;
  line-height: 1.8;
}
.apply-notice {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-decoration {
  background: linear-gradient(140deg, #ede9fa, #f4f1fb 65%, #eae3f8);
  padding: 55px 65px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-message {
  margin-top: auto;
  padding-top: 100px;
  position: relative;
  z-index: 1;
}
.login-message h1 {
  font-size: 48px;
  line-height: 1.25;
  color: #67547f;
  letter-spacing: -1.6px;
}
.login-message h1 > span {
  color: #a48bbd;
}
.login-message > p:not(.eyebrow) {
  color: #ac9bbb;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 24px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #ae9ac1;
  margin-top: 30px;
}
.login-decoration > small {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 160px;
  font-size: 10px;
  color: #b4a2c6;
}
.login-art {
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid #d9cdea66;
  border-radius: 50%;
  right: -150px;
  bottom: 30px;
  display: grid;
  place-items: center;
  color: #d2c0e499;
  transform: rotate(-15deg);
}
.login-art > div {
  position: absolute;
  inset: 50px;
  border: 1px solid #d9cdea66;
  border-radius: 50%;
}
.login-art > div:nth-child(2) {
  inset: 100px;
}
.login-art > div:nth-child(3) {
  inset: 150px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  background: #fff;
}
.login-form {
  width: 330px;
  max-width: 85vw;
}
.login-form h2 {
  font-size: 27px;
  color: #705b87;
  margin-bottom: 12px;
}
.login-form > p:not(.eyebrow) {
  font-size: 12px;
  color: #b4a4c1;
  margin-bottom: 35px;
}
.login-form .field {
  margin-bottom: 20px;
  gap: 8px;
}
.login-form .field input {
  height: 43px;
  font-size: 13px;
  padding: 12px;
}
.login-form .field > span {
  font-size: 11px;
}
.login-form .primary {
  width: 100%;
  margin-top: 9px;
  min-height: 43px;
}
.login-form > small {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  margin-top: 24px;
  color: #c0b2ca;
}
.form-error {
  font-size: 12px;
  line-height: 1.6;
  background: #fff4f5;
  color: #b97787;
  border: 1px solid #f4dee4;
  padding: 10px;
  border-radius: 7px;
  margin: 10px 0;
}
@media (min-width: 1700px) {
  .workspace {
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 32px;
  }
  .result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 21px;
  }
  .card-photo {
    aspect-ratio: 1.18;
  }
  .card-content {
    padding: 17px 17px 0;
  }
  .card-meta {
    gap: 9px;
  }
  .person-name {
    font-size: 14px;
  }
  .card-meta > span {
    font-size: 11px;
  }
  .search-page {
    padding-top: 38px;
  }
  .upload-banner {
    padding: 24px 28px;
  }
}
@media (max-width: 1150px) {
  .search-page {
    padding: 28px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding: 22px 25px;
  }
  .login-decoration {
    padding: 45px;
  }
  .login-message h1 {
    font-size: 37px;
  }
  .detail-page {
    padding: 28px 25px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .bbox-toggles {
    gap: 7px;
  }
  .photo-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 65px;
    gap: 15px;
    padding: 0 20px;
  }
  .header-label,
  .header-divider {
    display: none;
  }
  .topbar nav {
    margin-left: 5px;
  }
  .user-menu {
    gap: 8px;
  }
  .user-menu > div > small {
    display: none;
  }
  .search-page {
    padding: 25px 20px 0;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading > div > p:last-child {
    max-width: 250px;
    line-height: 1.7;
  }
  .live-status {
    font-size: 9px;
    padding: 8px;
  }
  .upload-banner {
    gap: 13px;
    padding: 18px;
  }
  .upload-copy p {
    line-height: 1.7;
    max-width: 300px;
  }
  .upload-copy h3 {
    font-size: 13px;
  }
  .upload-button {
    font-size: 10px;
    padding: 10px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 320px;
    max-width: 95vw;
    z-index: 80;
    overflow: auto;
    border-radius: 0;
    box-shadow: 0 0 0 100vw #211a3a66;
  }
  .filter-sidebar.mobile-open {
    display: block;
  }
  .mobile-filter-button {
    display: inline-flex;
    font-size: 10px;
    min-height: 32px;
    padding: 7px 9px;
  }
  .mobile-filter-close {
    display: flex;
    position: absolute;
    top: 8px;
    right: 12px;
  }
  .filter-title {
    padding-right: 53px;
  }
  .pagination > span {
    display: none;
  }
  .pagination {
    justify-content: center;
  }
  .result-grid {
    gap: 16px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-heading {
    align-items: flex-start;
  }
  .detail-heading h1 {
    font-size: 24px;
  }
  .detail-photo .photo-scroll {
    max-height: 70vh;
  }
  .detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .detail-info > .panel:last-child {
    grid-column: 1/-1;
  }
  .detail-info > .panel:last-child .detected {
    max-width: 500px;
  }
  .detail-page {
    padding: 25px 20px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .upload-modal {
    padding: 20px;
  }
  .upload-results {
    grid-template-columns: 1fr;
  }
  .upload-results > div:last-child {
    max-height: 250px;
  }
  .upload-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-decoration {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
  }
  .site-footer {
    padding: 20px;
    font-size: 8px;
  }
  .detail-field {
    grid-template-columns: 95px 1fr;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .page-heading {
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .live-status {
    display: none;
  }
  .upload-banner {
    flex-wrap: wrap;
  }
  .upload-icon {
    width: 42px;
    height: 42px;
  }
  .upload-copy {
    flex: 1;
  }
  .upload-copy p {
    font-size: 10px;
  }
  .upload-copy > span {
    font-size: 9px;
  }
  .upload-button {
    margin-left: 55px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .card-photo {
    aspect-ratio: 1.3;
  }
  .card-content {
    padding: 19px 19px 0;
  }
  .person-name {
    font-size: 16px;
  }
  .card-meta > span {
    font-size: 12px;
  }
  .birth-date {
    font-size: 11px;
  }
  .card-meta .organization {
    font-size: 10px;
  }
  .card-details {
    font-size: 11px;
    padding: 13px 0;
  }
  .card-bottom {
    margin-top: 17px;
  }
  .results-toolbar {
    gap: 8px;
  }
  .results-toolbar h2 {
    font-size: 14px;
  }
  .sort-select select {
    font-size: 9px;
    max-width: 137px;
  }
  .results-controls {
    gap: 3px;
  }
  .results-controls > .icon-button {
    display: none;
  }
  .header-label {
    display: none;
  }
  .topbar {
    padding: 0 18px;
  }
  .topbar nav {
    display: none;
  }
  .quick-search input {
    font-size: 10px;
  }
  .quick-search {
    gap: 7px;
  }
  .quick-search .primary {
    padding: 8px 10px;
    font-size: 10px;
  }
  .detail-info {
    grid-template-columns: 1fr;
  }
  .detail-info > .panel:last-child {
    grid-column: auto;
  }
  .detail-heading {
    flex-direction: column;
    gap: 16px;
  }
  .modal-header h2 {
    font-size: 17px;
  }
  .photo-toolbar {
    gap: 8px;
  }
  .bbox-toggles label {
    font-size: 9px;
  }
  .photo-caption {
    font-size: 9px;
  }
  .site-footer > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Text contrast for long working sessions. */
:root {
  --muted: #737286;
}
.field > span {
  color: #747082;
}
.field input,
.field select {
  color: #4d485b;
}
.field input::placeholder {
  color: #898493;
}
.page-heading > div > p:last-child {
  color: #777486;
}
.upload-copy p {
  color: #80768e;
}
.upload-copy > span {
  color: #85778e;
}
.card-meta {
  color: #71677d;
}
.card-meta .organization {
  color: #82758c;
}
.birth-date {
  color: #83718f;
}
.person-name {
  color: #393044;
}
.card-details {
  color: #816397;
}
.card-meta svg {
  color: #9b8ba8;
}
.results-toolbar p {
  color: #887b96;
}
.clothing-chip {
  color: #82708f;
}
.sort-select select {
  color: #756281;
}
.preset-row button {
  color: #7d6b90;
}
.detail-field dt {
  color: #857190;
}
.detail-field dd {
  color: #5f4b6c;
}
.login-form > p:not(.eyebrow) {
  color: #8e7b9e;
}
.login-message > p:not(.eyebrow) {
  color: #9580a8;
}
.login-form > small {
  color: #9b88ab;
}
.confidence {
  color: #8b729c;
}
.face-selection p {
  color: #9980a9;
}
.pagination {
  color: #91809f;
}
.site-footer {
  color: #91849e;
}
.chip {
  color: #78568f;
}
.notice {
  color: #80618f;
}
.filter-title h2 {
  color: #4c4457;
}
.filters summary {
  color: #5d4f6b;
}
.topbar .header-label {
  color: #8a7d98;
}
.card-content .object-counts {
  color: #8b749e;
}
.card-ai {
  margin-top: 10px;
  border: 1px solid #f0eaf6;
  border-radius: 5px;
  padding: 0 8px;
}
.card-ai > summary {
  font-size: 9px;
  color: #947baa;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 0;
}
.card-ai > summary > svg:last-child {
  margin-left: auto;
}
.card-ai > summary::-webkit-details-marker {
  display: none;
}
.card-ai .detected {
  padding: 7px 0;
}
.card-ai .object-counts em {
  font-size: 9px;
}
.card-ai .confidence-track {
  width: 28px;
}
.card-ai .confidence {
  font-size: 10px;
}
.card-ai .object-counts {
  gap: 10px;
  font-size: 10px;
}
.upload-summary h3 {
  color: #705784;
  font-size: 14px;
}
.upload-counts {
  margin: 15px 0 0;
}
.upload-counts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  color: #8b729c;
  font-size: 12px;
}
.upload-counts dd {
  margin: 0;
  color: #705784;
  font-weight: 600;
}
.upload-summary section {
  border-top: 1px solid #eee6f6;
  margin-top: 20px;
  padding-top: 18px;
}
.upload-summary section > p {
  color: #8b729c;
  font-size: 12px;
  margin-top: 12px;
}
.upload-summary section > small {
  display: block;
  margin-top: 8px;
}
.match-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
  align-items: end;
}
.match-field > select {
  height: 35px;
  margin-bottom: 12px;
  border: 1px solid #e9e7f0;
  border-radius: 6px;
  background: #faf9fc;
  color: #7d6b90;
  font-size: 10px;
  width: 100%;
  padding: 4px;
}
.match-field input:disabled {
  background: #f8f7fa;
  color: #9c94a4;
}
.filters details.multi-attribute {
  padding: 0;
  border: 1px solid #e9e7f0;
  border-radius: 6px;
}
.filters .multi-attribute > summary {
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 400;
  min-width: 0;
}
.multi-attribute > summary > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-options {
  padding: 5px 8px 10px;
  max-height: 215px;
  overflow: auto;
  border-top: 1px solid #f0ecf5;
}
.multi-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 10px;
  color: #7d6b90;
  cursor: pointer;
}
.multi-options input {
  accent-color: #6255d9;
  margin: 0;
}
.count-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 7px;
}
.count-fields .field input {
  padding: 8px;
}
.filters details.subfilters {
  padding: 0;
  border-bottom: 0;
}
.filters .subfilters > summary {
  padding: 10px 0 12px;
  font-size: 10px;
  color: #93809f;
  font-weight: 400;
}
.color-presets {
  margin-bottom: 13px;
}
.preset-row button[aria-pressed="true"] {
  background: #eee6fc;
  color: #6255d9;
  border-color: #ccbfed;
}
.result-card .card-photo { aspect-ratio: auto; }
.card-photo .compact-viewer { border: 0; border-radius: 0; }
.compact-viewer .photo-toolbar { padding: 10px; min-height: 39px; }
.compact-viewer .bbox-toggles { gap: 10px; }
.compact-viewer .photo-scroll { height: 240px; align-items: center; overflow: hidden; }
.compact-viewer .photo-stage { width: 100% !important; max-width: calc(240px * var(--photo-aspect)); }
.compact-viewer .photo-unavailable { min-height: 240px; width: 100%; }
.card-photo .photo-id { top: 49px; }
.card-photo > .no-photo { min-height: 279px; }

/* Attribute search: one panel above a full-width result grid. */
.top-filters {
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px #33295a05;
}
.top-filters .filter-title { padding: 18px 22px 0; border: 0; }
.top-filters .filter-title h2 { font-size: 15px; color: #393044; }
.top-filters .filter-title h2 svg { color: #7562cc; }
.top-filters .filter-title p { color: #837a90; font-size: 11px; margin: 7px 0 0; }
.top-filters .filter-reset { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.filter-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 20px 22px;
}
.filter-search-row .field, .filter-search-row .match-field > select { margin-bottom: 0; }
.filter-search-row .primary { min-height: 42px; font-size: 12px; padding: 12px 22px; }
.top-filters .field > span { font-size: 11px; }
.top-filters .field input, .top-filters .field select {
  font-size: 12px;
  height: 40px;
  border-radius: 7px;
  min-width: 0;
}
.top-filters .match-field { grid-template-columns: minmax(0, 1fr) 85px; }
.top-filters .match-field > select { height: 40px; font-size: 11px; border-radius: 7px; }
.filter-primary-grid, .filter-secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 16px;
  align-items: start;
}
.top-filters details.filter-group, .top-filters details.filter-extra {
  border: 1px solid #eae6f2;
  border-radius: 9px;
  padding: 0;
  min-width: 0;
  background: #fcfbfe;
}
.top-filters .filter-group > summary, .top-filters .filter-extra > summary {
  padding: 13px 14px;
  font-size: 12px;
  color: #605171;
  min-height: 46px;
}
.top-filters summary > svg { flex-shrink: 0; }
.top-filters .filter-group > summary > svg:first-child,
.top-filters .filter-extra > summary > svg:first-child { color: #a08ac2; }
.filter-group-content { padding: 0 14px 14px; }
.top-filters .filter-group[open] { align-self: stretch; }
.top-filters .filter-group-content > small { display: block; font-size: 10px; color: #8c7c9d; line-height: 1.6; }
.top-filters .date-fields { display: grid; grid-template-columns: 1fr; }
.top-filters .field input[type="datetime-local"] { font-size: 12px; }
.top-filters .preset-row { gap: 5px; margin-bottom: 12px; }
.top-filters .preset-row button { font-size: 10px; padding: 6px 8px; }
.top-filters .multi-attribute { position: relative; background: #fff; }
.top-filters .multi-attribute > summary { min-height: 38px; font-size: 12px; padding: 10px; }
.top-filters .multi-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  width: 220px;
  background: #fff;
  border: 1px solid #e5deef;
  border-radius: 9px;
  box-shadow: 0 8px 28px #39274d20;
  max-height: 265px;
  padding: 8px 12px;
}
.top-filters .multi-options label { font-size: 12px; padding: 8px 0; }
.top-filters .multi-options input { width: 15px; height: 15px; }
.top-filters .color-presets { gap: 9px; margin-bottom: 13px; }
.filter-secondary-grid { padding-top: 0; }
.filter-secondary-grid > details[open] { grid-column: 1 / -1; }
.extra-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; padding: 5px 16px 10px; }
.object-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.extra-fields .subfilters, .extra-fields .filter-help { grid-column: 1 / -1; }
.extra-fields .subfilters > .extra-fields { padding: 0; }
.top-filters .filter-footer {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid #eee9f5;
  background: #faf8fd;
  border-radius: 0 0 14px 14px;
}
.top-filters .filter-footer > span { font-size: 11px; color: #897894; }
.top-filters .filter-footer .secondary { font-size: 11px; min-height: 36px; }
.search-page > .results { scroll-margin-top: 24px; }
@media (max-width: 1250px) {
  .filter-primary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .object-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .top-filters .filter-title { padding: 16px 16px 0; }
  .filter-title p { max-width: 260px; line-height: 1.5; }
  .filter-search-row { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
  .filter-search-row > .match-field:first-child { grid-column: 1 / -1; }
  .filter-primary-grid, .filter-secondary-grid { padding: 0 16px 12px; gap: 8px; }
  .filter-primary-grid > details[open] { grid-column: 1 / -1; }
  .extra-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .top-filters .multi-options { width: 100%; min-width: 150px; }
  .top-filters .filter-footer { padding: 12px 16px; }
}
@media (max-width: 600px) {
  .top-filters .filter-title h2 { font-size: 13px; gap: 7px; }
  .top-filters .filter-title p { font-size: 10px; max-width: 220px; }
  .top-filters .filter-reset { font-size: 11px; }
  .filter-search-row { grid-template-columns: 1fr; }
  .filter-search-row .primary { width: 100%; }
  .top-filters .filter-group > summary, .top-filters .filter-extra > summary {
    padding: 11px 10px;
    font-size: 11px;
    min-height: 52px;
    gap: 6px;
    line-height: 1.4;
  }
  .extra-fields { grid-template-columns: 1fr; padding: 3px 12px 10px; }
  .top-filters .filter-footer > span { max-width: 140px; line-height: 1.5; font-size: 10px; }
  .top-filters .filter-footer .secondary { padding: 8px; font-size: 10px; }
}

/* Dedicated photo workspace. */
.topbar nav {
  gap: 24px;
}
.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.upload-page-results {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.upload-page-summary,
.upload-attribute-search {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.upload-page-summary h2,
.upload-attribute-search h2 {
  font-size: 17px;
  margin-bottom: 12px;
}
.upload-page-summary > p,
.upload-attribute-search p {
  color: #806e90;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.upload-filename {
  overflow-wrap: anywhere;
}
.face-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.face-choice:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.upload-attribute-search {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.upload-attribute-search .primary {
  flex-shrink: 0;
}
.photo-filter-toggle[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: #f4f1ff;
}
.photo-unavailable .secondary {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .topbar nav {
    display: flex;
    gap: 16px;
    margin-left: 0;
  }
  .upload-page-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .upload-attribute-search {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 0 12px;
    gap: 12px;
  }
  .topbar .brand {
    font-size: 21px;
    gap: 6px;
  }
  .topbar nav {
    gap: 12px;
  }
  .topbar .nav-link {
    font-size: 11px;
    gap: 5px;
  }
  .topbar .user-menu > .avatar,
  .topbar .user-menu > div {
    display: none;
  }
  .upload-page-summary,
  .upload-attribute-search {
    padding: 18px;
  }
  .upload-page .face-download {
    font-size: 11px;
  }
  .results-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .photo-filter-toggle {
    padding: 8px;
    font-size: 11px;
  }
}

/* Classic Flask forms and server-rendered pages. */
[hidden] { display: none !important; }
.classic-upload-controls { margin-left: auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.classic-upload-controls .field { margin: 0; }
.classic-upload-controls input { max-width: 100%; font-size: 12px; }
.classic-upload-controls .upload-button { align-self: flex-end; }
.face-choice { display: block; position: relative; cursor: pointer; }
.face-choice input { position: absolute; top: 6px; left: 6px; z-index: 1; accent-color: var(--primary); }
.face-choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.confidence-extra { margin-top: 14px; }
.classic-spinner { width: 28px; height: 28px; border: 3px solid #e5def0; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.pagination > div { display: flex; gap: 8px; flex-wrap: wrap; }
.search-prompt { margin: 25px 0; }
.user-menu > form { margin: 0; }
@media(max-width: 800px) {
  .classic-upload-controls { width: 100%; margin-left: 0; }
  .classic-upload-controls .upload-button { align-self: flex-start; }
  .upload-page .upload-banner { flex-wrap: wrap; }
}
@media(max-width: 480px) {
  .classic-upload-controls input { width: 100%; }
  .pagination { flex-wrap: wrap; gap: 14px; }
}

.image-preview-form { margin-top: 18px; }
.image-preview-form > p { margin-top: 10px; font-size: 11px; color: #806e90; line-height: 1.6; }
.saved-image-preview { max-width: 900px; }
.saved-image-preview > img { display: block; max-width: min(100%, 360px); height: auto; margin-bottom: 24px; border-radius: 8px; }
.saved-image-preview dl { margin: 0; }
.saved-image-preview dt { color: #806e90; font-size: 12px; margin-top: 18px; }
.saved-image-preview dd { margin: 7px 0 0; line-height: 1.6; }
.saved-image-preview code { overflow-wrap: anywhere; font-size: 12px; }

/* WAR ANALITIKS: restrained workspace, readable labels and clear controls. */
:root { --muted: #59697e; --shadow: 0 3px 16px #172b4306; }
.topbar { height: 80px; gap: 28px; }
.topbar .brand { gap: 10px; flex-shrink: 0; letter-spacing: 0; }
.brand-icon { border-radius: 9px; box-shadow: none; width: 38px; height: 38px; }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-wordmark strong { font-size: 16px; letter-spacing: 1px; font-weight: 750; }
.brand-wordmark > span { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .4px; }
.topbar nav { margin-left: 12px; gap: 28px; }
.topbar .nav-link { font-size: 14px; color: #475569; }
.nav-link.active, .topbar .nav-link:hover { color: var(--primary); }
.nav-link.active:after { background: var(--primary); height: 3px; }
.avatar { background: #eaf0f9; color: #2456a6; }
.user-menu strong { font-size: 13px; color: #334155; }
.user-menu small { font-size: 11px; }
.page-heading h1 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 700; color: #172b43; letter-spacing: -.6px; }
.page-heading > div > p:last-child { font-size: 14px; color: #526277; line-height: 1.6; }
.eyebrow { color: #5f7188; letter-spacing: 1.4px; }
.primary { font-weight: 600; box-shadow: none; }
.secondary, .text-button { color: #475569; }
.secondary:hover { background: #edf3fa; border-color: #b9cbe1; }
.text-button:hover { color: var(--primary); text-decoration: underline; }
.icon-button { color: #59697e; }
.icon-button:hover { background: #edf3fa; color: var(--primary); }
.top-filters { border-radius: 10px; box-shadow: var(--shadow); }
.top-filters .filter-title h2 { font-size: 17px; color: #172b43; }
.top-filters .filter-title h2 svg { color: var(--primary); }
.top-filters .filter-title p { color: #59697e; font-size: 13px; line-height: 1.6; }
.top-filters .filter-reset { border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; min-height: 40px; font-size: 13px; white-space: nowrap; }
.top-filters .field > span { font-size: 13px; font-weight: 550; color: #334155; }
.top-filters .field input, .top-filters .field select, .top-filters .field input[type="datetime-local"] {
  height: 44px; font-size: 14px; color: #172b43; border-color: #cbd5e1; border-radius: 6px;
}
.field input::placeholder { color: #68788d; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--primary); outline: 2px solid #2456a630; }
.match-field input:disabled { background: #eef2f6; color: #64748b; }
.top-filters .match-field { grid-template-columns: minmax(0,1fr) 104px; }
.top-filters .match-field > select { font-size: 13px; height: 44px; color: #475569; background: #f8fafc; border-color: #cbd5e1; }
.filter-search-row .primary { min-height: 44px; font-size: 14px; }
.top-filters details.filter-group, .top-filters details.filter-extra { border-color: #dce3eb; border-radius: 7px; background: #f8fafc; }
.top-filters [data-filter-group][data-active="true"] { border-color: #a3bbda; }
.top-filters .filter-group > summary, .top-filters .filter-extra > summary { color: #334155; font-size: 14px; min-height: 48px; }
.top-filters .filter-group > summary > svg:first-child, .top-filters .filter-extra > summary > svg:first-child { color: #5c7595; }
.filters summary > svg:last-child { color: #64748b; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; border-radius: 5px; padding: 0 5px; background: #e3edfa; color: #194587; font-size: 12px; font-weight: 650; margin-left: auto; }
.filters summary > .filter-count:not([hidden]) + svg:last-child { margin-left: 0; }
.top-filters .filter-group-content > small { font-size: 12px; color: #59697e; }
.top-filters .preset-row button { font-size: 12px; color: #475569; padding: 8px 10px; background: #fff; border-color: #d4dde7; border-radius: 5px; min-height: 34px; }
.preset-row button:hover { background: #edf3fa; color: #194587; }
.preset-row button[aria-pressed="true"] { background: #e3edfa; color: #194587; border-color: #8faed4; }
.top-filters .color-presets { flex-wrap: wrap; gap: 6px; }
.color-presets button { min-width: 34px; min-height: 34px; align-items: center; justify-content: center; border-radius: 7px; }
.color-presets button.selected { border-color: var(--primary); background: #edf3fa; }
.color-presets i { width: 21px; height: 21px; }
.top-filters .multi-attribute { border-color: #cbd5e1; border-radius: 6px; }
.top-filters .multi-attribute > summary { font-size: 14px; min-height: 42px; color: #172b43; }
.top-filters .multi-attribute > summary > span { min-width: 0; }
.top-filters .multi-options { border-color: #cbd5e1; border-radius: 7px; box-shadow: 0 8px 24px #172b4320; padding: 8px; }
.top-filters .multi-options label { font-size: 14px; color: #334155; min-height: 40px; padding: 8px; border-radius: 4px; }
.multi-options label:hover { background: #edf3fa; }
.top-filters .multi-options input { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.multi-clear { display: block; width: 100%; min-height: 36px; margin-bottom: 5px; text-align: left; border: 0; border-bottom: 1px solid var(--border); color: #2456a6; background: #fff; font-size: 13px; padding: 8px; }
.top-filters .filter-footer { background: #f8fafc; border-color: var(--border); border-radius: 0 0 10px 10px; }
.top-filters > .confidence-extra { margin: 0 22px 16px; }
.top-filters .filter-footer > span { color: #59697e; font-size: 13px; line-height: 1.5; }
.top-filters .filter-footer > .filters-changed { color: #194587; font-weight: 550; }
.filter-footer-actions { display: flex; align-items: center; gap: 12px; }
.filter-footer-actions .primary { min-height: 44px; font-size: 13px; }
#search-form[aria-busy="true"] button[type="submit"], #search-form[aria-busy="true"] .primary { opacity: .65; cursor: progress; }
.results-toolbar h2 { font-size: 21px; color: #172b43; }
.results-toolbar h2 > span { color: #194587; background: #e3edfa; }
.results-toolbar p, .pagination { color: #59697e; font-size: 13px; }
.sort-select select { min-height: 40px; font-size: 13px; color: #334155; border-color: #cbd5e1; max-width: none; }
.photo-filter-toggle[aria-pressed="true"] { color: #194587; background: #e3edfa; }
.chip { font-size: 13px; color: #24517d; background: #eaf1f9; border-color: #cbd9e9; padding: 8px 10px; overflow-wrap: anywhere; max-width: 100%; }
.chip svg { flex-shrink: 0; }
.chip:hover { background: #dce9f8; }
.person-name { color: #172b43; font-size: 17px; }
.card-meta, .card-meta .organization, .birth-date { color: #526277; font-size: 12px; }
.card-details { color: #2456a6; font-size: 13px; }
.card-content .object-counts, .clothing-chip { color: #475569; }
.card-ai > summary, .card-ai .confidence { color: #526277; font-size: 12px; }
.detail-field dt { color: #526277; font-size: 13px; }
.detail-field dd { color: #172b43; font-size: 14px; }
.confidence { color: #475569; }
.empty-state h3 { font-size: 18px; color: #334155; }
.empty-state p { color: #59697e; font-size: 14px; line-height: 1.7; }
.empty-state-actions { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.site-footer { color: #64748b; font-size: 12px; }
.login-decoration { background: linear-gradient(145deg,#e6edf6,#f1f5fa 65%,#dce7f5); }
.login-message h1 { color: #172b43; }
.login-message h1 > span { color: #2456a6; }
.login-message > p:not(.eyebrow), .login-feature, .login-decoration > small, .login-form > p:not(.eyebrow), .login-form > small { color: #526277; }
@media (max-width: 1250px) {
  .filter-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 899px) {
  .topbar { padding: 0 22px; gap: 18px; }
  .topbar nav { margin-left: 0; gap: 18px; }
  .topbar .nav-link { font-size: 13px; }
  .user-menu > div { display: none; }
  .top-filters .filter-title p { max-width: 100%; }
  .top-filters > .confidence-extra { margin: 0 16px 12px; }
}
@media (max-width: 600px) {
  .topbar { height: auto; min-height: 92px; padding: 14px 16px 0; flex-wrap: wrap; gap: 10px 16px; }
  .topbar .brand { order: 0; }
  .topbar .brand-wordmark strong { font-size: 15px; }
  .topbar .brand-wordmark > span { font-size: 11px; }
  .topbar .brand-icon { width: 34px; height: 34px; }
  .topbar .user-menu { order: 1; margin-left: auto; }
  .topbar nav { order: 2; width: 100%; height: 42px; gap: 24px; }
  .topbar .nav-link { font-size: 14px; }
  .page-heading > div > p:last-child { font-size: 13px; }
  .top-filters .filter-title { gap: 12px; align-items: flex-start; }
  .top-filters .filter-title h2 { font-size: 15px; line-height: 1.4; }
  .top-filters .filter-title p { font-size: 12px; }
  .top-filters .filter-reset { font-size: 12px; padding: 8px; }
  .top-filters .field input, .top-filters .field select, .top-filters .field input[type="datetime-local"] { font-size: 16px; }
  .top-filters .filter-group > summary, .top-filters .filter-extra > summary { font-size: 13px; padding: 12px 10px; }
  .filter-primary-grid, .filter-secondary-grid { grid-template-columns: minmax(0,1fr); }
  .top-filters .filter-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .top-filters .filter-footer > span { max-width: none; font-size: 12px; }
  .filter-footer-actions { justify-content: space-between; gap: 8px; }
  .filter-footer-actions .primary { padding: 10px 12px; }
  .filter-footer-actions .text-button { padding: 6px 0; }
  .top-filters .two-fields { grid-template-columns: minmax(0,1fr); }
  .top-filters .multi-options { width: 100%; min-width: 0; }
  .results-controls { flex-wrap: wrap; width: 100%; gap: 8px; }
  .sort-select select { font-size: 13px; }
  .photo-filter-toggle { font-size: 13px; }
  .chip { font-size: 12px; }
}

/* Searchable organization picker and Ukrainian user guide. */
.multi-tools { position: sticky; top: -8px; z-index: 1; background: #fff; padding: 2px 0 8px; }
.top-filters .multi-options input[data-option-search] { display: block; width: 100%; height: 40px; margin: 4px 0 0; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 5px; font: inherit; font-size: 14px; }
.top-filters [data-organ-multi] .multi-options { width: 430px; max-width: calc(100vw - 56px); max-height: 360px; }
.top-filters .multi-options label { align-items: flex-start; }
.multi-options .option-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.multi-options input[type=checkbox] { margin-top: 2px; }
.options-empty { padding: 12px 8px; color: #64748b; font-size: 14px; }
[data-organ-multi][aria-busy=true] { opacity: .65; }
[data-facet-error], .form-error { color: #a32525; font-size: 14px; line-height: 1.6; }
.form-error { margin: 20px 0 0; padding: 12px 16px; background: #fff1f1; border: 1px solid #f3c4c4; border-radius: 6px; }
.help-page { max-width: 1240px; margin: 0 auto; padding: 36px 28px 64px; }
.help-page .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.help-page h1 { font-size: clamp(26px,3vw,36px); line-height: 1.25; margin: 8px 0 12px; letter-spacing: -.6px; }
.help-page .page-heading p { color: #52637a; line-height: 1.6; }
.help-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; align-items: start; }
.help-toc { position: sticky; top: 24px; border: 1px solid #d8e0e9; border-radius: 8px; background: #fff; padding: 20px 14px; }
.help-toc nav { display: grid; gap: 3px; }
.help-toc strong { padding: 0 10px 10px; font-size: 14px; color: #172b43; }
.help-toc a { display: block; padding: 9px 10px; border-radius: 5px; font-size: 14px; color: #52637a; line-height: 1.4; }
.help-toc a:hover, .help-toc a:focus-visible { background: #edf3fa; color: var(--primary); }
.help-article { min-width: 0; background: #fff; border: 1px solid #d8e0e9; border-radius: 8px; padding: 32px; color: #334155; font-size: 15px; line-height: 1.75; }
.help-article section { scroll-margin-top: 24px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid #e2e8f0; }
.help-article h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.35; color: #172b43; letter-spacing: -.3px; }
.help-article h3 { margin: 24px 0 10px; font-size: 17px; color: #172b43; }
.help-article p { margin: 12px 0; }
.help-article ul, .help-article ol { margin: 16px 0; padding-left: 24px; }
.help-article li { margin: 10px 0; padding-left: 4px; }
.help-article strong { font-weight: 650; color: #172b43; }
.help-article code { padding: 2px 5px; border-radius: 4px; background: #edf3fa; color: #174d7f; font-size: 13px; overflow-wrap: anywhere; }
.help-note, .help-example { margin: 20px 0; padding: 16px 18px; background: #f1f6fb; border-left: 3px solid #367bb5; border-radius: 0 6px 6px 0; }
.help-example p { margin-bottom: 0; }
.help-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d8e0e9; border-radius: 6px; margin-top: 20px; }
.help-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.help-table th { background: #edf3fa; font-weight: 650; color: #172b43; }
.help-table th, .help-table td { vertical-align: top; padding: 12px; border-bottom: 1px solid #e2e8f0; }
.help-table tr:last-child td { border-bottom: 0; }
.help-table th:first-child { width: 115px; }
.help-definitions { margin: 20px 0; }
.help-definitions > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.help-definitions dt { font-weight: 650; color: #172b43; }
.help-definitions dd { margin: 0; }
.help-question { border: 1px solid #d8e0e9; border-radius: 6px; margin: 12px 0; }
.help-question summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: #172b43; }
.help-question p { margin: 0; padding: 0 16px 16px; }
.help-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.help-bottom .primary { flex-shrink: 0; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .help-toc { position: static; }
  .help-toc nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .help-toc strong { grid-column: 1/-1; }
  .help-page { padding: 24px 20px 40px; }
}
@media (max-width: 600px) {
  .topbar nav { gap: 12px; justify-content: space-between; }
  .topbar .nav-link { font-size: 13px; gap: 5px; }
  .help-page { padding: 24px 16px 40px; }
  .help-page .page-heading, .help-bottom { align-items: flex-start; flex-direction: column; }
  .help-article { padding: 22px 16px; font-size: 15px; }
  .help-article h2 { font-size: 21px; }
  .help-table { min-width: 580px; }
  .help-definitions > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .top-filters [data-organ-multi] .multi-options { width: 100%; max-width: 100%; }
}

/* Central account administration. */
.account-page { max-width: 1280px; padding: 34px 28px 60px; margin: auto; }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 16px 0 28px; }
.account-heading h1,.auth-center h1 { font-size: clamp(25px,3vw,34px); color: #172b43; margin: 9px 0 12px; line-height: 1.3; letter-spacing: -.5px; }
.account-heading p,.account-panel p { color: #52637a; line-height: 1.65; font-size: 14px; }
.account-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.account-layout > * { min-width: 0; }
.account-panel { background: #fff; border: 1px solid #d8e0e9; border-radius: 9px; padding: 26px; margin-bottom: 24px; }
.account-panel h2 { font-size: 19px; margin: 0 0 18px; color: #172b43; }
.account-panel p { margin: 12px 0; }
.account-form { display: grid; gap: 20px; margin-top: 20px; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.account-form .field { min-width: 0; }
.account-form .field > span,.account-list-search .field > span { font-size: 14px; color: #334155; font-weight: 550; margin-bottom: 8px; }
.account-form .field input,.account-form .field select,.account-list-search input { height: 44px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; font-size: 15px; width: 100%; background: #fff; color: #172b43; }
.account-form .primary { justify-self: start; }
.account-divider { border-top: 1px solid #e2e8f0; padding-top: 26px; margin-top: 8px; }
.account-divider h2 { margin-bottom: 8px; }
.account-hint { font-size: 13px !important; color: #64748b; line-height: 1.7; }
#name-spelling-hint { margin: 0 18px 16px; }
.filter-search-row > .match-field:first-child { grid-template-columns: minmax(0,1fr) 178px; }
.top-filters .address-match { grid-template-columns: minmax(0,1fr) 178px; }
@media (max-width: 480px) {
  .filter-search-row > .match-field:first-child, .top-filters .address-match { grid-template-columns: minmax(0,1fr); }
}
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.account-notice,.account-success { border-radius: 6px; padding: 16px 18px; margin-bottom: 24px; line-height: 1.6; font-size: 14px; }
.account-notice { background: #fffbeb; border: 1px solid #ead799; color: #80561a; }
.account-success { background: #eef9f3; border: 1px solid #b8deca; color: #246344; }
.account-facts { margin: 0; }
.account-facts > div { padding: 12px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.account-facts dt { color: #52637a; }.account-facts dd { margin: 0; }
.account-badge { display: inline-block; white-space: nowrap; font-size: 12px; line-height: 1.4; border-radius: 5px; padding: 5px 8px; }
.account-badge.enabled { color: #246344; background: #eaf7ef; }.account-badge.pending { color: #80561a; background: #fff5dd; }
.account-list-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.account-list-search .field { flex: 1; min-width: 200px; max-width: 460px; }
.account-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 24px; border: 1px solid #d8e0e9; border-radius: 6px; }
.account-table { border-collapse: collapse; text-align: left; width: 100%; font-size: 14px; line-height: 1.5; min-width: 1250px; }
.account-table th { background: #f1f5fa; color: #334155; font-weight: 600; white-space: nowrap; }
.account-table td,.account-table th { padding: 14px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.account-table tr:last-child td { border-bottom: 0; }.account-table td small { display: block; color: #64748b; }
.account-table td { max-width: 230px; white-space: nowrap; }
.account-table td:nth-child(2),.account-table td:nth-child(5) { min-width: 140px; white-space: normal; overflow-wrap: anywhere; }
.account-table .text-button { white-space: nowrap; }
.account-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; color: #64748b; font-size: 14px; }
.account-pagination > div { display: flex; gap: 12px; }
.auth-center { display: grid; place-items: start center; min-height: 100vh; padding: 48px 20px; background: #f2f5f9; }
.auth-center .mfa-panel { width: 100%; max-width: 530px; margin: 0; padding: 30px; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0; }
.qr-block img { display: block; max-width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.manual-key summary,.admin-qr summary,.account-danger summary { cursor: pointer; color: #2456a6; font-size: 14px; padding: 10px 0; }
.manual-key code { display: block; margin: 12px 0; background: #f1f5fa; padding: 12px; font-size: 14px; overflow-wrap: anywhere; }
.account-form input.otp-input { letter-spacing: 6px; font-size: 23px; height: 52px; max-width: 260px; }
.setup-steps { color: #52637a; font-size: 14px; line-height: 1.7; padding-left: 22px; margin-top: 20px; }
.setup-steps li { padding-left: 3px; margin: 10px 0; }
.check-consent { display: flex; align-items: flex-start; gap: 10px; color: #52637a; font-size: 14px; line-height: 1.6; }
.check-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #2456a6; }
.danger-button { color: #a32525; border: 1px solid #ebc4c4; border-radius: 6px; background: #fff; padding: 11px 16px; cursor: pointer; font: inherit; font-size: 14px; }
.danger-button:hover { background: #fff1f1; }

/* Selecting search cards for Word export. */
.word-export-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; margin: 0 0 20px; background: #fff; border: 1px solid #d4dde7; border-radius: 8px; }
.word-export-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; flex: 1; }
.word-select-all, .card-export-select { display: flex; align-items: center; gap: 9px; cursor: pointer; color: #29405e; font-size: 13px; font-weight: 600; }
.word-select-all input, .card-export-select input { width: 17px; height: 17px; margin: 0; accent-color: #2456a6; cursor: pointer; }
[data-selection-count] { color: #194587; font-size: 13px; font-weight: 600; }
.word-export-selection .text-button { font-size: 13px; }
.word-export-hint { flex-basis: 100%; margin: 0; color: #59697e; font-size: 12px; }
.word-export-error { flex-basis: 100%; margin: 0; color: #a32525; font-size: 13px; }
.card-export-select { padding: 11px 14px; background: #f5f8fc; border-bottom: 1px solid #dbe4ef; }
.result-card.selected-for-word { border-color: #2456a6; box-shadow: 0 0 0 1px #2456a6; }
.selected-for-word .card-export-select { background: #e8f0fc; color: #194587; }
.word-export-toolbar[aria-busy="true"] { cursor: progress; }
@media (max-width: 650px) {
  .word-export-toolbar { padding: 14px; }
  .word-export-selection { flex-basis: 100%; gap: 12px; }
  .word-export-toolbar > .primary { width: 100%; justify-content: center; }
}
.account-menu { position: relative; }.account-menu > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 12px); z-index: 100; min-width: 215px; background: #fff; border: 1px solid #cbd5e1; border-radius: 7px; padding: 7px; box-shadow: 0 8px 24px #172b4320; }
.account-dropdown a { display: block; padding: 12px; font-size: 14px; color: #334155; border-radius: 4px; }.account-dropdown a:hover { background: #edf3fa; }
@media (max-width: 899px) { .account-user-label { display: none; } }
@media (max-width: 800px) { .account-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
 .account-page { padding: 24px 16px 40px; }.account-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
 .account-panel { padding: 22px 16px; }.account-grid { grid-template-columns: minmax(0,1fr); }
 .account-form .field input,.account-form .field select { font-size: 16px; }
 .auth-center { padding: 24px 16px; }.auth-center .mfa-panel { padding: 26px 18px; }
 .topbar .brand-wordmark strong { font-size: 13px; }.topbar .brand { gap: 8px; }.topbar .user-menu { gap: 4px; }
}

.account-badge.blocked { color: #a32525; background: #fff0f0; }

.login-page.login-simple { grid-template-columns: minmax(0,1fr); place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px; background: #f2f5f9; }
.login-simple .login-form { width: 360px; max-width: 100%; }
.login-simple h1 { margin: 0 0 30px; text-align: center; font-size: 28px; line-height: 1.3; color: #172b43; letter-spacing: -.4px; }
.login-simple .field > span { font-size: 14px; color: #334155; }
.login-simple .field input { height: 46px; font-size: 16px; }

/* Administrator request journal. */
.audit-page { max-width: 1520px; }
.audit-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.audit-filters .field { margin-bottom: 0; }
.audit-filters .field > span { font-size: 14px; color: #334155; margin-bottom: 8px; }
.audit-filters input,.audit-filters select { width: 100%; height: 44px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #172b43; font-size: 15px; }
.audit-filter-actions { grid-column: 1/-1; }
.audit-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.audit-metric { padding: 20px; min-width: 0; }
.audit-metric > span { display: block; font-size: 13px; color: #52637a; }
.audit-metric > strong { display: block; margin-top: 10px; color: #172b43; font-size: clamp(23px,2.5vw,30px); }
.audit-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; line-height: 1.6; text-align: left; }
.audit-table th { padding: 13px 14px; white-space: nowrap; background: #f1f5fa; color: #334155; font-weight: 600; }
.audit-table td { padding: 14px; vertical-align: top; border-top: 1px solid #e2e8f0; }
.audit-table small { display: block; color: #64748b; font-size: 12px; }
.audit-table code { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.audit-nowrap { white-space: nowrap; }
.audit-events { min-width: 1060px; }
.audit-events td:nth-child(2) { min-width: 145px; max-width: 240px; overflow-wrap: anywhere; }
.audit-events td:nth-child(4) { min-width: 160px; max-width: 230px; }
.audit-events td:last-child { min-width: 230px; max-width: 350px; }
.audit-details summary { cursor: pointer; color: #2456a6; font-size: 14px; white-space: nowrap; }
.audit-details dl { margin: 14px 0 0; font-size: 13px; }
.audit-details dt { margin-top: 12px; color: #64748b; }
.audit-details dd { margin: 3px 0 0; color: #172b43; overflow-wrap: anywhere; white-space: pre-wrap; }
.audit-total { margin-left: 8px; font-weight: 500; color: #64748b; }
.audit-empty { text-align: center; padding: 30px; color: #52637a; }
.audit-empty p { margin: 8px 0 0; }
@media (max-width: 1100px) { .audit-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) { .audit-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }.audit-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px) { .audit-filters { grid-template-columns: minmax(0,1fr); }.audit-filters input,.audit-filters select { font-size: 16px; } }

/* Clear boundaries and controls for the attribute search workspace. */
.top-filters {
  border-color: #b8c4d2;
  border-radius: 6px;
  box-shadow: none;
}
.top-filters .filter-title {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #f5f7fa;
  border-radius: 6px 6px 0 0;
}
.top-filters .filter-title h2 { font-size: 18px; }
.top-filters .filter-reset, .primary, .secondary { border-radius: 5px; }
.filter-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px 16px;
}
.filter-section-toolbar > div:first-child { min-width: 0; }
.filter-section-toolbar strong { display: block; color: #263a52; font-size: 14px; }
.filter-section-toolbar span { display: block; color: #526277; font-size: 12px; line-height: 1.5; margin-top: 5px; }
.filter-section-actions { display: flex; gap: 8px; flex-shrink: 0; }
.filter-section-actions .secondary { padding: 8px 11px; min-height: 40px; font-size: 12px; }
.top-filters details.filter-group, .top-filters details.filter-extra {
  border: 1px solid #aab9ca;
  border-radius: 5px;
  background: #fff;
}
.top-filters .filter-group > summary, .top-filters .filter-extra > summary {
  min-height: 50px;
  padding: 13px 14px;
  background: #edf1f6;
  color: #24374e;
  border-radius: 5px;
  line-height: 1.5;
  transition: background .15s;
}
.top-filters [data-filter-group][open] > summary {
  border-bottom: 1px solid #b8c4d2;
  border-radius: 5px 5px 0 0;
  margin-bottom: 14px;
}
.top-filters [data-filter-group] > summary:hover { background: #e1e8f1; }
.top-filters [data-filter-group][data-active="true"] {
  border-color: #507bb0;
  box-shadow: inset 3px 0 0 #2456a6;
}
.top-filters [data-filter-group][data-active="true"] > summary {
  background: #e6eef9;
  color: #194587;
}
.top-filters [data-filter-group][data-active="true"] > summary:hover { background: #dce7f6; }
.top-filters .filter-group > summary > svg:first-child,
.top-filters .filter-extra > summary > svg:first-child { color: #496685; }
.filter-count { color: #fff; background: #2456a6; border-radius: 4px; }
.filter-group-actions {
  display: flex;
  justify-content: flex-end;
  padding: 4px 12px 8px;
  border-top: 1px solid #e2e8f0;
}
.filter-group-actions .text-button { font-size: 12px; min-height: 36px; color: #2456a6; }
.filter-group-actions .text-button:disabled { color: #64748b; opacity: 1; }
.filter-group-actions .text-button:disabled:hover { text-decoration: none; }
.top-filters [data-filter-group][data-active="false"] > .filter-group-actions { display: none; }
.top-filters .filter-group { position: relative; }
.top-filters .filter-group[open][data-active="true"] { padding-bottom: 50px; }
.top-filters .filter-group > .filter-group-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.top-filters .field input, .top-filters .field select, .top-filters .match-field > select,
.top-filters details.multi-attribute { border-color: #aab9ca; border-radius: 4px; }
.top-filters .field, .top-filters .extra-fields > div { min-width: 0; }
.top-filters .date-fields { grid-template-columns: minmax(0, 1fr); }
.top-filters .multi-attribute > summary { min-height: 44px; }
.top-filters .multi-attribute > summary:hover { background: #f1f5fa; }
.top-filters .multi-attribute[open] { border-color: var(--primary); }
.top-filters .multi-attribute[data-selected="true"] > summary { color: #194587; background: #eef4fc; }
.top-filters .multi-options { border: 1px solid #8ca2bd; border-radius: 5px; }
.multi-options label:has(input:checked) { background: #eaf1fb; color: #194587; }
.multi-options label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: -2px; }
.top-filters .multi-options label { min-height: 44px; }
.top-filters .preset-row button { border-color: #aab9ca; }
.top-filters .preset-row button[aria-pressed="true"] { border-color: #2456a6; background: #e6eef9; color: #194587; }
.top-filters .color-presets button { border: 1px solid #c2ccd8; background: #fff; }
.top-filters .color-presets button.selected { border: 2px solid var(--primary); background: #e6eef9; }
.top-filters .filter-footer { border-radius: 0 0 6px 6px; border-color: #b8c4d2; background: #edf1f6; }
.result-card, .panel, .account-panel, .help-toc, .help-article, .word-export-toolbar {
  border-color: #b8c4d2;
  border-radius: 6px;
  box-shadow: none;
}
.result-card:hover { transform: none; border-color: #7892b2; }
.card-ai { border-color: #aab9ca; padding: 0; border-radius: 4px; }
.card-ai > summary { padding: 12px 10px; background: #edf1f6; color: #334155; border-radius: 4px; }
.card-ai > summary:hover { background: #e1e8f1; }
.card-ai[open] > summary { border-bottom: 1px solid #b8c4d2; border-radius: 4px 4px 0 0; }
.card-ai:not([open]) > summary > svg:last-child { transform: rotate(-90deg); }
.card-ai .detected { padding: 10px; }
.help-question { border-color: #aab9ca; border-radius: 5px; }
.help-question summary { background: #edf1f6; border-radius: 5px; }
.help-question[open] summary { border-bottom: 1px solid #b8c4d2; border-radius: 5px 5px 0 0; margin-bottom: 12px; }
.empty-state { border: 1px solid #b8c4d2; border-radius: 6px; color: #526277; }
.search-prompt { min-height: 190px; padding: 30px; gap: 12px; }
.search-prompt h2 { color: #263a52; }
.search-prompt > svg { color: #496685; }
.topbar { border-bottom-color: #b8c4d2; }
.brand-icon { border-radius: 6px; box-shadow: none; }
.account-hint a { color: #2456a6; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .top-filters .filter-title { padding: 16px; }
  .filter-section-toolbar { padding: 0 16px 14px; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 600px) {
  .top-filters .filter-title h2 { font-size: 16px; }
  .filter-section-actions { width: 100%; }
  .filter-section-actions .secondary { flex: 1; min-height: 44px; }
  .top-filters .filter-group > summary, .top-filters .filter-extra > summary { min-height: 54px; padding: 12px; }
  .filter-group-actions .text-button { min-height: 44px; font-size: 13px; }
  .top-filters .extra-fields { grid-template-columns: minmax(0, 1fr); }
  .top-filters .preset-row button { min-height: 40px; }
  .top-filters .color-presets button { min-width: 40px; min-height: 40px; }
  .search-prompt { min-height: 180px; padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Request and result snapshots in the administrator journal. */
#audit-events, #audit-found { scroll-margin-top: 20px; }
.audit-filters .audit-query-field { grid-column: 1/-1; }
.audit-filters .audit-person-field { grid-column: span 2; }
.audit-filters .field { min-width: 0; }
.audit-log-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.audit-log-heading h2 { margin: 0; }
.audit-event-list { display: grid; gap: 16px; margin-top: 22px; }
.audit-event { border: 1px solid #aab9ca; border-radius: 5px; min-width: 0; }
.audit-event-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #edf1f6; border-bottom: 1px solid #b8c4d2; border-radius: 5px 5px 0 0; color: #334155; font-size: 13px; }
.audit-event-header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.audit-event-body { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.1fr) minmax(0,1.2fr); }
.audit-event-body > div { min-width: 0; padding: 18px; overflow-wrap: anywhere; }
.audit-event-body > div + div { border-left: 1px solid #d4dde7; }
.audit-event-body h3 { margin: 0 0 12px; font-size: 14px; }
.audit-event-user > strong, .audit-event-user > span, .audit-event-user > small { display: block; margin-bottom: 8px; }
.audit-event-user > span { font-size: 13px; color: #52637a; }
.audit-event-user > small { font-size: 12px; line-height: 1.6; }
.audit-detail-link { color: #2456a6; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 9px; font-weight: 600; }
.audit-detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.audit-event-query dl { margin: 0; font-size: 13px; line-height: 1.55; }
.audit-event-query dt { color: #52637a; margin-top: 8px; }
.audit-event-query dd { color: #172b43; margin: 3px 0 0; }
.audit-event-query .audit-details { margin-top: 12px; }
.audit-event-query .audit-details summary { white-space: normal; }
.audit-event-query code, .audit-request-path code { overflow-wrap: anywhere; font-size: 12px; }
.audit-person-preview { padding: 10px 0; border-top: 1px solid #e2e8f0; font-size: 13px; line-height: 1.5; }
.audit-person-preview strong, .audit-person-preview span { display: block; }
.audit-person-preview span { margin-top: 4px; color: #52637a; }
.audit-event-results > small { display: block; margin-top: 10px; font-size: 12px; }
.audit-event-results .audit-failed { color: #a32525; }
.audit-activity > summary, .audit-query-details > summary { cursor: pointer; font-size: 16px; font-weight: 600; color: #263a52; line-height: 1.5; }
.audit-query-details { border-top: 1px solid #cbd5e1; margin-top: 24px; padding-top: 18px; }
.audit-query-details > summary { font-size: 14px; }
.audit-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; align-items: start; }
.audit-detail-grid > * { min-width: 0; }
.audit-parameters { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(0,1fr); margin: 20px 0 0; font-size: 14px; line-height: 1.6; }
.audit-parameters dt, .audit-parameters dd { padding: 11px 0; margin: 0; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.audit-parameters dt { color: #52637a; padding-right: 16px; }
.audit-parameters dd { color: #172b43; }
.audit-parameters > dd:only-child { grid-column: 1/-1; }
.audit-parameters code { font-size: 12px; }
.audit-result-search { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
.audit-result-search .field { flex: 1; min-width: 200px; max-width: 600px; margin: 0; }
.audit-result-search .field > span { font-size: 14px; color: #334155; }
.audit-result-search input { height: 44px; font-size: 15px; border-color: #aab9ca; }
.audit-found-list { border: 1px solid #b8c4d2; border-radius: 5px; }
.audit-found-row { display: grid; grid-template-columns: 32px minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr); gap: 16px; padding: 18px 16px; font-size: 14px; line-height: 1.6; }
.audit-found-row + .audit-found-row { border-top: 1px solid #d4dde7; }
.audit-found-row:nth-child(even) { background: #f6f8fb; }
.audit-found-row > div { min-width: 0; overflow-wrap: anywhere; }
.audit-found-row strong, .audit-found-row span, .audit-found-row small { display: block; }
.audit-found-row > div > span { margin-top: 5px; color: #52637a; font-size: 13px; }
.audit-found-row .audit-detail-link { margin-top: 0; }
.audit-found-rank { color: #64748b; font-weight: 600; }
@media (max-width: 1000px) {
  .audit-event-body { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .audit-event-user { grid-column: 1/-1; border-bottom: 1px solid #d4dde7; }
  .audit-event-body > .audit-event-query { border-left: 0; }
  .audit-detail-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (max-width: 600px) {
  .audit-filters { grid-template-columns: minmax(0,1fr); }
  .audit-filters .audit-person-field { grid-column: 1/-1; }
  .audit-event-body { grid-template-columns: minmax(0,1fr); }
  .audit-event-body > div { padding: 16px; }
  .audit-event-body > div + div { border-left: 0; border-top: 1px solid #d4dde7; }
  .audit-event-user { border-bottom: 0; }
  .audit-event-header { padding: 12px; }
  .audit-parameters { grid-template-columns: minmax(0,1fr); }
  .audit-parameters dt { border: 0; padding: 12px 0 0; }
  .audit-parameters dd { padding-top: 4px; }
  .audit-found-row { grid-template-columns: 24px minmax(0,1fr); gap: 8px 12px; padding: 16px 12px; }
  .audit-found-row > div:nth-last-child(-n+2) { grid-column: 2; }
  .audit-result-search input { font-size: 16px; }
}
.audit-source-links { margin-top: 20px; gap: 10px; }
.audit-source-links .secondary { white-space: normal; font-size: 13px; }

.login-attempt-table { min-width: 760px; }
.login-attempt-table td { vertical-align: top; }
.login-attempt-table td small { display: block; margin-top: 6px; color: #52637a; }
.login-attempt-table td code { overflow-wrap: anywhere; }
.login-attempt-table td form { margin-bottom: 8px; }

/* Invitation enrollment: two clear steps, required fields and local QR. */
.registration-page { max-width: 900px; }
.registration-page h1 { font-size: clamp(24px,4vw,32px); line-height: 1.3; }
.registration-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 22px; }
.registration-steps li { display: flex; align-items: center; gap: 10px; padding: 16px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; color: #52637a; }
.registration-steps li.active { border: 2px solid #6255d9; color: #25334b; font-weight: 600; }
.registration-steps li span { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #eef0f9; }
.registration-deadline { color: #52637a; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.registration-instructions { padding-left: 24px; color: #334155; font-size: 15px; line-height: 1.8; }
.registration-instructions li { margin-bottom: 10px; }
.registration-page .field small { font-size: 12px; color: #52637a; line-height: 1.6; }
.registration-manual { padding: 18px; border: 1px solid #cbd5e1; border-radius: 8px; }
.registration-manual summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.registration-secret { display: block; overflow-wrap: anywhere; padding: 16px; margin: 16px 0; background: #f1f5fa; letter-spacing: 1px; }
.registration-code { max-width: 460px; }
.registration-code input { max-width: 220px; font-size: 24px; letter-spacing: 6px; }
.invitation-created { border-color: #6255d9; }
.invitation-created .account-actions { margin-top: 16px; }
.invitation-created .field input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
@media(max-width: 600px) { .registration-steps { grid-template-columns: 1fr; } .registration-page .primary, .invitation-page .primary { white-space: normal; text-align: center; max-width: 100%; } }

/* Current database size and the full-search destination on the home page. */
.search-page > .page-heading { gap: 24px; flex-wrap: wrap; }
.database-summary { flex: 0 1 300px; min-width: 0; max-width: 100%; padding: 10px 14px; border: 1px solid #b9cbe2; border-left: 4px solid var(--primary); border-radius: 8px; background: #fff; box-shadow: 0 3px 14px #172b4308; }
.database-summary-status { display: flex; align-items: center; gap: 7px; color: #35654c; font-size: 11px; font-weight: 600; }
.database-summary-status i { width: 7px; height: 7px; flex-shrink: 0; background: #3b8960; border-radius: 50%; }
.database-summary-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin: 6px 0 7px; }
.database-summary-count strong { color: #172b43; font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.database-summary-count > span { color: #52637a; font-size: 11px; }
.database-summary-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; margin-top: 7px; border-top: 1px solid #dae3ee; color: var(--primary); font-size: 12px; font-weight: 650; }
.database-summary-link > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; min-width: 0; }
.database-summary-link small { color: #52637a; font-size: 10px; font-weight: 400; }
.database-summary-link svg { flex-shrink: 0; }
.database-summary-link:hover > span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .database-summary { flex: 1 1 100%; width: 100%; } }
