/* Folio feed — photo-first, few controls. Uses app.css tokens (--bg, --ink, --gold-dark, --serif, --mono...). */
.folio { --gold-soft: var(--soft); max-width: 1240px; }
html.folio-scroll-lock { overflow: hidden; }
.folio-start { max-width: 620px; margin: 32px auto; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius:12px; }
.folio-start h1 { font-family: var(--serif); font-size: 28px; margin: 8px 0; }
.folio-start p, .consumer-intro p { line-height: 1.6; }
.folio-start form { margin-top: 24px; display: grid; gap:12px; }
.consumer-kicker { color: var(--gold-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.consumer-options { margin: 20px 0; }
.consumer-options > summary, .folio-extra-filters > summary { cursor: pointer; color: var(--gold-dark); padding: 10px 0; font-weight: 600; }
.consumer-intro, .consumer-saved { padding: 18px 22px; margin: 16px 0; border: 1px solid var(--line); border-radius:12px; background: var(--panel); }
.consumer-actions { display: flex; flex-wrap: wrap; gap:12px; margin: 14px 0; }
.photo-grouping { display: flex; flex-wrap: wrap; gap:16px 24px; border: 0; margin: 18px 0; padding: 0; text-align: left; }
.photo-grouping legend { font-weight: 600; margin-bottom: 10px; }
.photo-grouping label { display: flex; gap:8px; align-items: center; cursor: pointer; min-height: 32px; }
.photo-grouping input { width: auto; accent-color: var(--gold-dark); }
.folio-coverage { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 780px; margin: -4px 0 20px; }
.folio-extra-filters > summary { font-size: 13px; padding: 4px 0; }
.folio-extra-filters[open] > summary { margin-bottom: 8px; }
.side-nav .nav-new { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--side-line); border-radius:4px; padding: 0 5px; }

.folio .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.folio .linkish { background: none; border: 0; padding: 0; color: var(--gold-dark); font-weight: 600; font-size: 13px; cursor: pointer; }
.folio .linkish:hover { text-decoration: underline; }
.folio .btn { border-radius:999px; }
.folio .select { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); border-radius:999px; padding: 5px 10px; font-size: 13px; }
.folio-spacer { flex: 1; }

/* header: estate as a profile */
.folio-head { display: grid; grid-template-columns: auto 1fr auto; gap:16px 24px; align-items: center; margin-bottom: 18px; }
.folio-monogram { width: 72px; height: 72px; border-radius:50%; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; font-weight: 600; font-style: italic;
    color: var(--on-soft); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--gold-dark); }
.folio-id h1 { font-size: 28px; line-height: 1.1; margin: 0; text-wrap: balance; }
.folio-stats { display: flex; flex-wrap: wrap; gap:4px 22px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.folio-stats b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.folio-actions { display: flex; gap:8px; flex-wrap: wrap; justify-content: flex-end; }
.walk-import-slot { width: 100%; }
.walk-import { margin: 0 0 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius:8px; display: grid; gap:12px; }
.walk-import-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.walk-file { display: grid; gap:8px; padding-top: 12px; border-top: 1px solid var(--line); }
.walk-file-name { font-size: 14px; font-weight: 600; }
.walk-file .field { margin-bottom: 0; }
.walk-progress { height: 8px; border-radius:999px; background: var(--sunk); overflow: hidden; }
.walk-progress > span { display: block; height: 100%; background: var(--gold-dark); }
.walk-file-status { margin: 0; font-size: 12px; color: var(--muted); }

/* albums row, like story highlights */
.folio-albums { display: flex; gap:16px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; align-items: flex-start; }
.album-bubble { flex: none; width: 76px; display: grid; justify-items: center; gap:5px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); position: relative; }
.album-ring { width: 64px; height: 64px; border-radius:50%; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong); }
.album-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-ring .auth-image-loading, .album-ring .auth-image-failed { width: 100%; height: 100%; }
.album-bubble[aria-pressed="true"] .album-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold-dark); }
.album-all { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--on-soft); }
.album-ring-new { background: var(--panel); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong); }
.album-name { font-size: 12px; line-height: 1.2; text-align: center; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-bubble[aria-pressed="true"] .album-name { font-weight: 700; }
.album-count { position: absolute; top: 44px; right: 2px; font-family: var(--mono); font-size: 10px; background: var(--ink); color: var(--gold); border-radius:999px; padding: 0 6px; }
.album-new-form { display: flex; gap:6px; align-items: center; align-self: center; flex: none; }
.album-new-form input { border: 1px solid var(--line-strong); border-radius:999px; padding: 6px 12px; min-width: 0; width: 160px; }

/* toolbar */
.folio-toolbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-block: 1px solid var(--line); padding: 10px 0; display: grid; gap:8px; margin-bottom: 16px; }
.folio-row { display: flex; flex-wrap: wrap; align-items: center; gap:8px; }
.folio-search { flex: 1 1 220px; max-width: 340px; display: flex; align-items: center; gap:8px; background: var(--panel); border: 1px solid var(--line-strong); border-radius:999px; padding: 6px 14px; color: var(--muted); }
.folio-search input { border: 0; background: transparent; width: 100%; font-size: 14px; color: var(--ink); }
.folio-search:focus-within { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.folio .chips { display: flex; gap:6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; align-items: center; }
.folio .chips::-webkit-scrollbar { display: none; }
.folio .chip { border: 1px solid var(--line-strong); background: var(--panel); border-radius:999px; padding: 5px 12px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; color: var(--ink); }
.folio .chip-n { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.folio .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.folio .chip[aria-pressed="true"] .chip-n { color: var(--on-accent); }
.folio .chip.chip-attn[aria-pressed="true"] { background: var(--warn-soft); color: var(--on-warn); border-color: var(--line-strong); }
.folio .chip:disabled { opacity: .5; cursor: default; }
.folio .row-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.folio .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius:999px; overflow: hidden; background: var(--panel); }
.folio .seg button { border: 0; background: none; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.folio .seg button + button { border-left: 1px solid var(--line-strong); }
.folio .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.folio-result { display: flex; gap:12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.folio-message { margin: 0 0 12px; font-size: 14px; color: var(--on-soft); background: var(--gold-soft); border-radius:8px; padding: 8px 12px; }
.folio-bulk-albums { display: flex; flex-wrap: wrap; gap:6px; align-items: center; margin: -6px 0 14px; font-size: 13px; }
.folio-bulk-albums form { display: flex; gap:6px; }
.folio-bulk-albums input { border: 1px solid var(--line-strong); border-radius:999px; padding: 5px 12px; width: 150px; }
.folio-empty { padding: 60px 16px; text-align: center; color: var(--muted); display: grid; gap:12px; justify-items: center; }
.folio-more { display: flex; justify-content: center; padding: 8px 0 24px; }

/* masonry feed */
.folio-feed { columns: 4 230px; column-gap:16px; }
.pin { break-inside: avoid; margin: 0 0 18px; display: grid; gap:8px; }
.pin-media { position: relative; border-radius:12px; overflow: hidden; background: var(--sunk); }
.pin-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pin-open:focus-visible, .folio .chip:focus-visible, .album-bubble:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -2px; }
.pin.select-mode .pin-open { cursor: pointer; }
.pin-open img { display: block; width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.pin-open .auth-image-loading { aspect-ratio: 4 / 5; }
.pin-open .auth-image-failed { aspect-ratio: 4 / 5; width: 100%; border: 0; background: none; color: var(--muted); }
.pin:hover .pin-open img:not(.walk-film-poster) { transform: scale(1.025); filter: brightness(.94); }
.pin-nophoto { display: grid; place-items: center; aspect-ratio: 4 / 5; color: var(--muted); font-size: 13px; }
.walk-film { container-type: inline-size; position: relative; display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 4 / 5; padding: 16px; color: var(--muted); background: var(--sunk); text-align: center; overflow: hidden; }
.walk-film-icon { display: block; }
.walk-film-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 28px 12px 12px; background: linear-gradient(to top, var(--photo-scrim), transparent); color: var(--on-photo); }
.walk-film-time { display: block; width: 100%; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--on-photo); }
.walk-film-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; }
.walk-film-count { flex: none; background: var(--photo-scrim); color: var(--on-photo); font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.walk-film-card { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.4; text-align: left; }
@container (max-width: 260px) {
    .walk-film-card { flex-basis: 100%; }
}
.walk-film.has-poster { padding: 0; }
.walk-film.has-poster .walk-film-poster,
.walk-film.is-playing .walk-film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin-open:has(.walk-film) { cursor: pointer; }
.auth-video { width: 100%; max-height: 70vh; display: block; border-radius: 12px; background: var(--sunk); }
.walk-item-stage { display: grid; gap: 12px; }
.walk-item-actions { display: flex; gap: 8px; }
.walk-frames-title { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 8px 0 0; }
.walk-frames { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.walk-frame { width: 120px; display: grid; gap: 8px; }
.walk-frame img, .walk-frame .auth-image-loading, .walk-frame .auth-image-failed { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.walk-status-card h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.walk-status-card p { margin: 0 0 8px; font-size: 14px; }
.walk-status-card ul { margin: 0; padding-left: 18px; }
.pin.is-selected .pin-media { outline: 3px solid var(--gold-dark); outline-offset: -3px; }
.pin-chip { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius:999px; pointer-events: none; }
.pin-chip-attn { background: var(--warn-soft); color: var(--on-warn); }
.pin-chip-demo { background: var(--gold-soft); color: var(--on-soft); text-transform: lowercase; letter-spacing: .04em; }
.folio-demo-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap:6px 8px; margin: -6px 0 14px; padding: 10px 14px; background: var(--gold-soft); border: 1px solid var(--line-strong); border-radius:8px; font-size: 14px; color: var(--on-soft); }
.folio-demo-modal-backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 80; }
.folio-demo-modal { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 81; width: min(440px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-strong); border-radius:12px; padding: 20px 22px; box-shadow: var(--shadow-pop); }
.folio-demo-modal h2 { margin: 0 0 8px; font-size: 22px; }
.folio-demo-modal p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.folio-demo-modal-actions { display: flex; justify-content: flex-end; gap:8px; }
.pin-count { position: absolute; left: 10px; bottom: 10px; background: var(--photo-scrim); color: var(--on-photo); font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius:999px; pointer-events: none; }
.pin-more { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius:50%; border: 0; display: grid; place-items: center; background: var(--photo-scrim); color: var(--on-photo); cursor: pointer; box-shadow: var(--shadow-1); opacity: 0; transition: opacity .15s; }
.pin:hover .pin-more, .pin-more:focus-visible { opacity: 1; }
@media (hover: none) { .pin-more { opacity: 1; } }
.pin-check { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius:50%; border: 2px solid var(--on-photo); background: var(--photo-scrim); color: var(--on-photo); display: grid; place-items: center; font-weight: 700; pointer-events: none; }
.pin-check.is-on { background: var(--gold-dark); border-color: var(--gold-dark); }
.pin-body { display: grid; gap:3px; padding: 0 2px; }
.pin-title { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.25; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pin-title:hover { color: var(--gold-darker); }
.pin-suggested, .look-suggested { display: flex; flex-wrap: wrap; gap:6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--gold-darker); }
.pin-suggested button, .look-suggested button { border: 1px solid var(--line-strong); background: var(--panel); border-radius:999px; min-width: 28px; height: 28px; padding: 0 8px; cursor: pointer; color: var(--ink); font: inherit; }
.pin-rename, .look-rename { display: flex; gap:6px; align-items: center; }
.pin-rename input, .look-rename input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius:8px; padding: 6px 8px; font: inherit; }
.name-suggested { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; color: var(--gold-darker); margin-left: 6px; }
.name-menu { position: relative; }
.name-menu-list { position: absolute; z-index: 5; margin-top: 4px; min-width: 220px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius:12px; padding: 6px; box-shadow: var(--shadow-pop); }
.name-menu-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius:8px; cursor: pointer; font: inherit; color: var(--ink); }
.name-menu-list button:hover, .name-menu-list button:focus-visible { background: var(--soft); color: var(--on-soft); }
.pin-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pin-review { justify-self: start; margin-top: 4px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.walk-review { margin: 16px 0 24px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); color: var(--ink); display: grid; gap: 12px; }
.walk-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.walk-review-head h2 { margin: 0; font-size: 22px; }
.walk-review-error { color: var(--red); margin: 0; }
.walk-drafts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.walk-draft { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.walk-draft-title { font-weight: 600; }
.walk-guess { margin: 0; font-size: 18px; }
.walk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.walk-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--gold-soft); color: var(--on-soft); border-radius: 8px; }
.walk-bulk p { margin: 0; }
.walk-label { margin: 0; font-size: 12px; color: var(--muted); }
.walk-other { display: grid; gap: 4px; font-size: 13px; }
.walk-other select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.pin-value { display: flex; flex-wrap: wrap; align-items: baseline; gap:2px 8px; margin-top: 4px; }
.pin-amt { font-family: var(--mono); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pin-amt.none { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.pin-range { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pin-foot { display: flex; flex-wrap: wrap; align-items: center; gap:4px 8px; font-size: 12px; color: var(--muted); }
.pin-decision { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-strong); padding: 0 6px; border-radius:4px; }

/* value source: texture carries meaning; automated keeps the hatch used in the value overview */
.value-source { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius:4px; white-space: nowrap; line-height: 1.6; }
.value-source-person { background: var(--badge-green); color: var(--on-badge-green); }
.value-source-comp { background: var(--comp-soft); color: var(--comp); }
.value-source-computed { background: var(--gold-soft); color: var(--gold-darker); }
.value-source-automated { color: var(--gold-darker); box-shadow: inset 0 0 0 1px var(--line-strong); background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--hatch) 3px 6px); }
.value-source-none { color: var(--muted); }

/* "brewing": the estimate is being worked on */
.pin-brewing, .look-brewing { display: inline-flex; align-items: center; gap:8px; font-size: 13px; color: var(--gold-darker); font-weight: 500; }
.pin-brewing.small { font-size: 12px; }
.brew-dots { display: inline-flex; gap:3px; }
.brew-dots i { width: 5px; height: 5px; border-radius:50%; background: var(--gold-dark); animation: brew 1.2s ease-in-out infinite; }
.brew-dots i:nth-child(2) { animation-delay: .15s; }
.brew-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes brew { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* item menu */
.folio-menu-backdrop { position: fixed; inset: 0; z-index: 90; }
.folio-menu { position: fixed; z-index: 91; width: 250px; max-width: calc(100vw - 16px); background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius:12px;
    box-shadow: var(--shadow-pop); padding: 6px; display: grid; gap:1px; outline: none; }
.folio-menu > button, .folio-menu > a { display: flex; align-items: center; gap:8px; width: 100%; text-align: left; background: none; border: 0; border-radius:8px; padding: 8px 10px; font-size: 14px; cursor: pointer; color: var(--ink); text-decoration: none; }
.folio-menu > button:hover, .folio-menu > a:hover, .folio-menu > button:focus-visible, .folio-menu > a:focus-visible { background: var(--gold-soft); text-decoration: none; }
.folio-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.folio-menu .danger { color: var(--red); }
.folio-menu .menu-decide { display: grid; gap:6px; padding: 6px 10px 8px; }
.folio-menu .menu-decide > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.folio-menu .menu-decide .seg { display: flex; border-radius:8px; }
.folio-menu .menu-decide .seg button { flex: 1; padding: 6px 0; }
.folio-menu .menu-check { width: 14px; color: var(--gold-dark); font-weight: 700; }
.folio-menu .menu-new { display: flex; gap:6px; padding: 6px 4px 2px; }
.folio-menu .menu-new input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius:999px; padding: 5px 10px; background: var(--bg); color: var(--ink); }

/* quick look */
.look-backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 100; }
.look { position: fixed; z-index: 101; inset: 24px; margin: auto; width: min(1040px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); height: fit-content;
    background: var(--panel); border-radius:12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); outline: none;
    box-shadow: var(--shadow-pop); }
.look-media { background: var(--stage); display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; max-height: calc(100vh - 48px); }
.look-photo { display: grid; place-items: center; padding: 20px; min-height: 320px; }
.look-photo img { max-width: 100%; max-height: min(70vh, 640px); border-radius:6px; display: block; }
.look-nophoto { color: var(--side-muted); }
.look-thumbs { display: flex; gap:8px; padding: 0 20px 16px; overflow-x: auto; }
.look-thumbs button { width: 54px; height: 54px; flex: none; border-radius:6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; opacity: .6; }
.look-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.look-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Include padding in the scrollport's height; otherwise the dialog clips the
   final 38px even when the details scrollbar has reached its bottom. */
.look-info { box-sizing: border-box; min-height: 0; min-width: 0; padding: 18px 22px 20px; overflow-y: auto; overscroll-behavior-y: contain; display: grid; gap:18px; align-content: start; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
.look-top { display: flex; align-items: center; gap:6px; }
.look-spacer { flex: 1; }
.folio .icon-btn { width: 34px; height: 34px; border-radius:50%; border: 1px solid var(--line-strong); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.folio .icon-btn:disabled { opacity: .4; cursor: default; }
.look-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.look h2 { font-size: 26px; line-height: 1.15; margin: 4px 0 0; text-wrap: balance; }
.look-note { color: var(--muted); margin: 6px 0 0; white-space: pre-line; }
.look-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.look-muted { color: var(--muted); font-size: 13px; }
.look-error { color: var(--red); }
.look-source { display: flex; flex-wrap: wrap; gap:4px 12px; align-items: baseline; margin-bottom: 8px; }
.look .ladder { border-top: 1px solid var(--line); margin-bottom: 10px; }
.look .rung { display: grid; grid-template-columns: 56px 1fr; gap:2px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.look .rung .k { font-size: 12px; color: var(--muted); }
.look .rung .v { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.look .rung.best .v { font-size: 22px; font-weight: 500; }
.look .rung .if { grid-column: 2; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.look-brewing { display: flex; background: var(--gold-soft); border-radius:8px; padding: 10px 12px; margin-bottom: 10px; }
.look-brewing div { display: grid; }
.look-brewing span:not(.brew-dots) { color: var(--muted); font-size: 12px; font-weight: 400; }
.look-estimate { display: grid; gap:6px; justify-items: start; margin-bottom: 10px; }
.look-suggest { background: var(--bg); border-radius:8px; padding: 12px; }
.look-suggest p { margin: 0 0 8px; }
.look-row { display: flex; flex-wrap: wrap; gap:8px; align-items: center; }
.look-albums { display: flex; flex-wrap: wrap; gap:6px; align-items: center; }
.look-newalbum { display: flex; gap:6px; }
.look-newalbum input { border: 1px solid var(--line-strong); border-radius:999px; padding: 5px 12px; width: 140px; }
.look-facts { display: grid; grid-template-columns: max-content 1fr; gap:6px 16px; margin: 0; font-size: 14px; }
.look-facts dt { color: var(--muted); }
.look-facts dd { margin: 0; }
.look-foot { border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 900px) {
    .look { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; overscroll-behavior-y: contain; }
    .look-media, .look-info { max-height: none; }
    .look-info { overflow-y: visible; }
    .look-photo img { max-height: 46vh; }
    .folio-head { grid-template-columns: auto 1fr; }
    .folio-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .folio-monogram { width: 56px; height: 56px; font-size: 26px; }
    .folio-id h1 { font-size: 22px; }
    .folio-feed { columns: 2; column-gap:12px; }
    .pin { margin-bottom: 14px; gap:6px; }
    .pin-title { font-size: 14px; }
    .pin-note, .pin-range { display: none; }
    .pin-amt { font-size: 14px; }
    .look { inset: auto 0 0 0; width: 100vw; max-height: 92vh; max-height: 92dvh; border-radius:12px 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pin-open img, .pin-more { transition: none; }
    .pin:hover .pin-open img { transform: none; }
    .brew-dots i { animation: none; opacity: .8; }
    .walk-film-video { display: none; }
}
