/* ===========================================================================
   ILA Media Hub  -  Prototype Stylesheet v0.2
   Marke: AbsaraSans (Fliesstext) + Sora (Display), ILA Blue, kantig, kein
   border-radius. Segmentfarben nur als Segment-Marker, nie als generischer
   Akzent. Generischer Akzent = ILA Blue.
   ========================================================================== */

/* ---- Schriften ---------------------------------------------------------- */
@font-face {
  font-family: "AbsaraSans";
  src: url("fonts/AbsaraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AbsaraSans";
  src: url("fonts/AbsaraSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AbsaraSans";
  src: url("fonts/AbsaraSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ila-blue: #008fd3;
  --ila-blue-strong: #006fa6;
  --space-blue: #004493;
  --ink: #101820;
  --ink-2: #1b2832;
  --muted: #51606a;
  --line: #d2dde4;
  --panel: #f4f8fb;
  --panel-2: #eaf2f8;
  --white: #ffffff;
  --focus: #008fd3;
  --warn: #b00020;
  --font-body: "AbsaraSans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Sora", "AbsaraSans", system-ui, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2l10 10L6 22l-3.2-3.2L9.6 12 2.8 5.2z'/%3E%3C/svg%3E");
  --schraffur: repeating-linear-gradient(135deg, var(--ila-blue) 0 3px, transparent 3px 8px);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

/* Sichtbarer, markeneigener Fokuszustand auf allem Bedienbaren */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.18rem;          /* gross + fett => klares Label, AA fuer grossen Text */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn--block {
  width: 100%;
}
.btn--sm {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.78rem;
  line-height: 1.1;
}
.btn--primary {
  color: var(--white);
  background: var(--ila-blue);
}
.btn--primary:hover {
  background: var(--ila-blue-strong);
}
.btn--dark {
  color: var(--white);
  background: var(--ink);
}
.btn--dark:hover {
  background: var(--ink-2);
}
.btn--ghost {
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
}
.btn--ghost:hover {
  color: var(--white);
  background: var(--ink);
}
.btn--danger {
  color: var(--white);
  background: var(--warn);
}
.btn--quiet-danger {
  color: var(--warn);
  background: var(--white);
  border: 1px solid var(--warn);
}
.btn--quiet-danger:hover {
  color: var(--white);
  background: var(--warn);
}
.has-arrow::after {
  content: "";
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.55em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / contain;
  mask: var(--arrow) no-repeat center / contain;
}

/* ---- Topbar / Marke ----------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 24px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 4px solid var(--ila-blue);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
.brand .brand-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.28);
}
.brand .brand-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar nav a,
.topbar-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
}
.topbar nav a:hover,
.topbar-feedback:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.topbar nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--ila-blue);
}
.topbar nav .is-active {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--ila-blue);
}
.account-email {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 36px;
  padding: 6px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.account-email:hover {
  color: var(--white);
}

/* ---- App-Shell ---------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 430px;
  min-height: calc(100vh - 66px);
}

.filters {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100vh - 66px);
  padding: 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.filters-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters-title::after {
  content: "";
  flex: 1;
  height: 8px;
  background: var(--schraffur);
  opacity: 0.7;
}
.filter-search,
.admin-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.filter-search input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
}
.filter-search input:hover {
  border-color: var(--ila-blue);
}
.filters .btn {
  margin-top: 4px;
}
.filter-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.filter-group legend {
  margin: 0 0 8px;
  padding: 0;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.filter-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: var(--white);
}
.filter-mode label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  margin: 0;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}
.filter-mode label + label {
  border-left: 1px solid var(--line);
}
.filter-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter-mode label:has(input:checked) {
  color: var(--white);
  background: var(--ink);
}
.filter-mode label:hover {
  color: var(--ink);
  background: var(--panel-2);
}
.filter-mode label:has(input:checked):hover {
  color: var(--white);
  background: var(--ila-blue);
}
.filter-options {
  display: grid;
  gap: 5px;
  max-height: 220px;
  overflow: auto;
  padding-right: 3px;
}
.filter-group[data-filter="aircraft"] .filter-options {
  max-height: 300px;
}
.filter-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 7px 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}
.filter-choice:hover {
  border-color: var(--ila-blue);
}
.filter-choice input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ila-blue);
  cursor: pointer;
}
.filter-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.25;
}
.filter-count {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- Workspace ---------------------------------------------------------- */
.workspace {
  min-width: 0;
  padding: 26px 28px 60px;
}
.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.workspace-head h1 {
  margin: 0;
  font-size: 1.7rem;
}
.workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.sort-control select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
}
.eyebrow {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--space-blue);            /* dunkleres Blau => AA-konform, CD-erlaubt */
}
.count {
  flex: none;
  align-self: center;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--ink);
}
.gallery-view-bar {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  margin: -6px 0 24px;
  padding: 12px 0;
  border-top: 4px solid var(--ila-blue);
  border-bottom: 1px solid var(--line);
}
.gallery-view-bar[hidden] {
  display: none;
}
.gallery-view-summary {
  display: grid;
  min-width: 0;
}
.gallery-view-bar .eyebrow {
  margin-bottom: 2px;
}
.gallery-view-bar strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1.18rem;
}
.gallery-view-bar small {
  color: var(--muted);
}
.gallery-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.gallery-view-visibility {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 7px;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border-left: 3px solid var(--line);
}
.gallery-view-visibility.is-public {
  color: var(--white);
  background: var(--ink);
  border-left-color: var(--ila-blue);
}
.gallery-view-link {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.gallery-view-link[hidden] {
  display: none;
}
.gallery-view-link label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-view-link input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.78rem;
}
.gallery-view-message {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.gallery-view-message:empty {
  display: none;
}

/* ---- Presse-Hero -------------------------------------------------------- */
.press-hero {
  margin: 0 0 24px;
  padding: 26px 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0) 0, rgba(16, 24, 32, 0.18) 100%),
    var(--ink);
  border-left: 6px solid var(--ila-blue);
}
.press-hero img {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.press-hero h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}
.press-hero p {
  margin: 0;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.86);
}
.press-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.press-note strong {
  color: var(--white);
}
.press-note a {
  color: var(--white);
  text-underline-offset: 3px;
}

/* ---- Galerie ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.workspace.is-drag-selecting {
  cursor: crosshair;
  user-select: none;
}
.selection-box {
  position: fixed;
  z-index: 45;
  display: none;
  pointer-events: none;
  border: 1px solid var(--ila-blue);
  background: rgba(0, 143, 211, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}
.selection-box.is-visible {
  display: block;
}
.asset-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: outline-color 0.08s ease;
}
.asset-card:hover {
  outline: 2px solid var(--ila-blue);
}
.asset-card.is-active {
  outline: 3px solid var(--ila-blue);
}
.asset-card.is-selected {
  outline: 3px solid var(--ila-blue);
  box-shadow: inset 0 0 0 3px rgba(0, 143, 211, 0.25);
}
.image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #cdd9e0;
  overflow: hidden;
}
.image-wrap img,
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-image img {
  object-fit: contain;
}
.press-flag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ila-blue);
}
.favorite-flag {
  position: absolute;
  right: 40px;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ila-blue);
  font-size: 1.1rem;
}
.select-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(16, 24, 32, 0.55);
  cursor: pointer;
}
.select-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--ila-blue);
  cursor: pointer;
}
.asset-meta {
  padding: 13px 14px 15px;
}
.asset-meta h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
}
.rights-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rights-badges--compact {
  margin: 0 0 8px;
}
.rights-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.model-release-icon {
  position: relative;
  width: 11px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #006eb6;
  border-radius: 1px;
  background: #eef8ff;
}
.model-release-icon::before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  left: 1px;
  height: 1px;
  background: #006eb6;
  box-shadow: 0 -3px 0 #006eb6;
}
.model-release-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 4px;
  height: 4px;
  border-bottom: 2px solid #006eb6;
  border-left: 2px solid #006eb6;
  background: #fff;
}
.rights-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}
.rights-filter-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}
.filter-group[data-filter="rights"] .filter-choice {
  grid-template-columns: 18px 28px auto;
  align-items: center;
}
.card-rating {
  margin: 0 0 7px !important;
  color: var(--ila-blue) !important;
  font-weight: 700;
}
.rights-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.rights-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rights-row .rights-badge {
  margin-top: 2px;
}
.rights-row-text {
  display: grid;
  gap: 2px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.rights-row-text span {
  color: var(--muted);
}
.rights-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0 0 18px;
  padding: 14px;
  font-size: 0.85rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.rights-facts dt {
  font-weight: 700;
}
.rights-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.rights-badge--editorial .rights-dot {
  background: #ffdc00;
  border: 1px solid rgba(16, 24, 32, 0.28);
}
.rights-badge--commercial .rights-dot {
  background: #008847;
}
.rights-badge--internal .rights-dot {
  background: #b00020;
}
.asset-meta p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.chips span.chip-seg {
  border-left: 4px solid var(--seg, var(--ila-blue));
}
/* Segmentfarben ueber data-seg statt style-Attribut (Content-Security-Policy). */
.chip-seg[data-seg="Aviation"] { --seg: #39b5b6; }
.chip-seg[data-seg="Space"] { --seg: #004493; }
.chip-seg[data-seg="Defence"],
.chip-seg[data-seg="Military/Defence"] { --seg: #008847; }
.chip-seg[data-seg="Supplier"] { --seg: #ffdc00; }
.account-magic-input {
  width: 100%;
  margin-top: 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.8rem;
}

/* ---- Detailpanel -------------------------------------------------------- */
.detail {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100vh - 66px);
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow: auto;
}
.detail.empty {
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.detail-person-return {
  position: sticky;
  z-index: 4;
  top: 0;
  width: 100%;
  justify-content: flex-start;
  background: var(--white);
  border: 0;
  border-bottom: 3px solid var(--ila-blue);
}
.detail-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #cdd9e0;
  cursor: zoom-in;
}
.detail-image .zoom-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(16, 24, 32, 0.62);
}
.detail__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  background: var(--ink);
  border: 0;
  cursor: pointer;
}
.detail__close:hover {
  background: var(--ila-blue);
}
.detail-body {
  padding: 22px;
}
.detail-vote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.detail-vote__label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating-row,
.rating-stars {
  display: flex;
  align-items: center;
}
.rating-row {
  gap: 9px;
}
.rating-star {
  width: 26px;
  height: 30px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: transparent;
  background: transparent;
  border: 0;
  -webkit-text-stroke: 1.4px var(--muted);
  cursor: pointer;
}
.rating-star.is-filled {
  color: var(--ila-blue);
  -webkit-text-stroke-color: var(--ila-blue);
}
.rating-stars:hover .rating-star {
  color: var(--ila-blue);
  -webkit-text-stroke-color: var(--ila-blue);
}
.rating-stars:hover .rating-star:hover ~ .rating-star {
  color: transparent;
  -webkit-text-stroke-color: var(--muted);
}
.rating-star:disabled {
  cursor: default;
}
.rating-summary {
  min-width: 58px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}
.favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}
.favorite-button span:first-child {
  color: var(--muted);
  font-size: 1.1rem;
}
.favorite-button.is-active {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
.favorite-button.is-active span:first-child {
  color: var(--white);
}
.account-vote-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ila-blue-strong);
}
.detail-body h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.detail-desc {
  margin: 0 0 4px;
  color: var(--ink);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.status::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
}
.status--public {
  color: #06351f;
  background: #d8efe2;
  border-left: 4px solid #008847;
}
.status--public::before {
  background: #008847;
}
.status--internal {
  color: var(--ink);
  background: var(--panel-2);
  border-left: 4px solid var(--muted);
}
.status--internal::before {
  background: var(--muted);
}
.detail dl {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 18px 0;
  font-size: 0.9rem;
}
.detail dt {
  color: var(--muted);
  font-weight: 500;
}
.detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail dd .rights-badges {
  margin-top: -2px;
}
.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}
.download-block {
  margin: 18px 0 6px;
}
.download-label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.download-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.download-row a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
}
.download-row a:hover {
  background: var(--ila-blue);
}
.download-row a .dl-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.download-row a .dl-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}
.download-foot {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- Admin-Form --------------------------------------------------------- */
.admin-form {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ila-blue);
}
.admin-form .admin-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-form label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.admin-form label.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ila-blue);
}
.filename-preview {
  margin: 4px 0 14px;
  padding: 10px 12px;
  background: var(--panel-2);
  border-left: 4px solid var(--ila-blue);
  font-size: 0.8rem;
}
.filename-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* ---- Load more ---------------------------------------------------------- */
.load-more {
  display: none;
  width: fit-content;
  margin: 28px auto 0;
}

/* ---- Bulk-Leiste -------------------------------------------------------- */
.bulkbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 4px solid var(--ila-blue);
  box-shadow: 0 14px 40px rgba(16, 24, 32, 0.4);
}
.bulkbar.is-visible {
  display: flex;
}
.bulkbar .bulk-count {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bulkbar .bulk-count b {
  color: var(--ila-blue);
}
.bulk-profile {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: #111820;
}
.bulk-profile option {
  color: var(--ink);
  background: var(--white);
}

/* ---- Custom Confirm ----------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 32, 0.62);
}
.overlay.is-open {
  display: grid;
}
.confirm-card {
  width: min(440px, 100%);
  padding: 26px;
  background: var(--white);
  border-top: 6px solid var(--ila-blue);
}
.feedback-dialog {
  width: min(560px, 100%);
}
.access-dialog,
.manage-dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.manage-dialog--wide {
  width: min(920px, 100%);
}
.access-dialog label {
  display: grid;
  gap: 6px;
  margin: 16px 0 8px;
  font-weight: 700;
}
.access-dialog input,
.gallery-create-manager input,
.invite-form-row input,
.invite-form-row select,
.hub-only-form-row input,
.hub-only-form-row select,
.hub-only-result-row input,
.account-editor input,
.account-editor select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
}
.access-email {
  font-weight: 700;
}
.gallery-create-manager,
.invite-form-row,
.gallery-create-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.invite-form-row {
  grid-template-columns: minmax(220px, 1fr) 140px auto;
}
.hub-only-access-create {
  margin: 12px 0;
  padding: 14px;
  background: var(--panel);
  border-left: 4px solid var(--ila-blue);
}
.hub-only-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hub-only-access-head h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.hub-only-access-head p,
.hub-only-result p {
  margin: 0;
  color: var(--muted);
}
.hub-only-form-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) minmax(170px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}
.hub-only-form-row label {
  display: grid;
  min-width: 0;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}
.hub-only-form-row .btn {
  min-height: 42px;
}
.hub-only-result {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hub-only-result[hidden] {
  display: none;
}
.hub-only-result > label {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}
.hub-only-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.gallery-manager-list,
.account-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}
.gallery-manager-item,
.account-list-item {
  padding: 11px 12px;
  background: var(--panel);
  border-left: 4px solid var(--ila-blue);
}
.gallery-manager-item {
  display: grid;
  gap: 8px;
}
.account-list-item.is-inactive {
  border-left-color: var(--muted);
}
.account-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gallery-manager-summary,
.gallery-manager-item > div,
.account-identity {
  display: grid;
  min-width: 0;
}
.gallery-manager-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.gallery-manager-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 0;
}
.gallery-manager-item span,
.account-identity span,
.account-identity small {
  font-size: 0.8rem;
  color: var(--muted);
}
.account-identity small {
  margin-top: 2px;
}
.account-identity-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.account-identity-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-source-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 5px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.account-source-badge--hub {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
.gallery-manager-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.gallery-manager-actions .icon-button {
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
}
.gallery-manager-dialog .btn--sm {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.72rem;
  line-height: 1.05;
}
.gallery-manager-dialog .gallery-manager-actions .icon-button {
  width: 32px;
  height: 32px;
}
.gallery-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.gallery-share-row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-size: 0.82rem;
}
.bulk-gallery-dialog {
  width: min(720px, 100%);
}
.bulk-gallery-public {
  margin: 10px 0 0;
}
.account-summary-actions,
.account-editor-actions,
.account-link-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.account-list .btn--sm {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.72rem;
  line-height: 1.05;
}
.account-editor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.account-editor[hidden] {
  display: none;
}
.account-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.account-editor label,
.account-magic-field {
  display: grid;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.account-magic-field {
  margin-top: 10px;
}
.account-activity {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.account-security {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-security h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}
.account-sso-note {
  color: var(--muted);
}
.account-sso-note {
  margin: 6px 0 12px;
}
.account-password-form {
  display: grid;
  gap: 12px;
}
.account-password-form[hidden] {
  display: none;
}
.account-password-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-password-grid label {
  margin: 0;
}
.account-link-actions {
  margin-top: 8px;
}
.feedback-review-dialog {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.feedback-review-head p {
  margin-bottom: 14px;
  color: var(--muted);
}
.feedback-status-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.feedback-status-tabs button {
  min-height: 42px;
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.feedback-status-tabs button:hover,
.feedback-status-tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--ila-blue);
}
.feedback-status-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 5px;
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--panel);
}
.feedback-review-list {
  display: grid;
  min-width: 0;
}
.feedback-review-empty {
  padding: 28px 0;
  color: var(--muted);
}
.feedback-review-item {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.feedback-review-item:first-child {
  border-top: 0;
}
.feedback-review-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.feedback-status {
  padding: 4px 7px;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border-left: 4px solid var(--muted);
}
.feedback-status--approved,
.feedback-status--processed {
  border-left-color: #008847;
}
.feedback-status--rejected,
.feedback-status--failed {
  border-left-color: var(--warn);
}
.feedback-status--processing {
  border-left-color: var(--ila-blue);
}
.feedback-review-body {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.feedback-review-body > *,
.feedback-review-content,
.feedback-review-copy,
.feedback-processing-note,
.feedback-review-asset span {
  min-width: 0;
}
.feedback-review-copy,
.feedback-processing-note,
.feedback-review-asset span {
  overflow-wrap: anywhere;
}
.feedback-review-asset {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.feedback-review-asset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel);
}
.feedback-review-asset span,
.feedback-review-portal {
  display: grid;
  gap: 3px;
}
.feedback-review-asset small,
.feedback-review-portal span,
.feedback-reviewer {
  color: var(--muted);
}
.feedback-review-portal {
  min-height: 120px;
  padding: 16px;
  background: var(--panel);
  border-left: 5px solid var(--ila-blue);
}
.feedback-review-content {
  display: grid;
  gap: 10px;
}
.feedback-review-copy > span,
.feedback-processing-note > span,
.feedback-review-content label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}
.feedback-review-copy p,
.feedback-processing-note p {
  margin: 0;
  white-space: pre-wrap;
}
.feedback-review-content textarea {
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
}
.feedback-processing-note {
  padding: 10px 12px;
  background: var(--panel);
  border-left: 4px solid var(--ila-blue);
}
.feedback-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}
.icon-button--danger {
  color: var(--warn);
}
.invite-result {
  margin: 12px 0;
  padding: 12px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.invite-result:empty {
  display: none;
}
.invite-result dl {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}
.invite-result dd {
  margin: 0;
}
.feedback-dialog label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 700;
  font-size: 0.9rem;
}
.feedback-dialog input,
.feedback-dialog select,
.feedback-dialog textarea {
  width: 100%;
}
.confirm-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.confirm-card p {
  margin: 0 0 20px;
  color: var(--ink);
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.gallery-exit-dialog {
  width: min(680px, 100%);
}
.gallery-exit-actions {
  flex-wrap: wrap;
}

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(11, 18, 25, 0.92);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.lightbox__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(11, 18, 25, 0.7);
}

/* ---- Personen ----------------------------------------------------------- */
.face-marker-layer {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.face-marker-layer[hidden] {
  display: none;
}
.face-marker {
  position: absolute;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  color: var(--white);
  background: rgba(0, 143, 211, 0.08);
  border: 2px solid var(--ila-blue);
  cursor: pointer;
  pointer-events: auto;
}
.face-marker:hover,
.face-marker:focus-visible {
  background: rgba(0, 143, 211, 0.22);
  outline: 3px solid var(--white);
  outline-offset: 1px;
}
.face-marker.is-approved,
.face-marker.is-pending {
  cursor: default;
}
.face-marker:disabled {
  pointer-events: none;
}
.face-marker.is-approved {
  border-color: var(--white);
}
.face-marker.is-pending {
  border-style: dashed;
}
.face-marker span {
  position: absolute;
  left: -2px;
  bottom: 100%;
  max-width: 190px;
  padding: 3px 6px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--ila-blue);
}
.face-marker.is-approved span {
  color: var(--ink);
  background: var(--white);
}
.person-tag-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 50px;
  padding: 8px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.person-tag-controls .btn.is-active {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
.person-tag-controls .btn:disabled {
  cursor: default;
  opacity: 0.62;
}
.person-tag-controls .btn[aria-busy="true"]::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: person-scan-spin 0.8s linear infinite;
}
@keyframes person-scan-spin {
  to { transform: rotate(360deg); }
}
.person-tag-status {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--warn);
  overflow-wrap: anywhere;
}
.detail-people {
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.detail-people h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
}
.detail-people ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.detail-person > span {
  display: grid;
  min-width: 0;
}
.detail-person strong,
.detail-person small {
  overflow-wrap: anywhere;
}
.detail-person small {
  color: var(--muted);
}
.detail-person__unlink {
  flex: none;
  width: 32px;
  height: 32px;
}
.detail-person__unlink svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}
#confirmOverlay {
  z-index: 190;
}
#personsOverlay {
  z-index: 165;
}
.overlay--person-dialog {
  z-index: 180;
}
.person-proposal-dialog {
  width: min(520px, 100%);
}
.person-candidates-dialog {
  width: min(640px, 100%);
}
.gallery-share-original {
  margin: 8px 0 0;
  font-size: 0.85rem;
}
.person-candidates-intro {
  margin: 10px 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.person-candidates-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 10px;
}
.person-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding: 2px;
  user-select: none;
}
.person-candidates-grid img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.selection-box--dialog {
  z-index: 200;
}
.person-candidates-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.person-candidate {
  position: relative;
  padding: 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--panel-2);
  border: 2px solid var(--line);
}
.person-candidate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-candidate:hover,
.person-candidate:focus-visible {
  border-color: var(--ila-blue);
  outline: none;
}
.person-candidate.is-selected {
  border-color: var(--ila-blue);
}
.person-candidate-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 20px;
  height: 20px;
  background: var(--ila-blue);
}
.person-candidate-check::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: rotate(-45deg);
}
.person-candidate.is-selected .person-candidate-check {
  display: block;
}
.person-proposal-dialog label,
.person-review-notes {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  font-weight: 700;
}
.person-proposal-dialog input,
.person-proposal-dialog textarea,
.person-review-notes textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0;
}
.person-admin-dialog {
  width: min(1120px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.person-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.person-admin-head h3 {
  margin: 0;
}
.person-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.person-tabs button {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.person-tabs button:hover,
.person-tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--ila-blue);
}
.person-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 5px;
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--panel);
}
.person-admin-content,
.person-review-main,
.person-review-meta,
.person-proposal-summary > div,
.person-unknown-row > div,
.person-directory-row > div {
  min-width: 0;
}
.person-admin-status {
  min-height: 1.5em;
}
.person-empty {
  padding: 28px 0;
  color: var(--muted);
}
.person-review-list,
.person-directory {
  display: grid;
}
.person-review-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(130px, auto);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.person-review-row:first-child {
  border-top: 0;
}
.person-review-row:hover,
.person-review-row:focus-visible {
  background: var(--panel);
  outline: 2px solid var(--ila-blue);
}
.person-review-row > img,
.person-proposal-summary > img,
.person-unknown-row > img,
.person-directory-row > img,
.person-directory-placeholder {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--panel-2);
}
.person-review-main,
.person-review-meta {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.person-review-main span,
.person-review-main small,
.person-review-meta,
.person-review-meta small {
  color: var(--muted);
}
.person-review-back {
  margin-bottom: 12px;
}
.person-proposal-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.person-proposal-summary > img {
  width: 108px;
}
.person-proposal-summary h4,
.person-directory-row h4 {
  margin: 2px 0 4px;
  font-size: 1rem;
}
.person-proposal-summary p,
.person-directory-row p {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.person-proposal-summary small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.person-source-preview {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.person-source-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel);
}
.person-candidate-fieldset {
  min-width: 0;
  margin: 18px 0 12px;
  padding: 0;
  border: 0;
}
.person-candidate-fieldset legend {
  margin-bottom: 8px;
  font-weight: 700;
}
.person-candidate-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--panel);
  border-left: 4px solid var(--ila-blue);
}
.person-candidate-tools p {
  margin: 0;
}
.person-candidate-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.person-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.person-candidate {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
}
.person-candidate.is-readonly {
  cursor: default;
}
.person-candidate:has(input:checked) {
  outline: 3px solid var(--ila-blue);
  outline-offset: -3px;
}
.person-candidate-select {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  cursor: pointer;
}
.person-candidate.is-readonly .person-candidate-select {
  cursor: default;
}
.person-candidate input {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  accent-color: var(--ila-blue);
}
.person-candidate-select img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--panel);
}
.person-candidate-select > span {
  display: grid;
  min-width: 0;
  padding: 7px 8px;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.person-candidate small {
  color: var(--muted);
}
.person-candidate .person-candidate-conflict {
  margin-top: 5px;
  padding-top: 5px;
  color: var(--warn);
  font-weight: 700;
  border-top: 1px solid currentColor;
}
.person-candidate-conflict strong {
  color: inherit;
}
.person-candidate-source {
  min-height: 34px;
  padding: 6px 8px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.person-candidate-source:hover,
.person-candidate-source:focus-visible {
  color: var(--ila-blue);
  outline: 2px solid var(--ila-blue);
  outline-offset: -2px;
}
.person-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.person-review-readonly {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border-left: 4px solid var(--ila-blue);
}
.person-unknown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.person-unknown-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 4px;
}
.person-unknown-toolbar p {
  margin: 0;
  color: var(--muted);
}
.person-unknown-row,
.person-directory-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.person-unknown-row div,
.person-directory-row div {
  display: grid;
  overflow-wrap: anywhere;
}
.person-unknown-row span,
.person-directory-row p {
  color: var(--muted);
}
.person-unknown-row small {
  margin-top: 3px;
  color: var(--muted);
}
.person-unknown-known {
  margin-top: 2px;
  color: var(--ink) !important;
}
.person-unknown-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.person-unknown-setup {
  min-width: 0;
}
.person-unknown-setup-head {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.person-unknown-setup-head > img {
  width: 108px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--panel);
}
.person-unknown-setup-head h4 {
  margin: 2px 0 4px;
}
.person-unknown-setup-head p {
  margin: 0 0 5px;
}
.person-unknown-setup-head small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.person-unknown-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}
.person-unknown-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-weight: 700;
}
.person-unknown-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0;
}
.person-unknown-form input[readonly] {
  color: var(--muted);
  background: var(--panel);
}
.person-directory-row ul {
  display: grid;
  gap: 3px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.person-directory-row li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.82rem;
}
.person-processing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.person-processing > div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.person-processing > div:nth-child(odd) {
  padding-right: 18px;
}
.person-processing dt {
  color: var(--muted);
}
.person-processing dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.person-processing-message {
  grid-column: 1 / -1;
}

/* ---- Login -------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    var(--schraffur) left top / 100% 14px no-repeat,
    linear-gradient(135deg, #ffffff 0%, var(--panel-2) 100%);
}
.login-panel {
  width: min(420px, 100%);
  padding: 34px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--ila-blue);
}
.login-panel img.login-logo {
  height: 32px;
  width: auto;
  margin-bottom: 22px;
  display: block;
}
.login-panel h1 {
  margin: 0;
  font-size: 1.6rem;
}
.login-panel .login-sub {
  margin: 6px 0 0;
  color: var(--muted);
}
.login-panel form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.login-sso {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.login-sso-action {
  display: block;
  text-align: center;
}
.login-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-panel form.login-local {
  margin-top: 16px;
}
.login-local .btn {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}
.login-panel label {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
}
.login-panel input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
}
.login-error {
  margin: 0;
  font-weight: 500;
  color: var(--warn);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1400px) {
  .topbar {
    gap: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .topbar nav {
    gap: 2px;
  }
  .topbar nav a,
  .topbar-feedback {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.76rem;
  }
  .account-email {
    max-width: 180px;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .detail {
    position: fixed;
    inset: 66px 0 0 auto;
    width: min(460px, 100vw);
    z-index: 50;
    box-shadow: -12px 0 34px rgba(16, 24, 32, 0.22);
  }
  .detail.empty {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .topbar {
    gap: 4px;
    min-height: 66px;
    padding-right: 10px;
    padding-left: 10px;
  }
  .brand {
    flex: 0 0 auto;
    gap: 0;
  }
  .brand img {
    height: 24px;
  }
  .brand .brand-sep,
  .brand .brand-tag {
    display: none;
  }
  .topbar nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
  }
  .topbar nav a,
  .topbar-feedback {
    min-width: 0;
    padding-right: 4px;
    padding-left: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .account-email {
    min-width: 0;
    max-width: 82px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 0.75rem;
    letter-spacing: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 60px;
    padding: 10px 14px;
  }
  .brand img {
    height: 24px;
  }
  .brand .brand-sep,
  .brand .brand-tag {
    display: none;
  }
  .topbar nav {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .topbar nav a,
  .topbar-feedback {
    min-width: 0;
    min-height: 40px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }
  .account-email {
    max-width: 140px;
  }
  .app-shell {
    display: block;
  }
  .filters {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .filters details {
    margin-top: 6px;
  }
  .filters summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }
  .workspace {
    padding: 18px;
  }
  .workspace-head {
    flex-direction: column;
    align-items: start;
  }
  .workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .gallery-view-bar {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-view-actions {
    justify-content: flex-start;
  }
  .gallery-view-link {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .gallery-view-link label {
    grid-column: 1 / -1;
  }
  .btn--sm {
    min-height: 42px;
  }
  .account-list .btn--sm {
    min-height: 40px;
  }
  .gallery-manager-actions .icon-button {
    width: 42px;
    height: 42px;
  }
  .gallery-manager-dialog .btn--sm {
    min-height: 40px;
  }
  .gallery-manager-dialog .gallery-manager-actions .icon-button {
    width: 40px;
    height: 40px;
  }
  .gallery-exit-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .press-hero {
    padding: 20px;
  }
  .detail {
    inset: 0;
    width: 100vw;
    height: 100dvh;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .bulkbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bulkbar .bulk-count {
    width: 100%;
    text-align: center;
  }
  .detail-vote {
    align-items: flex-start;
    flex-direction: column;
  }
  .invite-form-row {
    grid-template-columns: 1fr;
  }
  .hub-only-access-head,
  .hub-only-form-row,
  .hub-only-result-row {
    grid-template-columns: 1fr;
  }
  .hub-only-access-head {
    display: grid;
  }
  .hub-only-form-row .btn,
  .hub-only-result-row .btn {
    width: 100%;
  }
  .gallery-manager-item,
  .account-list-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-editor-grid,
  .account-password-grid {
    grid-template-columns: 1fr;
  }
  .feedback-review-dialog {
    max-height: calc(100dvh - 28px);
  }
  .feedback-status-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feedback-status-tabs button {
    text-align: left;
  }
  .feedback-review-body {
    grid-template-columns: 1fr;
  }
  .feedback-review-asset {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
  }
  .overlay {
    padding: 14px;
  }
  .person-admin-dialog,
  .person-proposal-dialog {
    max-height: calc(100dvh - 28px);
    padding: 18px;
    overflow: auto;
  }
  .person-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person-tabs button {
    min-width: 0;
    text-align: left;
  }
  .person-review-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .person-review-row > img,
  .person-unknown-row > img,
  .person-directory-row > img,
  .person-directory-placeholder {
    width: 64px;
  }
  .person-review-meta {
    grid-column: 2;
  }
  .person-proposal-summary {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }
  .person-proposal-summary > img {
    width: 88px;
  }
  .person-source-preview {
    grid-column: 1 / -1;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
  }
  .person-candidate-tools,
  .person-unknown-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .person-candidate-tools > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .person-unknown-grid,
  .person-processing {
    grid-template-columns: 1fr;
  }
  .person-unknown-row,
  .person-directory-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .person-unknown-row .btn,
  .person-directory-row > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .person-unknown-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .person-unknown-setup-head {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }
  .person-unknown-setup-head > img {
    width: 88px;
  }
  .person-unknown-setup-head .person-source-preview {
    grid-column: 1 / -1;
  }
  .person-unknown-form {
    grid-template-columns: 1fr;
  }
  .person-processing > div,
  .person-processing > div:nth-child(odd) {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
    padding-right: 0;
  }
  .person-processing-message {
    grid-column: auto;
  }
}

/* Detail-Tags + Feedback-Formular */
.detail-chips {
  margin: 8px 0 4px;
}
.feedback-form {
  margin-top: 18px;
  border: 1px solid #d7d7d7;
  padding: 12px;
}
.feedback-form > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ila-blue, #008fd3);
}
.feedback-form .fb-hint {
  color: #666;
  font-size: 13px;
  margin: 10px 0;
}
.feedback-form label {
  display: block;
  margin: 10px 0 4px;
  font-size: 14px;
}
.feedback-form select,
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font: inherit;
  box-sizing: border-box;
}
.feedback-form .fb-status {
  margin-top: 8px;
  font-size: 13px;
  color: #008847;
  min-height: 1.1em;
}
.feedback-account-note {
  margin: 18px 0 0;
  padding: 10px 12px;
  background: var(--white);
  border-left: 4px solid var(--ila-blue);
  font-size: 0.84rem;
}
.gallery-picker {
  margin: 16px 0 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.gallery-picker > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ila-blue-strong);
}
.gallery-picker__list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.gallery-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  background: var(--panel);
}
.gallery-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--ila-blue);
}
.gallery-choice small,
.gallery-empty,
.fb-hint {
  color: var(--muted);
}
.gallery-create-inline input {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
}

/* ---- Öffentliche Galerien ----------------------------------------------- */

.public-gallery-body {
  min-height: 100vh;
  background: var(--white);
}
.public-gallery-shell {
  min-height: calc(100vh - 66px);
}
.public-gallery-info h1 {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  font-size: 1.4rem;
}
.public-gallery-info > p:not(.filters-title, .eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
}
.public-gallery-info > p strong {
  color: var(--ink);
}
.public-gallery-info .btn {
  margin-top: 12px;
}
.public-gallery-hero h1 {
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.public-gallery-hero-kicker {
  margin: 0 0 8px !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78) !important;
}
.public-gallery-workspace-head {
  align-items: center;
}
.public-gallery-grid {
  align-content: start;
}
.public-gallery-card {
  min-width: 0;
  cursor: default;
}
.public-gallery-image-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.public-gallery-image-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.public-gallery-credit {
  min-height: 2.6em;
  margin: 0 0 12px !important;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}
.public-gallery-card-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.82rem;
  text-underline-offset: 3px;
  color: var(--ila-blue-strong);
}
.public-gallery-card-download::after {
  content: "";
  width: 0.58em;
  height: 0.58em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / contain;
  mask: var(--arrow) no-repeat center / contain;
}
.public-gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  background: var(--panel);
  border-left: 5px solid var(--ila-blue);
  color: var(--muted);
}
.public-gallery-detail .detail-image {
  cursor: default;
}
.public-gallery-download-row {
  grid-template-columns: 1fr;
}
.public-gallery-download-row a {
  min-height: 62px;
  justify-content: center;
}

@media (max-width: 760px) {
  .public-gallery-info {
    padding: 18px;
  }
  .public-gallery-info h1 {
    font-size: 1.2rem;
  }
  .public-gallery-hero h1 {
    font-size: 1.55rem;
  }
  .public-gallery-credit {
    min-height: 0;
  }
}

/* ---- KI-Bildsuche -------------------------------------------------------- */

.ai-offer {
  display: block;
  width: 100%;
  margin: 2px 0 14px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ila-blue);
  border-left-width: 4px;
  cursor: pointer;
}
.ai-offer[hidden] {
  display: none;
}
.ai-offer:hover {
  background: var(--panel-2);
}
.ai-offer:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.ai-offer.is-loading {
  cursor: progress;
  opacity: 0.75;
}
.ai-offer-head {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ila-blue-strong);
}
.ai-offer-head::before {
  content: "\2726\00A0";
  color: var(--ila-blue);
}
.ai-offer-query {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ai-offer-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
}

.ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--ila-blue);
  border-left-width: 4px;
}
.ai-bar[hidden] {
  display: none;
}
.ai-bar > div {
  min-width: 0;
}
.ai-bar .ai-bar-badge {
  color: var(--ila-blue-strong);
}
.ai-bar .ai-bar-badge::before {
  content: "\2726\00A0";
  color: var(--ila-blue);
}
.ai-bar strong {
  display: block;
  overflow-wrap: anywhere;
}
.ai-bar small {
  color: var(--muted);
}
.ai-bar .btn {
  flex-shrink: 0;
}

/* ==========================================================================
   Lichttisch-Umbau, 25.07.2026
   Ergebnis der Design- und UX-Pruefung. Die Regeln stehen bewusst am Ende
   der Datei und ueberschreiben die aelteren Layoutannahmen:
   - das Raster bekommt die volle Breite statt 40 Prozent
   - die Karte traegt ein Bild, keinen Datensatz
   - die Filter werden zur Schiene und mobil zum Blatt von unten
   - das Detail wird ein Overlay statt einer dauerhaft reservierten Spalte
   ========================================================================== */

/* -- Sprunglink: erster Tabstop der Seite ---------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* -- Topbar: drei Gruppen statt einer Reihe -------------------------------- */
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.nav-group + .nav-group {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* -- Trefferzahl ist eine Angabe, kein Knopf ------------------------------- */
.count {
  flex: none;
  align-self: center;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  font-variant-numeric: tabular-nums;
}

/* -- Grundriss: eine Spalte plus Filterschiene ----------------------------- */
.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.workspace {
  order: 2;
  min-width: 0;
}
.filters {
  order: 1;
  width: 248px;
  padding: 18px 16px 24px;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filters-close,
.filters-sheet-foot {
  display: none;
}
.filters-scrim {
  display: none;
}
.filters-open {
  display: none;
}
.filter-mode label {
  font-size: 0.72rem;
}
.filter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--muted);
}
.legend-dot.rights-commercial { background: #0f7f4f; }
.legend-dot.rights-editorial { background: var(--ila-blue); }
.legend-dot.rights-internal { background: #b4232a; }

/* -- Der Lichttisch ------------------------------------------------------- */
.gallery {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.asset-card {
  border: 0;
  background: #cdd9e0;
  outline-offset: 0;
}
.asset-card .image-wrap {
  aspect-ratio: 3 / 2;
}
.asset-card .asset-meta {
  display: none;
}
.asset-card:hover,
.asset-card:focus-visible {
  outline: 3px solid var(--ila-blue);
}
.asset-card.is-selected {
  outline: 3px solid var(--ila-blue);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}

/* Rechtestatus als Kante am Bild, nicht als Punkt in einer Textzeile. */
.rights-edge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 4px;
  height: 100%;
  background: var(--muted);
}
.rights-edge.rights-commercial { background: #0f7f4f; }
.rights-edge.rights-editorial { background: var(--ila-blue); }
.rights-edge.rights-internal { background: #b4232a; }

/* Titel, Credit und Schnellaktionen erscheinen bei Hover und bei Fokus. */
.asset-hover {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 8px 7px 10px;
  color: var(--white);
  background: linear-gradient(to top, rgba(11, 22, 34, 0.92) 0%, rgba(11, 22, 34, 0.72) 55%, rgba(11, 22, 34, 0) 100%);
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}
.asset-card:hover .asset-hover,
.asset-card:focus-visible .asset-hover,
.asset-card.is-active .asset-hover {
  opacity: 1;
}
.asset-hover-title {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.asset-hover-credit {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
}
.asset-quick {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 2px;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.asset-card:hover .asset-quick,
.asset-card:focus-within .asset-quick,
.asset-card.is-active .asset-quick {
  opacity: 1;
}
.asset-quick button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 22, 34, 0.2);
  cursor: pointer;
}
.asset-quick button:hover {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
.asset-quick button.is-on {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
/* Die Auswahlbox rutscht nach links, damit sie den Schnellaktionen
   nicht in die Finger faellt. */
.asset-card .select-toggle {
  top: 4px;
  right: auto;
  left: 4px;
}
.asset-card .press-flag {
  top: auto;
  bottom: 0;
  padding: 3px 7px;
  font-size: 0.62rem;
}
.asset-card .favorite-flag {
  left: auto;
  right: 4px;
  bottom: 4px;
  top: auto;
}

/* -- Detail als Overlay --------------------------------------------------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0;
}
.detail-overlay[hidden] {
  display: none;
}
.detail-overlay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 34, 0.72);
}
.detail-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1560px, 100vw);
  height: 100vh;
  background: var(--white);
}
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 5px 8px 5px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.detail-topbar-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.detail-mark {
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.detail-mark--rights-commercial { color: #0f7f4f; border-color: #0f7f4f; }
.detail-mark--rights-editorial { color: var(--ila-deep, #00618f); border-color: var(--ila-blue); }
.detail-mark--rights-internal { color: #b4232a; border-color: #b4232a; }
.detail-mark--selected {
  color: var(--white);
  background: var(--ila-blue);
  border-color: var(--ila-blue);
}
.detail-topbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.detail-position {
  margin-right: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.detail-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}
.detail-icon:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.detail-icon:disabled {
  opacity: 0.35;
  cursor: default;
}
.detail-icon--close:hover {
  background: #b4232a;
  border-color: #b4232a;
}
.detail-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.detail-stage {
  flex: 1 1 64%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1a2430;
}
.detail-stage-image {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
}
.detail-stage-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
.detail-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 7px 14px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Panel: Aktionszeile bleibt oben stehen, nur der Inhalt scrollt. */
.detail {
  position: static;
  flex: 0 0 clamp(340px, 34%, 420px);
  /* Die alte Recherche-Seitenleiste weiter oben setzt align-self: start;
     im Overlay muss die Spalte die volle Zeilenhoehe behalten, sonst
     waechst sie mit dem Inhalt aus dem Fenster und nichts kann scrollen. */
  align-self: stretch;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--white);
}
.detail-actions {
  flex: none;
  display: grid;
  gap: 5px;
  padding: 8px;
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
}
/* Die CI-Buttonklasse ist fuer Seitenflaechen dimensioniert; in der
   schmalen Overlay-Spalte gilt: flach, damit Personen und Korrektur
   ohne langes Scrollen im Blick bleiben. */
.detail-actions .btn {
  padding: 8px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.detail-actions .gallery-picker {
  margin: 0;
  padding: 7px 10px;
}
.detail-actions .gallery-picker > summary {
  font-size: 0.8rem;
}
.detail-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.detail-tabs {
  flex: none;
  display: flex;
  border-bottom: 1px solid var(--line);
}
.detail-tab {
  flex: 1;
  padding: 9px 4px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.detail-tab:last-child {
  border-right: 0;
}
.detail-tab[aria-selected="true"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--ila-blue);
}
.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}
.detail-panel[hidden] {
  display: none;
}
/* Personen und Korrektur sind eine feste Werkzeugzone unter dem
   Registerinhalt: in jedem Register sichtbar, egal wie lang der Text
   darueber ist. */
.detail-tools {
  flex: none;
  max-height: 46vh;
  overflow-y: auto;
  padding: 9px 14px 10px;
  border-top: 2px solid var(--ink);
  background: var(--white);
}
.detail-block + .detail-block {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.detail-block .feedback-form {
  margin: 0;
  border: 0;
  padding: 0;
}
.detail-block .feedback-account-note {
  margin: 0;
}
.detail-block .person-tag-controls {
  margin-bottom: 8px;
}
/* Lange Personenlisten scrollen intern, statt die Zone zu sprengen. */
.detail-people ul {
  max-height: 132px;
  overflow-y: auto;
}
.detail-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.detail-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 22, 34, 0.95);
}
.detail-fullscreen[hidden] {
  display: none;
}
.detail-fullscreen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}

/* -- Tablet: Panel schmaler, Raster enger -------------------------------- */
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .filters-open-count {
    padding: 1px 6px;
    font-size: 0.72rem;
    color: var(--white);
    background: var(--ila-blue);
    font-variant-numeric: tabular-nums;
  }
  .filters {
    position: fixed;
    z-index: 130;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(360px, 88vw);
    height: 100%;
    transform: translateX(-101%);
    transition: transform 0.16s ease;
    border-right: 1px solid var(--line);
    box-shadow: 0 0 40px rgba(11, 22, 34, 0.28);
  }
  .filters.is-open {
    transform: translateX(0);
  }
  body.filters-open-state .filters-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(11, 22, 34, 0.5);
  }
  .filters-close {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .filters-sheet-foot {
    display: block;
    position: sticky;
    bottom: 0;
    margin: 16px -16px -24px;
    padding: 10px 16px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .detail-stage {
    flex: 1 1 58%;
  }
  .detail {
    flex: 0 0 clamp(300px, 42%, 360px);
  }
}

/* -- Mobil: Stapel, Aktionen unten am Daumen ----------------------------- */
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 5px;
  }
  .workspace-head {
    position: sticky;
    top: 66px;
    z-index: 40;
    padding-bottom: 10px;
    background: var(--bg);
  }
  .filters {
    width: 100%;
    max-width: none;
    top: auto;
    height: 86vh;
    transform: translateY(101%);
    border-right: 0;
    border-top: 2px solid var(--ink);
  }
  .filters.is-open {
    transform: translateY(0);
  }
  .detail-shell {
    width: 100vw;
  }
  .detail-main {
    flex-direction: column;
  }
  .detail-stage {
    flex: none;
    max-height: 45vh;
  }
  .detail {
    flex: 1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  /* Auf dem Handy wandert die Aktionszeile unter den Text. */
  .detail-actions {
    order: 4;
    border-top: 2px solid var(--ink);
    border-bottom: 0;
  }
  .detail-tabs {
    order: 1;
  }
  .detail-scroll {
    order: 2;
  }
  .detail-tools {
    order: 3;
  }
  .detail-foot {
    order: 5;
  }
  .detail-position {
    display: none;
  }
  .asset-quick,
  .asset-hover {
    opacity: 1;
  }
  .asset-hover {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filters,
  .asset-hover,
  .asset-quick {
    transition: none;
  }
}

/* -- Nachbesserungen aus der ersten Sichtprüfung des Lichttischs ---------- */

/* Die Topbar muss einzeilig bleiben: mehrere sticky-Regeln rechnen mit 66 px. */
.topbar {
  flex-wrap: nowrap;
  gap: 14px;
}
.brand-tag {
  white-space: nowrap;
}
.topbar nav {
  flex-wrap: nowrap;
  gap: 4px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.topbar nav a,
.topbar nav button {
  white-space: nowrap;
}
.nav-group + .nav-group {
  padding-left: 12px;
}

/* Kacheln etwas groesser: Motive bleiben erkennbar, 5 bis 6 Spalten.
   Bewusst an eine Mindestbreite gebunden, sonst schlaegt diese spaetere
   Regel die Mobil-Media-Query weiter unten in dieser Datei. */
@media (min-width: 821px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  }
}

/* Die Auswahlbox soll das Raster nicht punktieren. Sie erscheint bei
   Hover und Fokus und bleibt sichtbar, sobald das Bild ausgewaehlt ist. */
.asset-card .select-toggle {
  opacity: 0;
  transition: opacity 0.1s ease;
}
.asset-card:hover .select-toggle,
.asset-card:focus-within .select-toggle,
.asset-card.is-selected .select-toggle,
.asset-card.is-active .select-toggle {
  opacity: 1;
}
@media (hover: none) {
  /* Auf Touchgeraeten gibt es kein Hover, dort bleibt sie sichtbar. */
  .asset-card .select-toggle {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .asset-card .select-toggle {
    transition: none;
  }
}

/* Auch die Gruppen selbst duerfen nicht umbrechen, sonst wird die Leiste
   zweizeilig und alle sticky-Regeln, die mit 66 px rechnen, verrutschen. */
.nav-group {
  flex-wrap: nowrap;
}
@media (max-width: 1440px) {
  .topbar nav {
    font-size: 0.78rem;
    gap: 3px 9px;
  }
  .nav-group {
    gap: 3px 9px;
  }
  .nav-group + .nav-group {
    padding-left: 9px;
  }
  .account-email {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Auf der Buehne fuellt das Bild die Flaeche; das feste 4:3 der alten
   Detailspalte wuerde sonst einen grauen Streifen darunter lassen. */
.detail-stage-image {
  position: relative;
}
.detail-stage .detail-image {
  position: absolute;
  inset: 14px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  background: none;
  cursor: zoom-in;
}
.detail-stage .detail-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mobil bleibt der Lichttisch dicht: drei Spalten, Titel nur zweizeilig. */
@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .asset-hover {
    padding: 14px 5px 4px 6px;
  }
  .asset-hover-title {
    font-size: 0.66rem;
    -webkit-line-clamp: 2;
  }
  .asset-hover-credit {
    display: none;
  }
  .asset-quick button {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
}
@media (max-width: 420px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Der feste Bestaetigen-Knopf darf die letzte Facette nicht verdecken. */
@media (max-width: 1180px) {
  .filters {
    padding-bottom: 84px;
  }
}

/* -- Oeffentliche Galerie: eigenes Raster (25.07.2026 abends) ------------ */
/* Die Galerieseite nutzt .filters/.workspace/.detail nur als Basisklassen
   und behaelt ihre Drei-Spalten-Form. Die Filterschiene, der order-Tausch
   und die Overlay-Regeln der internen Ansicht duerfen hier nicht greifen:
   sonst rueckt die order-lose Detailspalte an Position 1, der Bildbereich
   landet 248 px schmal in Reihe 2 und die Schiene schiebt die Infospalte
   aus dem Fenster. Genau so verschwanden am 25.07. die Galeriebilder. */
.public-gallery-shell {
  grid-template-columns: 280px minmax(0, 1fr) 380px;
}
.public-gallery-shell > .public-gallery-info,
.public-gallery-shell > .public-gallery-workspace,
.public-gallery-shell > .public-gallery-detail {
  order: 0;
  transform: none;
  transition: none;
  width: auto;
  max-width: none;
  box-shadow: none;
}
.public-gallery-shell > .public-gallery-info {
  position: sticky;
  z-index: 2;
  top: 66px;
  bottom: auto;
  left: auto;
  align-self: start;
  height: calc(100vh - 66px);
  padding: 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-top: 0;
  overflow: auto;
}
.public-gallery-shell > .public-gallery-workspace {
  min-width: 0;
}
.public-gallery-shell > .public-gallery-detail {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100vh - 66px);
  display: block;
  flex: none;
  min-height: 0;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow: auto;
}
.public-gallery-shell > .public-gallery-detail.empty {
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .public-gallery-shell {
    display: block;
  }
  .public-gallery-shell > .public-gallery-info,
  .public-gallery-shell > .public-gallery-detail {
    position: static;
    height: auto;
    border-right: 0;
    border-left: 0;
  }
  /* Ohne Auswahl braucht der Stapel keinen leeren Platzhalter. */
  .public-gallery-shell > .public-gallery-detail.empty {
    display: none;
  }
}

/* Code-Review 03.09.2026, Welle 2: Transparenz, Protokoll, Loeschpfade */
.site-footer{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;padding:14px 20px;font-size:.75rem;color:var(--muted)}
.site-footer a{color:inherit;text-decoration:underline}
.login-body .site-footer{position:fixed;left:0;right:0;bottom:0}
.person-proposal-hint{margin:0 0 12px;font-size:.8rem;line-height:1.4;color:var(--muted)}
.person-audit-list{list-style:none;margin:0;padding:0}
.person-audit-list li{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.8rem;line-height:1.4}
.person-audit-list time{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem}
.person-audit-list small{display:block;color:var(--muted)}
.person-audit-list .person-audit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.person-audit-more{margin-top:12px}
.person-directory-actions{display:flex;gap:8px;flex-wrap:wrap;align-self:start}
.btn--danger-text{color:var(--quiet-danger)}
.person-face-data-delete{margin-top:8px}
#bulkGalleryStatus{overflow-wrap:anywhere}
@media (max-width:640px){.person-audit-list li{grid-template-columns:1fr}}
