/* The little folded pass sits beside the existing BrewPass wordmark. */
.by-entry {
    display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
    margin: -4px auto -4px 5px; padding: 0; border: 0; background: transparent; cursor: pointer;
    vertical-align: middle; -webkit-appearance: none; appearance: none;
}
#home-screen > .header .by-entry, #menu-screen > .header .by-entry { margin: 0; }
.by-entry-stamp {
    box-sizing: border-box; position: relative; display: grid; align-content: center; justify-content: center;
    width: 33px; height: 36px; border: 1.5px solid #553325; border-radius: 6px 6px 8px 8px;
    background: linear-gradient(140deg,#ffe4bb,#efb377); box-shadow: 2px 2px 0 #74422d;
    transform: rotate(-9deg); transition: transform .18s ease-out; color: #522c22;
}
.by-entry-stamp::after { content: ''; position: absolute; inset: 3px; border: 1px dotted #8f593c; border-radius: 4px; }
.by-entry-stamp b { font: 900 14px/.79 var(--bp-font,system-ui); letter-spacing: -.09em; }
@media (hover: hover) and (pointer: fine) {
    .by-entry:hover .by-entry-stamp { transform: rotate(-2deg) translateY(-1px); }
}
.by-entry:focus { outline: none; }
.by-entry:focus-visible:not([data-by-quiet-return]) .by-entry-stamp {
    box-shadow: 0 0 0 2px #fff9ee, 0 0 0 5px #553325;
}
@media (forced-colors: active) {
    .by-entry:focus-visible:not([data-by-quiet-return]) .by-entry-stamp { outline: 2px solid Highlight; outline-offset: 2px; }
}
.bp-year button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.bp-year {
    --by-bg: #260c09; --by-ink: #fff0d6; --by-accent: #ffe2aa; --by-tint: #62231b;
    --by-px: clamp(20px,6.2vw,34px);
    position: fixed; inset: 0; margin: auto; width: min(100%, 462px); height: min(100%, 860px);
    height: min(100dvh, 860px); max-width: 100%; max-height: 100%; padding: 0; overflow: hidden;
    isolation: isolate; border: none; border-radius: 26px; background: var(--by-bg); color: var(--by-ink);
    font: 500 16px/1.35 var(--bp-font,'Manrope',system-ui,sans-serif); overscroll-behavior: contain;
    text-align: left; box-shadow: 0 28px 80px #190e1c55; color-scheme: light;
}
.bp-year, .bp-year * { box-sizing: border-box; }
html.by-viewing, html.by-viewing body { overscroll-behavior: none; }
html.by-painted, html.by-painted body { background: var(--by-host-bg,#260c09) !important; }
.bp-year, .bp-year * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bp-year:focus { outline: none; }
.bp-year > .bw-badge { display: none !important; }
.bp-year img { -webkit-user-drag: none; }
.bp-year .by-access:not(:focus-visible), .bp-year .by-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.bp-year .by-access:focus-visible {
    position: absolute; left: 0; top: 0; z-index: 4; width: auto; height: 44px; padding: 0 12px;
    background: var(--by-bg); color: var(--by-ink); border: 1px solid currentColor; border-radius: 12px;
}
.bp-year .by-access[data-by-pause]:focus-visible { left: auto; right: 0; }
.bp-year [hidden] { display: none !important; }
.bp-year::backdrop { background: #191114; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="first"] { --by-bg: #893e32; --by-ink: #fff3d9; --by-tint: #a0523d; --by-accent: #ffd4b4; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="duo"] { --by-bg: #cbd6ae; --by-ink: #263b32; --by-tint: #b6c096; --by-accent: #4a5942; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="orders"] { --by-bg: #edbe8e; --by-ink: #3a251e; --by-tint: #d99f6b; --by-accent: #804523; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="menu"] { --by-bg: #2f4c40; --by-ink: #fff3d4; --by-tint: #405e4e; --by-accent: #dce5a4; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="rhythm"] { --by-bg: #4a374f; --by-ink: #fff2dd; --by-tint: #674b69; --by-accent: #f3c1a8; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="events"] { --by-bg: #ecd6ad; --by-ink: #432d30; --by-tint: #d8be95; --by-accent: #6a3d4a; }
:is(.bp-year,.by-backdrop,.by-content,.by-old-content)[data-scene="final"] { --by-bg: #062a25; --by-ink: #fff2d6; --by-tint: #184744; --by-accent: #ffd994; }
.bp-year .by-sheet {
    position: absolute; inset: 0; display: grid; grid-template-rows: 4px 36px minmax(0,1fr) auto auto;
    gap: clamp(5px,1.3vh,12px); height: 100%; padding: 21px var(--by-px) 22px;
}
.bp-year .by-sheet > * { position: relative; z-index: 1; }
.bp-year .by-sheet > .by-backdrop {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; container-type: size;
    background: radial-gradient(ellipse at 86% 20%, var(--by-tint), transparent 62%), var(--by-bg);
}
.bp-year .by-backdrop:not([data-photo])::after {
    content: ''; position: absolute; inset: 0; opacity: .14;
    background: radial-gradient(circle,var(--by-ink) .62px,transparent .92px) 0 0/4px 4px;
    -webkit-mask-image: linear-gradient(125deg,#000,transparent 58%); mask-image: linear-gradient(125deg,#000,transparent 58%);
}
.bp-year .by-backdrop[data-photo]::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#100b0a7d,transparent 17%,transparent 51%,#130b0a44 69%,#100909bd);
}
.bp-year .by-photo-plane {
    position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%); overflow: hidden;
}
@supports (height: 1cqh) {
    .bp-year .by-photo-plane {
        width: max(100cqw,56.26cqh); height: max(100cqh,177.75cqw); container-type: size;
    }
}
.bp-year .by-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .32s ease-out; }
.bp-year .by-exposed .by-photo { opacity: 1; }
.bp-year [data-photo="crema"] .by-exposed .by-photo,
.bp-year [data-photo="swirl"] .by-exposed .by-photo,
.bp-year [data-photo="orbit"] .by-exposed .by-photo { animation: by-camera 10s cubic-bezier(.15,.55,.3,1) both; }
@keyframes by-camera { from { transform: scale(1.055); } to { transform: scale(1); } }
.bp-year .by-backdrop[data-photo="burst"] { background: #261019; }
.bp-year .by-backdrop[data-photo="burst"]::after { background: linear-gradient(180deg,#210d1a42,transparent 15%,transparent 65%,#200d1794 80%,#200d17ba); }
.bp-year [data-photo="burst"] .by-exposed .by-photo { animation: by-print-settle 6s cubic-bezier(.16,.71,.3,1) both; }
@keyframes by-print-settle {
    from { transform: scale(1.065) rotate(-1.5deg); }
    to { transform: scale(1.008) rotate(0); }
}
.bp-year .by-spill {
    position: absolute; inset: 0; pointer-events: none;
    /* Eject particles from behind the central bean. */
    -webkit-mask-image: radial-gradient(ellipse 20% 12% at 50% 50%,transparent 82%,#000 102%);
    mask-image: radial-gradient(ellipse 20% 12% at 50% 50%,transparent 82%,#000 102%);
}
.bp-year .by-spill > i {
    position: absolute; left: 50%; top: 50%; width: var(--size); pointer-events: none; color: var(--ink);
    transform: translate3d(calc(-50% + var(--dx)*.82),calc(-50% + var(--dy)*.82 - var(--lift)*.45),0) rotate(var(--tilt));
}
.bp-year .by-spill .by-bean {
    width: clamp(9px,var(--size),17px); aspect-ratio: 1;
    background: url('/year-in-brew-bean-2026-4a8f5818d5cd.webp') center / contain no-repeat;
}
.bp-year .by-crumb {
    height: calc(var(--size)*.72); background: currentColor; border-radius: 18% 55% 36% 58%;
    box-shadow: calc(var(--size)*1.5) calc(var(--size)*-1.6) 0 -.5px currentColor;
}
.bp-year .by-exposed .by-spill > i { animation: by-ink-burst 4.65s linear var(--phase) infinite; }
@keyframes by-ink-burst {
    0% { opacity: 0; transform: translate3d(-50%,-50%,0) rotate(var(--tilt)) scale(.35); }
    12% { opacity: .9; transform: translate3d(calc(-50% + var(--dx)*.35),calc(-50% + var(--dy)*.35 - var(--lift)*.72),0) rotate(calc(var(--tilt) + var(--spin)*.23)) scale(.72); }
    28% { opacity: 1; transform: translate3d(calc(-50% + var(--dx)*.68),calc(-50% + var(--dy)*.68 - var(--lift)),0) rotate(calc(var(--tilt) + var(--spin)*.5)) scale(1); }
    48% { opacity: 1; transform: translate3d(calc(-50% + var(--dx)*.91),calc(-50% + var(--dy)*.91 - var(--lift)*.72),0) rotate(calc(var(--tilt) + var(--spin)*.76)) scale(.96); }
    64% { opacity: .85; transform: translate3d(calc(-50% + var(--dx)),calc(-50% + var(--dy)),0) rotate(calc(var(--tilt) + var(--spin))) scale(.82); }
    79%,100% { opacity: 0; transform: translate3d(calc(-50% + var(--dx)*1.035),calc(-50% + var(--dy) + var(--lift)*.9),0) rotate(calc(var(--tilt) + var(--spin)*1.16)) scale(.61); }
}
.bp-year.by-paused .by-exposed .by-spill > i,
.bp-year.by-paused [data-photo="burst"] .by-exposed .by-photo { animation-play-state: paused; }
.bp-year .by-stage { display: grid; min-height: 0; overflow: hidden; touch-action: pan-y; }
.bp-year .by-content, .bp-year .by-old-content { grid-area: 1 / 1; color: var(--by-ink); }
.bp-year .by-old-content { pointer-events: none; }
.bp-year .by-progress { display: flex; gap: 5px; }
.bp-year .by-progress > span { flex: 1; position: relative; height: 3px; border-radius: 3px; overflow: hidden; background: currentColor; }
.bp-year .by-progress > span::before { content: ''; position: absolute; inset: 0; background: var(--by-bg); opacity: .75; }
.bp-year .by-progress i { display: block; position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left center; }
.bp-year .by-progress .by-complete i { transform: scaleX(1); }
.bp-year .by-head { display: grid; place-items: center; }
.bp-year .by-brand { justify-self: center; font-size: 15px; font-weight: 800; letter-spacing: -.045em; }
.bp-year button { -webkit-appearance: none; appearance: none; color: inherit; background: transparent; cursor: pointer; font-family: inherit; margin: 0; }
.bp-year :is(.by-content,.by-old-content) { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; touch-action: pan-y; }
.bp-year .by-art { display: grid; position: relative; isolation: isolate; place-items: center; flex: 1 1 0; min-height: 140px; width: 100%; }
.bp-year .by-text { position: relative; flex: 0 0 auto; padding: 6px 0 clamp(5px,2.4vh,24px); }
.bp-year .by-text h2, .bp-year .by-text p { margin: 0; color: inherit; }
.bp-year .by-heading { font: 800 clamp(37px,10.7vw,66px)/.99 var(--bp-font,system-ui,sans-serif); letter-spacing: -.043em; word-spacing: .035em; overflow-wrap: anywhere; max-width: 100%; text-wrap: balance; }
.bp-year .by-note { max-width: 33ch; padding-top: 12px; font-size: clamp(15px,4.4vw,18px); line-height: 1.35; letter-spacing: -.022em; }
.bp-year .by-detail { padding-top: 10px; font-size: 13px; line-height: 1.4; color: var(--by-ink); }
.bp-year .by-ticket { position: relative; box-shadow: 0 21px 24px -11px #1f101c66; transform: rotate(var(--angle,-7deg)); animation: by-print .66s cubic-bezier(.18,.85,.25,1) both; }

.bp-year .by-ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; font: 650 11px/1 var(--bp-font-mono,monospace); letter-spacing: -.03em; }
.bp-year .by-ticket-receipt { --angle: 5deg; width: min(78%,277px,39vh); padding: clamp(14px,2.8vh,25px); color: #453628; background: #fff0cf; filter: drop-shadow(0 11px 9px #66311436); box-shadow: none; }
.bp-year .by-ticket-receipt::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 9px; background: linear-gradient(135deg,#fff0cf 25%,transparent 26%) -7px 0/14px 14px,linear-gradient(225deg,#fff0cf 25%,transparent 26%) -7px 0/14px 14px; }
.bp-year .by-receipt-dotline { display: block; border-top: 2px dashed #b3926a; margin: clamp(10px,2vh,17px) 0; }
.bp-year .by-receipt-number { display: block; font-size: clamp(46px,15vw,86px); font-weight: 800; line-height: .96; letter-spacing: -.085em; white-space: nowrap; }
.bp-year .by-receipt-caption { display: block; margin-top: 4px; font: 600 12px/1.4 var(--bp-font-mono,monospace); }
.bp-year .by-barcode { width: 88%; height: clamp(15px,2.4vh,23px); background: repeating-linear-gradient(to right,#483528 0 2px,transparent 2px 4px,#483528 4px 5px,transparent 5px 8px,#483528 8px 12px,transparent 12px 15px,#483528 15px 16px,transparent 16px 21px); }
/* A tear-off date tag, two pressed coasters and the twelve-month order chart. */
.bp-year .by-first-tag { --angle: 5deg; position: relative; display: grid; justify-items: center; width: min(72%,244px,36vh); padding: 21px 10px 24px; color: #773e2c; background: #ffe1af; transform: rotate(5deg); border-radius: 8px; border-bottom: 5px solid #d5a26e; box-shadow: 0 16px 27px -12px #3b1b1b88; animation: by-print .65s ease-out both; }
.bp-year .by-first-tag::before { content: ''; position: absolute; inset: 5px; border: 1px solid #b9855c; border-radius: 5px; }
.bp-year .by-first-kicker { padding-bottom: 9px; border-bottom: 1px dashed #aa7653; width: 85%; text-align: center; font: 600 12px/1.2 var(--bp-font-mono,monospace); }
.bp-year .by-first-day { font: 850 clamp(66px,22vw,108px)/1.08 var(--bp-font,system-ui); letter-spacing: -.09em; }
.bp-year .by-first-month { font: 700 clamp(19px,6vw,27px)/1 var(--bp-font,system-ui); letter-spacing: -.05em; }
.bp-year .by-duo { display: flex; width: 100%; justify-content: center; align-items: center; padding: 20px 2px; }
.bp-year .by-coaster { --angle: -9deg; position: relative; display: grid; place-items: center; text-align: center; width: min(49%,192px,31vh); aspect-ratio: 1; background: #ffe8bc; border: 4px double #855a3f; color: #513522; border-radius: 50%; padding: 8%; box-shadow: 0 8px 8px #2c382636; transform: translateY(-13%) rotate(-9deg); animation: by-coaster .66s cubic-bezier(.15,.83,.3,1) both; }
.bp-year .by-coaster::before { content: ''; position: absolute; inset: 6px; border: 1px dashed currentColor; border-radius: 50%; opacity: .7; }
.bp-year .by-coaster + .by-coaster { --angle: 8deg; margin-left: -6%; z-index: 1; transform: translateY(13%) rotate(8deg); background: #456453; border-color: #cee0ae; color: #ffebcf; }
.bp-year .by-coaster b { font: 800 clamp(16px,5.1vw,25px)/1.05 var(--bp-font,system-ui); overflow-wrap: anywhere; letter-spacing: -.045em; }
.bp-year .by-coaster b.by-long-name { font-size: clamp(14px,4vw,19px); }
@keyframes by-coaster { from { opacity: .3; scale: .88; rotate: -9deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.bp-year .by-chart { position: relative; width: 100%; color: #4e344d; background: #f5cebb; border-radius: 8px; padding: clamp(13px,3.8vw,22px); margin: 0; box-shadow: 0 5px 0 -1px #bd949a,0 10px 0 -3px #896477,0 23px 34px -10px #21112780; }
.bp-year .by-chart figcaption { font: 750 16px/1.15 var(--bp-font,system-ui); letter-spacing: -.035em; }
.bp-year .by-chart-bars { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 2px; list-style: none; padding: 0; margin: 18px 0 8px; }
.bp-year .by-chart-bars li { display: flex; flex-direction: column; min-width: 0; gap: 5px; align-items: stretch; text-align: center; }
.bp-year .by-chart-track { --by-value: 0; isolation: isolate; display: flex; position: relative; align-items: flex-end; justify-content: center; line-height: 1; height: clamp(65px,12vh,116px); border-bottom: 1px solid #6c4a60; background: repeating-linear-gradient(to top,transparent 0 calc(33% - 1px),#65445823 calc(33% - 1px) 33%); }
.bp-year .by-chart-fill { position: absolute; inset: auto 16% 0; height: calc(var(--by-value) * 80%); background: #785365; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: by-bar-in .65s ease-out both; }
.bp-year .by-chart-value { position: absolute; bottom: calc(var(--by-value) * 80% + 2px); font: 700 clamp(10px,2.8vw,13px)/1.1 var(--bp-font-mono,monospace); }
.bp-year .by-chart-month { font: 600 clamp(8px,2.6vw,11px)/1.1 var(--bp-font-mono,monospace); }
.bp-year .by-chart-bars .by-incomplete .by-chart-fill { background: repeating-linear-gradient(45deg,#795466 0 3px,#c38c97 3px 6px); }
.bp-year .by-chart-bars .by-future .by-chart-track { background: transparent; opacity: .6; border-bottom: 1px dotted currentColor; }
.bp-year .by-chart-cutoff { display: block; font-size: 12px; }
.bp-year .by-chart-fallback { display: block; font-size: 40px; }
@keyframes by-bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bp-year :is(.by-content,.by-old-content):is([data-scene="menu"],[data-scene="events"]) { justify-content: safe center; }
.bp-year .by-content.by-with-photo, .bp-year .by-old-content.by-with-photo { justify-content: safe end; }
.bp-year .by-content:is([data-scene="cover"],[data-scene="final"]) .by-heading,
.bp-year .by-old-content:is([data-scene="cover"],[data-scene="final"]) .by-heading {
    font-size: clamp(54px,15.2vw,82px); line-height: .96; letter-spacing: -.056em; max-width: 10ch;
}
.bp-year.by-photographic :is(.by-head,.by-progress) { color: #fff4df; }
.bp-year.by-photographic[data-scene="events"] { --by-ink: #fff1d6; --by-bg: #302017; --by-accent: #ffd498; }
.bp-year :is(.by-content,.by-old-content).by-with-photo[data-scene="events"] { --by-ink: #fff1d6; --by-accent: #ffd498; }
.bp-year :is(.by-content,.by-old-content).by-with-photo:is([data-scene="events"],[data-scene="menu"]) .by-list { margin-top: clamp(12px,2.4vh,24px); }
.bp-year :is(.by-content,.by-old-content).by-with-photo:is([data-scene="events"],[data-scene="menu"]) .by-row { padding-block: clamp(7px,1.3vh,14px); }
.bp-year .by-backdrop[data-photo="swirl"]::after, .bp-year .by-backdrop[data-photo="orbit"]::after {
    background: linear-gradient(180deg,#100d0b72,transparent 16%,transparent 26%,#0a1e18bf 49%,#081c19ed 70%,#081a17);
}
.bp-year .by-backdrop[data-photo="orbit"]::after {
    background: linear-gradient(180deg,#130e087d,transparent 16%,transparent 26%,#26160fca 49%,#20140fec 70%,#20140f);
}
.bp-year .by-list { list-style: none; padding: 0; margin: clamp(18px,4.7vh,46px) 0 0; border-top: 2px solid currentColor; }
.bp-year .by-row { position: relative; display: flex; align-items: center; gap: 18px; padding: clamp(12px,2.4vh,23px) 0; border-bottom: 1px solid currentColor; animation: by-row-in .4s ease-out both; animation-delay: calc(var(--row) * 90ms); }
.bp-year .by-row .by-marker { align-self: flex-start; font: 800 clamp(22px,6.1vw,33px)/1 var(--bp-font,system-ui); letter-spacing: -.075em; color: var(--by-accent); padding-top: 2px; }
.bp-year .by-row-copy { display: grid; gap: 4px; min-width: 0; }
.bp-year .by-row-copy strong { font: 800 clamp(20px,5.7vw,30px)/1.07 var(--bp-font,system-ui); letter-spacing: -.05em; overflow-wrap: anywhere; }
.bp-year .by-row-copy small { font-size: clamp(13px,3.8vw,15px); line-height: 1.2; }
.bp-year .by-controls { grid-row: 5; display: flex; align-items: center; min-height: 48px; }
.bp-year .by-share,.bp-year .by-retry { min-height: 46px; padding: 0 clamp(14px,4.1vw,22px); border: none; border-radius: 40px; background: var(--by-ink); color: var(--by-bg); font-size: 15px; font-weight: 750; }
.bp-year .by-share:focus-visible,.bp-year .by-retry:focus-visible { outline-color: var(--by-ink); }
.bp-year .by-loading { align-self: center; margin: auto 0; font-size: 22px; font-weight: 650; text-align: center; }
.bp-year .by-retry { align-self: center; margin: -22px 0 auto; }
.bp-year .by-status { font-size: 13px; min-height: 0; }
.bp-year .by-status:empty { display: none; }
.bp-year.by-paused :is(.by-ticket,.by-row,.by-chart-fill,.by-first-tag,.by-coaster),
.bp-year.by-paused .by-exposed :is(.by-bean,.by-photo) { animation-play-state: paused; }
.bp-year .by-still :is(.by-ticket,.by-row,.by-chart-fill,.by-first-tag,.by-coaster) { animation: none; }
@keyframes by-print { from { opacity: .2; transform: translateY(20px) rotate(calc(var(--angle,-7deg) - 6deg)) scale(.95); } to { opacity: 1; transform: rotate(var(--angle,-7deg)); } }
@keyframes by-row-in { from { opacity: .1; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 767px), (hover: none) and (pointer: coarse), (max-height: 600px) {
    .bp-year {
        position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
        margin: 0; border-radius: 0; box-shadow: none;
    }
    .bp-year::backdrop { background: var(--by-host-bg,#260c09); }
    .bp-year .by-sheet {
        padding-top: calc(12px + max(env(safe-area-inset-top,0px), var(--bp-safe-top,0px), var(--tg-safe-area-inset-top,0px), var(--tg-content-safe-area-inset-top,0px)));
        padding-bottom: calc(12px + max(env(safe-area-inset-bottom,0px), var(--bp-safe-bottom,0px), var(--tg-safe-area-inset-bottom,0px), var(--tg-content-safe-area-inset-bottom,0px)));
        padding-left: max(var(--by-px), env(safe-area-inset-left,0px), var(--tg-safe-area-inset-left,0px), var(--tg-content-safe-area-inset-left,0px));
        padding-right: max(var(--by-px), env(safe-area-inset-right,0px), var(--tg-safe-area-inset-right,0px), var(--tg-content-safe-area-inset-right,0px));
    }
}
@media (max-height: 570px) {
    .bp-year .by-art { min-height: 125px; }
    .bp-year .by-heading { font-size: 36px; }
    .bp-year .by-note { padding-top: 5px; font-size: 14px; }
    .bp-year .by-text { padding-block: 5px; }
    .bp-year .by-detail { padding-top: 4px; }
    .bp-year .by-row { padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .bp-year *, .bp-year *::after, .by-entry-stamp { animation: none !important; transition: none !important; }

}

/* Drag previews keep an opaque backdrop. Only the committed exit fades it away. */
.bp-year.by-dragging, .bp-year.by-settling, .bp-year.by-closing { transform-origin: 50% 25%; will-change: transform, opacity; }
.bp-year.by-dragging { transform: translate3d(0,var(--by-drag-y,0px),0) scale(var(--by-drag-scale,1)); border-radius: var(--by-drag-radius,0px); }
.bp-year.by-settling { transition: transform 230ms cubic-bezier(.16,.76,.25,1), border-radius 230ms ease-out; }
.bp-year.by-closing {
    transform: translate3d(0,calc(var(--by-drag-y,0px) + 18%),0) scale(.78); opacity: 0; border-radius: 26px;
    transition: transform 310ms cubic-bezier(.24,.68,.33,1), opacity 310ms cubic-bezier(.32,.08,.55,1), border-radius 240ms ease-out;
}
.bp-year.by-closing::backdrop { opacity: 0; transition: opacity 310ms cubic-bezier(.32,.08,.55,1); }
@media (prefers-reduced-motion: reduce) {
    .bp-year.by-dragging, .bp-year.by-settling, .bp-year.by-closing { transform: none; }
    .bp-year.by-closing, .bp-year.by-closing::backdrop { transition: opacity 80ms linear; }
}
