*{box-sizing:border-box}
:root{
  --paper:#f5f5f2;
  --panel:#fbfbf8;
  --white:#fff;
  --ink:#0b0b0a;
  --muted:#777772;
  --soft:#ecece8;
  --line:rgba(11,11,10,.12);
  --stage:#151515;
  --ease:cubic-bezier(.22,.76,.25,1);
}
html{background:var(--paper)}
body{
  margin:0;
  min-height:100vh;
  background:var(--paper);
  color:var(--ink);
  font-family:"Instrument Sans",Arial,sans-serif;
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{touch-action:manipulation}
.topbar{
  height:58px;
  display:grid;
  grid-template-columns:190px minmax(320px,620px) 1fr;
  gap:22px;
  align-items:center;
  padding:0 18px;
  border-bottom:1px solid var(--line);
  background:rgba(245,245,242,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:30;
}
.brand{
  font-size:18px;
  font-weight:650;
  letter-spacing:-.045em;
}
.search{
  height:38px;
  display:grid;
  grid-template-columns:1fr auto;
  border:1px solid var(--line);
  background:var(--white);
  border-radius:9px;
  overflow:hidden;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.search:focus-within{
  border-color:rgba(11,11,10,.32);
  box-shadow:0 0 0 3px rgba(11,11,10,.045);
  transform:translateY(-1px);
}
.search input{
  border:0;
  outline:0;
  min-width:0;
  padding:0 12px;
  background:transparent;
  font-size:13px;
  letter-spacing:-.01em;
}
.search input::placeholder{color:#9b9b96}
.search button{
  border:0;
  border-left:1px solid var(--line);
  background:var(--ink);
  color:#fff;
  padding:0 15px;
  font-size:12px;
  cursor:pointer;
  transition:opacity .18s ease;
}
.search button:hover{opacity:.8}
.top-meta{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:16px;
  font-size:11px;
  color:var(--muted);
}
.corpus-count{
  border:1px solid var(--line);
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.5);
}
.top-meta a:hover{color:var(--ink)}

.app-shell{
  width:min(1720px,100%);
  min-height:calc(100vh - 58px);
  margin:0 auto;
  display:grid;
  grid-template-columns:208px minmax(0,1fr) 320px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}
.library,.inspector{background:var(--panel)}
.library{
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-width:0;
  animation:sideIn .6s var(--ease) both;
}
.site-id{
  min-height:88px;
  padding:17px 14px;
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.site-mark{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:7px;
  background:#ff4b18;
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.site-id strong{
  display:block;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.015em;
}
.site-id a{
  display:block;
  margin-top:3px;
  font-size:10px;
  color:var(--muted);
}
.library-label{
  padding:16px 14px 8px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.075em;
  color:var(--muted);
}
.page-list{padding:0 8px}
.page-row{
  min-height:38px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:7px;
  font-size:12px;
  color:#666;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.page-row b{
  font-size:9px;
  font-weight:500;
  color:#aaa;
  font-variant-numeric:tabular-nums;
}
.page-row.active{
  background:#e8e8e4;
  color:var(--ink);
}
.page-row.active b{color:#555}
.page-row:not(.active):hover{
  background:#f0f0ed;
  color:var(--ink);
  transform:translateX(2px);
}
.library-foot{
  margin-top:auto;
  padding:15px 14px;
  border-top:1px solid var(--line);
}
.library-foot span{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
}
.library-foot i{
  width:6px;height:6px;border-radius:50%;
  background:#191919;
}
.library-foot small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:9px;
}

.viewer{
  min-width:0;
  display:grid;
  grid-template-rows:48px minmax(500px,1fr) 94px;
  background:#efefec;
}
.viewer-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  background:var(--panel);
  border-bottom:1px solid var(--line);
}
.crumb{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
}
.crumb strong{font-weight:600}
.crumb span{color:var(--muted)}
.view-toggle{
  display:flex;
  gap:2px;
  padding:3px;
  background:#e8e8e4;
  border-radius:8px;
}
.view-toggle button{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:6px 9px;
  border-radius:6px;
  font-size:10px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.view-toggle button.active{
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.view-toggle button:active{transform:scale(.96)}

.stage{
  position:relative;
  overflow:hidden;
  background:var(--stage);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 52px;
  isolation:isolate;
}
.stage:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:32px 32px;
  opacity:.7;
  pointer-events:none;
}
.stage-label{
  position:absolute;
  z-index:4;
  font-size:9px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.48);
}
.desktop-label{left:18px;top:16px}
.mobile-label{right:18px;bottom:16px}

.desktop-shot{
  width:min(78%,720px);
  position:relative;
  z-index:2;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 28px 80px rgba(0,0,0,.42);
  transform:translate3d(-2.5%,0,0);
  animation:frameIn .72s var(--ease) both;
  transition:width .55s var(--ease),transform .55s var(--ease),opacity .35s ease,filter .35s ease,box-shadow .35s ease;
}
.desktop-shot img,.mobile-shot img{display:block;width:100%;height:auto}
.desktop-shot:hover{
  transform:translate3d(-2.5%,-4px,0);
  box-shadow:0 36px 100px rgba(0,0,0,.5);
}
.mobile-shot{
  width:132px;
  position:absolute;
  z-index:3;
  right:8%;
  bottom:8%;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 20px 55px rgba(0,0,0,.5);
  animation:phoneIn .8s .08s var(--ease) both;
  transition:width .55s var(--ease),right .55s var(--ease),bottom .55s var(--ease),transform .55s var(--ease),opacity .35s ease,filter .35s ease,box-shadow .35s ease;
}
.mobile-shot:hover{
  transform:translateY(-5px) rotate(.4deg);
  box-shadow:0 30px 70px rgba(0,0,0,.58);
}

.stage.mobile-mode .desktop-shot{
  width:min(48%,430px);
  transform:translate3d(-33%,0,0) scale(.96);
  opacity:.42;
  filter:saturate(.4) brightness(.7);
}
.stage.mobile-mode .desktop-shot:hover{transform:translate3d(-33%,0,0) scale(.96)}
.stage.mobile-mode .mobile-shot{
  width:min(250px,40%);
  right:28%;
  bottom:50%;
  transform:translate(50%,50%);
  opacity:1;
  filter:none;
}
.stage.mobile-mode .mobile-shot:hover{transform:translate(50%,calc(50% - 5px))}
.stage.mobile-mode .desktop-label{opacity:.35}
.stage.mobile-mode .mobile-label{right:auto;left:50%;bottom:18px;transform:translateX(-50%)}

.metric-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:var(--panel);
  border-top:1px solid var(--line);
}
.metric-strip>div{
  padding:14px 16px 12px;
  border-right:1px solid var(--line);
  min-width:0;
  transition:background .16s ease;
}
.metric-strip>div:last-child{border-right:0}
.metric-strip>div:hover{background:#fff}
.metric-strip span{
  display:block;
  font-size:9px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.065em;
}
.metric-strip strong{
  display:block;
  margin-top:5px;
  font-size:19px;
  line-height:1;
  font-weight:560;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
.metric-strip small{
  display:block;
  margin-top:4px;
  font-size:9px;
  color:#9a9a95;
}

.inspector{
  border-left:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-width:0;
  animation:sideIn .6s .06s var(--ease) both;
}
.inspector-head{
  padding:20px 18px 19px;
  border-bottom:1px solid var(--line);
}
.inspector-head>span{
  font-size:9px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.075em;
}
.inspector h1{
  margin:7px 0 8px;
  font-size:30px;
  line-height:.95;
  letter-spacing:-.06em;
  font-weight:560;
}
.inspector-head p{
  margin:0;
  max-width:255px;
  font-size:11px;
  line-height:1.45;
  color:var(--muted);
}
.property-group{border-bottom:1px solid var(--line)}
.property-title{
  padding:13px 18px 7px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.075em;
  color:#92928d;
}
.property{
  min-height:37px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  font-size:11px;
  transition:background .16s ease,padding-left .16s ease;
}
.property:hover{background:#fff;padding-left:21px}
.property span{color:var(--muted)}
.property strong{font-weight:520;font-variant-numeric:tabular-nums}
.evidence-note{
  padding:17px 18px;
  border-bottom:1px solid var(--line);
}
.evidence-note span{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.075em;
  color:#92928d;
}
.evidence-note p{
  margin:8px 0 0;
  font-size:11px;
  line-height:1.5;
  color:#666;
}
.contact-link{
  margin:auto 18px 18px;
  padding-top:28px;
  font-size:10px;
  color:var(--muted);
}
.contact-link:hover{color:var(--ink)}

@keyframes frameIn{
  from{opacity:0;transform:translate3d(-2.5%,18px,0) scale(.985)}
  to{opacity:1;transform:translate3d(-2.5%,0,0) scale(1)}
}
@keyframes phoneIn{
  from{opacity:0;transform:translate3d(18px,22px,0) scale(.96)}
  to{opacity:1;transform:none}
}
@keyframes sideIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

@media(max-width:1100px){
  .app-shell{grid-template-columns:178px minmax(0,1fr) 286px}
  .desktop-shot{width:min(82%,650px)}
  .mobile-shot{right:6%}
  .inspector-head p{max-width:230px}
}
@media(max-width:860px){
  .topbar{
    height:auto;
    min-height:52px;
    grid-template-columns:1fr auto;
    padding:0 12px;
    gap:0;
  }
  .brand,.top-meta{height:52px;display:flex;align-items:center}
  .top-meta .corpus-count{display:none}
  .top-meta a{font-size:10px}
  .search{
    grid-column:1/-1;
    grid-row:2;
    height:46px;
    margin-bottom:10px;
  }
  .app-shell{
    display:flex;
    flex-direction:column;
    min-height:0;
    border:0;
  }
  .library{
    order:1;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .site-id,.library-label,.library-foot{display:none}
  .page-list{
    display:flex;
    gap:4px;
    overflow-x:auto;
    padding:8px 10px;
    scrollbar-width:none;
  }
  .page-list::-webkit-scrollbar{display:none}
  .page-row{
    flex:0 0 auto;
    min-height:34px;
    gap:10px;
    padding:0 11px;
    border:1px solid transparent;
  }
  .page-row b{display:none}
  .viewer{
    order:2;
    grid-template-rows:44px 430px auto;
  }
  .stage{padding:24px 18px}
  .desktop-shot{width:min(92%,650px);transform:none}
  .desktop-shot:hover{transform:translateY(-3px)}
  .mobile-shot{width:100px;right:7%;bottom:7%}
  .stage.mobile-mode .desktop-shot{width:min(76%,500px);transform:translateX(-15%) scale(.96)}
  .stage.mobile-mode .desktop-shot:hover{transform:translateX(-15%) scale(.96)}
  .stage.mobile-mode .mobile-shot{width:min(210px,45%);right:31%;bottom:50%}
  .metric-strip{grid-template-columns:1fr 1fr}
  .metric-strip>div:nth-child(2){border-right:0}
  .metric-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .inspector{
    order:3;
    border-left:0;
    border-top:1px solid var(--line);
  }
  .inspector-head{padding:19px 14px}
  .inspector-head p{max-width:420px}
  .property-title,.property,.evidence-note{padding-left:14px;padding-right:14px}
  .property:hover{padding-left:14px}
  .contact-link{margin:18px 14px 26px;padding-top:0}
}
@media(max-width:520px){
  .viewer{grid-template-rows:42px 350px auto}
  .crumb span{display:none}
  .stage{padding:18px 10px}
  .desktop-shot{width:96%;border-radius:8px}
  .mobile-shot{width:84px;right:5%;bottom:7%;border-radius:10px}
  .stage-label{font-size:8px}
  .desktop-label{left:10px;top:10px}
  .mobile-label{right:10px;bottom:10px}
  .stage.mobile-mode .desktop-shot{width:84%;transform:translateX(-12%) scale(.94)}
  .stage.mobile-mode .mobile-shot{width:min(190px,50%);right:31%;bottom:50%}
  .metric-strip>div{padding:12px}
  .metric-strip strong{font-size:17px}
  .inspector h1{font-size:27px}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}