@charset "UTF-8";

@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/barlow-regular.woff2") format("woff2");
}
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/barlow-medium.woff2") format("woff2");
}
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/barlow-bold.woff2") format("woff2");
}

:root {
  --navy: #28395a;
  --navy-dark: #1b2942;
  --cyan: #0093d0;
  --gold: #b09a5b;
  --gold-dark: #8e793f;
  --ink: #172c4c;
  --muted: #607086;
  --line: #dce3ec;
  --paper: #f5f8fc;
  --green: #36735e;
  --danger: #a73040;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--cyan); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
svg.icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px; background: #fff; }
.skip-link:focus { top: 12px; }

/* Brand and primary navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner {
  max-width: 1520px;
  min-height: 94px;
  padding: 15px 40px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 35px;
}
.brand { display: flex; align-items: center; gap: 23px; flex-shrink: 0; }
.brand img { display: block; width: 218px; height: auto; }
.product-name { border-left: 1px solid #96a4b7; padding-left: 23px; font-size: 28px; font-weight: 700; letter-spacing: -.7px; }
.top-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 25px; margin-left: auto; }
.top-link, .administration summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  white-space: nowrap;
  list-style: none;
}
.administration summary::-webkit-details-marker { display: none; }
.top-link.active, .administration.active summary { font-weight: 700; }
.top-link.active::after, .administration.active summary::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--cyan);
  left: 0;
  right: 0;
}
.top-link:hover, .administration summary:hover { color: var(--cyan); }
.administration { position: relative; }
.administration summary { cursor: pointer; }
.administration summary .icon { width: 15px; }
.administration[open] summary .icon { transform: rotate(180deg); }
.administration-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 235px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px #172c4c1c;
}
.administration-panel button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; padding: 13px 15px; background: transparent; border-radius: 5px; }
.administration-panel button:hover, .administration-panel .active { color: var(--navy); background: #eaf4fa; }
.account { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 0; margin-left: 15px; }
.avatar { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; color: #fff; background: var(--navy); font-size: 15px; font-weight: 700; }
#account-label { min-width: 0; max-width: 250px; overflow-wrap: anywhere; }
.account small { display: block; font-size: 12px; margin-top: 3px; color: var(--muted); }
.account .icon { width: 15px; }

/* Compact photographic banner and collection navigation */
main { min-height: calc(100dvh - 94px); }
.page-heading {
  background-color: var(--navy);
  background-image: linear-gradient(90deg, #20334f 0%, #20334f 24%, #20334fe0 42%, #20334f69 68%, #20334f85 100%), url("assets/cattle-04.jpg");
  background-size: cover, 1000px auto;
  background-position: center, right 35%;
  background-repeat: no-repeat;
  color: #fff;
}
.page-heading-inner { max-width: 1440px; min-height: 235px; padding: 37px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.3px; margin-bottom: 12px; }
.page-heading h1 { font-size: clamp(34px, 3vw, 48px); line-height: 1.1; margin-bottom: 12px; letter-spacing: -.8px; }
.page-heading p:last-child { font-size: 18px; line-height: 1.5; margin-bottom: 0; color: #edf2f8; max-width: 650px; }
.page-heading .primary { min-width: 190px; min-height: 49px; }
.administration-page .page-heading { background-image: linear-gradient(100deg, #20334f, #344d72); }
.administration-page .page-heading-inner { min-height: 190px; }
.collection-tabs { max-width: 1440px; padding: 0 40px; margin: auto; display: flex; align-items: center; gap: 32px; overflow-x: auto; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 20px 0; white-space: nowrap; font-size: 16px; }
.nav-item.active { font-weight: 700; }
.nav-item.active::after { content: ""; height: 4px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--cyan); border-radius: 4px; }
.nav-item:hover { color: var(--cyan); }
.nav-count { font-size: 13px; font-weight: 500; }
.library, #users-view, #tags-view, #activity-view { max-width: 1440px; padding: 0 40px; margin: 0 auto; }
.library { padding-top: 20px; }
#users-view, #tags-view, #activity-view { padding-top: 16px; padding-bottom: 25px; }

/* Search, filters and bulk actions */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 23px; min-height: 43px; border: 1px solid transparent; border-radius: 50px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.button.primary { background: var(--gold); color: var(--navy-dark); font-weight: 700; }
.button.primary:hover { background: #c4b077; }
.button.secondary { background: #fff; color: var(--navy); border-color: #bac6d7; }
.button.secondary:hover { background: #edf5fa; }
.button.compact { min-height: 37px; padding: 8px 17px; font-size: 13px; }
#download-selected { color: #fff; background: var(--navy); border-color: var(--navy); border-radius: 6px; }
#download-selected:hover { background: var(--navy-dark); }
.text-button { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 0; color: var(--navy); background: none; font-size: 13px; font-weight: 500; line-height: 1.5; }
.text-button:hover { color: var(--cyan); text-decoration: underline; }
.search-row { display: flex; gap: 16px; }
.search-row .button { border-radius: 6px; min-width: 98px; }
.search-field { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 47px; padding: 0 15px; border: 1px solid #c6d0df; border-radius: 7px; background: #f9fbfd; color: #5c6d87; }
.search-field:focus-within { outline: 2px solid #0093d033; border-color: var(--cyan); }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; font-size: 15px; }
.search-field input::placeholder { color: #77859a; }
.search-field kbd { border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 17px 0 23px; border-bottom: 1px solid var(--line); }
.filters > label { display: flex; align-items: center; gap: 8px; flex: 1 1 160px; padding: 0 11px; min-height: 39px; border: 1px solid #c6d0df; border-radius: 5px; }
.filters select { min-width: 0; width: 100%; border: 0; padding: 7px 0; background: #fff; color: var(--navy); font-size: 13px; cursor: pointer; }
.filters .icon { width: 15px; height: 15px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 0 17px; font-size: 15px; }
.results-toolbar > div > span { color: var(--muted); }
.result-actions, .sort-label, .selection-toolbar > div { display: flex; align-items: center; gap: 13px; }
.sort-label { font-size: 13px; color: var(--muted); }
.sort-label select { font-size: 13px; border: 1px solid #c6d0df; border-radius: 5px; padding: 8px 11px; color: var(--navy); background: #fff; }
.view-toggle { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; }
.icon-button { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 4px; color: var(--muted); }
.icon-button:hover { background: #eaf3fa; color: var(--navy); }
.icon-button .icon { width: 17px; height: 17px; }
.view-toggle .active { background: #bfe7f7; color: #007cac; }
.selection-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.selection-toolbar > label { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.selection-toolbar > span { margin-right: auto; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cyan); width: 17px; height: 17px; cursor: pointer; }

/* Photo grid and list share the same image cards and tag chips. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.image-card { min-width: 0; border: 1px solid #d0d9e5; background: #fff; border-radius: 7px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.image-card:hover { border-color: #9db0c9; box-shadow: 0 5px 16px #28395a0a; }
.image-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.card-image { position: relative; aspect-ratio: 1.75; background: #e8eef5; overflow: hidden; }
.card-preview { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; }
.card-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-select { position: absolute; top: 12px; left: 12px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 4px; background: #ffffffeb; }
.card-select input { margin: 0; }
.card-badge { position: absolute; top: 12px; right: 12px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; line-height: 1.2; font-weight: 500; border-radius: 50px; padding: 5px 9px; background: #eef4fa; color: var(--navy); }
.badge.published { background: #e8f4eded; color: #285f49; }
.badge.internal { background: #f6f9fff0; color: var(--navy); }
.badge.archived { background: #f8f0deed; color: #7d6732; }
.card-number { position: absolute; bottom: 10px; right: 10px; padding: 4px 6px; border-radius: 3px; font-size: 10px; background: #20334faa; color: #fff; pointer-events: none; }
.card-body { padding: 14px 15px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.card-title { border: 0; background: none; padding: 0; text-align: left; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-title:hover { color: var(--cyan); }
.card-type { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.card-filename { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 8px 0 12px; }
.card-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-bottom > span { flex-shrink: 0; font-size: 11px; color: var(--muted); padding-top: 4px; }
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags { flex: 1; min-width: 0; }
.tag { display: inline-flex; max-width: 100%; overflow-wrap: anywhere; padding: 4px 9px; border-radius: 50px; color: var(--navy); background: #e0edf8; font-size: 11px; line-height: 1.3; }
.gallery.list { grid-template-columns: 1fr; gap: 12px; }
.gallery.list .image-card { display: flex; align-items: center; }
.gallery.list .card-image { flex: 0 0 180px; }
.gallery.list .card-body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7px 20px; flex: 1; min-width: 0; }
.gallery.list .card-bottom { grid-column: 1 / -1; }
.gallery.list .card-badge { display: none; }
.library-footer, .page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; padding: 24px 0; }
.page-footer { width: calc(100% - 80px); max-width: 1360px; margin: 15px auto 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.separator { margin: 0 7px; color: #92a0b4; }
.empty-state { padding: 65px 20px; border: 1px dashed #c5d0df; border-radius: 8px; text-align: center; background: var(--paper); }
.empty-state h2 { font-size: 25px; margin: 15px 0 10px; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin: 5px; }
.processing-state { display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--muted); }
.processing-state svg { width: 30px; height: 30px; }
.processing-state strong { font-size: 14px; }

/* Dialogs, account forms and image details */
dialog { width: min(700px, calc(100% - 30px)); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #13274440; overscroll-behavior: contain; }
dialog::backdrop { background: #182d4c8c; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 27px; margin: 0; }
.dialog-header .eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.dialog-body { padding: 24px 28px; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 11px; padding: 17px 28px; border-top: 1px solid var(--line); background: var(--paper); position: sticky; bottom: 0; z-index: 2; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.detail-dialog { width: min(1160px, calc(100% - 30px)); overflow: auto; }
.detail-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.detail-visual { position: sticky; top: 0; align-self: start; min-height: min(70dvh, 600px); display: flex; flex-direction: column; background: var(--paper); }
.detail-photo { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 330px; padding: 25px; }
.detail-photo img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 5px; }
.detail-caption { color: var(--muted); font-size: 12px; padding: 15px 20px; margin: 0; text-align: center; }
.detail-info { min-width: 0; padding: 25px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.detail-info h2 { font-size: 29px; line-height: 1.2; margin-bottom: 7px; }
.subtitle { color: var(--muted); font-size: 13px; }
.detail-info h3 { font-size: 16px; margin: 24px 0 12px; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 22px 0; }
.metadata .full { grid-column: 1 / -1; }
.metadata dt { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.metadata dd { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.filename-value { background: var(--paper); padding: 10px; border-radius: 5px; }
.form-label, .form-grid > label { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; font-size: 14px; font-weight: 500; }
.form-label input, .form-label select, .form-grid select, .tag-picker > input { min-width: 0; width: 100%; border: 1px solid #bac6d7; border-radius: 5px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-hint { margin: 8px 0 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.notice { padding: 13px 15px; border-radius: 6px; margin: 18px 0 0; background: #edf4fa; color: #52657f; font-size: 13px; line-height: 1.6; }
.error { white-space: pre-wrap; color: var(--danger); line-height: 1.6; font-size: 14px; margin: 15px 0 0; }
.danger { color: var(--danger) !important; }
.access-panel { display: flex; align-items: center; gap: 15px; padding: 15px; background: #eef5fa; border: 1px solid #dce8f1; border-radius: 6px; margin-top: 22px; }
.access-panel strong { font-size: 14px; }
.access-panel p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.switch { position: relative; display: inline-flex; flex-shrink: 0; margin-left: auto; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; }
.switch span { display: block; width: 38px; height: 22px; border-radius: 20px; background: #b7c3d3; pointer-events: none; }
.switch span::after { content: ""; display: block; width: 16px; height: 16px; margin: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--cyan); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.detail-small-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.version-list { display: grid; gap: 10px; }
.version-item { border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.version-item strong { font-size: 15px; }
.version-item p { font-size: 12px; color: var(--muted); margin: 7px 0 12px; }
.version-item .text-button { margin-right: 16px; }
.url-field { font-size: 11px !important; }
.confirm-panel { padding: 15px; border: 1px solid #e2bec3; background: #fff4f5; border-radius: 6px; margin-top: 18px; }
.confirm-panel p { color: #8c3341; font-size: 13px; line-height: 1.6; }
.naming-guide { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 20px; }
.naming-guide summary { cursor: pointer; font-weight: 500; color: var(--navy); }
.naming-guide p { margin: 12px 0; }
.naming-guide code { font-size: 11px; overflow-wrap: anywhere; }
.dropzone { border: 1px dashed #9bb3ca; border-radius: 8px; background: var(--paper); display: flex; flex-direction: column; align-items: center; padding: 27px 15px; margin: 20px 0; text-align: center; }
.dropzone.dragover { background: #e1f2fb; border-color: var(--cyan); }
.dropzone > [data-icon] { color: var(--cyan); margin-bottom: 13px; }
.dropzone p { font-size: 13px; color: var(--muted); margin: 9px 0 17px; }
.file-label { position: relative; overflow: hidden; cursor: pointer; }
.file-label input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-label:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }
.upload-file { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.upload-file > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.upload-file small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.download-options { display: grid; gap: 12px; margin-top: 20px; }
.download-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.download-option:has(input:checked) { border-color: var(--cyan); background: #edf7fc; }
.download-option strong { display: block; font-size: 16px; }
.download-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.package-summary { max-height: 170px; overflow: auto; font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
.package-summary ul { padding-left: 20px; overflow-wrap: anywhere; }
.login-dialog { max-width: 460px; padding: 35px; text-align: center; }
.login-mark { display: grid; place-items: center; margin: 0 auto 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 28px; font-weight: 700; }
.login-dialog .eyebrow { font-size: 11px; }
.login-dialog h2 { font-size: 29px; margin-bottom: 10px; }
.login-dialog .form-label { text-align: left; }
.login-dialog .field-hint { margin-top: 20px; }
.full-width { width: 100%; margin-top: 18px; }
.help-dialog .dialog-body { font-size: 15px; line-height: 1.7; }

/* Administration views and managed tags */
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 23px 0; }
.section-title h2 { margin: 0; font-size: 26px; }
.user-row { display: flex; align-items: center; gap: 17px; padding: 20px; margin: 12px 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.user-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.user-row strong { font-size: 16px; }
.user-row small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
#tags-view > .form-label { max-width: 450px; }
.tag-picker { min-width: 0; border: 1px solid var(--line); border-radius: 6px; margin: 20px 0; padding: 15px; }
.tag-picker legend { padding: 0 6px; font-size: 14px; font-weight: 500; }
.tag-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 220px; overflow: auto; margin-top: 13px; }
.tag-choices label { display: flex; align-items: center; gap: 9px; padding: 4px; font-size: 14px; overflow-wrap: anywhere; }
.tag-choices input { flex-shrink: 0; }
.activity-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.activity-item > span { color: var(--cyan); padding: 8px; background: #ecf7fd; border-radius: 6px; }
.activity-item > div { min-width: 0; }
.activity-item strong { font-size: 15px; }
.activity-item p { font-size: 13px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.activity-item time { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(600px, 90%); padding: 17px 24px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: 0 7px 30px #172c4c30; font-size: 14px; line-height: 1.5; }

@media (max-width: 1200px) {
  .header-inner { gap: 25px; padding-inline: 28px; }
  .brand { gap: 17px; }
  .brand img { width: 185px; }
  .product-name { padding-left: 17px; font-size: 25px; }
  .top-navigation { gap: 20px; }
  .account { margin-left: 0; }
  .account > span:not(.avatar) { display: none; }
  .page-footer { margin-inline: 40px; }
}
@media (max-width: 950px) {
  .brand img { width: 155px; }
  .brand { gap: 12px; }
  .product-name { font-size: 23px; padding-left: 12px; }
  .header-inner { gap: 18px; padding-inline: 22px; }
  .top-navigation { gap: 17px; }
  .top-link, .administration summary { font-size: 14px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .page-heading-inner, .collection-tabs, .library, #users-view, #tags-view, #activity-view { padding-inline: 27px; }
  .collection-tabs { gap: 25px; }
  .page-heading { background-size: cover, 800px auto; }
  .detail-layout { grid-template-columns: 1fr 1fr; }
  .detail-info { padding: 20px; }
  .card-bottom { flex-wrap: wrap; }
  .page-footer { width: auto; margin-inline: 27px; }
}
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; gap: 5px 15px; min-height: 105px; padding: 14px 18px 0; }
  .brand img { width: 153px; }
  .product-name { font-size: 21px; }
  .header-inner > .account { margin-left: auto; }
  .avatar { width: 33px; height: 33px; font-size: 12px; }
  .account > .icon { display: none; }
  .top-navigation { order: 3; width: 100%; justify-content: flex-start; margin: 0; gap: 28px; }
  .top-link, .administration summary { min-height: 46px; font-size: 14px; }
  .administration-panel { right: auto; left: -60px; top: 100%; min-width: 225px; }
  .page-heading-inner { min-height: 205px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 20px; padding: 27px 20px; }
  .page-heading .eyebrow { font-size: 10px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p:last-child { font-size: 15px; max-width: 320px; }
  .page-heading .primary { min-width: 160px; min-height: 41px; font-size: 14px; }
  .page-heading { background-size: cover, 670px auto; background-position: center, 25% 32%; }
  .administration-page .page-heading-inner { min-height: 165px; }
  .collection-tabs { gap: 22px; padding-inline: 20px; }
  .nav-item { font-size: 14px; padding-block: 17px; }
  .nav-count { font-size: 11px; }
  .library, #users-view, #tags-view, #activity-view { padding-inline: 18px; }
  .library { padding-top: 17px; }
  .search-row { gap: 8px; }
  .search-row .button { min-width: 40px; padding: 10px; font-size: 0; }
  .search-field { min-height: 43px; gap: 9px; padding-inline: 11px; }
  .search-field input { font-size: 13px; }
  .search-field kbd { display: none; }
  .filters { gap: 8px; padding: 13px 0 18px; }
  .filters > label { flex-basis: 135px; }
  .filters select { font-size: 12px; }
  .results-toolbar { gap: 10px; padding-top: 20px; font-size: 13px; }
  .sort-label { font-size: 0; }
  .sort-label select { font-size: 11px; padding: 7px; max-width: 140px; }
  .result-actions { gap: 8px; }
  .view-toggle .icon-button { width: 27px; height: 29px; }
  .selection-toolbar { gap: 9px; flex-wrap: wrap; font-size: 12px; }
  .selection-toolbar > span { font-size: 11px; }
  .selection-toolbar > div { width: 100%; justify-content: flex-end; }
  .gallery { gap: 13px; }
  .card-image { aspect-ratio: 1.25; }
  .card-select { top: 7px; left: 7px; width: 21px; height: 21px; }
  .card-select input { width: 14px; height: 14px; }
  .card-badge { top: 8px; right: 7px; }
  .badge { font-size: 8px; padding: 4px 6px; }
  .card-body { padding: 11px; }
  .card-title { font-size: 15px; }
  .card-type, .card-filename { font-size: 10px; }
  .card-heading > .icon-button { width: 24px; height: 25px; }
  .card-number { font-size: 8px; bottom: 7px; right: 7px; }
  .card-bottom > span { font-size: 10px; }
  .tag { font-size: 10px; padding: 4px 6px; }
  .card-tags { flex-basis: 100%; }
  .gallery.list .card-image { flex-basis: 100px; aspect-ratio: 1; }
  .gallery.list .card-body { display: block; padding: 10px; }
  .gallery.list .card-filename { margin-block: 5px; }
  .gallery.list .card-bottom > span { display: none; }
  .gallery.list .card-number { display: none; }
  .library-footer, .page-footer { font-size: 11px; line-height: 1.6; }
  .library-footer > span:last-child { text-align: right; max-width: 170px; }
  .page-footer { margin-inline: 18px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { position: static; min-height: 0; }
  .detail-photo { min-height: 0; padding: 20px; }
  .detail-photo img { max-height: 280px; }
  .detail-info { padding: 20px; }
  .dialog-header, .dialog-body { padding: 20px; }
  .dialog-footer { padding: 15px 20px; }
  .dialog-header h2 { font-size: 24px; }
  .dialog-footer .button { padding: 9px 17px; font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .tag-choices { grid-template-columns: 1fr; }
  .user-row { flex-wrap: wrap; padding: 15px; gap: 12px; }
  .activity-item { flex-wrap: wrap; padding: 15px; gap: 10px; }
  .activity-item > div { flex: 1; }
  .activity-item time { flex-basis: 100%; margin-left: 43px; }
  .toast { width: max-content; max-width: 90%; font-size: 13px; }
  .login-dialog { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) {
  .header-inner { padding-inline: 15px; column-gap: 10px; }
  .brand img { width: 130px; }
  .brand { gap: 10px; }
  .product-name { font-size: 20px; padding-left: 10px; }
  .top-navigation { gap: 20px; }
  .administration-panel { left: auto; right: 0; }
}

.badge.public { color: #075d83; background: #ddf3ffed; }
.public-sharing-panel { border-color: #b6d8e8; background: #edf8fd; }
.public-link-panel { border: 1px solid var(--line); border-top: 0; padding: 4px 15px 16px; border-radius: 0 0 6px 6px; }
.public-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.bull-sharing { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.bull-share-heading, .bull-share-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bull-share-heading h3 { margin: 0 0 4px; }
.bull-share-heading p, .bull-share-status { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.bull-share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.bull-share-slot, .bull-share-candidate { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.bull-share-candidate.selected { outline: 2px solid var(--navy); outline-offset: -2px; }
.bull-share-photo { display: block; position: relative; width: 100%; border: 0; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #eaf4fa; }
.bull-share-photo:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.bull-share-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bull-share-rank { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--navy); font-weight: 700; font-size: 13px; }
.bull-share-empty { position: relative; display: grid; place-items: center; min-height: 100px; background: #f4f7fb; color: var(--muted); font-size: 13px; }
.bull-share-slot-actions, .bull-share-order { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 7px; font-size: 12px; }
.bull-share-slot-actions button { margin-left: auto; }
.bull-share-name { display: block; margin: 5px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bull-share-order button { min-width: 28px; justify-content: center; }
.bull-share-order button:disabled { opacity: .45; cursor: default; }
.bull-share-controls { margin-top: 12px; }
.bull-share-controls span { margin-right: auto; font-size: 13px; }
.bull-sharing .error:empty { display: none; }


.remember-login { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 14px; }
.remember-login input { width: 16px; height: 16px; flex: none; }
