:root{color-scheme:light;--accent:#245f57;--forest:#182925;--ink:#fafbf9;--surface:#fff;--line:#d8e1dc;--muted:#48605a}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--forest);font:16px system-ui,sans-serif}header,.wrap{max-width:1220px;margin:auto;padding:0 5vw}header{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:12px}nav,.row,.controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.logo{font-size:24px;font-weight:950;letter-spacing:-1.5px}.logo b,.accent{color:var(--accent)}button,a.action,input,select{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:inherit;padding:11px 14px;font:inherit}button,a.action{cursor:pointer;font-weight:700}button:hover,a.action:hover{border-color:var(--accent)}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.hero{min-height:410px;display:flex;align-items:end;background-color:#f0f5f1;background-position:center 45%;background-size:cover;border:1px solid var(--line);border-radius:16px;padding:clamp(24px,5vw,64px)}h1{font-size:clamp(48px,8vw,100px);line-height:.93;letter-spacing:-.075em;margin:12px 0 20px;max-width:780px;overflow-wrap:anywhere}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.muted{color:var(--muted)}section.content{padding:32px 0 64px}.spread{justify-content:space-between}h2{font-size:30px;letter-spacing:-.04em;margin:0 0 10px}.grid{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card,.panel{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#edf2ef}.card .row,.panel{padding:16px}.panel{margin:16px 0}.panel form{display:grid;gap:14px}label{display:grid;gap:6px;font-weight:650}small{color:var(--muted)}dialog{width:min(520px,94vw);border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;padding:24px}dialog::backdrop{background:#000a}footer{border-top:1px solid var(--line);padding:20px 5vw;color:var(--muted)}a.action{display:inline-block;text-decoration:none}#notice{min-height:1.4em}li{margin:8px 0}[hidden]{display:none!important}@media(max-width:720px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:360px}}@media(max-width:460px){.grid{grid-template-columns:1fr}header nav{gap:5px}header button{font-size:13px;padding:8px}}.locale{display:flex;gap:4px;align-items:center}.locale button{padding:6px 8px;font-size:18px}.locale button[aria-pressed=true]{border-color:var(--accent)}fieldset{border:1px solid var(--line);border-radius:8px;padding:12px}fieldset input{max-width:130px}header{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}

.brandmark{color:inherit;text-decoration:none}
.text-link{color:var(--accent);font-weight:700;text-underline-offset:4px}
.catalog-heading,.dashboard-heading{font-size:clamp(36px,6vw,70px);line-height:1.02;letter-spacing:-.06em;margin:12px 0}
.catalog-card{display:block;color:inherit;text-decoration:none}
.catalog-card:hover{border-color:var(--accent)}
.catalog-card h2{font-size:22px;margin:0}
.catalog-card .summary{padding:16px;display:grid;gap:7px}
.catalog-card .placeholder{aspect-ratio:4/3;background:linear-gradient(135deg,#edf4f1,#f7f8f4)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:20px}
.dashboard-grid .panel{margin:0;min-width:0}
#albumList{display:grid;gap:10px;margin:16px 0}
.album-row{padding:14px;border:1px solid var(--line);border-radius:10px;display:grid;gap:10px}
.album-row strong{overflow-wrap:anywhere}
.hero .text-link{display:inline-block;margin-bottom:12px}
.catalog-tools{margin:20px 0}
.catalog-tools input{width:min(360px,100%)}
@media(max-width:760px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}}

.hero.has-cover{color:#fff}.hero.has-cover .text-link,.hero.has-cover .accent{color:#fff}
#coverPreview{display:block;width:min(100%,320px);aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin-top:10px}

.brandmark img{display:block;width:clamp(124px,20vw,170px);height:auto}

h1,h2,legend{color:var(--forest)}.hero.has-cover h1{color:#fff}

.catalog-tools{display:grid;gap:16px}
.catalog-tools input[type=search]{width:100%}
.event-filters{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.event-filters input,.event-filters select{min-width:0;width:100%}
.album-picker{display:flex;gap:10px;overflow-x:auto;padding:16px 0}.album-choice{min-width:200px;text-align:left;display:grid;gap:8px}.album-choice.selected{background:#edf4f1;border-color:var(--accent)}.editor-heading{padding:22px 0;border-top:1px solid var(--line);margin-top:12px}.editor-heading h2{font-size:32px}.status-badge{display:inline-block;background:#e7efeb;color:var(--accent);padding:5px 10px;border-radius:20px;font-size:12px;font-weight:700}.album-editor{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;margin-top:12px}.album-tabs{display:flex;flex-direction:column;gap:5px;align-self:start;position:sticky;top:14px}.album-tabs button{border-color:transparent;background:transparent;text-align:left;font-size:14px}.album-tabs button[aria-selected=true]{background:var(--accent);color:white}.editor-panel{margin:0;padding:26px;min-height:430px}.editor-panel h2{font-size:24px;margin-bottom:22px}.settings-form{display:grid;gap:18px}.settings-form input,.settings-form select{width:100%;min-width:0}.settings-form fieldset{display:flex;gap:12px;flex-wrap:wrap}.settings-form fieldset label{flex:1;min-width:100px}.settings-form fieldset input{max-width:none}.settings-form .check-field{display:flex;align-items:center;gap:12px}.check-field input{width:20px;height:20px;order:-1}.integration-note{border-left:3px solid #b89e61;background:#faf7ef;padding:16px;line-height:1.5}.integration-note p{margin:8px 0 0;font-size:14px}.upload-box{display:grid;gap:12px;padding:20px;border:1px dashed var(--accent);border-radius:12px;background:#f6f9f7}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.media-card{display:grid;gap:8px;min-width:0}.media-card img,.media-card video{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.media-card strong,.media-card small{overflow-wrap:anywhere}.inventory{display:flex;gap:20px;padding:20px;background:#edf4f1;border-radius:12px}button:focus-visible,a:focus-visible{outline:3px solid #b89e61;outline-offset:3px}@media(max-width:760px){.album-editor{grid-template-columns:1fr;gap:12px}.album-tabs{position:static;flex-direction:row;overflow-x:auto;padding-bottom:10px}.album-tabs button{white-space:nowrap}.editor-panel{padding:18px}.editor-heading{gap:20px}.media-grid{grid-template-columns:1fr}}

.cart-item, .cart-download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.45rem, 2vw, .9rem);
  padding-block: .65rem;
  border-bottom: 1px solid var(--line);
}
.cart-preview {
  width: clamp(3rem, 16vw, 4.75rem);
  height: clamp(3rem, 16vw, 4.75rem);
  object-fit: contain;
  display: block;
  background: #edf1ef;
  border-radius: 8px;
}
.cart-item span { font-weight: 650; }
.cart-download { grid-template-columns: auto auto; justify-content: start; }
.settings-form .cover-picker {
  display: grid;
  justify-items: start;
  gap: .7rem;
  min-width: 0;
}
.cover-preview {
  display: block;
  width: min(100%, 22rem);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #edf1ef;
}
.cover-preview[hidden] { display: none; }
.settings-form .cover-upload {
  display: grid;
  gap: .35rem;
  min-width: 0;
  width: min(100%, 25rem);
}
.cover-crop { width: min(720px, 96vw); }
.cover-crop canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #edf1ef;
  cursor: grab;
  touch-action: none;
}
.cover-crop canvas:active { cursor: grabbing; }
.cover-crop canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cover-crop label { display: grid; gap: .35rem; }
.cover-crop input[type=range] { width: 100%; padding: 0; accent-color: var(--accent); }
.cover-crop [role=status]:empty { display: none; }
.cover-crop .row { margin-top: 1rem; }
.catalog-card img.custom-cover { aspect-ratio: 16 / 9; }
.hero.has-custom-cover { aspect-ratio: 16 / 9; min-height: 0; background-position: center; }

.studio-navigation {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 5vw;
  gap: clamp(.35rem, 2vw, .85rem);
  border-bottom: 1px solid var(--line);
}
.studio-navigation > :is(a, span), .studio-navigation > details > summary {
  color: var(--muted);
  padding: .7rem .65rem;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font-weight: 650;
}
.studio-navigation > a:hover, .studio-navigation > [aria-current="page"] { color: var(--accent); }
.studio-navigation > [aria-current="page"] { border-color: var(--accent); }

.colored-menu { background: var(--forest); color: #fff; }
.colored-menu .brandmark img { filter: brightness(0) invert(1); }
.gallery-workspace { background: #f0f4f0; }
.gallery-header, .gallery-navigation { max-width: 1690px; }
.gallery-header .brandmark { flex: 0 0 auto; }
.customer-actions { margin-inline-start: auto; gap: .35rem; }
.customer-actions > button, .customer-actions summary {
  color: var(--accent);
  background: transparent;
  border: 1px solid transparent;
  padding: .45rem .6rem;
}
.customer-actions > button:hover, .customer-actions summary:hover, .gallery-navigation > details > summary:hover {
  background: #e2eee7;
  border-radius: 6px;
}
.gallery-navigation details, .customer-actions details { position: relative; }
.gallery-navigation summary, .customer-actions summary { cursor: pointer; white-space: nowrap; }
.gallery-navigation > details > summary { display: list-item; }
.customer-dropdown {
  position: absolute;
  z-index: 3;
  top: calc(100% + .35rem);
  left: 0;
  width: max-content;
  max-width: min(88vw,20rem);
  min-width: 10rem;
  display: grid;
  gap: .15rem;
  padding: .45rem;
  background: var(--surface);
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 35px #10171342;
}
.customer-actions .customer-dropdown { left: auto; right: 0; }
.customer-dropdown > a, .customer-dropdown > button {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  padding: .55rem .75rem;
  border: 0;
  text-align: start;
  background: transparent;
  font-weight: 600;
}
.customer-dropdown > a[hidden] { display: none; }
.customer-dropdown > :hover { background: #edf4f1; border-radius: 6px; }
.customer-dropdown .customer-signout { color: #a12020; border-top: 1px solid var(--line); }
#customer-avatar {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #d9f1e9;
  color: var(--forest);
  font-size: .8rem;
  font-weight: 750;
}
.customer-cart { display: inline-flex; gap: .35rem; align-items: center; }
#order { width: min(960px, 96vw); }
.cart-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr));
  gap: .8rem;
}
.cart-photographer {
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cart-photographer h3 { margin: .25rem 0 .45rem; overflow-wrap: anywhere; }
.cart-item button:not(.photo-expand) { padding: .45rem; }
.cart-item .photo-expand-icon { width: 1.45rem; height: 1.45rem; right: .2rem; bottom: .2rem; }
.cart-discount { color: #184c40; background: #e6f3ed; padding: .65rem; border-radius: 6px; }
#total { display: grid; gap: .3rem; }
#total strong { font-size: 1.15rem; }
.album-tile { position: relative; }
.album-tile .photo-expand-icon { right: .45rem; top: .45rem; bottom: auto; }
.album-tile .album-pick, .album-tile .album-add {
  position: absolute;
  bottom: .55rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: #1a302ce8;
  color: white;
  cursor: pointer;
}
.album-tile .album-pick { left: .55rem; }
.album-tile .album-add { right: .55rem; padding: 0; border: 1px solid #ffffff65; }
.album-tile .album-add.is-added { background: #398077; }
.album-tile .album-pick input { appearance: auto; margin: 0; width: 1.2rem; height: 1.2rem; accent-color: var(--accent); cursor: inherit; }
.album-tile :focus-visible { outline: 2px solid white; outline-offset: -3px; }
#album-selection { position: sticky; bottom: 0; z-index: 2; }
.album-selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  gap: .5rem;
  margin-top: .5rem;
  padding: .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.album-selection-bar[hidden] { display: none; }
@media (max-width:740px) {
  .gallery-header, .gallery-navigation { padding-inline: 4vw; }
  .gallery-header .customer-actions { margin-inline-start: 0; }
  .gallery-navigation { position: relative; }
  .gallery-navigation > details { position: static; }
  .gallery-navigation > details .customer-dropdown { left: auto; right: 4vw; }
}

button.cover-list-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  text-align: start;
}
.list-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(145deg,#dfeae4,#f0f5f2);
}
.list-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-list-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.event-wizard { width: min(44rem,96vw); }
.wizard-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
  gap: .7rem 1rem;
}
.wizard-fields > h3 { grid-column: 1 / -1; margin: .3rem 0; }
.wizard-fields label { display: grid; gap: .35rem; min-width: 0; }
.wizard-fields .check-field { display: flex; align-items: center; }
.wizard-fields textarea { width: 100%; min-height: 5rem; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.wizard-fields input:not([type=checkbox]), .wizard-fields select { min-width: 0; width: 100%; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.65rem; padding-inline-start: 1.25rem; }
.wizard-steps li { color: var(--muted); padding-inline-start: .2rem; }
.wizard-steps [aria-current] { color: var(--accent); font-weight: 750; }
.wizard-actions { margin-top: 1rem; }
.wizard-actions button:last-child { margin-inline-start: auto; }
.form-error { color: #891f24; background: #ffedea; border-radius: 8px; padding: .55rem .75rem; }
.form-error:empty { display: none; }

.album-search-filters { margin-top: .8rem; }
.face-search {
  display: grid;
  gap: 1.25rem;
  margin: 1.2rem 0 1.7rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #cddfd6;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9f4ec 0%, #fcfdfb 65%);
}
.face-search-heading { display: flex; align-items: center; gap: .9rem; }
.face-search-heading h3 {
  margin: 0 0 .25rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 620;
  letter-spacing: -.035em;
}
.face-search p { margin: .2rem 0; color: var(--muted); }
.face-search-symbol {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid #b5cfc1;
  border-radius: 12px;
  background: #f6fbf7;
  color: var(--accent);
}
.face-search-symbol::before {
  content: '';
  width: 1.35rem;
  height: 1.05rem;
  border: 1px solid currentColor;
  border-radius: .25rem;
  background: radial-gradient(circle at center, transparent .21rem, currentColor .23rem, currentColor .27rem, transparent .29rem);
}
.face-search form { display: grid; gap: .9rem; margin: 0; max-width: 42rem; }
.face-search-pickers { display: flex; flex-wrap: wrap; gap: .65rem; }
.face-search .face-choice { background: white; color: var(--forest); font-weight: 570; min-height: 44px; }
.face-search .face-search-consent { display: flex; align-items: baseline; gap: .45rem; font-weight: 450; }
.face-search-consent input { width: 1rem; height: 1rem; flex: none; accent-color: var(--accent); }
.face-search progress { width: 100%; height: .6rem; accent-color: var(--accent); }
.face-search .face-search-status:empty { display: none; }
.face-search .face-search-pending {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem; border-radius: 8px;
  color: #184c40; background: #e4f1e9; font-weight: 610;
}
.face-search-pending::before {
  content: '';
  flex: none;
  width: 1rem; height: 1rem;
  border: 2px solid #adcbbd;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .face-search-pending::before { animation: face-search-spin .85s linear infinite; }
  @keyframes face-search-spin { to { transform: rotate(1turn); } }
}
.face-search .face-search-error { color: #891f24; background: #ffedea; border-radius: 6px; padding: .5rem .65rem; }
.face-selfie-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow-wrap: anywhere;
}
.face-selfie-preview img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 6px; }
.face-preview-actions { margin-inline-start: auto; }
.face-camera { display: grid; gap: .65rem; width: min(100%, 24rem); }
.face-camera video { display: block; width: 100%; max-height: 18rem; border-radius: 12px; background: #182925; transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .face-search button { transition: background-color .18s, border-color .18s, box-shadow .18s; }
  .face-search button:hover:not(:disabled) { box-shadow: 0 3px 12px #18292520; }
}
.album-tile .album-add { width: 3rem; height: 3rem; background: #142723f5; }
.album-tile .album-add:hover { background: #27564b; }
.album-cart-icon { position: relative; width: 1.5rem; height: 1.5rem; }
.album-cart-icon::before {
  content: '';
  position: absolute;
  top: .26rem;
  left: .33rem;
  width: .93rem;
  height: .61rem;
  border: 2px solid white;
  border-radius: .15rem .12rem .27rem .25rem;
  transform: skewX(-9deg);
}
.album-cart-icon::after {
  content: '';
  position: absolute;
  top: .13rem;
  left: .09rem;
  width: .35rem;
  height: 2px;
  border-radius: 1rem;
  background: white;
  box-shadow: .39rem .98rem 0 0 white, .99rem .98rem 0 0 white;
}
.album-add.is-added .album-cart-icon::before { display: none; }
.album-add.is-added .album-cart-icon::after {
  content: '✓';
  position: static;
  display: block;
  width: auto;
  height: auto;
  box-shadow: none;
  background: none;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.setting-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  align-items: end;
  grid-column: 1 / -1;
  gap: .55rem;
}
.setting-entry input { width: 100%; min-width: 0; }
.setting-entry button { align-self: end; }
.setting-list { grid-column: 1 / -1; padding: 0; margin: 0; list-style: none; }
.setting-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.setting-item small { display: block; margin-top: .2rem; overflow-wrap: anywhere; }
.pending-changes button { max-width: 100%; }
.metrics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .6rem;
  margin: .5rem 0;
}
.metric-card {
  display: grid;
  gap: .45rem;
  padding: .7rem .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric-card span { color: var(--muted); font-size: .88rem; }
.metric-card strong { font-size: 1.25rem; }
.metrics-currency { display: flex; align-items: center; gap: .45rem; font-size: .8rem; }
.metrics-currency select { padding: .35rem; }
.album-metrics { margin-bottom: 1rem; }
.media-tools { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.settings-form .media-tools input, .settings-form .media-tools select { width: auto; max-width: 100%; }
.media-upload-settings summary { width: fit-content; cursor: pointer; color: var(--accent); font-weight: 650; }
.media-upload-settings .row { margin-top: .6rem; }
.settings-form .media-upload-settings input { width: auto; max-width: 100%; }
.media-drop {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  min-height: 15rem;
  padding: 1rem;
  text-align: center;
  border: 2px dashed #a9c2b5;
  border-radius: 12px;
  background: #f4f8f5;
}
.media-drop.drag-active { background: #dcefe6; border-color: var(--accent); }
.media-drop p:empty { display: none; }
.media-folder-dialog form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.media-folder-dialog label { width: 100%; }
.coupon-entry { align-items: end; margin: .65rem 0; }

.ui-icon { display:inline-block; width:1.05em; height:1.05em; flex:none; background:currentColor; -webkit-mask:var(--ui-icon) center / contain no-repeat; mask:var(--ui-icon) center / contain no-repeat; }
.icon-cart { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 4h2l2.1 10.2a2 2 0 0 0 2 1.6h8.7a2 2 0 0 0 1.95-1.55L21 8H6%22/%3E%3Ccircle cx=%2210%22 cy=%2220%22 r=%221%22/%3E%3Ccircle cx=%2218%22 cy=%2220%22 r=%221%22/%3E%3C/svg%3E"); }
.icon-plus { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14M5 12h14%22/%3E%3C/svg%3E"); }
.icon-search { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210.5%22 cy=%2210.5%22 r=%226%22/%3E%3Cpath d=%22m15 15 4 4%22/%3E%3C/svg%3E"); }
.icon-chevron { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E"); }
.icon-calendar { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M16 3v4M8 3v4M3 10h18%22/%3E%3C/svg%3E"); }
.icon-pin { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 10c0 4.8-8 10-8 10S4 14.8 4 10a8 8 0 1 1 16 0Z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.5%22/%3E%3C/svg%3E"); }
.icon-user { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%227.5%22 r=%223%22/%3E%3Cpath d=%22M5 20v-2.5A3.5 3.5 0 0 1 8.5 14h7a3.5 3.5 0 0 1 3.5 3.5V20%22/%3E%3C/svg%3E"); }
.icon-tag { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 7V4a1 1 0 0 1 1-1h6l10.5 10.5a1 1 0 0 1 0 1.4L15 20.5a1 1 0 0 1-1.4 0L3 10V7Z%22/%3E%3Cpath d=%22M7.5 7.5h.01%22/%3E%3C/svg%3E"); }
.icon-download { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4%22/%3E%3C/svg%3E"); }
.icon-arrow-right { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14m-5-5 5 5-5 5%22/%3E%3C/svg%3E"); }
.icon-image { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Ccircle cx=%228%22 cy=%228%22 r=%221.5%22/%3E%3Cpath d=%22m21 15-4.5-4.5L8 19%22/%3E%3C/svg%3E"); }
.icon-check { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http%3A//www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.85%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12 4 4L19 6%22/%3E%3C/svg%3E"); }

body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
h1 { letter-spacing: -.055em; font-weight: 660; }
h2 { letter-spacing: -.03em; font-weight: 640; }
label { font-weight: 555; }
button, a.action { font-weight: 610; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #559585; outline-offset: 3px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.icon-button .ui-icon { font-size: 1.1rem; }
.album-tile .album-add .ui-icon { font-size: 1.4rem; }
#clear-cart { color: #863a38; border-color: #e1c9c5; margin-top: .8rem; }
#clear-cart:hover { background: #fff2ef; border-color: #aa6a62; }
@media (prefers-reduced-motion: no-preference) {
  button, a.action { transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s; }
  button.primary:hover:not(:disabled), a.action:hover { transform: translateY(-1px); box-shadow: 0 5px 15px #18382d16; }
  button.primary:active:not(:disabled), a.action:active { transform: translateY(0) scale(.987); }
}

.studio-workspace { background: #f0f4f0; }
.studio-workspace > header, .studio-workspace > .studio-navigation, .studio-workspace .wrap { max-width: 1690px; }
.studio-workspace .wrap { padding-inline: clamp(1rem, 4.25vw, 4.25rem); }
.studio-workspace #dashboard { padding-top: clamp(1.1rem,3vw,2.5rem); }
.library-heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .85rem; margin-bottom: clamp(1rem,3vw,2rem);
}
.library-heading h1 {
  margin: 0;
  font-size: clamp(2rem,4vw,3.45rem);
  line-height: 1.08;
  letter-spacing: -.046em;
  font-weight: 650;
}
.library-surface {
  padding: clamp(.85rem,2.6vw,2.6rem);
  border: 1px solid #dce6df;
  border-radius: 19px;
  background: #fbfdfb;
  box-shadow: 0 14px 46px #24403408;
}
.library-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  border-bottom: 1px solid #e1e9e3; padding-bottom: .75rem;
}
.library-tabs button {
  border-color: transparent; border-radius: 8px; background: transparent;
  padding: .55rem .72rem; color: var(--muted); text-align: start;
}
.library-tabs button[aria-selected=true] {
  color: #14463d; background: #dcece4; border-color: #c4dbcf;
}
.library-filters, .library-criteria, .library-finder {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
}
.library-filters { justify-content: space-between; margin: 1rem 0 .65rem; }
.library-filters input, .library-filters select, .library-period summary, .library-clear { padding: .55rem .65rem; min-height: 39px; font-size: .87rem; }
.library-filters select { width: auto; max-width: 12rem; }
.library-finder { margin-inline-start: auto; }
.library-search {
  display: flex; align-items: center; position: relative; max-width: 100%; color: var(--muted);
}
.library-search .ui-icon { position: absolute; left: .65rem; pointer-events: none; }
.library-search input { width: min(18.75rem,65vw); padding-left: 2rem; }
.library-clear { border: 0; background: transparent; color: var(--accent); }
.library-clear:hover { background: #e7f0ea; }
.library-period { position: relative; }
.library-period summary {
  display: flex; align-items: center; gap: .45rem; cursor: pointer; border: 1px solid var(--line);
  border-radius: 8px; background: white; list-style: none;
}
.library-period summary::-webkit-details-marker { display: none; }
.library-date-options {
  position: absolute; z-index: 3; top: calc(100% + .3rem); left: 0;
  padding: .75rem; display: grid; gap: .45rem; background: white; border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 9px 30px #23463920;
}
.library-result-count { min-height: 1.25rem; margin: .65rem 0 .9rem; color: var(--muted); font-size: .83rem; }
.library-table-wrap { overflow-x: auto; max-width: 100%; scrollbar-color: #9cbaab #f4f7f4; }
.library-table { width: 100%; border-collapse: collapse; font-size: .855rem; text-align: start; }
.library-table th, .library-table td { padding: .55rem .65rem; border-bottom: 1px solid #e1e9e3; text-align: start; }
.library-table th { color: var(--muted); font-weight: 610; }
.library-table :is(td, th):not(:first-child) { white-space: nowrap; }
.library-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.library-table tbody tr:hover, .library-table .selected { background: #f0f6f2; }
.library-album-name {
  display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: .65rem; align-items: center;
  text-align: start; width: 100%; min-width: 11rem; padding: .2rem; border: 0; background: transparent; color: var(--forest);
}
.library-album-name strong, .event-title { font-weight: 630; }
.library-album-name small { display: block; margin-top: .15rem; font-weight: 460; }
.library-cover {
  position: relative; display: grid; place-items: center; width: 100%;
  border-radius: 9px; aspect-ratio: 16 / 9; overflow: hidden;
  color: #558577; background: linear-gradient(145deg,#d7e9df,#f1f5ef);
}
.library-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.library-cover .ui-icon { font-size: 1.5rem; }
.library-album-name .library-cover { aspect-ratio: 4 / 3; border-radius: 6px; }
.library-album-name .library-cover .ui-icon { font-size: 1rem; }
.library-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .24rem .48rem;
  border-radius: 6px; white-space: nowrap; font-size: .77rem; font-weight: 560;
}
.library-badge.quiet { background: #ebf1eb; color: #40594e; }
.library-badge.positive { background: #e0f3e8; color: #185d3c; }
.library-badge.notice { background: #f8ede0; color: #784922; }
.library-event-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,15.5rem),1fr)); gap: .85rem; }
.library-event-card {
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; min-width: 0;
  border: 1px solid #dce6df; border-radius: 13px; background: white; padding: .65rem;
}
.library-event-card .library-cover .library-badge { position: absolute; bottom: .45rem; left: .45rem; }
.library-event-body { padding: .55rem .2rem .35rem; }
.event-title {
  display: grid; gap: .7rem; padding: 0; width: 100%; text-align: start; border: 0; background: transparent;
  line-height: 1.3; overflow-wrap: anywhere; letter-spacing: -.01em;
}
.library-event-title { padding-inline: .2rem; }
.event-title:hover, .event-title[aria-current=true] { color: var(--accent); }
.library-event-info { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .84rem; color: var(--muted); }
.library-event-info li { display: flex; align-items: baseline; gap: .38rem; margin: .3rem 0; }
.library-event-info .ui-icon { align-self: center; color: #527f70; }
.library-event-footer { display: flex; flex-wrap: wrap; gap: .35rem; border-top: 1px solid #e4ebe6; padding: .5rem .1rem 0; align-items: center; }
.library-event-footer button { margin-left: auto; min-height: 0; line-height: 1.2; font-size: .76rem; }
.library-empty { display: grid; justify-items: center; gap: .45rem; text-align: center; color: var(--muted); padding: 2rem 1rem; }
.library-empty .ui-icon { font-size: 1.65rem; }
.library-empty p { margin: 0; }
.studio-workspace .editor-heading { scroll-margin-top: 1rem; }
@media (max-width: 720px) {
  .library-finder { margin-inline-start: 0; }
  .library-event-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,13rem),1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .library-event-card { transition: border-color .2s, box-shadow .2s; }
  .library-event-card:hover { border-color: #b2cabd; box-shadow: 0 8px 20px #20463811; }
}

.cover-crop canvas.square-crop { max-width: min(100%, 23rem); margin-inline: auto; aspect-ratio: 1; }

.catalog-workspace { background: #f0f4f0; }
.catalog-masthead .customer-actions > button, .catalog-masthead .customer-actions summary { color: #f4fbf6; }
.catalog-masthead .customer-actions > button:hover, .catalog-masthead .customer-actions summary:hover,
.catalog-masthead .customer-actions details[open] > summary { background: #ffffff21; }
.catalog-masthead :is(a, button, summary):focus-visible { outline-color: #a9e5d0; }
.catalog-search-bar .primary:hover { background: #194d45; }
@media (prefers-reduced-motion: no-preference) {
  .catalog-masthead .customer-actions summary,
  .catalog-disclosure > summary { transition: background-color .18s, border-color .18s, transform .18s; }
  .catalog-masthead .customer-actions > button:active, .catalog-masthead .customer-actions summary:active,
  .catalog-disclosure > summary:active { transform: scale(.98); }
  .catalog-disclosure > summary .icon-chevron { transition: transform .18s; }
}
.catalog-workspace .wrap { max-width: 1690px; padding-inline: clamp(1rem, 4.25vw, 4.25rem); }
.catalog-workspace main > section { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.catalog-surface .catalog-tools { gap: .95rem; margin: 0; padding-bottom: 1rem; border-bottom: 1px solid #e1e9e3; }
.catalog-search-lead {
  background: linear-gradient(125deg, #e5f2eb, #f3f8f4);
  border: 1px solid #d4e5db;
  border-radius: 13px;
  padding: clamp(1rem, 4vw, 3rem);
}
.catalog-search-lead .library-heading { margin-bottom: 1rem; }
.catalog-search-bar { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: start; gap: .55rem; }
.catalog-search-bar .library-search input { width: 100%; min-width: 0; }
.catalog-disclosure > summary {
  display: flex; align-items: center; gap: .5rem; width: fit-content;
  cursor: pointer; color: var(--accent); font-weight: 610; list-style: none;
  padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: white;
}
.catalog-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-disclosure[open] > summary .icon-chevron { transform: rotate(180deg); }
#catalogFilterCount { background: #dcece4; border-radius: 99px; min-width: 1.35rem; text-align: center; font-size: .78rem; }
.catalog-surface .event-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: .6rem; align-items: end;
}
.catalog-surface .event-filters label { min-width: 0; font-size: .84rem; color: var(--muted); }
.catalog-surface .event-filters :is(input, select) { width: 100%; min-width: 0; padding: .6rem; color: var(--forest); }
.catalog-surface .library-clear:disabled { opacity: .45; cursor: default; }
.catalog-surface .catalog-card { display: grid; }
.catalog-card .library-event-body { padding-top: .8rem; }
.catalog-card .library-event-body h2 { font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-card .library-cover img { aspect-ratio: auto; }
.catalog-open { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-size: .85rem; font-weight: 610; }
.catalog-empty { grid-column: 1 / -1; }
@media (min-width: 721px) {
  .catalog-disclosure[open] > summary { display: none; }
}
@media (max-width: 720px) {
  .catalog-disclosure .event-filters { margin-top: .7rem; }
}

.media-page-size { font-size: .82rem; color: var(--muted); }
.media-drop progress, .pilot progress { width: min(18rem, 100%); accent-color: var(--accent); }
.media-pagination { margin-top: .75rem; justify-content: center; }
.media-pagination span { color: var(--muted); font-variant-numeric: tabular-nums; }
.thumbnails-only { grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); gap: .45rem; }
.thumbnails-only .media-card { padding: 0; display: block; overflow: hidden; }
.thumbnails-only .studio-thumbnail { width: 100%; display: block; padding: 0; border: 0; }
.thumbnails-only .studio-thumbnail img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.duplicate-upload { width: min(42rem, 94vw); }
.duplicate-upload-summary { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; }
.duplicate-upload-name, .duplicate-upload-count { color: #a12020; }
.duplicate-upload ul { max-height: 12rem; overflow: auto; overflow-wrap: anywhere; }

.home-workspace {
  --home-width: 76rem;
  background: #edf3ef;
}
.home-inner {
  width: min(var(--home-width), 100% - clamp(2rem, 9vw, 8rem));
  margin-inline: auto;
}
.home-top { position: relative; background: #10332b; }
.home-top .gallery-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .25rem clamp(.65rem, 2vw, 2rem);
  width: 100%;
  max-width: none;
  min-height: 68px;
  padding: .65rem clamp(.7rem, 2vw, 2.5rem);
  position: relative;
  z-index: 3;
}
.home-top .brandmark img { width: clamp(105px, 13vw, 148px); }
.home-top .gallery-navigation {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  gap: .1rem clamp(.1rem, 1vw, .85rem);
}
.home-top .gallery-navigation > :is(a, span), .home-top .gallery-navigation > details > summary {
  padding: .55rem clamp(.35rem, .8vw, .72rem);
  font-size: clamp(.82rem, 1.35vw, .94rem);
  white-space: nowrap;
}
.home-top .customer-actions { position: relative; z-index: 1; justify-content: flex-end; gap: clamp(.08rem, .45vw, .45rem); }
.home-top .customer-actions > button, .home-top .customer-actions summary { padding: .45rem clamp(.3rem, .65vw, .68rem); }
@media (max-width: 930px) {
  .home-top .gallery-header { grid-template-columns: auto minmax(0, 1fr); min-height: 0; gap: .45rem .55rem; }
  .home-top .gallery-navigation { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid #ffffff2b; }
  .home-top .customer-actions { margin-inline-start: 0; }
}
@media (max-width: 470px) {
  .home-top .customer-actions > [data-account-action="photos"] { display: none; }
  .home-top .gallery-navigation > :is(a, span), .home-top .gallery-navigation > details > summary { white-space: normal; }
}
.home-top .gallery-navigation > :is(a, span), .home-top .gallery-navigation > details > summary,
.home-top .customer-actions > button, .home-top .customer-actions summary { color: #f2fbf6; }
.home-top .gallery-navigation > [aria-current="page"] { border-color: #98e9c5; color: #b8f4d8; }
.home-top .customer-actions > button:hover, .home-top .customer-actions summary:hover,
.home-top .gallery-navigation > details > summary:hover { background: #ffffff22; }
.home-top :is(a,button,summary):focus-visible { outline-color: #a9e5d0; }
.home-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.6rem, 7vw, 6.5rem) clamp(2.8rem, 6vw, 5.25rem);
  background: #174338;
}
.home-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#123d33 12%,#123d33e8 40%,#123d332e 82%,#123d3355),
    url('/arena.png') right 41% / min(68%, 64rem) auto no-repeat;
}
.home-hero h1 {
  width: fit-content;
  max-width: 13ch;
  margin: 0 0 clamp(1rem, 3vw, 1.85rem);
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 655;
  line-height: .98;
  text-wrap: balance;
  color: #fff;
}
.home-search {
  display: flex; align-items: stretch; gap: .35rem;
  width: min(100%, 36rem);
  padding: .32rem;
  border: 1px solid #d1dfd6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 30px #09231835;
}
.home-search label { flex: 1; min-width: 0; }
.home-search .library-search input { width: 100%; border-color: transparent; }
.home-search .primary { min-height: 44px; background: #185b47; padding-inline: clamp(.85rem, 2vw, 1.35rem); }
.home-search .primary:hover { background: #104334; }
.home-search input:focus-visible { outline: 2px solid #206650; outline-offset: -2px; }
#home-discover { display: grid; gap: clamp(1.65rem, 4vw, 2.85rem); padding-block: 1.55rem 3.5rem; }
.home-location {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .45rem .85rem; padding: .6rem .75rem;
  border: 1px solid #d2e6da; border-radius: 10px;
  background: #e0eee6;
}
.home-location-label { display: flex; align-items: center; gap: .45rem; color: #275b4a; font-size: .88rem; }
#home-region { min-height: 42px; max-width: 100%; padding: .45rem .7rem; color: #185542; font-size: .88rem; text-align: start; }
#region-dialog { width: min(29rem, calc(100% - 1.5rem)); padding: clamp(1rem, 4vw, 1.5rem); }
#region-dialog::backdrop { background: #10251db8; }
.region-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.region-dialog-heading h2 { margin: 0; font-size: 1.22rem; }
.region-dialog-heading button { border-radius: 50%; width: 2.5rem; height: 2.5rem; padding: 0; background: #edf4ef; }
#region-device { width: 100%; min-height: 44px; }
.region-disclosure { margin: .45rem 0 .85rem; color: var(--muted); font-size: .78rem; }
.region-country { gap: .3rem; margin-bottom: .55rem; font-size: .87rem; }
.region-country select, .region-search input { width: 100%; }
#region-status { margin: .65rem 0; color: var(--muted); font-size: .87rem; }
#region-status:empty { display: none; }
#region-results { display: grid; max-height: min(16rem, 36vh); overflow-y: auto; margin-block: .4rem; }
#region-results button { display: grid; text-align: start; border-color: transparent; padding: .55rem .68rem; }
#region-results button:hover { background: #edf6ef; }
#region-results small { font-size: .76rem; }
.region-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .35rem; }
.region-actions button { flex: 1 1 9rem; color: var(--accent); }
.region-actions button:disabled { opacity: .5; cursor: default; }
.home-section-heading {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.home-section-heading h2 { margin: 0; font-size: clamp(1.28rem, 2.8vw, 1.85rem); letter-spacing: -.035em; }
.home-section-heading > a { display: inline-flex; gap: .35rem; align-items: center; color: #185542; font-size: .87rem; text-underline-offset: 3px; }
.home-scroll-controls { display: flex; gap: .35rem; }
.home-scroll-controls button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; color: #1c5b48; }
.home-scroll-controls button:disabled { opacity: .42; cursor: default; }
#featured-prev .ui-icon { transform: rotate(180deg); }
.home-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(13.25rem, 26vw, 18rem);
  gap: .8rem; overflow: auto; padding: 3px 3px .55rem; margin-inline: -3px;
  scroll-snap-type: x proximity; scrollbar-color: #9cbaab #e4eee7;
}
.home-carousel .catalog-card { scroll-snap-align: start; }
.home-carousel .library-cover { aspect-ratio: 1.85; }
.home-carousel .library-event-info { display: none; }
.home-carousel .library-event-body h2 { font-size: .98rem; }
#home-count { margin: -.35rem 0 .7rem; font-size: .86rem; }
@media (max-width: 680px) {
  .home-hero::before {
    background: linear-gradient(90deg,#123d33f5 0%,#123d33b3 60%,#123d3377),
      url('/arena.png') 68% 36% / cover no-repeat;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-workspace .catalog-card {
    transition: transform .22s ease-out, border-color .22s, box-shadow .22s;
  }
  .home-workspace .catalog-card .library-cover img { transition: transform .32s ease-out; }
  .home-workspace .catalog-card .catalog-open .ui-icon { transition: transform .22s ease-out; }
  .home-workspace .catalog-card:is(:hover, :focus-visible) {
    transform: translateY(-2px);
    border-color: #8eb6a3;
    box-shadow: 0 8px 18px #133f2e20;
  }
  .home-workspace .catalog-card:is(:hover, :focus-visible) .library-cover img { transform: scale(1.045); }
  .home-workspace .catalog-card:is(:hover, :focus-visible) .catalog-open .ui-icon { transform: translateX(3px); }
  .home-workspace :is(button, summary):hover:not(:disabled) { transform: translateY(-1px); }
  .home-workspace :is(button, summary):active:not(:disabled) { transform: scale(.98); }
  .home-top summary { transition: transform .18s, background-color .18s; }
}

.home-selfie-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: min(100%, 36rem);
  margin-top: .85rem;
  padding: .65rem .9rem;
  text-align: start;
  color: var(--forest);
  border: 1px solid #aad7c5;
  border-radius: 13px;
  background: #f0faf4;
}
.home-selfie-card:hover { background: #e2f4e9; border-color: #7bb49c; }
.home-selfie-text { display: grid; gap: .15rem; }
.home-selfie-text strong { font-size: clamp(.88rem, 2vw, 1rem); }
.home-selfie-text small { font-size: .79rem; font-weight: 450; line-height: 1.25; }
.home-selfie-card > .ui-icon { color: var(--accent); }
.home-selfie-card .face-search-symbol { width: 2.5rem; height: 2.5rem; }
#home-selfie-dialog { width: min(48rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); }
#home-selfie-dialog .face-search { margin: 0; }
#home-selfie-dialog .face-search-heading { display: none; }
.home-selfie-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; }
.home-selfie-results:not(:empty) { margin-top: .95rem; }
.home-selfie-results .library-cover img { aspect-ratio: auto; }
.home-selfie-caption { display: block; padding: .55rem; font-size: .84rem; font-weight: 575; }

#home-hero-gallery {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(60rem, 66%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: .45rem;
  overflow: hidden;
  padding: .45rem;
  opacity: .9;
}
#home-hero-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.home-hero.has-gallery::before { background: linear-gradient(90deg, #123d33 30%, #123d33d9 48%, #123d3344 100%); }
@media (max-width: 680px) {
  #home-hero-gallery { width: 100%; }
  .home-hero.has-gallery::before { background: linear-gradient(90deg, #123d33ed 0%, #123d33a6 100%); }
}
