/* Sator Academy · Forge */
.forge-shop, .forge-my-orders, .forge-login-gate {
  width: var(--app-page);
  margin-inline: auto;
  min-width: 0;
  --forge-divider: rgba(229,184,121,.15);
}
.forge-shop [hidden], .forge-photo-manager [hidden] { display: none !important; }
body:has(.forge-sheet[open]) { overflow: hidden; }
.forge-workspace { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 36px; align-items: start; }
.forge-navigation { position: sticky; top: var(--user-content-offset,254px); padding: 6px 0; }
.forge-masthead h1, .forge-login-gate h1 { margin: 0; font-size: 38px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; }
.forge-masthead { margin-bottom: 30px; }
.forge-kicker { color: var(--app-bronze-bright); font-size: 12px; }
.forge-filters { display: grid; gap: 4px; }
.forge-filters a {
  position: relative; display: flex; align-items: center; min-height: 46px; padding: 10px 16px;
  color: var(--app-secondary); font-size: 15px; text-decoration: none; overflow-wrap: anywhere;
  border-left: 1px solid var(--app-separator);
}
.forge-filters a:hover { color: var(--app-text); background: #ffffff03; }
.forge-filters a[aria-current] {
  color: var(--app-bronze-bright); border-left-color: var(--app-bronze-bright);
  background: linear-gradient(90deg,#b6843d17,transparent); font-weight: 600;
}
.forge-shop-actions { display: grid; gap: 4px; padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--app-separator); }
.forge-shop-actions a, .forge-cart-trigger {
  min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 0; background: transparent; color: var(--app-secondary); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.forge-shop-actions a svg { margin-left: auto; opacity: .5; }
.forge-shop-actions a:hover, .forge-cart-trigger:hover { color: var(--app-bronze-bright); }
.forge-cart-trigger [data-forge-cart-count] {
  margin-left: auto; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%;
  background: #b6843d19; color: var(--app-bronze-bright); font-size: 11px; font-variant-numeric: tabular-nums;
}
.forge-browse { min-width: 0; }
.forge-collection-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px;
  margin: 0 0 16px; padding: 8px 0 18px; border-bottom: 1px solid var(--forge-divider);
  border-image: linear-gradient(90deg,#dab47a85 36px,var(--forge-divider) 136px) 1;
}
.forge-collection-head > div { min-width: 0; }
.forge-collection-head h2 {
  margin: 0; color: var(--app-text); font-size: clamp(25px,2.65vw,34px); font-weight: 600;
  line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere;
}
.forge-category-description { margin: 8px 0 0; color: var(--app-secondary); font-size: 13px; line-height: 1.55; max-width: 54ch; overflow-wrap: anywhere; }
.forge-pick {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 150px;
  min-height: 46px; flex: 0 0 auto; padding: 10px 18px; border-radius: 4px;
  border: 1px solid #bd8d52; background: linear-gradient(115deg,#d8af77,#b88850); color: #17110a;
  font-size: 14px; font-weight: 650; text-decoration: none; box-shadow: inset 0 1px #ffe1ae55;
}
.forge-pick:hover { background: #e1bd89; color: #17110a; }
.forge-pick svg { width: 18px; height: 18px; }
.forge-shop :focus-visible { outline: 2px solid var(--app-bronze-bright); outline-offset: 4px; }
.forge-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: start; }
.forge-feed-photo { position: relative; margin: 0; min-width: 0; overflow: hidden; border-radius: 4px; background: #11110f; }
.forge-feed-photo:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.forge-photo-stage, .forge-view-image, .forge-edit-preview { position: relative; isolation: isolate; background: #11110f; }
.forge-photo-stage { --forge-frame-ratio: 1; --forge-photo-ratio: var(--forge-frame-ratio); aspect-ratio: var(--forge-frame-ratio); }
.forge-photo-view { position: absolute; inset: 0; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.forge-photo-view img { display: block; width: 100%; height: 100%; object-fit: contain; }
.forge-photo-view:focus-visible { outline-offset: -5px; }
.forge-photo-marks {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  width: min(100%,calc(100% * var(--forge-photo-ratio) / var(--forge-frame-ratio)));
  height: min(100%,calc(100% * var(--forge-frame-ratio) / var(--forge-photo-ratio))); pointer-events: none;
}
.forge-photo-marks .forge-pin { pointer-events: auto; }
.forge-pin {
  position: absolute; left: clamp(19px,var(--pin-x),calc(100% - 19px)); top: clamp(19px,var(--pin-y),calc(100% - 19px));
  translate: -50% -50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid #f4e0bfaa; background: #14100bc9; color: #f4e0bf;
  backdrop-filter: blur(10px); font-size: 19px; font-weight: 400; text-decoration: none;
  box-shadow: 0 0 0 5px #15100b25; cursor: pointer;
}
.forge-pin:hover { background: #dfb77c; color: #17110a; }
.forge-photo-caption { position: absolute; inset: auto 0 0; padding: 30px 13px 12px; background: linear-gradient(transparent,#090806ed); pointer-events: none; }
.forge-photo-caption a, .forge-photo-items { pointer-events: auto; }
.forge-photo-items { max-height: 130px; overflow: auto; scrollbar-width: thin; }
.forge-photo-items summary { cursor: pointer; color: #e1d6c8; font-size: 12px; padding-block: 5px; }
.forge-photo-items[open] .forge-photo-tags { padding-top: 8px; }
.forge-photo-caption p { max-height: 5.6em; overflow: auto; pointer-events: auto; margin: 0 0 8px; color: var(--app-secondary); font-size: 12px; overflow-wrap: anywhere; }
.forge-photo-caption p:only-child { margin: 0; }
.forge-photo-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.forge-photo-tags a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; max-width: 100%;
  color: #e1d6c8; font-size: 12px; text-decoration: none; overflow-wrap: anywhere;
}
.forge-photo-tags a:hover { color: #f5c987; }
.forge-photo-tags svg { flex: 0 0 13px; opacity: .6; }
.forge-tag-index { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border: 1px solid #aa8a5f66; border-radius: 50%; font-size: 10px; }
.forge-feed-photo:nth-child(6n+1) .forge-photo-caption {
  position: absolute; inset: auto 0 0; padding: 35px 22px 18px;
  background: linear-gradient(transparent,#090806e8); pointer-events: none;
}
.forge-feed-photo:nth-child(6n+1) .forge-photo-caption a { pointer-events: auto; font-size: 15px; min-height: 34px; }
.forge-feed-photo:nth-child(6n+1) .forge-photo-caption p { color: #dfd5c6; }
.forge-feed-end { display: grid; justify-items: center; padding: 24px; }
.forge-feed-end p:empty { display: none; }
.forge-photo-unavailable { opacity: 0; }
.forge-sheet.commerce-dialog {
  width: min(1160px,calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; margin: auto; overflow: auto; overscroll-behavior: contain;
  background: #141310; color: var(--app-text); border: 1px solid #b28d5938; border-radius: 8px;
  box-shadow: 0 32px 120px #000b;
}
.forge-sheet::backdrop { background: #030302dd; backdrop-filter: blur(12px); }
.forge-sheet-bar {
  position: sticky; top: 0; z-index: 6; min-height: 58px; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #141310f5; border-bottom: 1px solid #ffffff08;
}
.forge-sheet-bar > span { color: #b9a78d; font-size: 12px; }
.forge-sheet-bar h2 { font-size: 20px; font-weight: 550; margin: 0; }
.forge-icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid #ddbd8a24; background: #191713; color: #e8dcc9;
  padding: 0; font: inherit; font-size: 22px; cursor: pointer; line-height: 1;
}
.forge-icon-btn:hover { border-color: #ddbd8a80; background: #282217; }
.forge-icon-btn:disabled { opacity: .35; cursor: default; }
.forge-product-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); grid-template-rows: 1fr auto; align-items: start; }
.forge-album { grid-column: 1; grid-row: 1 / 3; min-width: 0; position: sticky; top: 58px; background: #0b0b09; padding: 20px; }
.forge-album-stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 66dvh; min-width: 0;
  isolation: isolate; overflow: hidden; touch-action: pan-y pinch-zoom;
}
.forge-album-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.forge-image-placeholder { color: var(--app-secondary); padding: 32px; }
.forge-album-stage .forge-icon-btn { position: absolute; top: 50%; translate: 0 -50%; background: #15110bc9; backdrop-filter: blur(8px); }
.forge-prev { left: 8px; } .forge-next { right: 8px; }
.forge-photo-count { position: absolute; right: 10px; bottom: 10px; color: #f1e5d3; background: #1119; padding: 5px 8px; font-size: 11px; border-radius: 3px; }
.forge-thumbnails { display: flex; gap: 8px; padding: 16px 2px 0; overflow-x: auto; scrollbar-width: thin; }
.forge-thumbnails button { flex: 0 0 58px; height: 58px; padding: 3px; background: transparent; border: 1px solid transparent; border-radius: 3px; opacity: .5; cursor: pointer; }
.forge-thumbnails button[aria-pressed="true"] { border-color: #c99e65; opacity: 1; }
.forge-thumbnails button:hover { opacity: 1; }
.forge-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.forge-album-caption { margin: 12px 0 0; font-size: 12px; }
.forge-product-copy { grid-column: 2; min-width: 0; display: grid; align-content: start; gap: 24px; padding: 32px; }
.forge-product-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.forge-product-title h2 { margin: 0; font-size: clamp(27px,3vw,42px); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; overflow-wrap: anywhere; }
.forge-product-title .forge-icon-btn { border: 0; background: transparent; width: 28px; }
.forge-product-teaser { margin: -12px 0 0; font-size: 14px; color: #b8aea0; line-height: 1.6; overflow-wrap: anywhere; }
.forge-design-choice { display: grid; gap: 8px; color: #bcaf9e; font-size: 12px; }
.forge-design-choice select { background: #191713; border-radius: 4px; }
.forge-product-copy .forge-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.forge-product-copy .forge-options legend { margin-bottom: 10px; color: #a99d8d; font-size: 12px; font-weight: 400; }
.forge-product-copy .forge-options > div { display: flex; flex-wrap: wrap; gap: 8px; }
.forge-product-copy .forge-option { position: relative; max-width: 100%; margin: 0; display: block; cursor: pointer; }
.forge-product-copy .forge-option input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.forge-product-copy .forge-option > span {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 14px;
  border: 1px solid #ffffff12; border-radius: 4px; background: transparent; color: #b9b1a5; font-size: 13px;
}
.forge-product-copy .forge-option b { font-weight: 450; }
.forge-product-copy .forge-option small { font-size: 11px; color: #a5947d; white-space: nowrap; }
.forge-product-copy .forge-option input:checked + span { border-color: #bd955b; background: #b58d4820; color: #f0d0a2; }
.forge-product-copy .forge-option input:focus-visible + span { outline: 2px solid #e1b779; outline-offset: 3px; }
.forge-product-copy .forge-option:hover > span { border-color: #b89e7866; }
.forge-product-description { padding: 16px 0; border-top: 1px solid #ffffff0e; margin-bottom: -24px; font-size: 13px; }
.forge-product-description:last-child { margin-bottom: 0; }
.forge-product-description summary { cursor: pointer; color: #cfc3b1; }
.forge-product-description h3 { margin: 0; color: #e1d6c8; font-size: 14px; font-weight: 600; }
.forge-product-description > .btn { margin-top: 8px; }
.forge-product-description .commerce-rich-text { margin-top: 12px; color: #b8aea0; line-height: 1.7; overflow-wrap: anywhere; }
.forge-product-description [data-forge-delivery] p { margin: 14px 0 0; }
.forge-product-description [data-forge-delivery] small { display: block; color: #a89b89; margin-top: 4px; }
.forge-related h3 { font-size: 13px; margin: 0 0 8px; }
.forge-buy {
  grid-column: 2; position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; padding: 24px 32px; border-top: 1px solid #c5a47126; background: #191610f5;
}
.forge-buy strong { color: #edd0a4; font-size: 26px; font-weight: 500; letter-spacing: -.025em; white-space: nowrap; }
.forge-buy p { margin: 5px 0 0; max-width: 200px; font-size: 11px; color: #a99a84; }
.forge-buy p:empty { display: none; }
.forge-buy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.forge-buy-actions .btn { min-height: 46px; border-radius: 4px; padding: 10px 20px; font-size: 13px; }
.forge-buy-actions .primary { background: #d2a66b; color: #17110a; }
.forge-sheet [data-forge-product-body] > .empty { padding: 40px; }
.forge-sheet [data-forge-product-body] > .btn { margin: 24px; }
.forge-sheet.forge-photo-sheet { width: min(1080px,calc(100vw - 40px)); background: #0b0b09; }
.forge-photo-bar { justify-content: flex-end; background: #0b0b09; border: 0; }
.forge-view-image { margin: auto; width: fit-content; max-width: 100%; }
.forge-view-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 70dvh; object-fit: contain; }
.forge-photo-footer { display: grid; gap: 14px; padding: 16px 24px 24px; }
.forge-photo-footer .toolbar { justify-content: space-between; }
.forge-photo-footer .forge-photo-items { max-height: none; }
.forge-photo-footer .forge-photo-caption p { max-height: none; }
.forge-photo-footer .forge-photo-caption { position: static; padding: 0; background: transparent; }
.forge-sheet.forge-cart-sheet { width: min(740px,calc(100vw - 40px)); }
.forge-cart-content { padding: 10px 28px 28px; }
.forge-cart-row { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid #ffffff0d; align-items: center; }
.forge-cart-row > img, .forge-cart-no-image { width: 80px; height: 88px; object-fit: contain; background: #0b0b09; }
.forge-cart-item-text { display: grid; gap: 6px; min-width: 0; }
.forge-cart-item-text strong { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.forge-cart-item-text small { font-size: 11px; color: #a89b89; overflow-wrap: anywhere; }
.forge-cart-item-text > span { color: #d8b585; font-size: 14px; }
.forge-cart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 128px; font-size: 13px; }
.forge-cart-controls .forge-icon-btn { width: 30px; height: 30px; font-size: 17px; }
.forge-cart-controls .link-button { width: 100%; font-size: 11px; text-align: right; padding-top: 5px; }
.forge-cart-content form { display: grid; gap: 16px; margin-top: 24px; }
.forge-cart-content form label { font-size: 12px; color: #b8aea0; }
.forge-cart-content form input, .forge-cart-content form select, .forge-cart-content form textarea { border-radius: 4px; }
.forge-cart-content form > .primary { width: 100%; min-height: 48px; border-radius: 4px; }
.forge-cart-content [data-forge-delivery-description]:empty, .forge-cart-content [data-forge-cart-status]:empty { display: none; }
.forge-cart-summary { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid #ffffff0d; }
.forge-cart-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #ad9e88; }
.forge-cart-summary > div:last-child { margin-top: 4px; color: #ead2ad; font-size: 21px; }
.forge-cart-summary strong { font-weight: 500; }
.forge-order-card { padding: 24px; margin-block: 12px; border: 1px solid #c5a47120; border-radius: 5px; background: #141310; }
.forge-order-card h2, .forge-order-card p { margin: 0; }
.forge-order-status { padding: 6px 10px; border-radius: 3px; background: #b58d481a; color: #d8b585; font-size: 12px; }
.forge-order-card footer { align-items: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid #ffffff0c; }
.forge-cart-summary:empty { display: none; }
.forge-order-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.forge-login-gate { text-align: center; padding-block: 50px; }
.forge-login-gate .btn { margin-top: 24px; }
.forge-pin-moving { pointer-events: none; outline: 2px dashed #fff; outline-offset: 3px; }
.forge-edit-preview.placing .forge-pin { pointer-events: none; }
.forge-edit-preview img { display: block; width: 100%; height: auto; }

@media (max-width: 950px) {
  .forge-workspace { grid-template-columns: 150px minmax(0,1fr); gap: 22px; }
  .forge-masthead h1 { font-size: 32px; }
  .forge-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forge-feed-photo:nth-child(6n+1) { grid-column: span 2; grid-row: auto; }
  .forge-product-copy { padding: 24px; gap: 20px; }
  .forge-buy { padding: 20px 24px; }
}
@media (max-width: 650px) {
  .forge-shop { padding-inline: 12px; }
  .forge-workspace { display: block; }
  .forge-navigation { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px; padding: 0; }
  .forge-masthead { margin: 0; }
  .forge-masthead h1 { font-size: 32px; }
  .forge-shop-actions { display: flex; margin: 0 0 0 auto; padding: 0; border: 0; gap: 2px; }
  .forge-shop-actions a { font-size: 11px; padding: 8px 0 8px 8px; }
  .forge-shop-actions a svg { display: none; }
  .forge-cart-trigger { padding: 8px 0 8px 10px; gap: 5px; order: 2; }
  .forge-cart-trigger > span:not([data-forge-cart-count]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .forge-filters { order: 3; display: flex; width: 100%; min-width: 0; overflow-x: auto; gap: 22px; scrollbar-width: none; border-bottom: 1px solid #ffffff0c; }
  .forge-filters a { flex: 0 0 auto; white-space: nowrap; padding: 6px 0 12px; min-height: 40px; border: 0; border-bottom: 1px solid transparent; font-size: 13px; }
  .forge-filters a[aria-current] { border-bottom-color: #dab47a; background: none; }
  .forge-collection-head { margin: 18px 0 12px; padding: 0 0 12px; gap: 10px; flex-wrap: wrap; }
  .forge-collection-head > div { flex: 1 1 9rem; }
  .forge-collection-head h2 { font-size: 23px; }
  .forge-pick { min-width: 112px; min-height: 42px; padding: 8px 14px; gap: 16px; font-size: 13px; }
  .forge-category-description { font-size: 12px; }
  .forge-photo-grid { gap: 8px; }
  .forge-feed-photo:nth-child(6n+1) .forge-photo-caption { padding: 28px 16px 12px; }
  .forge-feed-photo:nth-child(6n+1) .forge-photo-caption a { font-size: 14px; }
  .forge-photo-caption { padding: 24px 8px 8px; }
  .forge-photo-tags { gap: 6px; }
  .forge-photo-tags a { font-size: 11px; }
  .forge-pin { width: 32px; height: 32px; font-size: 17px; }
  .forge-sheet.commerce-dialog { width: 100%; max-height: 100dvh; border-radius: 0; border: 0; margin: auto 0 0; }
  .forge-sheet-bar { min-height: 52px; padding: 7px 16px; }
  .forge-product-layout { display: flex; flex-direction: column; }
  .forge-album { position: static; width: 100%; padding: 0 16px 14px; }
  .forge-album-stage { aspect-ratio: 1.12; max-height: 43dvh; }
  .forge-thumbnails { padding-top: 10px; gap: 6px; }
  .forge-thumbnails button { flex-basis: 44px; height: 44px; }
  .forge-product-copy { padding: 22px 20px; width: 100%; gap: 20px; }
  .forge-product-title h2 { font-size: 30px; }
  .forge-product-description { margin-bottom: -20px; }
  .forge-product-copy .forge-option > span { padding: 10px 12px; font-size: 12px; }
  .forge-buy { width: 100%; margin-top: auto; padding: 14px 20px max(14px,env(safe-area-inset-bottom)); flex-wrap: nowrap; gap: 8px; }
  .forge-buy strong { font-size: 24px; }
  .forge-buy-actions .btn { padding: 10px 16px; min-height: 44px; }
  .forge-buy:has([data-forge-cart]:not([hidden])) { flex-wrap: wrap; }
  .forge-buy [data-forge-requote] { font-size: 11px; }
  .forge-sheet.forge-cart-sheet, .forge-sheet.forge-photo-sheet { width: 100%; }
  .forge-cart-content { padding: 0 18px 24px; }
  .forge-cart-row { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
  .forge-cart-row > img, .forge-cart-no-image { width: 64px; height: 76px; grid-row: span 2; }
  .forge-cart-controls { grid-column: 2; justify-content: flex-start; max-width: none; }
  .forge-cart-controls .link-button { width: auto; margin-left: auto; padding: 0; }
  .forge-cart-item-text strong { font-size: 15px; }
  .forge-photo-footer { padding: 12px 16px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .forge-feed-photo { animation: forge-arrive .35s ease both; }
  .forge-feed-photo:nth-child(2n) { animation-delay: .045s; }
  .forge-sheet[open] { animation: forge-arrive .22s ease both; }
  .forge-pin, .forge-option > span, .forge-pick { transition: background .18s, border-color .18s; }
  @keyframes forge-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}

.forge-photo-manager .manager-page-head, .page-manager-forge .manager-page-head { flex-wrap: wrap; gap: 8px; }
.forge-current { border-color: var(--line-strong) !important; color: var(--gold-bright); }
.forge-manager-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.forge-manager-tools label { min-width: 0; width: min(340px,100%); }
.forge-manager-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 9px; }
.forge-manager-photo { min-width: 0; display: grid; gap: 7px; align-content: start; padding: 7px; border-radius: 11px; background: var(--surface-2); }
.forge-manager-thumbnail { width: 100%; aspect-ratio: 1.45; display: block; border: 0; padding: 0; overflow: hidden; border-radius: 8px; background: #0b0b0b; }
.forge-manager-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.forge-manager-photo > div { display: grid; gap: 3px; padding-inline: 4px; overflow-wrap: anywhere; }
.forge-manager-photo small { color: var(--muted); }
.forge-manager-photo .btn { justify-self: start; }
.forge-sheet.forge-photo-editor { width: min(880px, calc(100vw - 24px)); }
.forge-photo-editor form { padding: 13px 16px; }
.forge-file-picker { margin-bottom: 13px; }
.forge-file-picker small { color: var(--muted); font-size: 12px; }
.forge-photo-edit-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 14px; align-items: start; }
.forge-photo-edit-layout > div { min-width: 0; display: grid; gap: 10px; }
.forge-edit-preview { border-radius: 9px; overflow: hidden; }
.forge-edit-preview.placing img { cursor: crosshair; }
.forge-edit-preview img { min-height: 20px; }
.forge-photo-edit-layout p { margin: 0; }
.forge-photo-visibility { border: 1px solid var(--line); border-radius: 9px; margin: 0; padding: 8px 10px; }
.forge-photo-visibility legend { color: var(--text-soft); font-weight: 650; }
.forge-photo-visibility label, .forge-edit-tag label { display: flex; align-items: baseline; gap: 7px; font-size: 13px; padding-block: 4px; }
.forge-photo-visibility input, .forge-edit-tag input { width: auto; flex: 0 0 auto; }
.forge-photo-edit-tags h3 { margin: 0; font-size: 16px; }
.forge-add-tag [data-forge-tag-results] { display: grid; gap: 3px; margin-top: 5px; }
.forge-add-tag button { display: grid; gap: 2px; padding: 6px 8px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; color: var(--text); overflow-wrap: anywhere; }
.forge-add-tag button small { color: var(--muted); }
.forge-add-tag button:hover { border-color: var(--line-strong); }
.forge-edit-tag-list { display: grid; gap: 5px; }
.forge-edit-tag { padding: 7px 9px; border-radius: 8px; background: var(--surface-2); }
.forge-edit-tag header { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.forge-edit-tag header strong { flex: 1; overflow-wrap: anywhere; }
.forge-tag-options { display: grid; gap: 8px; min-width: 0; margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.forge-tag-options > legend { padding-inline: 4px; color: var(--text-soft); font-size: 13px; }
.forge-tag-select { display: grid; gap: 4px; min-width: 0; }
.forge-tag-select > label { padding: 0; }
.forge-tag-select select { width: 100%; min-width: 0; }
.forge-tag-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.forge-tag-choices legend { font-size: 13px; }
.forge-tag-choices > div { display: flex; flex-wrap: wrap; column-gap: 12px; }
.forge-edit-tag [aria-pressed="true"] { color: var(--gold-bright); border-color: var(--line-strong); }
.forge-photo-edit-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.forge-photo-edit-foot p { margin: 0; overflow-wrap: anywhere; }
.forge-photo-edit-foot .toolbar { margin-left: auto; }
.forge-album-entry h2 { margin-top: 0; }


@media (max-width:650px) {
 .forge-photo-edit-layout { grid-template-columns:minmax(0,1fr); }
 .forge-photo-editor { width:calc(100vw - 14px); }
 .forge-photo-visibility { flex-direction:column; }
}
