/* Find your fit v3. Colours and fonts are the size guide's own; gold is an accent only. Sizes in rem so text zoom scales the panel. */
.fit-entry{margin-left:14px}
.fit-lock{overflow:hidden}
.fit-dlg{box-sizing:border-box;position:fixed;inset:auto 0 0 0;width:100%;max-width:100%;height:92dvh;max-height:92dvh;margin:0;padding:0;border:1px solid rgba(237,230,216,.2);border-radius:18px 18px 0 0;background:#0e0c10;color:#ede6d8;overflow:hidden}
.fit-dlg::backdrop{background:rgba(5,4,6,.72)}
.fit-box{display:flex;flex-direction:column;height:100%;min-height:0}
.fit-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(237,230,216,.14)}
.fit-head img{flex:0 0 44px;width:44px;height:55px;object-fit:cover;border-radius:4px;background:#1a171d}
.fit-who{flex:1;min-width:0;display:grid;gap:2px}
.fit-who b{font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fit-who span{font-size:.75rem;line-height:1.35;color:rgba(237,230,216,.65)}
.fit-x{flex:0 0 44px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(237,230,216,.3);background:none;color:#ede6d8;font-size:.9375rem;cursor:pointer}
.fit-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 20px;-webkit-overflow-scrolling:touch}
.fit-eye{margin:0 0 8px;font-family:IBM Plex Mono,Menlo,monospace;font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase;color:#c9a15e}
.fit-body h2{margin:0 0 12px;font-family:'Cormorant Garamond',serif;font-size:1.5625rem;line-height:1.15;font-weight:700;outline:none}
.fit-p{margin:0 0 12px;font-size:.90625rem;line-height:1.65;color:rgba(237,230,216,.85)}
.fit-hint{margin:6px 0 0;font-size:.78125rem;line-height:1.55;color:rgba(237,230,216,.62)}
.fit-note{margin:16px 0 0;font-size:.78125rem;line-height:1.55;color:rgba(237,230,216,.62)}
.fit-sub{margin:16px 0 6px;font-family:IBM Plex Mono,Menlo,monospace;font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(237,230,216,.7)}
.fit-card{display:grid;gap:4px;width:100%;min-height:72px;margin:0 0 10px;padding:14px;text-align:left;border:1px solid rgba(237,230,216,.28);border-radius:10px;background:none;color:#ede6d8;cursor:pointer}
.fit-card b{font-size:.9375rem}
.fit-card span{font-size:.8125rem;line-height:1.5;color:rgba(237,230,216,.68)}
.fit-card:disabled{cursor:default;border-style:dashed;opacity:.72}
.fit-link{display:block;min-height:44px;padding:0;border:0;background:none;color:#ede6d8;font-size:.875rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fit-units{display:inline-flex;margin:0 0 14px;border:1px solid rgba(237,230,216,.28);border-radius:99px;overflow:hidden}
.fit-units button{min-width:56px;min-height:44px;border:0;background:none;color:#ede6d8;font-size:.875rem;cursor:pointer}
.fit-units [aria-pressed=true]{background:#ede6d8;color:#141216;font-weight:800}
/* the drawing and its legend */
.fit-svg{display:block;width:min(100%,190px);height:auto;margin:0 auto 10px;color:rgba(237,230,216,.72)}
.fit-svg--body{width:min(100%,150px)}
.fit-svg--sm{width:min(100%,128px);margin-bottom:6px}
.fit-svg--body.fit-svg--sm{width:min(100%,104px)}
.fit-svg-o{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.fit-svg-d{fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;opacity:.8}
.fit-svg-band{fill:none;stroke:#c9a15e;stroke-width:5;opacity:.28;stroke-linecap:round}
.fit-svg-m{fill:none;stroke:#c9a15e;stroke-width:1.6;stroke-linecap:round}
.fit-svg-s{fill:#0e0c10;stroke:#c9a15e;stroke-width:1.6}
.fit-svg-e{fill:#c9a15e}
.fit-svg-b{fill:#c9a15e}
.fit-svg-t{fill:#141216;font:700 10px IBM Plex Mono,Menlo,monospace}
.fit-legend{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:8px}
.fit-legend li{display:flex;gap:10px;align-items:flex-start;font-size:.8125rem;line-height:1.5;color:rgba(237,230,216,.78)}
.fit-legend b{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#c9a15e;color:#141216;font:700 .6875rem/22px IBM Plex Mono,Menlo,monospace;text-align:center}
.fit-legend strong{color:#ede6d8}
/* a measurement: number box with a − / + stepper and a slider under it */
.fit-f{margin:0 0 16px}
.fit-f label{display:block;margin:0 0 6px;font-size:.875rem;font-weight:700}
.fit-f label i{font-style:normal;font-weight:400;color:rgba(237,230,216,.6)}
.fit-row{display:flex;gap:8px;align-items:stretch}
.fit-st{flex:0 0 48px;min-height:48px;border:1px solid rgba(237,230,216,.4);border-radius:8px;background:none;color:#ede6d8;font-size:1.25rem;line-height:1;cursor:pointer}
.fit-in{position:relative;flex:1;min-width:0}
.fit-in input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 46px 10px 14px;border:1px solid rgba(237,230,216,.4);border-radius:8px;background:#141216;color:#ede6d8;font-size:1.25rem;font-weight:700;text-align:center}
.fit-in span{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:.875rem;color:rgba(237,230,216,.65)}
.fit-range{display:block;width:100%;margin:10px 0 0;accent-color:#c9a15e;cursor:pointer;min-height:28px}
.fit-live{margin:-6px 0 16px;padding:10px 12px;border-radius:8px;background:rgba(201,161,94,.1);border:1px solid rgba(201,161,94,.35);font-size:.84375rem;line-height:1.5;color:#ede6d8}
.fit-err{margin:0;font-size:.875rem;line-height:1.5;color:#e0a093}
.fit-err:empty{display:none}
.fit-size{margin:0 0 8px;font-family:'Cormorant Garamond',serif;font-size:3rem;line-height:1;font-weight:700;color:#c9a15e}
.fit-chips{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}
.fit-chips button{flex:1 1 56px;min-width:0;min-height:48px;padding:4px 2px;border:1px solid rgba(237,230,216,.3);border-radius:8px;background:none;color:#ede6d8;font-size:.875rem;font-weight:800;cursor:pointer}
.fit-chips [aria-pressed=true]{background:#ede6d8;border-color:#ede6d8;color:#141216}
.fit-chips small{display:block;font-size:.625rem;font-weight:400}
.fit-m{margin:0;display:grid;gap:8px}
.fit-m div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:8px;background:rgba(237,230,216,.05)}
.fit-m dt{font-size:.8125rem;color:rgba(237,230,216,.7)}
.fit-m dd{margin:0;font-size:.875rem;font-weight:800;white-space:nowrap}
.fit-adj{margin:10px 0 0;padding:0;list-style:none;font-size:.78125rem;line-height:1.6;color:rgba(237,230,216,.68)}
.fit-t{width:100%;border-collapse:collapse;font-size:.875rem;table-layout:fixed}
.fit-t th,.fit-t td{padding:10px 6px;text-align:left;border-bottom:1px solid rgba(237,230,216,.12);overflow-wrap:anywhere}
.fit-t thead th{font-size:.75rem;font-weight:400;color:rgba(237,230,216,.62)}
.fit-t small{font-size:.625rem;font-weight:400;color:rgba(237,230,216,.62)}
.fit-tabs{display:flex;gap:6px;margin:0 0 14px;padding:4px;border:1px solid rgba(237,230,216,.2);border-radius:99px}
.fit-tabs button{flex:1;min-height:44px;padding:0 8px;border:0;border-radius:99px;background:none;color:#ede6d8;font-size:.8125rem;font-weight:700;cursor:pointer}
.fit-tabs [aria-selected=true]{background:#ede6d8;color:#141216}
.fit-foot{display:grid;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(237,230,216,.14);background:#0e0c10}
.fit-go,.fit-sec{width:100%;min-height:48px;border-radius:8px;font-size:.9375rem;font-weight:800;cursor:pointer}
.fit-go{border:1px solid #f1ece3;background:#f1ece3;color:#0a0a0a}
.fit-sec{border:1px solid rgba(237,230,216,.4);background:none;color:#ede6d8}
.fit-foot .fit-hint{margin:0}
.fit-more{margin:16px 0}
.fit-more summary{min-height:44px;display:flex;align-items:center;font-size:.875rem;font-weight:700;cursor:pointer}
.fit-more small{color:rgba(237,230,216,.62)}
/* on the product page, after Select */
.fit-your{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0 0;font-size:.8125rem;color:rgba(237,230,216,.8)}
.fit-your b{color:#c9a15e}
.fit-again{min-height:32px;padding:0;border:0;background:none;color:#ede6d8;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fit-dlg :focus-visible{outline:2px solid #c9a15e;outline-offset:2px}
@media (min-width:768px){
  .fit-dlg{inset:0 0 0 auto;width:460px;height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px}
}
@media (max-height:560px){   /* a phone turned sideways: use the whole height, keep the footer reachable */
  .fit-dlg{height:100dvh;max-height:100dvh;border-radius:0}
  .fit-head img{display:none}
  .fit-svg{width:min(100%,130px)}
}
@media (max-width:340px){
  .fit-body{padding:12px 12px 16px}
  .fit-st{flex-basis:44px}
  .fit-units button{min-width:48px}
}
@media (prefers-reduced-motion:no-preference){
  .fit-dlg[open]{animation:fit-up .2s cubic-bezier(.22,1,.36,1)}
  @media (min-width:768px){.fit-dlg[open]{animation-name:fit-in}}
}
@keyframes fit-up{from{transform:translateY(24px);opacity:0}}
@keyframes fit-in{from{transform:translateX(24px);opacity:0}}
