/* Core styles (from the Archiv Mende base). The Medialab look is in medialab.css, loaded after this file. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #555555;      /* secondary text */
  --ink-3: #8a8a8a;      /* tertiary, disabled */
  --field: #ededed;      /* inputs, placeholders */
  --rule: #000000;
  --error: #c8102e;      /* errors and destructive actions only */
  --gut: 24px;
  --side: 280px;
  --f: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--f); font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--ink); color: var(--paper); height: 56px; position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; text-decoration: none; align-items: center; gap: 12px; padding: 0 var(--gut); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 18px; height: 18px; background: var(--paper); }
.nav { display: flex; align-items: stretch; }
.nav a { display: flex; align-items: center; padding: 0 18px; font-weight: 500; }
.nav a:hover { text-decoration: none; background: #222; }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav .user { padding: 0 18px; display: flex; align-items: center; gap: 14px; color: #bbb; font-size: 13px; }
.nav .user a { padding: 0; color: var(--paper); }
.nav .user a:hover { background: none; text-decoration: underline; }
.menu-btn { display: none; align-items: center; margin-left: auto; cursor: pointer; }

.flash { background: var(--ink); color: var(--paper); padding: 10px var(--gut); font-weight: 500; border-top: 1px solid #333; }

/* ---------------------------------------------------------------- page frame */
.page { padding: var(--gut); }
.with-side { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - 56px); }
.side { border-right: 1px solid var(--rule); padding: var(--gut); position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; }
.main { padding: var(--gut); min-width: 0; }

.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
input[type=text], input[type=search], input[type=password], input[type=url], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 9px 10px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.field { margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--f);
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 10px 16px; cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { border-color: var(--error); background: var(--paper); color: var(--error); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- filters (side) */
.search { display: flex; margin-bottom: 24px; }
.search input { border-right: 0; }
.search .btn { padding: 0 12px; }
.facet { margin-bottom: 24px; }
.facet h3 { margin-bottom: 8px; }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet li a { display: flex; justify-content: space-between; padding: 4px 8px; margin: 0 -8px; }
.facet li a[aria-current="true"] { background: var(--ink); color: var(--paper); text-decoration: none; }
.chips { display: flex; gap: 0; }
.chips a { flex: 1; text-align: center; padding: 6px 0; border: 1px solid var(--ink); margin-left: -1px; }
.chips a:first-child { margin-left: 0; }
.chips a[aria-current="true"] { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------------------------------------------------------------- the grid (contact sheet) */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 28px 20px; }
.frame { position: relative; }
.frame .pic { aspect-ratio: 1 / 1; background: var(--field); overflow: hidden; outline: 1px solid var(--ink); }
.frame .pic img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.frame a:hover { text-decoration: none; }
.frame a:hover .pic { outline-width: 3px; }
.frame .num { display: block; margin-top: 8px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.frame .ttl { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.frame .add {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font: 500 22px/1 var(--f); opacity: 0;
}
.frame:hover .add, .frame .add:focus-visible, .frame .add.on { opacity: 1; }
.frame .add.on { background: var(--ink); color: var(--paper); }
.empty { border: 1px solid var(--ink); padding: 32px; max-width: 560px; }

/* ---------------------------------------------------------------- image record */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; min-height: calc(100vh - 56px); }
.stage { padding: var(--gut); border-right: 1px solid var(--rule); min-width: 0; }
.stage .view { background: var(--field); display: flex; align-items: center; justify-content: center; min-height: 52vh; }
.stage .view img { max-height: 72vh; width: auto; }
.stage nav.pn { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 500; }
.meta { padding: var(--gut); }
.archnum { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; margin: 4px 0 16px; word-break: break-word; }
.archnum .film { color: var(--ink-3); }
dl.facts { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; margin: 0 0 24px; }
dl.facts dt { color: var(--ink-2); font-size: 13px; padding-top: 2px; }
dl.facts dd { margin: 0; }
.block { border-top: 1px solid var(--rule); padding: 16px 0 20px; }
.block > h3 { margin-bottom: 10px; }
.pill { display: inline-block; border: 1px solid var(--ink); padding: 1px 8px; font-size: 13px; }
.pill.solid { background: var(--ink); color: var(--paper); }

/* the frames of one Fototasche: 6x6 cm on 120 roll film — square frames, no perforations
   (Armin Linke, 13.10.2026). Non-square scans are shown whole, never cropped. */
.strip { margin-top: 28px; }
.strip h3 { margin-bottom: 10px; }
.strip .band { background: var(--ink); padding: 12px; display: flex; gap: 8px; overflow-x: auto; }
.strip a { flex: 0 0 auto; width: 112px; color: var(--paper); font-size: 12px; text-align: left; }
.strip a .pic { aspect-ratio: 1 / 1; background: #2a2a2a; outline: 1px solid #444; overflow: hidden; }
.strip a .pic img { width: 100%; height: 100%; object-fit: contain; }
.strip a[aria-current="true"] .pic { outline: 3px solid var(--paper); }
.strip a span { display: block; margin-top: 4px; }

.files { width: 100%; border-collapse: collapse; font-size: 13px; }
.files th, .files td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.files th { font-weight: 500; color: var(--ink-2); }
.files td.n { white-space: nowrap; text-align: right; }
.files .fn { word-break: break-all; }

/* captions: one tab per language */
.tabs { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.tabs button { font: 500 15px/1 var(--f); background: var(--paper); border: 0; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button .dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: middle; background: currentColor; }
.tabs button .dot.no { background: none; outline: 1px solid currentColor; }
.capform[hidden] { display: none; }
.capform .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.saved { font-size: 13px; color: var(--ink-2); }

/* add-to-collection menu */
.collmenu { position: relative; }
.collmenu ul { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--ink); }
.collmenu li + li { border-top: 1px solid #ddd; }
.collmenu button.item { width: 100%; text-align: left; background: var(--paper); border: 0; padding: 9px 12px; font: inherit; cursor: pointer; display: flex; justify-content: space-between; }
.collmenu button.item:hover { background: var(--ink); color: var(--paper); }
.collmenu button.item.on { font-weight: 700; }

/* ---------------------------------------------------------------- collections */
.clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.citem { border: 1px solid var(--ink); display: grid; grid-template-rows: auto 1fr; }
.citem .pic { aspect-ratio: 16 / 9; background: var(--field); overflow: hidden; border-bottom: 1px solid var(--ink); }
.citem .pic img { width: 100%; height: 100%; object-fit: cover; }
.citem .body { padding: 14px 16px 16px; }
.citem h2 { font-size: 20px; margin-bottom: 4px; }
.newcoll { border: 1px solid var(--ink); padding: 20px; background: var(--paper); }

.seq { list-style: none; margin: 0; padding: 0; counter-reset: seq; }
.seq > li { display: grid; grid-template-columns: 48px 240px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.seq > li::before { counter-increment: seq; content: counter(seq); font-size: 28px; font-weight: 500; line-height: 1; }
.seq .pic { aspect-ratio: 1 / 1; background: var(--field); outline: 1px solid var(--ink); overflow: hidden; }
.seq .pic img { width: 100%; height: 100%; object-fit: contain; }
.seq .handle { cursor: grab; }
.seq li.dragging { opacity: .4; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.capgrid .lang { font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; }
.fallback { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---------------------------------------------------------------- lists */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
table.list th { font-weight: 500; color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--ink); }
.projhead { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-bottom: 32px; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .mark { background: var(--ink); color: var(--paper); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .mark .big { font-size: clamp(48px, 7vw, 104px); line-height: .92; font-weight: 700; letter-spacing: -0.045em; }
.login form { padding: 48px; align-self: center; max-width: 420px; width: 100%; }
.error { color: var(--error); font-weight: 500; margin-bottom: 16px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .record { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--rule); }
  .projhead { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gut: 16px; }
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side .facets { display: none; }
  .side.open .facets { display: block; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .frame .add { opacity: 1; }
  .archnum { font-size: 40px; }
  .seq > li { grid-template-columns: 32px 1fr; }
  .seq > li > .capcol { grid-column: 2; }
  .login { grid-template-columns: 1fr; }
  .login .mark { padding: 24px; min-height: 40vh; }
  .login form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 40px 0 8px; }
details.facet > summary { cursor: pointer; list-style: none; }
details.facet > summary::-webkit-details-marker { display: none; }
details.facet > summary::after { content: " +"; font-weight: 500; }
details.facet[open] > summary::after { content: " –"; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tagline a { display: inline-block; border: 1px solid var(--ink); padding: 2px 8px; font-size: 13px; }
.tagline a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.dbe { background: var(--field); padding: 12px 14px; font-size: 13px; }
.dbe dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 0; }
.dbe dt { color: var(--ink-2); word-break: break-word; }
.dbe dd { margin: 0; white-space: pre-line; }
.lockbar { border: 2px solid var(--ink); padding: 10px 14px; font-weight: 500; margin-bottom: 24px; max-width: 68ch; }

/* glossary abbreviations on the image record */
dd.abbr span { display: block; color: var(--ink-2); }
dd.abbr span + span { margin-top: 2px; }
dd.abbr abbr { text-decoration: none; color: var(--ink); font-weight: 600; margin-right: 4px; }

/* installer / system pages */
.page.narrow { max-width: 860px; }
.progress { height: 10px; background: var(--field); margin: 18px 0 6px; }
.progress span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.pill.err { border-color: var(--error); color: var(--error); }
.stack .field { margin-bottom: 14px; }
.stack .field input[type=text], .stack .field input[type=password], .stack .field input[type=url], .stack .field input[type=email], .stack .field input[type=tel] { width: 100%; max-width: 480px; }
dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0 0 8px; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; }
form.inline { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
pre.log { background: var(--field); padding: 12px; font-size: 12px; white-space: pre-wrap; overflow-x: auto; }
.flash-inline { border-left: 4px solid var(--ink); padding: 8px 12px; background: var(--field); }
.note { border: 1px solid var(--ink); padding: 12px; margin: 12px 0; }
@media (max-width: 640px) { dl.facts { grid-template-columns: 1fr; } }

/* medium facet: counts, empty options stay visible but quiet */
.facet a .n { color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.facet a[aria-current="true"] .n { color: inherit; }
.facet a.is-zero { color: var(--ink-2); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li + li { margin-top: 6px; }

/* archive toolbar: grid / list, tile size */
:root { --tile: 196px; }
.sheet { grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr)); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: -8px 0 20px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg > a, .seg > button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: inherit; font-size: 13px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; text-decoration: none; }
.seg > * + * { border-left: 1px solid var(--ink); }
.seg > [aria-current="true"], .seg > [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sizer { display: flex; align-items: center; gap: 10px; }
.sizer input[type=range] { width: 140px; accent-color: #000; }
#results.loading { opacity: .5; transition: opacity .15s; }

/* selected by someone: a black square with the number of selections */
.frame .pic { position: relative; }
.selmark { position: absolute; top: 0; left: 0; min-width: 22px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.frame.is-selected .pic { outline-width: 2px; }
.selmark-inline { display: inline-block; width: 9px; height: 9px; background: var(--ink); margin-right: 6px; vertical-align: 0; }
details.sub { margin-top: 6px; }
details.sub summary { cursor: pointer; color: var(--ink-2); }
details.sub ul { margin-top: 6px; }

/* list view */
.archive-list td { vertical-align: middle; }
.archive-list .th-pic, .archive-list .td-pic { width: 56px; }
.archive-list .td-pic img { width: 48px; height: 48px; object-fit: contain; background: var(--field); outline: 1px solid var(--ink); display: block; }
.archive-list .num a { font-weight: 600; white-space: nowrap; }
[aria-current="true"] .selmark-inline { background: var(--paper); }
.pill.tiny { font-size: 10px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }
.nowrap { white-space: nowrap; }
.add.inline { position: static; opacity: 1; }
@media (max-width: 760px) { .archive-list th:nth-child(5), .archive-list td:nth-child(5), .archive-list th:nth-child(6), .archive-list td:nth-child(6) { display: none; } .sizer input[type=range] { width: 90px; } }

/* keywords on the image page */
.tagline li { display: inline-flex; align-items: stretch; }
.tagline li.locked a { border-style: solid; }
.tagline li.locked a::after { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--ink); margin-left: 6px; vertical-align: 2px; }
.tagline form.x { margin: 0; display: inline-flex; }
.tagline form.x button { border: 1px solid var(--ink); border-left: 0; background: var(--paper); font: inherit; font-size: 12px; padding: 0 6px; cursor: pointer; }
.tagline form.x button:hover { background: var(--ink); color: var(--paper); }
.tagadd { display: flex; gap: 8px; margin-top: 12px; }
.tagadd input { flex: 1; min-width: 0; }

/* keyword management */
.tagcreate { display: flex; gap: 10px; align-items: center; margin: 16px 0 24px; flex-wrap: wrap; }
.tagtable { overflow-x: auto; }
.tagrow { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(var(--langs), minmax(140px, 1.5fr)) 64px minmax(230px, auto); gap: 8px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; min-width: 900px; }
.tagrow.head { font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.tagrow input[type=text] { width: 100%; padding: 6px 8px; font-size: 14px; }
.tagrow.locked input[readonly] { background: var(--paper); border-bottom-color: var(--rule); }
.tagrow .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagrow details.more summary { cursor: pointer; color: var(--ink-2); }
.tagrow .morebox { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--ink); margin-top: 6px; background: var(--paper); }
.tagrow .morebox textarea, .tagrow .morebox select { width: 100%; display: block; margin-top: 2px; }

.sheet-group { grid-column: 1 / -1; margin: 12px 0 -8px; font-weight: 500; font-size: 15px; }
.sheet-group:first-child { margin-top: 0; }

/* collections overview */
.pagehead .pagehead-act { margin-left: auto; align-self: center; }
.toolbar-l { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg .n { opacity: .6; font-variant-numeric: tabular-nums; }
.seg [aria-current="true"] .n { opacity: .8; }
.quickfilter { width: 240px; padding: 5px 10px; font-size: 13px; }
.coll-list .coll-name { font-weight: 600; font-size: 16px; }
.coll-list .num-col { text-align: right; padding-right: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coll-list td:last-child { white-space: nowrap; }
.coll-list .td-pic .nopic, .citem .pic .nopic { display: block; width: 48px; height: 48px; background: var(--field); outline: 1px solid var(--ink); }
.citem .pic .nopic { width: 100%; height: 100%; outline: 0; }
.dlg { border: 2px solid var(--ink); max-width: 460px; width: calc(100% - 32px); }
.dlg::backdrop { background: rgba(0,0,0,.35); }
.dlg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dlg-acts { display: flex; gap: 8px; margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .coll-list .col-proj, .coll-list .col-changed { display: none; }
  .quickfilter { width: 100%; }
}
.pagehead:has(.pagehead-act) { justify-content: flex-start; }
#colls [hidden] { display: none !important; }
.toolbar-l { flex-wrap: nowrap; }
.toolbar input.quickfilter { width: 240px; min-height: 0; height: 30px; padding: 4px 10px; font-size: 13px; border: 1px solid var(--ink); background: var(--paper); }
.coll-list td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.coll-list td.num-col, .coll-list td.small, .coll-list td:last-child { padding-top: 15px; }
.coll-desc { display: block; margin-top: 2px; }
.citem .pic { aspect-ratio: 1 / 1; }
@media (max-width: 760px) {
  .toolbar-l { flex-wrap: wrap; width: 100%; }
  .toolbar input.quickfilter { width: 100%; }
  .coll-desc { display: none; }
  .coll-list .col-owner { display: none; }
}
.block-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.block-head h3 { margin: 0; }
/* people */
.people-list mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 760px) { .people-list .col-dates, .people-list .col-access { display: none; } }
/* found set, FileMaker style: "12 von 19.225 Bildern" */
.found.is-filtered { color: var(--ink); }
.found.is-filtered strong { font-weight: 700; }
/* projects */
.proj-list .proj-name { font-weight: 600; font-size: 17px; }
.proj-list .proj-sub { display: block; margin-top: 2px; }
.proj-list .num-col { text-align: right; padding-right: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proj-list tr.child td:nth-child(2) { padding-left: 24px; }
.proj-list tr.context .proj-name { color: var(--ink-2); font-weight: 500; }
.proj-list .col-year { width: 64px; }
@media (max-width: 760px) { .proj-list .col-type, .proj-list .col-status { display: none; } }
.pagehead:has(.pagehead-act) > .muted { margin-left: auto; }
.pagehead .pagehead-act { margin-left: 16px; }
.facet li a { gap: 10px; align-items: baseline; }
.facet li a .n { flex: none; }
.facet li a .lab { flex: 1; min-width: 0; }
.facet li a .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* sort control — same in every area */
.sortctl { display: inline-flex; align-items: center; gap: 8px; }
.sortctl select { width: auto; min-height: 0; height: 30px; padding: 2px 28px 2px 10px; font-size: 13px; border: 1px solid var(--ink); background-color: var(--paper); }
.toolbar-l { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.frame figcaption .numrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.frame figcaption .date { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* sortable column headers */
th.sortable a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
th.sortable a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
th.sortable.is-sorted a { color: var(--ink); }
th.sortable .arr { font-size: 11px; line-height: 1; }
th.num-col.sortable a { justify-content: flex-end; }
/* account and users */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.pwform { max-width: 420px; }
.notice.err { border: 2px solid var(--error); color: var(--error); padding: 10px 14px; max-width: 640px; }
.pwonce { border: 2px solid var(--ink); padding: 14px 18px; margin-bottom: 24px; max-width: 720px; background: var(--paper); }
.pwonce p { margin: 4px 0; }
.pwonce code.pw { font-size: 18px; background: var(--ink); color: var(--paper); padding: 2px 8px; user-select: all; }
.users-list td { vertical-align: middle; }
.users-list tr.inactive td { color: var(--ink-2); }
.users-list .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.inline-form select { width: auto; min-height: 0; height: 30px; padding: 2px 28px 2px 10px; font-size: 13px; border: 1px solid var(--ink); background-color: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .users-list .col-last { display: none; } .users-list .acts { justify-content: flex-start; } }
@media (max-width: 760px) { .coll-list .col-capt { display: none; } }
/* collection page: grid and list views */
.seq > li[data-pos]::before { content: attr(data-pos); counter-increment: none; }
.coll-sheet .pic { position: relative; }
.posmark { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; padding: 2px 6px; outline: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.capmark { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--paper); font-size: 11px; padding: 2px 6px; letter-spacing: .04em; }
.coll-items .col-pos { width: 40px; text-align: right; padding-right: 16px; }
@media (max-width: 760px) { .coll-items .col-added { display: none; } }
.pagehead > h1 + .pagehead-act { margin-left: auto; }
.page.narrow h2 + .pwform, .page.narrow h2 + .notice { margin-top: 12px; }
h2 + .pwform { margin-top: 12px; }
.user-mobile { display: none; }
@media (max-width: 760px) {
  .coll-items .col-date, .coll-items .col-pos { display: none; }
  .users-list .col-user { display: none; }
  .users-list .user-mobile { display: inline; }
  .users-list .acts { flex-direction: column; align-items: stretch; }
  .users-list td { word-break: break-word; }
}
@media (max-width: 760px) { th.sortable a { white-space: normal; } .coll-items th, .coll-items td { padding-right: 8px; } }
@media (max-width: 760px) {
  .coll-items th, .coll-items td { hyphens: auto; overflow-wrap: anywhere; }
  .coll-items .td-pic, .coll-items .th-pic { display: none; }
}

/* header: language switch + personal menu (account, users, system, logout) */
.nav .langsw { color: #bbb; font-size: 13px; font-weight: 400; padding: 0 14px; margin-left: 8px; }
.nav .langsw:hover { color: var(--paper); background: none; text-decoration: underline; }
.usermenu { position: relative; display: flex; }
.usermenu-btn { background: none; border: 0; color: var(--paper); font: 500 15px var(--f); padding: 0 var(--gut) 0 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.usermenu-btn .caret { font-size: 10px; opacity: .7; }
.usermenu:hover .usermenu-btn, .usermenu.open .usermenu-btn { background: #222; }
.usermenu.is-here .usermenu-btn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.usermenu-list { display: none; position: absolute; right: 0; top: 100%; min-width: 220px; margin: 0; padding: 6px 0; list-style: none; background: var(--ink); border: 1px solid #333; border-top: 0; z-index: 30; }
.usermenu:hover .usermenu-list, .usermenu:focus-within .usermenu-list, .usermenu.open .usermenu-list { display: block; }
.nav .usermenu-list a { display: block; padding: 11px 18px; }
.usermenu-list .sep { border-top: 1px solid #333; margin-top: 6px; padding-top: 6px; }
@media (max-width: 1100px) {
  .nav .langsw { margin-left: 0; padding: 14px var(--gut); font-size: 15px; }
  .usermenu { flex-direction: column; border-top: 1px solid #333; }
  .usermenu-btn { padding: 14px var(--gut); cursor: default; color: #bbb; font-size: 13px; }
  .usermenu-btn .caret { display: none; }
  .usermenu:hover .usermenu-btn, .usermenu.open .usermenu-btn { background: none; }
  .usermenu-list { display: block; position: static; border: 0; padding: 0; min-width: 0; }
  .nav .usermenu-list a { padding: 14px var(--gut); }
}
/* underline only the name, not the arrow */
.usermenu.is-here .usermenu-btn { text-decoration: none; }
.usermenu.is-here .usermenu-btn .uname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* collection tiles: status bottom left, captions bottom right — always the same place */
.citem .body { display: flex; flex-direction: column; }
.citem-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; min-height: 36px; }
.citem-foot .pill { font-size: 12px; }
.pill.captab.is-zero { color: var(--ink-2); border-color: #bbb; }
a.citem, a.citem:hover { text-decoration: none; }
a.citem:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
/* tile captions at any size: number and date wrap instead of overlapping; type follows the tile size */
.frame figcaption .numrow { flex-wrap: wrap; column-gap: 8px; row-gap: 0; margin-top: 8px; }
.frame figcaption .numrow .num { margin-top: 0; min-width: 0; overflow-wrap: anywhere; font-size: clamp(12px, calc(var(--tile, 196px) * 0.087), 17px); }
.frame figcaption .numrow .date { font-size: clamp(10px, calc(var(--tile, 196px) * 0.06), 12px); }
.frame .ttl { font-size: clamp(11px, calc(var(--tile, 196px) * 0.066), 13px); }
/* quick results under the search box */
.suggest { margin: -8px 0 20px; border: 1px solid var(--ink); background: var(--paper); }
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest li a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.suggest li a strong { display: block; font-weight: 600; }
.suggest li a span { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li a:hover, .suggest li a:focus { background: var(--ink); color: var(--paper); outline: none; }
.suggest li a:hover span, .suggest li a:focus span { color: #ccc; }
.suggest .suggest-more { display: block; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.suggest p { margin: 0; padding: 10px 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.side-facts dt { color: var(--ink-2); }
.side-facts dd { margin: 0; overflow-wrap: anywhere; }
.side-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.main.narrowmain > * { max-width: 860px; }
/* person page */
.personhead { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.personhead h1 { margin: 4px 0 6px; }
.personpic { aspect-ratio: 1 / 1; background: var(--field); outline: 1px solid var(--ink); overflow: hidden; }
.personpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.personpic .nopic { display: block; width: 100%; height: 100%; }
.lifedates { font-size: 18px; margin: 4px 0 12px; }
.small-facts { font-size: 14px; }
.bio .biotext { max-width: 75ch; line-height: 1.55; }
.facet .kind { display: inline-block; min-width: 14px; font-size: 10px; font-weight: 700; border: 1px solid currentColor; padding: 0 3px; margin-right: 4px; text-align: center; opacity: .7; }
.dlg.dlg-wide { max-width: 720px; }
.fs { border: 0; border-top: 1px solid var(--rule); padding: 12px 0 0; margin: 16px 0 0; }
.fs legend { font-weight: 600; padding: 0 8px 0 0; }
.field-row.three { grid-template-columns: 1fr 2fr 1.4fr; }
@media (max-width: 760px) { .personhead { grid-template-columns: 1fr; } .personpic { max-width: 200px; } .field-row, .field-row.three { grid-template-columns: 1fr; } }
.personhead { border-bottom: 0; padding-bottom: 8px; }
/* file pickers in the app's button style */
input[type=file] { font: inherit; font-size: 14px; color: var(--ink-2); max-width: 100%; }
input[type=file]::file-selector-button { font: 500 13px var(--f); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
.backlink { margin: 0; }
.backlink a { display: block; padding: 6px 8px; margin: 0 -8px; font-weight: 600; border: 1px solid var(--ink); }
.backlink a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
/* contact sheet page */
.main > .pn { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 500; }
.filmhead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 8px; }
.filmsheet { background: var(--field); outline: 1px solid var(--ink); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.filmsheet img { width: 100%; height: 100%; object-fit: contain; }
.filmhead h1 { margin: 4px 0 6px; }
.filmtitle { font-size: 20px; margin: 0 0 16px; }
.film-list .col-sel { width: 90px; }
@media (max-width: 760px) { .filmhead { grid-template-columns: 1fr; } .film-list .col-date, .film-list .col-col, .film-list .col-rm { display: none; } }
@media (max-width: 1100px) { .film-list .col-rm { display: none; } }
.tag-missing{display:inline-block;margin-left:6px;padding:0 5px;border:1px solid var(--err,#b3261e);color:var(--err,#b3261e);border-radius:3px;font-size:11px;line-height:16px;font-weight:500;vertical-align:1px;text-transform:uppercase;letter-spacing:.03em}
.facet li.sub a { padding-left: 22px; }

/* ---------------------------------------------------------------- add material (upload wizard) */
.dropzone { border: 2px dashed var(--ink); padding: 48px 24px; text-align: center; background: var(--field, #f2f2f2); transition: padding .2s; }
.dropzone.is-over { background: var(--ink); color: var(--paper); }
.dropzone.is-over .muted { color: var(--paper); }
.dropzone .dz-big { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.dropzone .dz-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.dropzone.is-small { padding: 14px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; text-align: left; }
.dropzone.is-small .dz-big { font-size: 15px; margin: 0; }
.dropzone.is-small .dz-btns { margin: 0; }
.dropzone.is-small > p.muted, .dropzone.is-small > p.small { display: none; }
.up-bar { height: 4px; background: var(--rule, #ddd); margin: 20px 0 12px; }
.up-bar-in { height: 4px; background: var(--ink); width: 0; transition: width .2s; }
.up-tools { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.up-summary { margin: 0; font-weight: 500; }
.up-only, .up-preview { display: inline-flex; gap: 6px; align-items: center; margin: 0; color: var(--ink); font-size: 14px; }
.up-only input, .up-preview input { width: auto; }
.up-table td { vertical-align: top; }
.up-table input, .up-table select { padding: 5px 6px; font-size: 14px; width: auto; min-width: 0; }
.up-table select { max-width: 190px; }
.up-table { table-layout: auto; width: 100%; }

.up-table .td-pic img, .up-table .td-pic .up-ext { width: 56px; height: 56px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--field); font-size: 11px; font-weight: 500; }
.up-name { min-width: 170px; max-width: 240px; overflow-wrap: anywhere; }
.up-name > span { display: block; }
.up-ft { display: block; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.up-target { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; max-width: 190px; overflow-wrap: anywhere; }
.up-status { min-width: 180px; max-width: 280px; }
.up-st { display: block; font-weight: 500; }
.up-st.ok { color: var(--ink); }
.up-st.warn { color: #8a5a00; }
.up-st.err { color: var(--error); }
.up-st.dup { color: var(--ink-2); }
.up-w { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
tr.up-problem, tr.up-error { background: #fdf0f2; }
tr.up-check { background: #fff8e6; }
tr.up-duplicate td { color: var(--ink-3); }
tr.up-filed td { color: var(--ink-2); }
tr.is-busy { opacity: .55; }
.linkish { background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; color: var(--ink-2); }
.up-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--paper); padding: 14px 0; border-top: 1px solid var(--rule, #ddd); margin-top: 8px; }
.up-actions .up-preview { margin-right: auto; }
.up-donebox { border: 2px solid var(--ink); padding: 24px; margin: 24px 0 8px; }
.up-donebox h2 { margin-top: 0; }
.up-films { display: flex; flex-wrap: wrap; gap: 6px; }
.up-how { padding-left: 18px; margin: 0; }
.up-how li { margin-bottom: 6px; }
.up-examples { list-style: none; padding: 0; margin: 8px 0 0; }
.up-examples li { margin-bottom: 6px; }
.up-examples code { display: block; font-size: 12px; }
@media (max-width: 760px) {
  .up-table thead { display: none; }
  .up-table tr { display: grid; grid-template-columns: 56px 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule, #ddd); }
  .up-table td { padding: 0; border: 0; }
  .up-table td.td-pic { grid-row: span 6; }
}
.dropzone p { max-width: none; margin-left: auto; margin-right: auto; }
.dropzone .dz-btns { margin: 16px auto 14px; }
.dropzone.is-small p, .dropzone.is-small .dz-btns { margin: 0; }
.btn[hidden] { display: none; }
.up-progress { border: 2px solid var(--ink); padding: 14px 16px 10px; margin: 20px 0 12px; position: sticky; top: 64px; z-index: 5; background: var(--paper); box-shadow: 0 -10px 0 var(--paper), 0 6px 0 var(--paper); }
.up-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; }
.up-progress .up-bar { height: 10px; margin: 10px 0 8px; background: #e2e2e2; }
.up-progress .up-bar-in { height: 10px; background: var(--ink); transition: width .4s; }
.up-progress p { margin: 0; max-width: none; }
.up-note { background: #fff8e6; padding: 8px 12px; max-width: none; }
.up-resume { border: 2px solid var(--ink); padding: 18px 20px; margin: 20px 0; background: #fff8e6; }
.up-resume h2 { margin: 0 0 6px; font-size: 20px; }
.up-resume p { max-width: none; }
.up-stay { margin: 8px 0 0; padding: 6px 10px; background: var(--ink); color: var(--paper, #fff); font-size: 14px; max-width: none; }
.up-guard { border: 2px solid var(--ink); padding: 22px 24px; max-width: 640px; width: calc(100% - 32px); background: var(--paper, #fff); color: var(--ink); }
.up-guard::backdrop { background: rgba(0,0,0,.45); }
.up-guard h2 { margin: 0 0 8px; font-size: 20px; }
.up-guard p { max-width: none; }
.up-guard-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.btn.danger { color: #a40000; border-color: #a40000; }
.up-logdlg { max-width: 900px; }
.up-logdlg h3 { margin: 16px 0 6px; font-size: 15px; }
.up-logpre { max-height: 220px; overflow: auto; background: #f4f4f4; padding: 10px 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; margin: 0; }
.up-note.up-warn { background: #fde8e8; border-left: 4px solid #c00; font-size: 15px; padding: 10px 14px; }
.up-note.up-warn p { margin: 0 0 8px; max-width: none; }
.up-note.up-warn p:last-child { margin: 0; }
.up-logdlg h3 { display: flex; align-items: center; gap: 12px; }
#upSafari { margin: 0 0 12px; }

/* change history: small, closed by default, at the end of the record */
details.hist { margin-top: 36px; border-top: 1px solid var(--field); padding-top: 10px; font-size: 13px; }
details.hist summary { cursor: pointer; color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.hist summary::-webkit-details-marker { display: none; }
details.hist summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
details.hist[open] summary::before { transform: rotate(90deg); }
details.hist summary:hover { color: var(--ink); }
.hist-body { margin-top: 10px; max-height: 420px; overflow: auto; }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-list > li { padding: 6px 0; border-bottom: 1px solid var(--field); }
.hist-list ul { margin: 2px 0 0; padding-left: 16px; }
.hist-when { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hist-who { font-weight: 600; }

/* automatic cut-outs */
.badge-auto { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.autocut-note { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.autocut-note .badge-auto { flex: none; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp figure { margin: 0; }
.cmp img { width: 100%; height: auto; display: block; background: #000; }
.cmp figcaption { font-size: 12px; margin-top: 6px; }
.fc-last { max-height: 220px; overflow: auto; padding-left: 18px; color: var(--ink-2); }
.compare { margin-top: 28px; }
.compare h3 { font-size: 14px; margin: 0 0 10px; }
.compare .cmp { max-width: 720px; }

/* ---- 0.13: entering and editing by hand ---- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.helpline { margin: -4px 0 12px; max-width: 62ch; }
.plainlist { list-style: none; margin: 0 0 8px; padding: 0; }
.plainlist > li { margin-bottom: 10px; }
.onpage { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--field); }
.onpage a { color: var(--ink-2); }
.onpage a:hover { color: var(--ink); }
details.addbox { margin-top: 6px; }
details.addbox > summary, details.inl > summary, details.fc-edit > summary { cursor: pointer; list-style: none; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
details.addbox > summary::-webkit-details-marker, details.inl > summary::-webkit-details-marker, details.fc-edit > summary::-webkit-details-marker { display: none; }
details.addbox > summary::before { content: "+ "; text-decoration: none; display: inline-block; margin-right: 2px; }
details.addbox[open] > summary::before { content: "– "; }
details.addbox[open] > summary, details.inl[open] > summary, details.fc-edit[open] > summary { margin-bottom: 10px; }
details.addbox[open], details.inl[open], details.fc-edit[open] { background: #f6f6f6; padding: 10px 12px 12px; }
details.inl { margin-top: 2px; }
.ip-form .field, .printform .field, .fc-edit .field { margin-bottom: 10px; }
.ip-form input, .ip-form select, .ip-form textarea, .printform input, .printform select, .printform textarea, .fc-edit input, .fc-edit select, .fc-edit textarea { padding: 6px 8px; font-size: 14px; background: var(--paper); }
.printform + form.inline { margin-top: 8px; }
.linkbtn.danger { color: var(--error); border: 0; background: none; }
.sizepair { display: flex; align-items: center; gap: 6px; }
.sizepair input { min-width: 0; }
.field-row .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .field-row { grid-template-columns: 1fr 1fr; }

.filecards { list-style: none; margin: 0 0 8px; padding: 0; }
.filecard { border-top: 1px solid var(--field); padding: 10px 0; }
.filecard:first-child { border-top: 0; padding-top: 2px; }
.filecard p { margin: 3px 0; }
.filecard.is-missing .fc-top strong { color: var(--ink-2); }
.fc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fc-tech { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.fc-name { color: var(--ink-2); word-break: break-all; }
.fc-acts a { white-space: nowrap; }
.prints .tr { margin: 6px 0 0 12px; }
.prints .tr .pill { margin-right: 4px; }

.callout { border: 2px solid var(--ink); padding: 12px 16px; margin: 0 0 20px; }
.callout p { margin: 4px 0; }
.callout .btn { margin-top: 6px; }
.film-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.film-acts form.inline { margin: 0; }
.filmform fieldset { border: 0; margin: 0; padding: 18px 0 4px; border-top: 1px solid var(--field); }
.filmform fieldset:first-of-type { border-top: 0; }
.filmform legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filmform legend + * { clear: both; }
.filmform .check { margin: 4px 0 10px; }
.numrow-in { grid-template-columns: 1.6fr 1fr 1fr; }
#nf-code { font-size: 18px; }
.pagehead .pagehead-act { display: inline-flex; gap: 8px; }
@media (max-width: 760px) { .numrow-in, .meta .field-row { grid-template-columns: 1fr; } }
.meta dl.facts { grid-template-columns: minmax(84px, 32%) minmax(0, 1fr); gap: 6px 14px; }
.meta dl.facts dd { min-width: 0; overflow-wrap: anywhere; }
.meta dl.facts dd .pill { margin: 0 2px 4px 0; display: inline-block; }
.pagehead + .helpline { margin: 12px 0 14px; }
.checklist { max-height: 260px; overflow: auto; border: 1px solid var(--field); padding: 8px 10px; display: grid; gap: 4px; }
.checklist .check { margin: 0; }
.doc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.doc-thumbs a { display: grid; gap: 4px; color: inherit; }
.doc-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--field); }
.doc-list .mono { white-space: nowrap; }
@media (max-width: 760px) { .doc-list th:nth-child(n+3), .doc-list td:nth-child(n+3) { display: none; } .doc-list td.mono, .doc-list th:first-child { font-size: 12px; } }

/* ---- 0.14: lookup fields, institutions, places ---- */
.lookup { position: relative; min-width: 0; }
.lookup .lookup-q { width: 100%; }
.lookup-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); border: 2px solid var(--ink); max-height: 300px; overflow: auto; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.lookup-list li { padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.lookup-list li.on, .lookup-list li:hover { background: var(--field); }
.lookup-list li.create { font-weight: 700; border-top: 1px solid var(--field); }
.lookup-list li.none { color: var(--ink-2); cursor: default; }
.lookup-list .lk-s { font-size: 12px; color: var(--ink-2); }
form.linkadd { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; margin: 10px 0 4px; }
form.linkadd input[type=text] { padding: 8px 10px; }
@media (max-width: 760px) { form.linkadd { grid-template-columns: 1fr; } }
.peoplecards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.peoplecards > li { border: 1px solid var(--field); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.peoplecards .pc-name { font-weight: 700; }
.peoplecards .pc-role { font-size: 14px; }
.peoplecards .pc-contact { overflow-wrap: anywhere; }
.peoplecards details.inl[open] { margin: 6px -12px -10px; }
.linkrows > li { border-bottom: 1px solid var(--field); padding-bottom: 8px; }
.field-row.addr1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.field-row.addr2 { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 2px; background: var(--field); padding: 3px 4px 3px 10px; font-size: 14px; }
.chip form.x { display: inline; margin: 0; }
.chip form.x button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.chip-add { flex: 1 1 200px; margin: 0; }
.chip-add .lookup-q { padding: 6px 8px; font-size: 14px; }
.nothumb { display: block; aspect-ratio: 1; background: var(--field); }
form.linkadd .btn { align-self: stretch; }

/* 0.14: seven areas in the bar — the menu button takes over below 1100 px, the bar tightens up to 1360 px */
.brand, .usermenu-btn .uname { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 1101px) {
  .nav a { padding: 0 12px; }
  .usermenu-btn { padding-left: 10px; }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--ink); display: none; }
  .nav.open { display: flex; }
  .nav a, .nav .user { padding: 14px var(--gut); }
  .top .menu-btn { background: none; border: 0; color: var(--paper); font: 500 15px var(--f); padding: 0 var(--gut); }
}
.provlist { list-style: none; margin: 0 0 8px; padding: 0; border-left: 2px solid var(--ink); }
.provlist > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 0 10px 12px; position: relative; }
.provlist > li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.provlist .pv-date { font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.provlist .pv-body { min-width: 0; }
.meta .provlist > li { grid-template-columns: 1fr; gap: 2px; }
