:root{--bg: #ffffff;--surface: #f4f5f7;--surface-dark: #e5e7eb;--surface-darker: #d1d5db;--border: #e5e7eb;--text: #111827;--text-secondary: #374151;--text-placeholder: #6b7280;--accent: #2357A4;--track: #ffffff;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box;margin:0}html{height:100%}body{background:var(--bg);color:var(--text)}h1,h2,h3,h4,h5,h6{font-family:Google Sans Flex,system-ui,sans-serif;font-weight:600}.page{display:flex;flex-direction:column;min-height:100dvh}.app{display:flex;flex-direction:column;flex:1;width:100%;max-width:1024px;margin-inline:auto}.top-nav{border-bottom:1px solid var(--border);background:var(--bg);max-height:4rem}.top-nav__inner{min-height:4rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:1rem;width:100%;max-width:1024px;margin-inline:auto;padding-inline:1rem}.top-nav__logo{grid-column:1;display:inline-flex;align-items:center;justify-self:start}.top-nav__logo img{display:block;height:clamp(1.25rem,3.5vw,1.5rem);width:auto;transform:translateY(3px)}.top-nav__menu{grid-column:2;display:flex;align-items:stretch;gap:2rem}.top-nav__tab{display:flex;align-items:center;color:var(--text-secondary);font-size:1rem;text-decoration:none;border-bottom:3px solid transparent}.top-nav__tab:hover{color:var(--text)}.top-nav__tab.is-active{color:var(--text);font-weight:600;border-bottom-color:var(--accent)}.top-nav__tab--disabled{color:var(--text-placeholder);pointer-events:none}.top-nav__hamburger{grid-column:3;display:none;align-items:center;justify-content:center;justify-self:end;padding:0;gap:.5rem;background:none;border:none;color:var(--text);cursor:pointer;font-size:1rem;font-weight:400}@keyframes drawer-backdrop-in{0%{background-color:#0000}to{background-color:#0000008c}}@keyframes drawer-backdrop-out{0%{background-color:#0000008c}to{background-color:#0000}}@keyframes drawer-slide-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-slide-out{0%{transform:translate(0)}to{transform:translate(-100%)}}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0000008c;animation:drawer-backdrop-in .2s ease-out}.drawer-backdrop.is-closing{animation:drawer-backdrop-out .22s ease-in forwards}.drawer{position:absolute;top:0;left:0;bottom:0;display:flex;flex-direction:column;width:min(20rem,85vw);background:var(--bg);box-shadow:2px 0 12px #00000026;animation:drawer-slide-in .22s cubic-bezier(.16,1,.3,1)}.drawer-backdrop.is-closing .drawer{animation:drawer-slide-out .2s ease-in forwards}.drawer__header{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:4rem;border-bottom:1px solid var(--border)}.drawer__logo{display:block;height:1.75rem;width:auto;transform:translateY(3px)}.drawer__close{display:inline-flex;align-items:center;justify-content:center;padding:0;background:none;border:none;color:var(--text-secondary);cursor:pointer}.drawer__close:hover{color:var(--text)}.drawer__nav{display:flex;flex-direction:column;padding:0 1rem}.drawer__nav .top-nav__tab{padding:1rem 0;border-bottom:1px solid var(--border)}.drawer__nav .top-nav__tab.is-active{border-bottom-color:var(--border)}.drawer__nav .top-nav__tab:last-child{border-bottom:none}.site-footer{padding:4rem 0 3rem;background:var(--bg);color:var(--text-placeholder);font-size:.75rem;text-align:center}.site-footer__links{display:inline-flex;gap:2rem;margin-bottom:1rem}.site-footer__links a{color:var(--text-placeholder)}.site-footer__links a:hover{color:var(--text-secondary)}.pistol-bar{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:var(--surface)}.pistol-bar__label{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em}.pistol-bar select{flex:1;padding:.4rem .5rem;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px}.app__content{flex:1;padding:1rem}.view h1{font-size:clamp(2rem,3vw,2.5rem);margin-bottom:.5rem}.about{margin:0 auto;margin-top:clamp(.25rem,3vw,2rem);max-width:66ch}.about h1{font-size:clamp(1.75rem,4vw,2.5rem);margin-bottom:1.5rem}.about h2{font-size:1.25rem;margin:2rem 0 1rem}.about__section{margin-bottom:2.5rem}.about__section p{margin-bottom:1rem;font-size:1rem;line-height:1.6;color:var(--text)}.compare__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.units-toggle{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.seg{display:flex;box-shadow:inset 0 0 0 1px var(--surface-darker);border-radius:8px;overflow:hidden;background:var(--track)}.seg button{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1em;background:transparent;border:none;color:var(--text-secondary);font-size:.75rem;font-weight:500;cursor:pointer}.seg button svg{display:block}.seg button.is-active{background:var(--accent);color:#fff;font-weight:600}.units-toggle .seg button{height:2rem;padding-block:0}.units-toggle .seg button.is-active{background:var(--text-secondary);color:#fff;font-weight:500}.optic-bar{margin-bottom:1rem}.add-optic{display:inline-flex;align-items:center;justify-content:center;height:2.5rem;padding:0 .9rem;background:var(--accent);border:1px solid var(--accent);border-radius:8px;color:#fff;font-size:.875rem;font-weight:600;cursor:pointer}.add-optic:hover{filter:brightness(1.08)}.optic-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1rem}.optic-card{display:flex;align-items:center;gap:.5rem;min-width:0;padding:.5rem .75rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.875rem}.optic-card__name{display:flex;flex-direction:column;flex:1;min-width:0}.optic-card__brand{color:var(--text-secondary);font-size:.75rem;line-height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.optic-card__model{color:var(--text);font-weight:700;font-size:.875rem;line-height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.optic-card__remove{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:2px;background:none;border:none;color:var(--text-secondary);cursor:pointer}.optic-card__remove:hover{color:#dc2626}.empty-compare{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;width:100%;min-height:260px;margin-bottom:1rem;padding:5rem;background:var(--surface);border:1px solid var(--surface);border-radius:12px;color:var(--text);font-size:1rem;font-weight:400;cursor:pointer;transition:border-color .15s ease}.empty-compare__preview{display:flex;align-items:flex-end;justify-content:center;gap:1.25rem;margin-bottom:.5rem;transition:gap .2s ease}.empty-compare__preview-photo{max-height:110px;max-width:140px;object-fit:contain;filter:grayscale(1);opacity:.12}.empty-compare__cta{display:inline-flex;align-items:center;justify-content:center;margin-top:.5rem;padding:.75rem 1rem;height:2.75rem;background:var(--accent);border-radius:8px;color:#fff;font-size:.875rem;font-weight:600}.empty-compare:hover{border-color:var(--text-placeholder)}.empty-compare:hover .empty-compare__cta{filter:brightness(1.08)}.empty-compare:hover .empty-compare__preview{gap:.5rem}@keyframes modal-backdrop-in{0%{background-color:#0000}to{background-color:#0000008c}}@keyframes modal-backdrop-out{0%{background-color:#0000008c}to{background-color:#0000}}@keyframes modal-pop-in{0%{opacity:0;transform:translateY(.5rem) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes modal-pop-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(.5rem) scale(.98)}}@keyframes modal-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes modal-slide-down{0%{transform:translateY(0)}to{transform:translateY(100%)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0000008c;animation:modal-backdrop-in .2s ease-out}.modal-backdrop.is-closing{animation:modal-backdrop-out .22s ease-in forwards}.modal{animation:modal-pop-in .22s cubic-bezier(.16,1,.3,1)}.modal-backdrop.is-closing .modal{animation:modal-pop-out .2s ease-in forwards}.modal{position:relative;display:flex;flex-direction:column;width:min(560px,100%);height:90dvh;padding:1rem 0;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.modal__title{margin:0 0 1rem;padding:0 1rem;font-size:1.25rem}.modal__close{position:absolute;top:1rem;right:1rem;display:inline-flex;align-items:center;justify-content:center;padding:0;background:none;border:none;color:var(--text-secondary);cursor:pointer}.modal__close:hover{color:var(--text)}.modal__search-wrap{position:relative;margin:0 1rem 1rem}.modal__search{width:100%;height:2.5rem;padding:0 2rem 0 .6rem;background:#fff;color:var(--text);border:1px solid var(--border);border-radius:8px;font-size:.875rem}.modal__search-icon{position:absolute;top:50%;right:.6rem;transform:translateY(-50%);color:var(--text-placeholder);pointer-events:none}.modal__list{flex:1;margin:0;padding:0;list-style:none;overflow-y:auto;border-top:1px solid var(--border)}.modal__row{display:flex;align-items:center;gap:.6rem;height:2.5rem;padding:0 1rem;color:var(--text);cursor:pointer}.modal__row:hover{background:var(--surface)}.modal__row.is-selected{background:color-mix(in srgb,var(--accent) 12%,transparent)}.modal__row.is-selected:hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}.modal__row input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex:none;width:1rem;height:1rem;margin:0;display:inline-grid;place-content:center;background:#fff;border:1px solid var(--border);border-radius:4px;cursor:pointer}.modal__row input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}.modal__row input[type=checkbox]:checked:before{content:"";width:.75rem;height:.75rem;background:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='20%206%209%2017%204%2012'/%3E%3C/svg%3E") center / contain no-repeat}.modal__row-name{font-size:.875rem}.modal__empty{padding:.75rem 1rem;color:var(--text-secondary);font-size:.875rem}.modal__actions{display:flex;justify-content:flex-end;gap:1rem;padding:.9rem 1rem 0;border-top:1px solid var(--border)}.modal__actions button{display:inline-flex;align-items:center;justify-content:center;flex:1;height:3rem;font-size:.875rem}.btn-ghost{padding:.45rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);cursor:pointer}.btn-ghost:hover{background:var(--surface)}.btn-primary{padding:.45rem 1rem;background:var(--accent);border:1px solid var(--accent);border-radius:8px;color:#fff;font-weight:600;cursor:pointer}.btn-primary:hover{filter:brightness(1.08)}.overlay{position:relative;padding:0;overflow:hidden;margin-bottom:2.5rem}.overlay__header{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:.5rem}.reset-layout{display:inline-flex;align-items:center;flex-shrink:0;gap:.375rem;height:2.5rem;padding:0 .75rem;background:var(--track);border:1px solid var(--surface-darker);border-radius:8px;color:var(--text-secondary);font-size:.75rem;font-weight:500;cursor:pointer}.reset-layout:hover{background:var(--surface)}.reset-layout svg{display:block}.overlay__header .seg button{height:2.5rem;padding:0 1rem;gap:1rem;border-left:1px solid transparent}.overlay__header .seg button svg{display:none}.overlay__header .seg button.is-active{background:var(--text-secondary);color:#fff;font-weight:500}.overlay__header .seg button+button{border-left-color:var(--surface-darker)}.overlay__header .seg button.is-active,.overlay__header .seg button.is-active+button{border-left-color:transparent}.overlay svg{display:block}.optic-draggable{cursor:grab;touch-action:none}.optic-draggable:active{cursor:grabbing}.optic-photo-placeholder{fill:none;stroke:var(--text-secondary);stroke-width:1;stroke-dasharray:4 4}.optic-photo-placeholder__label{fill:var(--text-secondary);font-family:system-ui,sans-serif;font-size:.75rem}.ruler__grid,.ruler__axis,.ruler__tick,.ruler__label,.overlay__baseline{pointer-events:none}.overlay__baseline{stroke:var(--border);stroke-width:1;stroke-dasharray:2 4}.ruler__grid{stroke:var(--border);stroke-width:.5;opacity:.7}.ruler__axis,.ruler__tick{stroke:var(--text-secondary);stroke-width:.75}.ruler__label{fill:var(--text-secondary);font-family:system-ui,sans-serif}.overlay__slide-caption{font-size:12px}.overlay__caption{flex-basis:100%;margin:0;padding:0;text-align:left;color:var(--text-secondary);font-size:.75rem}.spec-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.375rem}.spec-title{margin:0;font-size:2rem}.spec-note,.spec-footnote{margin:0;color:var(--text-secondary);font-size:.875rem}.spec-note{margin-bottom:.75rem}.spec-footnote{font-size:.75rem;margin:.75rem 0 0 .5rem}.spec-footnote sup{font-size:.875rem}.spec-unit{color:var(--text-placeholder)}.spec-source{text-decoration:none;text-decoration-color:var(--text-placeholder);text-underline-offset:3px;cursor:help}.spec-source sup{font-size:.875em;margin-left:1px}.spec-scroll{overflow-x:auto}.spec{width:100%;border-collapse:collapse;font-size:.875rem}.spec th,.spec td{padding:.45rem .6rem;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.spec thead th{background:var(--surface);color:var(--accent);font-weight:600}.spec tbody th{color:var(--text-secondary);font-weight:500}@media(max-width:850px){.optic-cards{grid-template-columns:repeat(2,1fr)}.top-nav__menu{display:none}.top-nav__hamburger{display:inline-flex}.spec-scroll{margin-left:-1rem;margin-right:-1rem}.spec th:first-child,.spec td:first-child{padding-left:1rem}.spec-footnote{margin-left:0}}@media(max-width:640px){.optic-cards{grid-template-columns:1fr}.overlay__slide-caption{font-size:10px}.modal-backdrop{padding:0;align-items:flex-end}.modal{width:100%;height:calc(100dvh - 1.5rem);border-radius:12px 12px 0 0;padding-bottom:.75rem;animation:modal-slide-up .28s cubic-bezier(.16,1,.3,1)}.modal-backdrop.is-closing .modal{animation:modal-slide-down .24s ease-in forwards}.modal__actions{padding-top:.75rem}.overlay__header .seg,.overlay__header .seg button{flex:1}}
