.ff-shell {
  --ff-ease: cubic-bezier(.22,.72,.18,1);
  width: min(100%, 1664px);
  margin: 0 auto;
  padding: 24px clamp(20px,4vw,64px) clamp(40px,5vw,80px);
  font: 15px/1.5 var(--sans, "Helvetica Neue", "PingFang SC", sans-serif);
  color: var(--ink);
  min-width: 0;
}
.ff-shell *, .ff-lightbox * { box-sizing: border-box; }
.ff-shell [hidden] { display: none !important; }
.ff-shell h1, .ff-shell h2, .ff-shell h3, .ff-shell p, .ff-shell ol, .ff-shell ul,
.ff-shell fieldset, .ff-shell legend { margin: 0; padding: 0; }
.ff-shell button, .ff-lightbox button {
  border: 0; border-radius: 0; padding: 0; color: inherit;
  background: transparent; font: inherit; cursor: pointer;
}
.ff-shell button:focus-visible, .ff-shell summary:focus-visible,
.ff-shell input:focus-visible, .ff-lightbox button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.ff-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.ff-page-head h1 {
  font: 750 clamp(32px,3.45vw,56px)/1.14 var(--sans, "Helvetica Neue","PingFang SC",sans-serif);
  letter-spacing: -.065em; scroll-margin: 20px;
}
.ff-page-head h1:focus { outline: none; }
.ff-page-head nav { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 12px; font-weight: 550; color: var(--muted); }
.ff-page-head nav span, .ff-page-head nav button { min-height: 36px; display: inline-flex; align-items: center; }
.ff-page-head nav button:hover { color: var(--ink); text-decoration: underline; }
.ff-page-head nav i { width: 16px; height: 1px; background: var(--line); }
.ff-page-head [aria-current] { color: var(--accent); font-weight: 700; }
.ff-spread { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(320px,.9fr); gap: clamp(24px,3.4vw,64px); align-items: start; }
.ff-gallery, .ff-panel { min-width: 0; }
.ff-gallery { position: sticky; top: 16px; }
.ff-stage {
  --ff-height: clamp(440px,calc(100svh - 238px),735px);
  --ff-portrait: calc(var(--ff-height)*.5);
  height: var(--ff-height); width: 100%;
  position: relative; isolation: isolate; overflow: hidden; background: var(--wash);
  touch-action: pan-y; user-select: none;
}
.ff-photo-spread {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: minmax(0,1fr) var(--ff-portrait); gap: 3px;
  background: var(--paper); pointer-events: none;
}
.ff-detail-photo, .ff-full-photo { position: relative; min-width: 0; height: 100%; overflow: hidden; }
.ff-photo-spread img { display: block; width: 100%; height: 100%; max-width: none; }
.ff-detail-photo img { object-fit: cover; object-position: 50% 13%; transform: scale(1.23); transform-origin: 50% 29%; }
.ff-full-photo img { object-fit: contain; background: var(--wash); }
.ff-detail-photo::after {
  content: ''; position: absolute; inset: 35% 0 0;
  background: linear-gradient(0deg,color-mix(in srgb,var(--ink) 74%,transparent),color-mix(in srgb,var(--ink) 5%,transparent) 68%,transparent);
}
.ff-camera-caption {
  z-index: 3; position: absolute; left: clamp(12px,1.8vw,30px); right: calc(var(--ff-portrait) + 12px); bottom: clamp(16px,2vw,32px);
  color: var(--surface); pointer-events: none;
}
.ff-camera-caption strong {
  display: block; font: 800 clamp(38px,5.7vw,94px)/.86 var(--display,"Arial Narrow","Helvetica Neue",sans-serif);
  max-width: 8ch; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance;
}
.ff-camera-caption small { display: block; font-size: 12px; line-height: 1.4; font-weight: 550; margin-top: 12px; }
.ff-arrows { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 1px; z-index: 5; }
.ff-arrows button, .ff-lightbox button {
  background: var(--surface); color: var(--ink); width: 40px; height: 40px;
  display: grid; place-items: center; transition: background-color .18s,color .18s;
}
.ff-arrows button:hover,.ff-arrows button:focus-visible,.ff-lightbox button:hover { background: var(--action); color: var(--surface); }
.ff-arrows svg { width: 18px; }
.ff-outgoing { z-index: 2; animation: ff-slide-left .56s var(--ff-ease) both; }
.ff-outgoing.ff-to-right { animation-name: ff-slide-right; }
.ff-outgoing.ff-slow { animation-duration: 1s; }
@keyframes ff-slide-left { from { clip-path: inset(0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes ff-slide-right { from { clip-path: inset(0); } to { clip-path: inset(0 0 0 100%); } }
.ff-ready .ff-stage { animation: ff-print .65s var(--ff-ease) both; }
@keyframes ff-print { from { clip-path: inset(4% 3%); opacity: .65; } to { clip-path: inset(0); opacity: 1; } }
.ff-panel { border-top: 2px solid var(--ink); padding-top: clamp(20px,2.4vw,36px); }
.ff-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ff-panel h2 { font: 720 clamp(28px,2.75vw,48px)/1.16 var(--sans,"Helvetica Neue","PingFang SC",sans-serif); letter-spacing: -.055em; color: inherit; }
.ff-panel .ff-desc { color: var(--muted); line-height: 1.65; font-size: 14px; margin-top: 12px; max-width: 36em; }
.ff-swatches { display: flex; gap: 2px; flex: none; }
.ff-swatches i { display: block; width: 10px; height: 18px; }
.ff-panel h3, .ff-picker legend { font: 650 14px/1.45 var(--sans,"PingFang SC",sans-serif); letter-spacing: 0; }
.ff-picker { border: 0; min-width: 0; }
.ff-shell .ff-panel > .ff-picker { margin-top: clamp(24px,3vw,40px); }
.ff-picker legend { margin-bottom: 12px; }
.ff-picker > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ff-picker button {
  position: relative; display: block; min-width: 0; text-align: left;
  color: var(--muted); overflow: visible; padding-bottom: 6px;
  border-bottom: 2px solid var(--line); transition: border-color .2s,color .2s;
}
.ff-picker button img {
  width: 100%; display: block; height: clamp(64px,7.5vw,125px);
  object-fit: cover; object-position: 50% 19%; transition: filter .18s;
}
.ff-picker button span { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; }
.ff-picker button[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }
.ff-picker button[aria-pressed=true]::after {
  content: '✓'; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px;
  display: grid; place-items: center; background: var(--accent); color: var(--surface); font: 650 11px/1 Arial,sans-serif;
}
.ff-picker button:not([aria-pressed=true]):hover { border-color: var(--ink); }
.ff-wardrobe { margin-top: 24px; border-block: 1px solid var(--line); }
.ff-wardrobe summary {
  display: flex; align-items: center; cursor: pointer; list-style: none;
  min-height: 52px; gap: 12px; font-size: 13px;
}
.ff-wardrobe summary::-webkit-details-marker { display: none; }
.ff-wardrobe summary span, .ff-summary > span { color: var(--muted); }
.ff-wardrobe summary b { margin-left: auto; font-weight: 650; }
.ff-wardrobe summary i { width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); margin: 0 4px 0 2px; transition: transform .2s; }
.ff-wardrobe[open] summary i { transform: translateY(2px) rotate(225deg); }
.ff-wardrobe .ff-picker { margin: 0 0 12px; }
.ff-wardrobe .ff-picker legend { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.ff-wardrobe .ff-picker img { height: 60px; }
.ff-command { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ff-shell .ff-primary,.ff-shell .ff-secondary,.ff-shell .ff-tool,.ff-shell .ff-subtle {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px; font-weight: 650; line-height: 1.3;
  transition: color .2s,background-color .2s,transform .18s;
}
.ff-shell .ff-primary { flex: 1 1 auto; min-height: 50px; padding: 12px 18px; color: var(--surface); background: var(--action); }
.ff-shell .ff-primary:enabled:hover { background: color-mix(in srgb,var(--action) 84%,var(--paper)); }
.ff-shell .ff-primary:enabled:active,.ff-shell .ff-secondary:enabled:active { transform: translateY(1px); }
.ff-shell .ff-secondary { min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); }
.ff-shell .ff-tool:enabled:hover, .ff-shell .ff-secondary:enabled:hover { background: var(--wash); }
.ff-shell button:disabled { color: var(--muted); background-color: var(--wash); border-color: var(--line); cursor: default; transform: none; }
.ff-shell .ff-primary svg, .ff-shell .ff-secondary svg { width: 18px; flex: none; transition: transform .2s; }
.ff-shell .ff-primary:enabled:hover svg { transform: translateX(2px); }
.ff-shell .ff-subtle { color: var(--muted); font-size: 12px; min-height: 44px; margin-top: 8px; }
.ff-shell .ff-subtle svg { width: 15px; }.ff-shell .ff-subtle:enabled:hover { color: var(--ink); text-decoration: underline; }
.ff-detail-block, .ff-summary { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.ff-shell .ff-items { list-style: none; display: grid; gap: 0 10px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.ff-items li { min-width: 0; }
.ff-items button, .ff-items li > div { position:relative; display: block; text-align:left; width:100%; }
.ff-items img { width:100%; height: clamp(60px,6.4vw,92px); object-fit:cover; display:block; }
.ff-items span, .ff-items small, .ff-items b { display: block; }
.ff-items small { color: var(--muted); margin-top:6px; font-size:10px; }
.ff-items b { font-size:12px; font-weight:600; margin-top:1px; }
.ff-items svg { width:14px; height:14px; position:absolute; top:4px; right:4px; background: var(--surface); color:var(--ink); }
.ff-items button:hover b { color:var(--ink); text-decoration:underline; }
.ff-extra { display:flex; gap:20px; flex-wrap:wrap; }
.ff-summary > span { display:block; font-size:12px; }
.ff-summary strong { display:block; margin-top:4px; font-size:20px; font-weight:650; }
.ff-summary p { margin-top:4px; font-size:13px; color:var(--muted); }
.ff-result-tools { border-bottom:1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.ff-shell .ff-tool { min-height:46px; font-size:12px; padding:6px 8px; }
.ff-shell .ff-tool:first-child { padding-left:0; }
.ff-tool[aria-pressed=true] { color:var(--accent); }
.ff-tool svg { width:16px; height:16px; }
.ff-compare-slider { display:flex; align-items:center; gap:12px; font-size:12px; min-height:44px; color:var(--muted); }
.ff-compare-slider span { flex:none; }
.ff-compare-slider input { flex:1; min-width:0; accent-color:var(--action); }
.ff-before, .ff-wipe { position:absolute; inset:0; pointer-events:none; }
.ff-before { clip-path:inset(0 calc(100% - var(--split)) 0 0); z-index:1; }
.ff-comparing { cursor:ew-resize; }.ff-comparing .ff-camera-caption{opacity:0}.ff-comparing .ff-arrows{visibility:hidden}
.ff-comparing .ff-detail-photo::after{opacity:0}
.ff-split-line { position:absolute; z-index:4; left:var(--split); top:0; bottom:0; width:2px; background:var(--surface); pointer-events:none; }
.ff-split-line i { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--surface); color:var(--ink); width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:18px; }
.ff-wipe { clip-path:inset(0 calc(100% - var(--progress)) 0 0); }
.ff-scan-edge { position:absolute; z-index:2; top:0; bottom:0; left:var(--progress); width:2px; background:var(--surface); box-shadow:-2px 0 0 var(--ink); }
.ff-work .ff-current { font-weight:650; font-size:16px; }
.ff-percent { color:var(--ink); font:800 clamp(88px,11vw,180px)/1.0 var(--display,"Arial Narrow",sans-serif); letter-spacing:-.045em; margin:16px 0; font-variant-numeric:tabular-nums; }
.ff-percent small { font-size:.35em; margin-left:3px; }
.ff-progress { height:4px; background:var(--line); overflow:hidden; }
.ff-progress b { height:100%; display:block; background:var(--action); transform-origin:left; transform:scaleX(0); }
.ff-current-step { display:flex; justify-content:space-between; gap:12px; margin-top:12px; align-items:center; }
.ff-current-step b { font-size:14px; color:var(--ink); }.ff-seconds{font-size:12px;color:var(--muted)}
.ff-shell .ff-steps { list-style:none; margin-top:28px; }
.ff-steps li { display:flex; align-items:center; gap:10px; padding:12px 0; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.ff-steps i { width:8px; height:8px; border:1px solid var(--muted); }
.ff-steps li.is-current { color:var(--ink); font-weight:650; }.ff-steps .is-current i{background:var(--accent);border-color:var(--accent)}.ff-steps .is-done i{background:var(--ink);border-color:var(--ink)}
.ff-lightbox { padding:0; border:0; color:var(--surface); background:var(--ink); margin:auto; max-height:94dvh; max-width:94vw; }
.ff-lightbox::backdrop { background:color-mix(in srgb,var(--ink) 88%,transparent); }
.ff-lightbox img { max-height:94dvh; max-width:94vw; display:block; object-fit:contain; }
.ff-lightbox button { position:absolute; top:8px; right:8px; }
@media(max-width:1000px) and (min-width:721px) {
  .ff-shell { padding-inline:24px; }
  .ff-spread { grid-template-columns:minmax(0,1.3fr) minmax(274px,.9fr); gap:24px; }
  .ff-stage { --ff-height:clamp(365px,49vw,505px); }
  .ff-camera-caption strong { font-size: clamp(32px,4.6vw,50px); }
  .ff-panel { padding-top:16px; }
  .ff-picker button img { height:66px; }
}
@media(max-width:720px) {
  .ff-shell { padding:14px 16px 28px; }
  .ff-page-head { margin-bottom:12px; flex-wrap:wrap; align-items:center; row-gap:4px; }
  .ff-page-head h1 { font-size:30px; }
  .ff-page-head nav { gap:5px; font-size:10px; }.ff-page-head nav i{width:6px}.ff-page-head nav button,.ff-page-head nav span{min-height:36px;}
  .ff-spread { grid-template-columns:minmax(0,1fr); gap:16px; }
  .ff-gallery { position:static; }
  .ff-stage { --ff-height:clamp(238px,min(78vw,41svh),410px); }
  .ff-camera-caption { left:12px; bottom:14px; }.ff-camera-caption strong{font-size:clamp(33px,9.5vw,58px);}
  .ff-camera-caption small{font-size:10px;margin-top:8px;}
  .ff-arrows{inset:auto 4px 4px auto;}.ff-arrows button{width:38px;height:38px;}
  .ff-panel{ border-top:0; padding:0; }
  .ff-panel h2{font-size:25px;line-height:1.2;}
  .ff-panel .ff-desc{margin-top:5px;line-height:1.55;font-size:12px;}
  .ff-shell .ff-panel > .ff-picker{margin-top:14px;}
  .ff-picker legend, .ff-panel h3{font-size:13px;}
  .ff-picker legend{margin-bottom:6px;}
  .ff-picker button img{height:clamp(43px,14.5vw,82px);object-position:50% 20%;}
  .ff-picker button span{margin-top:3px;font-size:11px;}
  .ff-picker button{padding-bottom:4px;}
  .ff-wardrobe{margin-top:12px;}
  .ff-wardrobe summary{min-height:42px;}
  .ff-command{margin-top:12px;}
  .ff-shell .ff-primary,.ff-shell .ff-secondary{min-height:46px;}
  .ff-detail-block,.ff-summary{margin-top:20px;}
  .ff-items img{height:70px;}
  .ff-result-tools{gap:8px;}.ff-shell .ff-tool{min-height:40px;}
  .ff-task .ff-stage{--ff-height:clamp(220px,min(72vw,36svh),350px);}
  .ff-work .ff-percent{font-size:68px;margin:4px 0 8px;}
  .ff-work .ff-current{font-size:14px;}
  .ff-shell .ff-steps{margin-top:16px;}.ff-steps li{padding:8px 0;}
}
@media(max-width:360px) {
  .ff-shell{padding-inline:12px;}
  .ff-page-head h1{font-size:25px;}
  .ff-page-head nav{font-size:9px;}
  .ff-stage{--ff-height:clamp(215px,74vw,264px);}
}
@media(prefers-reduced-motion:reduce) {
  .ff-shell *, .ff-shell *::before, .ff-shell *::after { animation:none!important; transition:none!important; }
  .ff-scan-edge {display:none;}
  .ff-wipe {clip-path:none;}
}
